From 99bcf3de604041c223a915e5aac671bfa37fa3fb Mon Sep 17 00:00:00 2001 From: Dan Lynch Date: Fri, 27 Feb 2026 22:40:34 +0000 Subject: [PATCH 1/8] feat(codegen): render PostgreSQL comments as JSDoc in generated TypeScript - Add description fields to CleanTable and CleanField types - Create stripSmartComments utility to separate PostGraphile smart comments - Populate descriptions from introspection in inferTablesFromIntrospection - Emit JSDoc comments on entity types, fields, enums in input-types-generator - Emit JSDoc comments on types/fields in schema-types-generator (non-ORM mode) - Emit JSDoc comments on operation variables in custom-ops-generator - Handle custom input types and payload types descriptions from TypeRegistry --- .../core/codegen/orm/custom-ops-generator.ts | 15 ++++- .../core/codegen/orm/input-types-generator.ts | 65 ++++++++++++++++--- .../core/codegen/schema-types-generator.ts | 40 ++++++++++-- graphql/codegen/src/core/codegen/utils.ts | 49 ++++++++++++++ .../src/core/introspect/infer-tables.ts | 8 +++ graphql/codegen/src/types/schema.ts | 4 ++ 6 files changed, 162 insertions(+), 19 deletions(-) diff --git a/graphql/codegen/src/core/codegen/orm/custom-ops-generator.ts b/graphql/codegen/src/core/codegen/orm/custom-ops-generator.ts index 85028d2a1..912cc758e 100644 --- a/graphql/codegen/src/core/codegen/orm/custom-ops-generator.ts +++ b/graphql/codegen/src/core/codegen/orm/custom-ops-generator.ts @@ -7,7 +7,7 @@ import * as t from '@babel/types'; import type { CleanArgument, CleanOperation } from '../../../types/schema'; -import { generateCode } from '../babel-ast'; +import { addJSDocComment, generateCode } from '../babel-ast'; import { NON_SELECT_TYPES, getSelectTypeName } from '../select-helpers'; import { getTypeBaseName, @@ -15,7 +15,7 @@ import { scalarToTsType, typeRefToTsType, } from '../type-resolver'; -import { getGeneratedFileHeader, ucFirst } from '../utils'; +import { getGeneratedFileHeader, stripSmartComments, ucFirst } from '../utils'; export interface GeneratedCustomOpsFile { fileName: string; @@ -120,6 +120,10 @@ function createVariablesInterface( t.tsTypeAnnotation(parseTypeAnnotation(typeRefToTsType(arg.type))), ); prop.optional = optional; + const argDescription = stripSmartComments(arg.description); + if (argDescription) { + addJSDocComment(prop, argDescription.split('\n')); + } return prop; }); @@ -129,7 +133,12 @@ function createVariablesInterface( null, t.tsInterfaceBody(props), ); - return t.exportNamedDeclaration(interfaceDecl); + const exportDecl = t.exportNamedDeclaration(interfaceDecl); + const opDescription = stripSmartComments(op.description); + if (opDescription) { + addJSDocComment(exportDecl, [`Variables for ${op.name}`, opDescription]); + } + return exportDecl; } function parseTypeAnnotation(typeStr: string): t.TSType { diff --git a/graphql/codegen/src/core/codegen/orm/input-types-generator.ts b/graphql/codegen/src/core/codegen/orm/input-types-generator.ts index 9d9e4ae92..acd680006 100644 --- a/graphql/codegen/src/core/codegen/orm/input-types-generator.ts +++ b/graphql/codegen/src/core/codegen/orm/input-types-generator.ts @@ -18,7 +18,7 @@ import type { CleanTable, TypeRegistry, } from '../../../types/schema'; -import { addLineComment, generateCode } from '../babel-ast'; +import { addJSDocComment, addLineComment, generateCode } from '../babel-ast'; import { SCALAR_NAMES, scalarToFilterType, scalarToTsType } from '../scalars'; import { getTypeBaseName } from '../type-resolver'; import { @@ -31,6 +31,7 @@ import { getTableNames, isRelationField, lcFirst, + stripSmartComments, } from '../utils'; export interface GeneratedInputTypesFile { @@ -160,12 +161,16 @@ function createPropertySignature( name: string, typeStr: string, optional: boolean, + description?: string, ): t.TSPropertySignature { const prop = t.tsPropertySignature( t.identifier(name), t.tsTypeAnnotation(parseTypeString(typeStr)), ); prop.optional = optional; + if (description) { + addJSDocComment(prop, description.split('\n')); + } return prop; } @@ -174,10 +179,11 @@ function createPropertySignature( */ function createExportedInterface( name: string, - properties: Array<{ name: string; type: string; optional: boolean }>, + properties: Array<{ name: string; type: string; optional: boolean; description?: string }>, + description?: string, ): t.ExportNamedDeclaration { const props = properties.map((p) => - createPropertySignature(p.name, p.type, p.optional), + createPropertySignature(p.name, p.type, p.optional, p.description), ); const body = t.tsInterfaceBody(props); const interfaceDecl = t.tsInterfaceDeclaration( @@ -186,7 +192,11 @@ function createExportedInterface( null, body, ); - return t.exportNamedDeclaration(interfaceDecl); + const exportDecl = t.exportNamedDeclaration(interfaceDecl); + if (description) { + addJSDocComment(exportDecl, description.split('\n')); + } + return exportDecl; } /** @@ -231,6 +241,8 @@ interface InterfaceProperty { name: string; type: string; optional: boolean; + /** JSDoc description for this property */ + description?: string; } // ============================================================================ @@ -516,7 +528,12 @@ function generateEnumTypes( null, unionType, ); - statements.push(t.exportNamedDeclaration(typeAlias)); + const exportDecl = t.exportNamedDeclaration(typeAlias); + const enumDescription = stripSmartComments(typeInfo.description); + if (enumDescription) { + addJSDocComment(exportDecl, enumDescription.split('\n')); + } + statements.push(exportDecl); } if (statements.length > 0) { @@ -588,6 +605,7 @@ function buildEntityProperties(table: CleanTable): InterfaceProperty[] { name: field.name, type: isNullable ? `${tsType} | null` : tsType, optional: isNullable, + description: field.description, }); } @@ -603,7 +621,11 @@ function generateEntityTypes(tables: CleanTable[]): t.Statement[] { for (const table of tables) { const { typeName } = getTableNames(table); statements.push( - createExportedInterface(typeName, buildEntityProperties(table)), + createExportedInterface( + typeName, + buildEntityProperties(table), + table.description, + ), ); } @@ -1525,7 +1547,12 @@ function generateCustomInputTypes( for (const field of typeInfo.inputFields) { const optional = !isRequired(field.type); const tsType = typeRefToTs(field.type); - properties.push({ name: field.name, type: tsType, optional }); + properties.push({ + name: field.name, + type: tsType, + optional, + description: stripSmartComments(field.description), + }); // Follow nested Input types const baseType = getTypeBaseName(field.type); @@ -1538,7 +1565,13 @@ function generateCustomInputTypes( } } - statements.push(createExportedInterface(typeName, properties)); + statements.push( + createExportedInterface( + typeName, + properties, + stripSmartComments(typeInfo.description), + ), + ); } else if (typeInfo.kind === 'ENUM' && typeInfo.enumValues) { const unionType = createStringLiteralUnion(typeInfo.enumValues); const typeAlias = t.tsTypeAliasDeclaration( @@ -1546,7 +1579,12 @@ function generateCustomInputTypes( null, unionType, ); - statements.push(t.exportNamedDeclaration(typeAlias)); + const enumExportDecl = t.exportNamedDeclaration(typeAlias); + const enumDescription = stripSmartComments(typeInfo.description); + if (enumDescription) { + addJSDocComment(enumExportDecl, enumDescription.split('\n')); + } + statements.push(enumExportDecl); } else { // Add comment for unsupported type kind const commentStmt = t.emptyStatement(); @@ -1642,6 +1680,7 @@ function generatePayloadTypes( name: field.name, type: isNullable ? `${tsType} | null` : tsType, optional: isNullable, + description: stripSmartComments(field.description), }); // Follow nested OBJECT types @@ -1657,7 +1696,13 @@ function generatePayloadTypes( } } - statements.push(createExportedInterface(typeName, interfaceProps)); + statements.push( + createExportedInterface( + typeName, + interfaceProps, + stripSmartComments(typeInfo.description), + ), + ); // Build Select type const selectMembers: t.TSTypeElement[] = []; diff --git a/graphql/codegen/src/core/codegen/schema-types-generator.ts b/graphql/codegen/src/core/codegen/schema-types-generator.ts index e02f00801..f5c51e24b 100644 --- a/graphql/codegen/src/core/codegen/schema-types-generator.ts +++ b/graphql/codegen/src/core/codegen/schema-types-generator.ts @@ -18,14 +18,14 @@ import type { ResolvedType, TypeRegistry, } from '../../types/schema'; -import { generateCode } from './babel-ast'; +import { addJSDocComment, generateCode } from './babel-ast'; import { BASE_FILTER_TYPE_NAMES, SCALAR_NAMES, scalarToTsType, } from './scalars'; import { getTypeBaseName } from './type-resolver'; -import { getGeneratedFileHeader } from './utils'; +import { getGeneratedFileHeader, stripSmartComments } from './utils'; export interface GeneratedSchemaTypesFile { fileName: string; @@ -139,7 +139,12 @@ function generateEnumTypes( null, unionType, ); - statements.push(t.exportNamedDeclaration(typeAlias)); + const exportDecl = t.exportNamedDeclaration(typeAlias); + const enumDescription = stripSmartComments(typeInfo.description); + if (enumDescription) { + addJSDocComment(exportDecl, enumDescription.split('\n')); + } + statements.push(exportDecl); generatedTypes.add(typeName); } @@ -187,6 +192,10 @@ function generateInputObjectTypes( t.tsTypeAnnotation(t.tsTypeReference(t.identifier(tsType))), ); prop.optional = optional; + const fieldDescription = stripSmartComments(field.description); + if (fieldDescription) { + addJSDocComment(prop, fieldDescription.split('\n')); + } properties.push(prop); const baseType = getTypeBaseName(field.type); @@ -209,7 +218,12 @@ function generateInputObjectTypes( null, t.tsInterfaceBody(properties), ); - statements.push(t.exportNamedDeclaration(interfaceDecl)); + const exportDecl = t.exportNamedDeclaration(interfaceDecl); + const inputDescription = stripSmartComments(typeInfo.description); + if (inputDescription) { + addJSDocComment(exportDecl, inputDescription.split('\n')); + } + statements.push(exportDecl); } return { statements, generatedTypes }; @@ -238,7 +252,12 @@ function generateUnionTypes( null, unionType, ); - statements.push(t.exportNamedDeclaration(typeAlias)); + const exportDecl = t.exportNamedDeclaration(typeAlias); + const unionDescription = stripSmartComments(typeInfo.description); + if (unionDescription) { + addJSDocComment(exportDecl, unionDescription.split('\n')); + } + statements.push(exportDecl); generatedTypes.add(typeName); } @@ -330,6 +349,10 @@ function generatePayloadObjectTypes( t.tsTypeAnnotation(t.tsTypeReference(t.identifier(finalType))), ); prop.optional = isNullable; + const fieldDescription = stripSmartComments(field.description); + if (fieldDescription) { + addJSDocComment(prop, fieldDescription.split('\n')); + } properties.push(prop); if (baseType && tableTypeNames.has(baseType)) { @@ -355,7 +378,12 @@ function generatePayloadObjectTypes( null, t.tsInterfaceBody(properties), ); - statements.push(t.exportNamedDeclaration(interfaceDecl)); + const exportDecl = t.exportNamedDeclaration(interfaceDecl); + const payloadDescription = stripSmartComments(typeInfo.description); + if (payloadDescription) { + addJSDocComment(exportDecl, payloadDescription.split('\n')); + } + statements.push(exportDecl); } return { statements, generatedTypes, referencedTableTypes }; diff --git a/graphql/codegen/src/core/codegen/utils.ts b/graphql/codegen/src/core/codegen/utils.ts index a67b22f4d..05413526f 100644 --- a/graphql/codegen/src/core/codegen/utils.ts +++ b/graphql/codegen/src/core/codegen/utils.ts @@ -413,6 +413,55 @@ export function getQueryKeyPrefix(table: CleanTable): string { return lcFirst(table.name); } +// ============================================================================ +// Smart Comment Utilities +// ============================================================================ + +/** + * PostGraphile smart comment tags that should be stripped from descriptions. + * Smart comments start with `@` and control PostGraphile behavior + * (e.g., `@omit`, `@name`, `@foreignKey`, etc.) + * + * A PostgreSQL COMMENT may contain both human-readable text and smart comments: + * COMMENT ON TABLE users IS 'User accounts for the application\n@omit delete'; + * + * PostGraphile's introspection already separates these: the GraphQL `description` + * field contains only the human-readable part. So in most cases, the description + * we receive from introspection is already clean. + * + * However, as a safety measure, this utility strips any remaining `@`-prefixed + * lines that may have leaked through. + */ + +/** + * Strip PostGraphile smart comments from a description string. + * + * Smart comments are lines starting with `@` (e.g., `@omit`, `@name newName`). + * This returns only the human-readable portion of the comment, or undefined + * if the result is empty. + * + * @param description - Raw description from GraphQL introspection + * @returns Cleaned description with smart comments removed, or undefined if empty + */ +export function stripSmartComments( + description: string | null | undefined, +): string | undefined { + if (!description) return undefined; + + const lines = description.split('\n'); + const cleanLines: string[] = []; + + for (const line of lines) { + const trimmed = line.trim(); + // Skip lines that start with @ (smart comment directives) + if (trimmed.startsWith('@')) continue; + cleanLines.push(line); + } + + const result = cleanLines.join('\n').trim(); + return result.length > 0 ? result : undefined; +} + // ============================================================================ // Code generation helpers // ============================================================================ diff --git a/graphql/codegen/src/core/introspect/infer-tables.ts b/graphql/codegen/src/core/introspect/infer-tables.ts index 3c094c19e..38611027f 100644 --- a/graphql/codegen/src/core/introspect/infer-tables.ts +++ b/graphql/codegen/src/core/introspect/infer-tables.ts @@ -14,6 +14,8 @@ */ import { lcFirst, pluralize, singularize, ucFirst } from 'inflekt'; +import { stripSmartComments } from '../codegen/utils'; + import type { IntrospectionField, IntrospectionInputValue, @@ -309,9 +311,13 @@ function buildCleanTable( patchFieldName, }; + // Extract description from entity type (PostgreSQL COMMENT), strip smart comments + const description = stripSmartComments(entityType.description); + return { table: { name: entityName, + ...(description ? { description } : {}), fields, relations, inflection, @@ -356,8 +362,10 @@ function extractEntityFields( } // Include scalar, enum, and other non-relation fields + const fieldDescription = stripSmartComments(field.description); fields.push({ name: field.name, + ...(fieldDescription ? { description: fieldDescription } : {}), type: convertToCleanFieldType(field.type), }); } diff --git a/graphql/codegen/src/types/schema.ts b/graphql/codegen/src/types/schema.ts index 8020010b1..c9b21d0cd 100644 --- a/graphql/codegen/src/types/schema.ts +++ b/graphql/codegen/src/types/schema.ts @@ -8,6 +8,8 @@ */ export interface CleanTable { name: string; + /** Description from PostgreSQL COMMENT (smart comments stripped) */ + description?: string; fields: CleanField[]; relations: CleanRelations; /** PostGraphile inflection rules for this table */ @@ -110,6 +112,8 @@ export interface ForeignKeyConstraint extends ConstraintInfo { */ export interface CleanField { name: string; + /** Description from PostgreSQL COMMENT (smart comments stripped) */ + description?: string; type: CleanFieldType; } From cf51978909e4820467b57071379da58c4102e552 Mon Sep 17 00:00:00 2001 From: Dan Lynch Date: Fri, 27 Feb 2026 22:52:13 +0000 Subject: [PATCH 2/8] chore(sdk): regenerate SDK with JSDoc comments from PostgreSQL COMMENT statements --- .../src/admin/orm/input-types.ts | 716 +++++ .../src/admin/orm/mutation/index.ts | 2 + .../src/admin/orm/query/index.ts | 30 + .../src/auth/orm/input-types.ts | 343 +++ .../src/auth/orm/mutation/index.ts | 16 + .../src/objects/orm/input-types.ts | 202 ++ .../src/objects/orm/mutation/index.ts | 8 + .../src/objects/orm/query/index.ts | 20 + .../src/public/orm/input-types.ts | 2708 +++++++++++++++++ .../src/public/orm/mutation/index.ts | 50 + .../src/public/orm/query/index.ts | 50 + 11 files changed, 4145 insertions(+) diff --git a/sdk/constructive-sdk/src/admin/orm/input-types.ts b/sdk/constructive-sdk/src/admin/orm/input-types.ts index 1cad8315b..eb5dccc14 100644 --- a/sdk/constructive-sdk/src/admin/orm/input-types.ts +++ b/sdk/constructive-sdk/src/admin/orm/input-types.ts @@ -241,6 +241,7 @@ export interface OrgPermission { bitstr?: string | null; description?: string | null; } +/** Requirements to achieve a level */ export interface AppLevelRequirement { id: string; name?: string | null; @@ -323,6 +324,7 @@ export interface AppLimit { num?: number | null; 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. */ export interface AppAchievement { id: string; actorId?: string | null; @@ -331,6 +333,7 @@ export interface AppAchievement { createdAt?: string | null; updatedAt?: string | null; } +/** The user achieving a requirement for a level. Log table that has every single step ever taken. */ export interface AppStep { id: string; actorId?: string | null; @@ -403,6 +406,7 @@ export interface OrgMembershipDefault { deleteMemberCascadeGroups?: boolean | null; createGroupsCascadeMembers?: boolean | null; } +/** Levels for achievement */ export interface AppLevel { id: string; name?: string | null; @@ -2592,20 +2596,35 @@ export interface DeleteOrgInviteInput { } // ============ Connection Fields Map ============ export const connectionFieldsMap = {} as Record>; +/** All input for the `submitInviteCode` mutation. */ // ============ Custom Input Types (from schema) ============ export interface SubmitInviteCodeInput { + /** + * An arbitrary string value with no semantic meaning. Will be included in the + * payload verbatim. May be used to track mutations by the client. + */ clientMutationId?: string; token?: string; } +/** All input for the `submitOrgInviteCode` mutation. */ export interface SubmitOrgInviteCodeInput { + /** + * An arbitrary string value with no semantic meaning. Will be included in the + * payload verbatim. May be used to track mutations by the client. + */ clientMutationId?: string; token?: string; } +/** A connection to a list of `AppPermission` values. */ // ============ Payload/Return Types (for custom operations) ============ export interface AppPermissionConnection { + /** A list of `AppPermission` objects. */ nodes: AppPermission[]; + /** A list of edges which contains the `AppPermission` and cursor to aid in pagination. */ edges: AppPermissionEdge[]; + /** Information to aid in pagination. */ pageInfo: PageInfo; + /** The count of *all* `AppPermission` you could get from the connection. */ totalCount: number; } export type AppPermissionConnectionSelect = { @@ -2620,10 +2639,15 @@ export type AppPermissionConnectionSelect = { }; totalCount?: boolean; }; +/** A connection to a list of `OrgPermission` values. */ export interface OrgPermissionConnection { + /** A list of `OrgPermission` objects. */ nodes: OrgPermission[]; + /** A list of edges which contains the `OrgPermission` and cursor to aid in pagination. */ edges: OrgPermissionEdge[]; + /** Information to aid in pagination. */ pageInfo: PageInfo; + /** The count of *all* `OrgPermission` you could get from the connection. */ totalCount: number; } export type OrgPermissionConnectionSelect = { @@ -2638,10 +2662,15 @@ export type OrgPermissionConnectionSelect = { }; totalCount?: boolean; }; +/** A connection to a list of `AppLevelRequirement` values. */ export interface AppLevelRequirementConnection { + /** A list of `AppLevelRequirement` objects. */ nodes: AppLevelRequirement[]; + /** A list of edges which contains the `AppLevelRequirement` and cursor to aid in pagination. */ edges: AppLevelRequirementEdge[]; + /** Information to aid in pagination. */ pageInfo: PageInfo; + /** The count of *all* `AppLevelRequirement` you could get from the connection. */ totalCount: number; } export type AppLevelRequirementConnectionSelect = { @@ -2656,7 +2685,12 @@ export type AppLevelRequirementConnectionSelect = { }; totalCount?: boolean; }; +/** The output of our `submitInviteCode` mutation. */ export interface SubmitInviteCodePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; result?: boolean | null; } @@ -2664,7 +2698,12 @@ export type SubmitInviteCodePayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +/** The output of our `submitOrgInviteCode` mutation. */ export interface SubmitOrgInviteCodePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; result?: boolean | null; } @@ -2672,9 +2711,16 @@ export type SubmitOrgInviteCodePayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +/** The output of our create `AppPermission` mutation. */ export interface CreateAppPermissionPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppPermission` that was created by this mutation. */ appPermission?: AppPermission | null; + /** An edge for our `AppPermission`. May be used by Relay 1. */ appPermissionEdge?: AppPermissionEdge | null; } export type CreateAppPermissionPayloadSelect = { @@ -2686,9 +2732,16 @@ export type CreateAppPermissionPayloadSelect = { select: AppPermissionEdgeSelect; }; }; +/** The output of our update `AppPermission` mutation. */ export interface UpdateAppPermissionPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppPermission` that was updated by this mutation. */ appPermission?: AppPermission | null; + /** An edge for our `AppPermission`. May be used by Relay 1. */ appPermissionEdge?: AppPermissionEdge | null; } export type UpdateAppPermissionPayloadSelect = { @@ -2700,9 +2753,16 @@ export type UpdateAppPermissionPayloadSelect = { select: AppPermissionEdgeSelect; }; }; +/** The output of our delete `AppPermission` mutation. */ export interface DeleteAppPermissionPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppPermission` that was deleted by this mutation. */ appPermission?: AppPermission | null; + /** An edge for our `AppPermission`. May be used by Relay 1. */ appPermissionEdge?: AppPermissionEdge | null; } export type DeleteAppPermissionPayloadSelect = { @@ -2714,9 +2774,16 @@ export type DeleteAppPermissionPayloadSelect = { select: AppPermissionEdgeSelect; }; }; +/** The output of our create `OrgPermission` mutation. */ export interface CreateOrgPermissionPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgPermission` that was created by this mutation. */ orgPermission?: OrgPermission | null; + /** An edge for our `OrgPermission`. May be used by Relay 1. */ orgPermissionEdge?: OrgPermissionEdge | null; } export type CreateOrgPermissionPayloadSelect = { @@ -2728,9 +2795,16 @@ export type CreateOrgPermissionPayloadSelect = { select: OrgPermissionEdgeSelect; }; }; +/** The output of our update `OrgPermission` mutation. */ export interface UpdateOrgPermissionPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgPermission` that was updated by this mutation. */ orgPermission?: OrgPermission | null; + /** An edge for our `OrgPermission`. May be used by Relay 1. */ orgPermissionEdge?: OrgPermissionEdge | null; } export type UpdateOrgPermissionPayloadSelect = { @@ -2742,9 +2816,16 @@ export type UpdateOrgPermissionPayloadSelect = { select: OrgPermissionEdgeSelect; }; }; +/** The output of our delete `OrgPermission` mutation. */ export interface DeleteOrgPermissionPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgPermission` that was deleted by this mutation. */ orgPermission?: OrgPermission | null; + /** An edge for our `OrgPermission`. May be used by Relay 1. */ orgPermissionEdge?: OrgPermissionEdge | null; } export type DeleteOrgPermissionPayloadSelect = { @@ -2756,9 +2837,16 @@ export type DeleteOrgPermissionPayloadSelect = { select: OrgPermissionEdgeSelect; }; }; +/** The output of our create `AppLevelRequirement` mutation. */ export interface CreateAppLevelRequirementPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppLevelRequirement` that was created by this mutation. */ appLevelRequirement?: AppLevelRequirement | null; + /** An edge for our `AppLevelRequirement`. May be used by Relay 1. */ appLevelRequirementEdge?: AppLevelRequirementEdge | null; } export type CreateAppLevelRequirementPayloadSelect = { @@ -2770,9 +2858,16 @@ export type CreateAppLevelRequirementPayloadSelect = { select: AppLevelRequirementEdgeSelect; }; }; +/** The output of our update `AppLevelRequirement` mutation. */ export interface UpdateAppLevelRequirementPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppLevelRequirement` that was updated by this mutation. */ appLevelRequirement?: AppLevelRequirement | null; + /** An edge for our `AppLevelRequirement`. May be used by Relay 1. */ appLevelRequirementEdge?: AppLevelRequirementEdge | null; } export type UpdateAppLevelRequirementPayloadSelect = { @@ -2784,9 +2879,16 @@ export type UpdateAppLevelRequirementPayloadSelect = { select: AppLevelRequirementEdgeSelect; }; }; +/** The output of our delete `AppLevelRequirement` mutation. */ export interface DeleteAppLevelRequirementPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppLevelRequirement` that was deleted by this mutation. */ appLevelRequirement?: AppLevelRequirement | null; + /** An edge for our `AppLevelRequirement`. May be used by Relay 1. */ appLevelRequirementEdge?: AppLevelRequirementEdge | null; } export type DeleteAppLevelRequirementPayloadSelect = { @@ -2798,9 +2900,16 @@ export type DeleteAppLevelRequirementPayloadSelect = { select: AppLevelRequirementEdgeSelect; }; }; +/** The output of our create `OrgMember` mutation. */ export interface CreateOrgMemberPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgMember` that was created by this mutation. */ orgMember?: OrgMember | null; + /** An edge for our `OrgMember`. May be used by Relay 1. */ orgMemberEdge?: OrgMemberEdge | null; } export type CreateOrgMemberPayloadSelect = { @@ -2812,9 +2921,16 @@ export type CreateOrgMemberPayloadSelect = { select: OrgMemberEdgeSelect; }; }; +/** The output of our update `OrgMember` mutation. */ export interface UpdateOrgMemberPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgMember` that was updated by this mutation. */ orgMember?: OrgMember | null; + /** An edge for our `OrgMember`. May be used by Relay 1. */ orgMemberEdge?: OrgMemberEdge | null; } export type UpdateOrgMemberPayloadSelect = { @@ -2826,9 +2942,16 @@ export type UpdateOrgMemberPayloadSelect = { select: OrgMemberEdgeSelect; }; }; +/** The output of our delete `OrgMember` mutation. */ export interface DeleteOrgMemberPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgMember` that was deleted by this mutation. */ orgMember?: OrgMember | null; + /** An edge for our `OrgMember`. May be used by Relay 1. */ orgMemberEdge?: OrgMemberEdge | null; } export type DeleteOrgMemberPayloadSelect = { @@ -2840,9 +2963,16 @@ export type DeleteOrgMemberPayloadSelect = { select: OrgMemberEdgeSelect; }; }; +/** The output of our create `AppPermissionDefault` mutation. */ export interface CreateAppPermissionDefaultPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppPermissionDefault` that was created by this mutation. */ appPermissionDefault?: AppPermissionDefault | null; + /** An edge for our `AppPermissionDefault`. May be used by Relay 1. */ appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; } export type CreateAppPermissionDefaultPayloadSelect = { @@ -2854,9 +2984,16 @@ export type CreateAppPermissionDefaultPayloadSelect = { select: AppPermissionDefaultEdgeSelect; }; }; +/** The output of our update `AppPermissionDefault` mutation. */ export interface UpdateAppPermissionDefaultPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppPermissionDefault` that was updated by this mutation. */ appPermissionDefault?: AppPermissionDefault | null; + /** An edge for our `AppPermissionDefault`. May be used by Relay 1. */ appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; } export type UpdateAppPermissionDefaultPayloadSelect = { @@ -2868,9 +3005,16 @@ export type UpdateAppPermissionDefaultPayloadSelect = { select: AppPermissionDefaultEdgeSelect; }; }; +/** The output of our delete `AppPermissionDefault` mutation. */ export interface DeleteAppPermissionDefaultPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppPermissionDefault` that was deleted by this mutation. */ appPermissionDefault?: AppPermissionDefault | null; + /** An edge for our `AppPermissionDefault`. May be used by Relay 1. */ appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; } export type DeleteAppPermissionDefaultPayloadSelect = { @@ -2882,9 +3026,16 @@ export type DeleteAppPermissionDefaultPayloadSelect = { select: AppPermissionDefaultEdgeSelect; }; }; +/** The output of our create `OrgPermissionDefault` mutation. */ export interface CreateOrgPermissionDefaultPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgPermissionDefault` that was created by this mutation. */ orgPermissionDefault?: OrgPermissionDefault | null; + /** An edge for our `OrgPermissionDefault`. May be used by Relay 1. */ orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; } export type CreateOrgPermissionDefaultPayloadSelect = { @@ -2896,9 +3047,16 @@ export type CreateOrgPermissionDefaultPayloadSelect = { select: OrgPermissionDefaultEdgeSelect; }; }; +/** The output of our update `OrgPermissionDefault` mutation. */ export interface UpdateOrgPermissionDefaultPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgPermissionDefault` that was updated by this mutation. */ orgPermissionDefault?: OrgPermissionDefault | null; + /** An edge for our `OrgPermissionDefault`. May be used by Relay 1. */ orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; } export type UpdateOrgPermissionDefaultPayloadSelect = { @@ -2910,9 +3068,16 @@ export type UpdateOrgPermissionDefaultPayloadSelect = { select: OrgPermissionDefaultEdgeSelect; }; }; +/** The output of our delete `OrgPermissionDefault` mutation. */ export interface DeleteOrgPermissionDefaultPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgPermissionDefault` that was deleted by this mutation. */ orgPermissionDefault?: OrgPermissionDefault | null; + /** An edge for our `OrgPermissionDefault`. May be used by Relay 1. */ orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; } export type DeleteOrgPermissionDefaultPayloadSelect = { @@ -2924,9 +3089,16 @@ export type DeleteOrgPermissionDefaultPayloadSelect = { select: OrgPermissionDefaultEdgeSelect; }; }; +/** The output of our create `AppAdminGrant` mutation. */ export interface CreateAppAdminGrantPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppAdminGrant` that was created by this mutation. */ appAdminGrant?: AppAdminGrant | null; + /** An edge for our `AppAdminGrant`. May be used by Relay 1. */ appAdminGrantEdge?: AppAdminGrantEdge | null; } export type CreateAppAdminGrantPayloadSelect = { @@ -2938,9 +3110,16 @@ export type CreateAppAdminGrantPayloadSelect = { select: AppAdminGrantEdgeSelect; }; }; +/** The output of our update `AppAdminGrant` mutation. */ export interface UpdateAppAdminGrantPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppAdminGrant` that was updated by this mutation. */ appAdminGrant?: AppAdminGrant | null; + /** An edge for our `AppAdminGrant`. May be used by Relay 1. */ appAdminGrantEdge?: AppAdminGrantEdge | null; } export type UpdateAppAdminGrantPayloadSelect = { @@ -2952,9 +3131,16 @@ export type UpdateAppAdminGrantPayloadSelect = { select: AppAdminGrantEdgeSelect; }; }; +/** The output of our delete `AppAdminGrant` mutation. */ export interface DeleteAppAdminGrantPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppAdminGrant` that was deleted by this mutation. */ appAdminGrant?: AppAdminGrant | null; + /** An edge for our `AppAdminGrant`. May be used by Relay 1. */ appAdminGrantEdge?: AppAdminGrantEdge | null; } export type DeleteAppAdminGrantPayloadSelect = { @@ -2966,9 +3152,16 @@ export type DeleteAppAdminGrantPayloadSelect = { select: AppAdminGrantEdgeSelect; }; }; +/** The output of our create `AppOwnerGrant` mutation. */ export interface CreateAppOwnerGrantPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppOwnerGrant` that was created by this mutation. */ appOwnerGrant?: AppOwnerGrant | null; + /** An edge for our `AppOwnerGrant`. May be used by Relay 1. */ appOwnerGrantEdge?: AppOwnerGrantEdge | null; } export type CreateAppOwnerGrantPayloadSelect = { @@ -2980,9 +3173,16 @@ export type CreateAppOwnerGrantPayloadSelect = { select: AppOwnerGrantEdgeSelect; }; }; +/** The output of our update `AppOwnerGrant` mutation. */ export interface UpdateAppOwnerGrantPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppOwnerGrant` that was updated by this mutation. */ appOwnerGrant?: AppOwnerGrant | null; + /** An edge for our `AppOwnerGrant`. May be used by Relay 1. */ appOwnerGrantEdge?: AppOwnerGrantEdge | null; } export type UpdateAppOwnerGrantPayloadSelect = { @@ -2994,9 +3194,16 @@ export type UpdateAppOwnerGrantPayloadSelect = { select: AppOwnerGrantEdgeSelect; }; }; +/** The output of our delete `AppOwnerGrant` mutation. */ export interface DeleteAppOwnerGrantPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppOwnerGrant` that was deleted by this mutation. */ appOwnerGrant?: AppOwnerGrant | null; + /** An edge for our `AppOwnerGrant`. May be used by Relay 1. */ appOwnerGrantEdge?: AppOwnerGrantEdge | null; } export type DeleteAppOwnerGrantPayloadSelect = { @@ -3008,9 +3215,16 @@ export type DeleteAppOwnerGrantPayloadSelect = { select: AppOwnerGrantEdgeSelect; }; }; +/** The output of our create `AppLimitDefault` mutation. */ export interface CreateAppLimitDefaultPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppLimitDefault` that was created by this mutation. */ appLimitDefault?: AppLimitDefault | null; + /** An edge for our `AppLimitDefault`. May be used by Relay 1. */ appLimitDefaultEdge?: AppLimitDefaultEdge | null; } export type CreateAppLimitDefaultPayloadSelect = { @@ -3022,9 +3236,16 @@ export type CreateAppLimitDefaultPayloadSelect = { select: AppLimitDefaultEdgeSelect; }; }; +/** The output of our update `AppLimitDefault` mutation. */ export interface UpdateAppLimitDefaultPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppLimitDefault` that was updated by this mutation. */ appLimitDefault?: AppLimitDefault | null; + /** An edge for our `AppLimitDefault`. May be used by Relay 1. */ appLimitDefaultEdge?: AppLimitDefaultEdge | null; } export type UpdateAppLimitDefaultPayloadSelect = { @@ -3036,9 +3257,16 @@ export type UpdateAppLimitDefaultPayloadSelect = { select: AppLimitDefaultEdgeSelect; }; }; +/** The output of our delete `AppLimitDefault` mutation. */ export interface DeleteAppLimitDefaultPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppLimitDefault` that was deleted by this mutation. */ appLimitDefault?: AppLimitDefault | null; + /** An edge for our `AppLimitDefault`. May be used by Relay 1. */ appLimitDefaultEdge?: AppLimitDefaultEdge | null; } export type DeleteAppLimitDefaultPayloadSelect = { @@ -3050,9 +3278,16 @@ export type DeleteAppLimitDefaultPayloadSelect = { select: AppLimitDefaultEdgeSelect; }; }; +/** The output of our create `OrgLimitDefault` mutation. */ export interface CreateOrgLimitDefaultPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgLimitDefault` that was created by this mutation. */ orgLimitDefault?: OrgLimitDefault | null; + /** An edge for our `OrgLimitDefault`. May be used by Relay 1. */ orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; } export type CreateOrgLimitDefaultPayloadSelect = { @@ -3064,9 +3299,16 @@ export type CreateOrgLimitDefaultPayloadSelect = { select: OrgLimitDefaultEdgeSelect; }; }; +/** The output of our update `OrgLimitDefault` mutation. */ export interface UpdateOrgLimitDefaultPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgLimitDefault` that was updated by this mutation. */ orgLimitDefault?: OrgLimitDefault | null; + /** An edge for our `OrgLimitDefault`. May be used by Relay 1. */ orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; } export type UpdateOrgLimitDefaultPayloadSelect = { @@ -3078,9 +3320,16 @@ export type UpdateOrgLimitDefaultPayloadSelect = { select: OrgLimitDefaultEdgeSelect; }; }; +/** The output of our delete `OrgLimitDefault` mutation. */ export interface DeleteOrgLimitDefaultPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgLimitDefault` that was deleted by this mutation. */ orgLimitDefault?: OrgLimitDefault | null; + /** An edge for our `OrgLimitDefault`. May be used by Relay 1. */ orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; } export type DeleteOrgLimitDefaultPayloadSelect = { @@ -3092,9 +3341,16 @@ export type DeleteOrgLimitDefaultPayloadSelect = { select: OrgLimitDefaultEdgeSelect; }; }; +/** The output of our create `OrgAdminGrant` mutation. */ export interface CreateOrgAdminGrantPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgAdminGrant` that was created by this mutation. */ orgAdminGrant?: OrgAdminGrant | null; + /** An edge for our `OrgAdminGrant`. May be used by Relay 1. */ orgAdminGrantEdge?: OrgAdminGrantEdge | null; } export type CreateOrgAdminGrantPayloadSelect = { @@ -3106,9 +3362,16 @@ export type CreateOrgAdminGrantPayloadSelect = { select: OrgAdminGrantEdgeSelect; }; }; +/** The output of our update `OrgAdminGrant` mutation. */ export interface UpdateOrgAdminGrantPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgAdminGrant` that was updated by this mutation. */ orgAdminGrant?: OrgAdminGrant | null; + /** An edge for our `OrgAdminGrant`. May be used by Relay 1. */ orgAdminGrantEdge?: OrgAdminGrantEdge | null; } export type UpdateOrgAdminGrantPayloadSelect = { @@ -3120,9 +3383,16 @@ export type UpdateOrgAdminGrantPayloadSelect = { select: OrgAdminGrantEdgeSelect; }; }; +/** The output of our delete `OrgAdminGrant` mutation. */ export interface DeleteOrgAdminGrantPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgAdminGrant` that was deleted by this mutation. */ orgAdminGrant?: OrgAdminGrant | null; + /** An edge for our `OrgAdminGrant`. May be used by Relay 1. */ orgAdminGrantEdge?: OrgAdminGrantEdge | null; } export type DeleteOrgAdminGrantPayloadSelect = { @@ -3134,9 +3404,16 @@ export type DeleteOrgAdminGrantPayloadSelect = { select: OrgAdminGrantEdgeSelect; }; }; +/** The output of our create `OrgOwnerGrant` mutation. */ export interface CreateOrgOwnerGrantPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgOwnerGrant` that was created by this mutation. */ orgOwnerGrant?: OrgOwnerGrant | null; + /** An edge for our `OrgOwnerGrant`. May be used by Relay 1. */ orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } export type CreateOrgOwnerGrantPayloadSelect = { @@ -3148,9 +3425,16 @@ export type CreateOrgOwnerGrantPayloadSelect = { select: OrgOwnerGrantEdgeSelect; }; }; +/** The output of our update `OrgOwnerGrant` mutation. */ export interface UpdateOrgOwnerGrantPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgOwnerGrant` that was updated by this mutation. */ orgOwnerGrant?: OrgOwnerGrant | null; + /** An edge for our `OrgOwnerGrant`. May be used by Relay 1. */ orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } export type UpdateOrgOwnerGrantPayloadSelect = { @@ -3162,9 +3446,16 @@ export type UpdateOrgOwnerGrantPayloadSelect = { select: OrgOwnerGrantEdgeSelect; }; }; +/** The output of our delete `OrgOwnerGrant` mutation. */ export interface DeleteOrgOwnerGrantPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgOwnerGrant` that was deleted by this mutation. */ orgOwnerGrant?: OrgOwnerGrant | null; + /** An edge for our `OrgOwnerGrant`. May be used by Relay 1. */ orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } export type DeleteOrgOwnerGrantPayloadSelect = { @@ -3176,9 +3467,16 @@ export type DeleteOrgOwnerGrantPayloadSelect = { select: OrgOwnerGrantEdgeSelect; }; }; +/** The output of our create `MembershipType` mutation. */ export interface CreateMembershipTypePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `MembershipType` that was created by this mutation. */ membershipType?: MembershipType | null; + /** An edge for our `MembershipType`. May be used by Relay 1. */ membershipTypeEdge?: MembershipTypeEdge | null; } export type CreateMembershipTypePayloadSelect = { @@ -3190,9 +3488,16 @@ export type CreateMembershipTypePayloadSelect = { select: MembershipTypeEdgeSelect; }; }; +/** The output of our update `MembershipType` mutation. */ export interface UpdateMembershipTypePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `MembershipType` that was updated by this mutation. */ membershipType?: MembershipType | null; + /** An edge for our `MembershipType`. May be used by Relay 1. */ membershipTypeEdge?: MembershipTypeEdge | null; } export type UpdateMembershipTypePayloadSelect = { @@ -3204,9 +3509,16 @@ export type UpdateMembershipTypePayloadSelect = { select: MembershipTypeEdgeSelect; }; }; +/** The output of our delete `MembershipType` mutation. */ export interface DeleteMembershipTypePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `MembershipType` that was deleted by this mutation. */ membershipType?: MembershipType | null; + /** An edge for our `MembershipType`. May be used by Relay 1. */ membershipTypeEdge?: MembershipTypeEdge | null; } export type DeleteMembershipTypePayloadSelect = { @@ -3218,9 +3530,16 @@ export type DeleteMembershipTypePayloadSelect = { select: MembershipTypeEdgeSelect; }; }; +/** The output of our create `AppLimit` mutation. */ export interface CreateAppLimitPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppLimit` that was created by this mutation. */ appLimit?: AppLimit | null; + /** An edge for our `AppLimit`. May be used by Relay 1. */ appLimitEdge?: AppLimitEdge | null; } export type CreateAppLimitPayloadSelect = { @@ -3232,9 +3551,16 @@ export type CreateAppLimitPayloadSelect = { select: AppLimitEdgeSelect; }; }; +/** The output of our update `AppLimit` mutation. */ export interface UpdateAppLimitPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppLimit` that was updated by this mutation. */ appLimit?: AppLimit | null; + /** An edge for our `AppLimit`. May be used by Relay 1. */ appLimitEdge?: AppLimitEdge | null; } export type UpdateAppLimitPayloadSelect = { @@ -3246,9 +3572,16 @@ export type UpdateAppLimitPayloadSelect = { select: AppLimitEdgeSelect; }; }; +/** The output of our delete `AppLimit` mutation. */ export interface DeleteAppLimitPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppLimit` that was deleted by this mutation. */ appLimit?: AppLimit | null; + /** An edge for our `AppLimit`. May be used by Relay 1. */ appLimitEdge?: AppLimitEdge | null; } export type DeleteAppLimitPayloadSelect = { @@ -3260,9 +3593,16 @@ export type DeleteAppLimitPayloadSelect = { select: AppLimitEdgeSelect; }; }; +/** The output of our create `AppAchievement` mutation. */ export interface CreateAppAchievementPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppAchievement` that was created by this mutation. */ appAchievement?: AppAchievement | null; + /** An edge for our `AppAchievement`. May be used by Relay 1. */ appAchievementEdge?: AppAchievementEdge | null; } export type CreateAppAchievementPayloadSelect = { @@ -3274,9 +3614,16 @@ export type CreateAppAchievementPayloadSelect = { select: AppAchievementEdgeSelect; }; }; +/** The output of our update `AppAchievement` mutation. */ export interface UpdateAppAchievementPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppAchievement` that was updated by this mutation. */ appAchievement?: AppAchievement | null; + /** An edge for our `AppAchievement`. May be used by Relay 1. */ appAchievementEdge?: AppAchievementEdge | null; } export type UpdateAppAchievementPayloadSelect = { @@ -3288,9 +3635,16 @@ export type UpdateAppAchievementPayloadSelect = { select: AppAchievementEdgeSelect; }; }; +/** The output of our delete `AppAchievement` mutation. */ export interface DeleteAppAchievementPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppAchievement` that was deleted by this mutation. */ appAchievement?: AppAchievement | null; + /** An edge for our `AppAchievement`. May be used by Relay 1. */ appAchievementEdge?: AppAchievementEdge | null; } export type DeleteAppAchievementPayloadSelect = { @@ -3302,9 +3656,16 @@ export type DeleteAppAchievementPayloadSelect = { select: AppAchievementEdgeSelect; }; }; +/** The output of our create `AppStep` mutation. */ export interface CreateAppStepPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppStep` that was created by this mutation. */ appStep?: AppStep | null; + /** An edge for our `AppStep`. May be used by Relay 1. */ appStepEdge?: AppStepEdge | null; } export type CreateAppStepPayloadSelect = { @@ -3316,9 +3677,16 @@ export type CreateAppStepPayloadSelect = { select: AppStepEdgeSelect; }; }; +/** The output of our update `AppStep` mutation. */ export interface UpdateAppStepPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppStep` that was updated by this mutation. */ appStep?: AppStep | null; + /** An edge for our `AppStep`. May be used by Relay 1. */ appStepEdge?: AppStepEdge | null; } export type UpdateAppStepPayloadSelect = { @@ -3330,9 +3698,16 @@ export type UpdateAppStepPayloadSelect = { select: AppStepEdgeSelect; }; }; +/** The output of our delete `AppStep` mutation. */ export interface DeleteAppStepPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppStep` that was deleted by this mutation. */ appStep?: AppStep | null; + /** An edge for our `AppStep`. May be used by Relay 1. */ appStepEdge?: AppStepEdge | null; } export type DeleteAppStepPayloadSelect = { @@ -3344,9 +3719,16 @@ export type DeleteAppStepPayloadSelect = { select: AppStepEdgeSelect; }; }; +/** The output of our create `ClaimedInvite` mutation. */ export interface CreateClaimedInvitePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `ClaimedInvite` that was created by this mutation. */ claimedInvite?: ClaimedInvite | null; + /** An edge for our `ClaimedInvite`. May be used by Relay 1. */ claimedInviteEdge?: ClaimedInviteEdge | null; } export type CreateClaimedInvitePayloadSelect = { @@ -3358,9 +3740,16 @@ export type CreateClaimedInvitePayloadSelect = { select: ClaimedInviteEdgeSelect; }; }; +/** The output of our update `ClaimedInvite` mutation. */ export interface UpdateClaimedInvitePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `ClaimedInvite` that was updated by this mutation. */ claimedInvite?: ClaimedInvite | null; + /** An edge for our `ClaimedInvite`. May be used by Relay 1. */ claimedInviteEdge?: ClaimedInviteEdge | null; } export type UpdateClaimedInvitePayloadSelect = { @@ -3372,9 +3761,16 @@ export type UpdateClaimedInvitePayloadSelect = { select: ClaimedInviteEdgeSelect; }; }; +/** The output of our delete `ClaimedInvite` mutation. */ export interface DeleteClaimedInvitePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `ClaimedInvite` that was deleted by this mutation. */ claimedInvite?: ClaimedInvite | null; + /** An edge for our `ClaimedInvite`. May be used by Relay 1. */ claimedInviteEdge?: ClaimedInviteEdge | null; } export type DeleteClaimedInvitePayloadSelect = { @@ -3386,9 +3782,16 @@ export type DeleteClaimedInvitePayloadSelect = { select: ClaimedInviteEdgeSelect; }; }; +/** The output of our create `AppGrant` mutation. */ export interface CreateAppGrantPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppGrant` that was created by this mutation. */ appGrant?: AppGrant | null; + /** An edge for our `AppGrant`. May be used by Relay 1. */ appGrantEdge?: AppGrantEdge | null; } export type CreateAppGrantPayloadSelect = { @@ -3400,9 +3803,16 @@ export type CreateAppGrantPayloadSelect = { select: AppGrantEdgeSelect; }; }; +/** The output of our update `AppGrant` mutation. */ export interface UpdateAppGrantPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppGrant` that was updated by this mutation. */ appGrant?: AppGrant | null; + /** An edge for our `AppGrant`. May be used by Relay 1. */ appGrantEdge?: AppGrantEdge | null; } export type UpdateAppGrantPayloadSelect = { @@ -3414,9 +3824,16 @@ export type UpdateAppGrantPayloadSelect = { select: AppGrantEdgeSelect; }; }; +/** The output of our delete `AppGrant` mutation. */ export interface DeleteAppGrantPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppGrant` that was deleted by this mutation. */ appGrant?: AppGrant | null; + /** An edge for our `AppGrant`. May be used by Relay 1. */ appGrantEdge?: AppGrantEdge | null; } export type DeleteAppGrantPayloadSelect = { @@ -3428,9 +3845,16 @@ export type DeleteAppGrantPayloadSelect = { select: AppGrantEdgeSelect; }; }; +/** The output of our create `AppMembershipDefault` mutation. */ export interface CreateAppMembershipDefaultPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppMembershipDefault` that was created by this mutation. */ appMembershipDefault?: AppMembershipDefault | null; + /** An edge for our `AppMembershipDefault`. May be used by Relay 1. */ appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; } export type CreateAppMembershipDefaultPayloadSelect = { @@ -3442,9 +3866,16 @@ export type CreateAppMembershipDefaultPayloadSelect = { select: AppMembershipDefaultEdgeSelect; }; }; +/** The output of our update `AppMembershipDefault` mutation. */ export interface UpdateAppMembershipDefaultPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppMembershipDefault` that was updated by this mutation. */ appMembershipDefault?: AppMembershipDefault | null; + /** An edge for our `AppMembershipDefault`. May be used by Relay 1. */ appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; } export type UpdateAppMembershipDefaultPayloadSelect = { @@ -3456,9 +3887,16 @@ export type UpdateAppMembershipDefaultPayloadSelect = { select: AppMembershipDefaultEdgeSelect; }; }; +/** The output of our delete `AppMembershipDefault` mutation. */ export interface DeleteAppMembershipDefaultPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppMembershipDefault` that was deleted by this mutation. */ appMembershipDefault?: AppMembershipDefault | null; + /** An edge for our `AppMembershipDefault`. May be used by Relay 1. */ appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; } export type DeleteAppMembershipDefaultPayloadSelect = { @@ -3470,9 +3908,16 @@ export type DeleteAppMembershipDefaultPayloadSelect = { select: AppMembershipDefaultEdgeSelect; }; }; +/** The output of our create `OrgLimit` mutation. */ export interface CreateOrgLimitPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgLimit` that was created by this mutation. */ orgLimit?: OrgLimit | null; + /** An edge for our `OrgLimit`. May be used by Relay 1. */ orgLimitEdge?: OrgLimitEdge | null; } export type CreateOrgLimitPayloadSelect = { @@ -3484,9 +3929,16 @@ export type CreateOrgLimitPayloadSelect = { select: OrgLimitEdgeSelect; }; }; +/** The output of our update `OrgLimit` mutation. */ export interface UpdateOrgLimitPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgLimit` that was updated by this mutation. */ orgLimit?: OrgLimit | null; + /** An edge for our `OrgLimit`. May be used by Relay 1. */ orgLimitEdge?: OrgLimitEdge | null; } export type UpdateOrgLimitPayloadSelect = { @@ -3498,9 +3950,16 @@ export type UpdateOrgLimitPayloadSelect = { select: OrgLimitEdgeSelect; }; }; +/** The output of our delete `OrgLimit` mutation. */ export interface DeleteOrgLimitPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgLimit` that was deleted by this mutation. */ orgLimit?: OrgLimit | null; + /** An edge for our `OrgLimit`. May be used by Relay 1. */ orgLimitEdge?: OrgLimitEdge | null; } export type DeleteOrgLimitPayloadSelect = { @@ -3512,9 +3971,16 @@ export type DeleteOrgLimitPayloadSelect = { select: OrgLimitEdgeSelect; }; }; +/** The output of our create `OrgClaimedInvite` mutation. */ export interface CreateOrgClaimedInvitePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgClaimedInvite` that was created by this mutation. */ orgClaimedInvite?: OrgClaimedInvite | null; + /** An edge for our `OrgClaimedInvite`. May be used by Relay 1. */ orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; } export type CreateOrgClaimedInvitePayloadSelect = { @@ -3526,9 +3992,16 @@ export type CreateOrgClaimedInvitePayloadSelect = { select: OrgClaimedInviteEdgeSelect; }; }; +/** The output of our update `OrgClaimedInvite` mutation. */ export interface UpdateOrgClaimedInvitePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgClaimedInvite` that was updated by this mutation. */ orgClaimedInvite?: OrgClaimedInvite | null; + /** An edge for our `OrgClaimedInvite`. May be used by Relay 1. */ orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; } export type UpdateOrgClaimedInvitePayloadSelect = { @@ -3540,9 +4013,16 @@ export type UpdateOrgClaimedInvitePayloadSelect = { select: OrgClaimedInviteEdgeSelect; }; }; +/** The output of our delete `OrgClaimedInvite` mutation. */ export interface DeleteOrgClaimedInvitePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgClaimedInvite` that was deleted by this mutation. */ orgClaimedInvite?: OrgClaimedInvite | null; + /** An edge for our `OrgClaimedInvite`. May be used by Relay 1. */ orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; } export type DeleteOrgClaimedInvitePayloadSelect = { @@ -3554,9 +4034,16 @@ export type DeleteOrgClaimedInvitePayloadSelect = { select: OrgClaimedInviteEdgeSelect; }; }; +/** The output of our create `OrgGrant` mutation. */ export interface CreateOrgGrantPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgGrant` that was created by this mutation. */ orgGrant?: OrgGrant | null; + /** An edge for our `OrgGrant`. May be used by Relay 1. */ orgGrantEdge?: OrgGrantEdge | null; } export type CreateOrgGrantPayloadSelect = { @@ -3568,9 +4055,16 @@ export type CreateOrgGrantPayloadSelect = { select: OrgGrantEdgeSelect; }; }; +/** The output of our update `OrgGrant` mutation. */ export interface UpdateOrgGrantPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgGrant` that was updated by this mutation. */ orgGrant?: OrgGrant | null; + /** An edge for our `OrgGrant`. May be used by Relay 1. */ orgGrantEdge?: OrgGrantEdge | null; } export type UpdateOrgGrantPayloadSelect = { @@ -3582,9 +4076,16 @@ export type UpdateOrgGrantPayloadSelect = { select: OrgGrantEdgeSelect; }; }; +/** The output of our delete `OrgGrant` mutation. */ export interface DeleteOrgGrantPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgGrant` that was deleted by this mutation. */ orgGrant?: OrgGrant | null; + /** An edge for our `OrgGrant`. May be used by Relay 1. */ orgGrantEdge?: OrgGrantEdge | null; } export type DeleteOrgGrantPayloadSelect = { @@ -3596,9 +4097,16 @@ export type DeleteOrgGrantPayloadSelect = { select: OrgGrantEdgeSelect; }; }; +/** The output of our create `OrgMembershipDefault` mutation. */ export interface CreateOrgMembershipDefaultPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgMembershipDefault` that was created by this mutation. */ orgMembershipDefault?: OrgMembershipDefault | null; + /** An edge for our `OrgMembershipDefault`. May be used by Relay 1. */ orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; } export type CreateOrgMembershipDefaultPayloadSelect = { @@ -3610,9 +4118,16 @@ export type CreateOrgMembershipDefaultPayloadSelect = { select: OrgMembershipDefaultEdgeSelect; }; }; +/** The output of our update `OrgMembershipDefault` mutation. */ export interface UpdateOrgMembershipDefaultPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgMembershipDefault` that was updated by this mutation. */ orgMembershipDefault?: OrgMembershipDefault | null; + /** An edge for our `OrgMembershipDefault`. May be used by Relay 1. */ orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; } export type UpdateOrgMembershipDefaultPayloadSelect = { @@ -3624,9 +4139,16 @@ export type UpdateOrgMembershipDefaultPayloadSelect = { select: OrgMembershipDefaultEdgeSelect; }; }; +/** The output of our delete `OrgMembershipDefault` mutation. */ export interface DeleteOrgMembershipDefaultPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgMembershipDefault` that was deleted by this mutation. */ orgMembershipDefault?: OrgMembershipDefault | null; + /** An edge for our `OrgMembershipDefault`. May be used by Relay 1. */ orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; } export type DeleteOrgMembershipDefaultPayloadSelect = { @@ -3638,9 +4160,16 @@ export type DeleteOrgMembershipDefaultPayloadSelect = { select: OrgMembershipDefaultEdgeSelect; }; }; +/** The output of our create `AppLevel` mutation. */ export interface CreateAppLevelPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppLevel` that was created by this mutation. */ appLevel?: AppLevel | null; + /** An edge for our `AppLevel`. May be used by Relay 1. */ appLevelEdge?: AppLevelEdge | null; } export type CreateAppLevelPayloadSelect = { @@ -3652,9 +4181,16 @@ export type CreateAppLevelPayloadSelect = { select: AppLevelEdgeSelect; }; }; +/** The output of our update `AppLevel` mutation. */ export interface UpdateAppLevelPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppLevel` that was updated by this mutation. */ appLevel?: AppLevel | null; + /** An edge for our `AppLevel`. May be used by Relay 1. */ appLevelEdge?: AppLevelEdge | null; } export type UpdateAppLevelPayloadSelect = { @@ -3666,9 +4202,16 @@ export type UpdateAppLevelPayloadSelect = { select: AppLevelEdgeSelect; }; }; +/** The output of our delete `AppLevel` mutation. */ export interface DeleteAppLevelPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppLevel` that was deleted by this mutation. */ appLevel?: AppLevel | null; + /** An edge for our `AppLevel`. May be used by Relay 1. */ appLevelEdge?: AppLevelEdge | null; } export type DeleteAppLevelPayloadSelect = { @@ -3680,9 +4223,16 @@ export type DeleteAppLevelPayloadSelect = { select: AppLevelEdgeSelect; }; }; +/** The output of our create `Invite` mutation. */ export interface CreateInvitePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Invite` that was created by this mutation. */ invite?: Invite | null; + /** An edge for our `Invite`. May be used by Relay 1. */ inviteEdge?: InviteEdge | null; } export type CreateInvitePayloadSelect = { @@ -3694,9 +4244,16 @@ export type CreateInvitePayloadSelect = { select: InviteEdgeSelect; }; }; +/** The output of our update `Invite` mutation. */ export interface UpdateInvitePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Invite` that was updated by this mutation. */ invite?: Invite | null; + /** An edge for our `Invite`. May be used by Relay 1. */ inviteEdge?: InviteEdge | null; } export type UpdateInvitePayloadSelect = { @@ -3708,9 +4265,16 @@ export type UpdateInvitePayloadSelect = { select: InviteEdgeSelect; }; }; +/** The output of our delete `Invite` mutation. */ export interface DeleteInvitePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Invite` that was deleted by this mutation. */ invite?: Invite | null; + /** An edge for our `Invite`. May be used by Relay 1. */ inviteEdge?: InviteEdge | null; } export type DeleteInvitePayloadSelect = { @@ -3722,9 +4286,16 @@ export type DeleteInvitePayloadSelect = { select: InviteEdgeSelect; }; }; +/** The output of our create `AppMembership` mutation. */ export interface CreateAppMembershipPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppMembership` that was created by this mutation. */ appMembership?: AppMembership | null; + /** An edge for our `AppMembership`. May be used by Relay 1. */ appMembershipEdge?: AppMembershipEdge | null; } export type CreateAppMembershipPayloadSelect = { @@ -3736,9 +4307,16 @@ export type CreateAppMembershipPayloadSelect = { select: AppMembershipEdgeSelect; }; }; +/** The output of our update `AppMembership` mutation. */ export interface UpdateAppMembershipPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppMembership` that was updated by this mutation. */ appMembership?: AppMembership | null; + /** An edge for our `AppMembership`. May be used by Relay 1. */ appMembershipEdge?: AppMembershipEdge | null; } export type UpdateAppMembershipPayloadSelect = { @@ -3750,9 +4328,16 @@ export type UpdateAppMembershipPayloadSelect = { select: AppMembershipEdgeSelect; }; }; +/** The output of our delete `AppMembership` mutation. */ export interface DeleteAppMembershipPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppMembership` that was deleted by this mutation. */ appMembership?: AppMembership | null; + /** An edge for our `AppMembership`. May be used by Relay 1. */ appMembershipEdge?: AppMembershipEdge | null; } export type DeleteAppMembershipPayloadSelect = { @@ -3764,9 +4349,16 @@ export type DeleteAppMembershipPayloadSelect = { select: AppMembershipEdgeSelect; }; }; +/** The output of our create `OrgMembership` mutation. */ export interface CreateOrgMembershipPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgMembership` that was created by this mutation. */ orgMembership?: OrgMembership | null; + /** An edge for our `OrgMembership`. May be used by Relay 1. */ orgMembershipEdge?: OrgMembershipEdge | null; } export type CreateOrgMembershipPayloadSelect = { @@ -3778,9 +4370,16 @@ export type CreateOrgMembershipPayloadSelect = { select: OrgMembershipEdgeSelect; }; }; +/** The output of our update `OrgMembership` mutation. */ export interface UpdateOrgMembershipPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgMembership` that was updated by this mutation. */ orgMembership?: OrgMembership | null; + /** An edge for our `OrgMembership`. May be used by Relay 1. */ orgMembershipEdge?: OrgMembershipEdge | null; } export type UpdateOrgMembershipPayloadSelect = { @@ -3792,9 +4391,16 @@ export type UpdateOrgMembershipPayloadSelect = { select: OrgMembershipEdgeSelect; }; }; +/** The output of our delete `OrgMembership` mutation. */ export interface DeleteOrgMembershipPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgMembership` that was deleted by this mutation. */ orgMembership?: OrgMembership | null; + /** An edge for our `OrgMembership`. May be used by Relay 1. */ orgMembershipEdge?: OrgMembershipEdge | null; } export type DeleteOrgMembershipPayloadSelect = { @@ -3806,9 +4412,16 @@ export type DeleteOrgMembershipPayloadSelect = { select: OrgMembershipEdgeSelect; }; }; +/** The output of our create `OrgInvite` mutation. */ export interface CreateOrgInvitePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgInvite` that was created by this mutation. */ orgInvite?: OrgInvite | null; + /** An edge for our `OrgInvite`. May be used by Relay 1. */ orgInviteEdge?: OrgInviteEdge | null; } export type CreateOrgInvitePayloadSelect = { @@ -3820,9 +4433,16 @@ export type CreateOrgInvitePayloadSelect = { select: OrgInviteEdgeSelect; }; }; +/** The output of our update `OrgInvite` mutation. */ export interface UpdateOrgInvitePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgInvite` that was updated by this mutation. */ orgInvite?: OrgInvite | null; + /** An edge for our `OrgInvite`. May be used by Relay 1. */ orgInviteEdge?: OrgInviteEdge | null; } export type UpdateOrgInvitePayloadSelect = { @@ -3834,9 +4454,16 @@ export type UpdateOrgInvitePayloadSelect = { select: OrgInviteEdgeSelect; }; }; +/** The output of our delete `OrgInvite` mutation. */ export interface DeleteOrgInvitePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgInvite` that was deleted by this mutation. */ orgInvite?: OrgInvite | null; + /** An edge for our `OrgInvite`. May be used by Relay 1. */ orgInviteEdge?: OrgInviteEdge | null; } export type DeleteOrgInvitePayloadSelect = { @@ -3848,8 +4475,11 @@ export type DeleteOrgInvitePayloadSelect = { select: OrgInviteEdgeSelect; }; }; +/** A `AppPermission` edge in the connection. */ export interface AppPermissionEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `AppPermission` at the end of the edge. */ node?: AppPermission | null; } export type AppPermissionEdgeSelect = { @@ -3858,10 +4488,15 @@ export type AppPermissionEdgeSelect = { select: AppPermissionSelect; }; }; +/** Information about pagination in a connection. */ export interface PageInfo { + /** When paginating forwards, are there more items? */ hasNextPage: boolean; + /** When paginating backwards, are there more items? */ hasPreviousPage: boolean; + /** When paginating backwards, the cursor to continue. */ startCursor?: string | null; + /** When paginating forwards, the cursor to continue. */ endCursor?: string | null; } export type PageInfoSelect = { @@ -3870,8 +4505,11 @@ export type PageInfoSelect = { startCursor?: boolean; endCursor?: boolean; }; +/** A `OrgPermission` edge in the connection. */ export interface OrgPermissionEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `OrgPermission` at the end of the edge. */ node?: OrgPermission | null; } export type OrgPermissionEdgeSelect = { @@ -3880,8 +4518,11 @@ export type OrgPermissionEdgeSelect = { select: OrgPermissionSelect; }; }; +/** A `AppLevelRequirement` edge in the connection. */ export interface AppLevelRequirementEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `AppLevelRequirement` at the end of the edge. */ node?: AppLevelRequirement | null; } export type AppLevelRequirementEdgeSelect = { @@ -3890,8 +4531,11 @@ export type AppLevelRequirementEdgeSelect = { select: AppLevelRequirementSelect; }; }; +/** A `OrgMember` edge in the connection. */ export interface OrgMemberEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `OrgMember` at the end of the edge. */ node?: OrgMember | null; } export type OrgMemberEdgeSelect = { @@ -3900,8 +4544,11 @@ export type OrgMemberEdgeSelect = { select: OrgMemberSelect; }; }; +/** A `AppPermissionDefault` edge in the connection. */ export interface AppPermissionDefaultEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `AppPermissionDefault` at the end of the edge. */ node?: AppPermissionDefault | null; } export type AppPermissionDefaultEdgeSelect = { @@ -3910,8 +4557,11 @@ export type AppPermissionDefaultEdgeSelect = { select: AppPermissionDefaultSelect; }; }; +/** A `OrgPermissionDefault` edge in the connection. */ export interface OrgPermissionDefaultEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `OrgPermissionDefault` at the end of the edge. */ node?: OrgPermissionDefault | null; } export type OrgPermissionDefaultEdgeSelect = { @@ -3920,8 +4570,11 @@ export type OrgPermissionDefaultEdgeSelect = { select: OrgPermissionDefaultSelect; }; }; +/** A `AppAdminGrant` edge in the connection. */ export interface AppAdminGrantEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `AppAdminGrant` at the end of the edge. */ node?: AppAdminGrant | null; } export type AppAdminGrantEdgeSelect = { @@ -3930,8 +4583,11 @@ export type AppAdminGrantEdgeSelect = { select: AppAdminGrantSelect; }; }; +/** A `AppOwnerGrant` edge in the connection. */ export interface AppOwnerGrantEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `AppOwnerGrant` at the end of the edge. */ node?: AppOwnerGrant | null; } export type AppOwnerGrantEdgeSelect = { @@ -3940,8 +4596,11 @@ export type AppOwnerGrantEdgeSelect = { select: AppOwnerGrantSelect; }; }; +/** A `AppLimitDefault` edge in the connection. */ export interface AppLimitDefaultEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `AppLimitDefault` at the end of the edge. */ node?: AppLimitDefault | null; } export type AppLimitDefaultEdgeSelect = { @@ -3950,8 +4609,11 @@ export type AppLimitDefaultEdgeSelect = { select: AppLimitDefaultSelect; }; }; +/** A `OrgLimitDefault` edge in the connection. */ export interface OrgLimitDefaultEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `OrgLimitDefault` at the end of the edge. */ node?: OrgLimitDefault | null; } export type OrgLimitDefaultEdgeSelect = { @@ -3960,8 +4622,11 @@ export type OrgLimitDefaultEdgeSelect = { select: OrgLimitDefaultSelect; }; }; +/** A `OrgAdminGrant` edge in the connection. */ export interface OrgAdminGrantEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `OrgAdminGrant` at the end of the edge. */ node?: OrgAdminGrant | null; } export type OrgAdminGrantEdgeSelect = { @@ -3970,8 +4635,11 @@ export type OrgAdminGrantEdgeSelect = { select: OrgAdminGrantSelect; }; }; +/** A `OrgOwnerGrant` edge in the connection. */ export interface OrgOwnerGrantEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `OrgOwnerGrant` at the end of the edge. */ node?: OrgOwnerGrant | null; } export type OrgOwnerGrantEdgeSelect = { @@ -3980,8 +4648,11 @@ export type OrgOwnerGrantEdgeSelect = { select: OrgOwnerGrantSelect; }; }; +/** A `MembershipType` edge in the connection. */ export interface MembershipTypeEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `MembershipType` at the end of the edge. */ node?: MembershipType | null; } export type MembershipTypeEdgeSelect = { @@ -3990,8 +4661,11 @@ export type MembershipTypeEdgeSelect = { select: MembershipTypeSelect; }; }; +/** A `AppLimit` edge in the connection. */ export interface AppLimitEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `AppLimit` at the end of the edge. */ node?: AppLimit | null; } export type AppLimitEdgeSelect = { @@ -4000,8 +4674,11 @@ export type AppLimitEdgeSelect = { select: AppLimitSelect; }; }; +/** A `AppAchievement` edge in the connection. */ export interface AppAchievementEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `AppAchievement` at the end of the edge. */ node?: AppAchievement | null; } export type AppAchievementEdgeSelect = { @@ -4010,8 +4687,11 @@ export type AppAchievementEdgeSelect = { select: AppAchievementSelect; }; }; +/** A `AppStep` edge in the connection. */ export interface AppStepEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `AppStep` at the end of the edge. */ node?: AppStep | null; } export type AppStepEdgeSelect = { @@ -4020,8 +4700,11 @@ export type AppStepEdgeSelect = { select: AppStepSelect; }; }; +/** A `ClaimedInvite` edge in the connection. */ export interface ClaimedInviteEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `ClaimedInvite` at the end of the edge. */ node?: ClaimedInvite | null; } export type ClaimedInviteEdgeSelect = { @@ -4030,8 +4713,11 @@ export type ClaimedInviteEdgeSelect = { select: ClaimedInviteSelect; }; }; +/** A `AppGrant` edge in the connection. */ export interface AppGrantEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `AppGrant` at the end of the edge. */ node?: AppGrant | null; } export type AppGrantEdgeSelect = { @@ -4040,8 +4726,11 @@ export type AppGrantEdgeSelect = { select: AppGrantSelect; }; }; +/** A `AppMembershipDefault` edge in the connection. */ export interface AppMembershipDefaultEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `AppMembershipDefault` at the end of the edge. */ node?: AppMembershipDefault | null; } export type AppMembershipDefaultEdgeSelect = { @@ -4050,8 +4739,11 @@ export type AppMembershipDefaultEdgeSelect = { select: AppMembershipDefaultSelect; }; }; +/** A `OrgLimit` edge in the connection. */ export interface OrgLimitEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `OrgLimit` at the end of the edge. */ node?: OrgLimit | null; } export type OrgLimitEdgeSelect = { @@ -4060,8 +4752,11 @@ export type OrgLimitEdgeSelect = { select: OrgLimitSelect; }; }; +/** A `OrgClaimedInvite` edge in the connection. */ export interface OrgClaimedInviteEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `OrgClaimedInvite` at the end of the edge. */ node?: OrgClaimedInvite | null; } export type OrgClaimedInviteEdgeSelect = { @@ -4070,8 +4765,11 @@ export type OrgClaimedInviteEdgeSelect = { select: OrgClaimedInviteSelect; }; }; +/** A `OrgGrant` edge in the connection. */ export interface OrgGrantEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `OrgGrant` at the end of the edge. */ node?: OrgGrant | null; } export type OrgGrantEdgeSelect = { @@ -4080,8 +4778,11 @@ export type OrgGrantEdgeSelect = { select: OrgGrantSelect; }; }; +/** A `OrgMembershipDefault` edge in the connection. */ export interface OrgMembershipDefaultEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `OrgMembershipDefault` at the end of the edge. */ node?: OrgMembershipDefault | null; } export type OrgMembershipDefaultEdgeSelect = { @@ -4090,8 +4791,11 @@ export type OrgMembershipDefaultEdgeSelect = { select: OrgMembershipDefaultSelect; }; }; +/** A `AppLevel` edge in the connection. */ export interface AppLevelEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `AppLevel` at the end of the edge. */ node?: AppLevel | null; } export type AppLevelEdgeSelect = { @@ -4100,8 +4804,11 @@ export type AppLevelEdgeSelect = { select: AppLevelSelect; }; }; +/** A `Invite` edge in the connection. */ export interface InviteEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `Invite` at the end of the edge. */ node?: Invite | null; } export type InviteEdgeSelect = { @@ -4110,8 +4817,11 @@ export type InviteEdgeSelect = { select: InviteSelect; }; }; +/** A `AppMembership` edge in the connection. */ export interface AppMembershipEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `AppMembership` at the end of the edge. */ node?: AppMembership | null; } export type AppMembershipEdgeSelect = { @@ -4120,8 +4830,11 @@ export type AppMembershipEdgeSelect = { select: AppMembershipSelect; }; }; +/** A `OrgMembership` edge in the connection. */ export interface OrgMembershipEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `OrgMembership` at the end of the edge. */ node?: OrgMembership | null; } export type OrgMembershipEdgeSelect = { @@ -4130,8 +4843,11 @@ export type OrgMembershipEdgeSelect = { select: OrgMembershipSelect; }; }; +/** A `OrgInvite` edge in the connection. */ export interface OrgInviteEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `OrgInvite` at the end of the edge. */ node?: OrgInvite | null; } export type OrgInviteEdgeSelect = { diff --git a/sdk/constructive-sdk/src/admin/orm/mutation/index.ts b/sdk/constructive-sdk/src/admin/orm/mutation/index.ts index 7c2c241a1..2f31d43c1 100644 --- a/sdk/constructive-sdk/src/admin/orm/mutation/index.ts +++ b/sdk/constructive-sdk/src/admin/orm/mutation/index.ts @@ -16,9 +16,11 @@ import type { } from '../input-types'; import { connectionFieldsMap } from '../input-types'; export interface SubmitInviteCodeVariables { + /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: SubmitInviteCodeInput; } export interface SubmitOrgInviteCodeVariables { + /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: SubmitOrgInviteCodeInput; } export function createMutationOperations(client: OrmClient) { diff --git a/sdk/constructive-sdk/src/admin/orm/query/index.ts b/sdk/constructive-sdk/src/admin/orm/query/index.ts index 9f38b3ff6..a4ae15e71 100644 --- a/sdk/constructive-sdk/src/admin/orm/query/index.ts +++ b/sdk/constructive-sdk/src/admin/orm/query/index.ts @@ -34,23 +34,53 @@ export interface AppPermissionsGetMaskByNamesVariables { export interface OrgPermissionsGetMaskByNamesVariables { names?: string[]; } +/** + * Variables for appPermissionsGetByMask + * Reads and enables pagination through a set of `AppPermission`. + */ export interface AppPermissionsGetByMaskVariables { mask?: string; + /** Only read the first `n` values of the set. */ first?: number; + /** + * Skip the first `n` values from our `after` cursor, an alternative to cursor + * based pagination. May not be used with `last`. + */ offset?: number; + /** Read all values in the set after (below) this cursor. */ after?: string; } +/** + * Variables for orgPermissionsGetByMask + * Reads and enables pagination through a set of `OrgPermission`. + */ export interface OrgPermissionsGetByMaskVariables { mask?: string; + /** Only read the first `n` values of the set. */ first?: number; + /** + * Skip the first `n` values from our `after` cursor, an alternative to cursor + * based pagination. May not be used with `last`. + */ offset?: number; + /** Read all values in the set after (below) this cursor. */ after?: string; } +/** + * Variables for stepsRequired + * Reads and enables pagination through a set of `AppLevelRequirement`. + */ export interface StepsRequiredVariables { vlevel?: string; vroleId?: string; + /** Only read the first `n` values of the set. */ first?: number; + /** + * Skip the first `n` values from our `after` cursor, an alternative to cursor + * based pagination. May not be used with `last`. + */ offset?: number; + /** Read all values in the set after (below) this cursor. */ after?: string; } export function createQueryOperations(client: OrmClient) { diff --git a/sdk/constructive-sdk/src/auth/orm/input-types.ts b/sdk/constructive-sdk/src/auth/orm/input-types.ts index 1e04b53c2..572684f29 100644 --- a/sdk/constructive-sdk/src/auth/orm/input-types.ts +++ b/sdk/constructive-sdk/src/auth/orm/input-types.ts @@ -254,8 +254,11 @@ export interface PhoneNumber { export interface ConnectedAccount { id: string; ownerId?: string | null; + /** The service used, e.g. `twitter` or `github`. */ service?: string | null; + /** A unique identifier for the user within the service */ identifier?: string | null; + /** Additional profile details extracted from this login method */ details?: Record | null; isVerified?: boolean | null; createdAt?: string | null; @@ -289,6 +292,7 @@ export interface User { 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; } // ============ Relation Helper Types ============ @@ -865,44 +869,89 @@ export interface DeleteUserInput { } // ============ Connection Fields Map ============ export const connectionFieldsMap = {} as Record>; +/** All input for the `signOut` mutation. */ // ============ Custom Input Types (from schema) ============ export interface SignOutInput { + /** + * An arbitrary string value with no semantic meaning. Will be included in the + * payload verbatim. May be used to track mutations by the client. + */ clientMutationId?: string; } +/** All input for the `sendAccountDeletionEmail` mutation. */ export interface SendAccountDeletionEmailInput { + /** + * An arbitrary string value with no semantic meaning. Will be included in the + * payload verbatim. May be used to track mutations by the client. + */ clientMutationId?: string; } +/** All input for the `checkPassword` mutation. */ export interface CheckPasswordInput { + /** + * An arbitrary string value with no semantic meaning. Will be included in the + * payload verbatim. May be used to track mutations by the client. + */ clientMutationId?: string; password?: string; } +/** All input for the `confirmDeleteAccount` mutation. */ export interface ConfirmDeleteAccountInput { + /** + * An arbitrary string value with no semantic meaning. Will be included in the + * payload verbatim. May be used to track mutations by the client. + */ clientMutationId?: string; userId?: string; token?: string; } +/** All input for the `setPassword` mutation. */ export interface SetPasswordInput { + /** + * An arbitrary string value with no semantic meaning. Will be included in the + * payload verbatim. May be used to track mutations by the client. + */ clientMutationId?: string; currentPassword?: string; newPassword?: string; } +/** All input for the `verifyEmail` mutation. */ export interface VerifyEmailInput { + /** + * An arbitrary string value with no semantic meaning. Will be included in the + * payload verbatim. May be used to track mutations by the client. + */ clientMutationId?: string; emailId?: string; token?: string; } +/** All input for the `resetPassword` mutation. */ export interface ResetPasswordInput { + /** + * An arbitrary string value with no semantic meaning. Will be included in the + * payload verbatim. May be used to track mutations by the client. + */ clientMutationId?: string; roleId?: string; resetToken?: string; newPassword?: string; } +/** All input for the `signInOneTimeToken` mutation. */ export interface SignInOneTimeTokenInput { + /** + * An arbitrary string value with no semantic meaning. Will be included in the + * payload verbatim. May be used to track mutations by the client. + */ clientMutationId?: string; token?: string; credentialKind?: string; } +/** All input for the `signIn` mutation. */ export interface SignInInput { + /** + * An arbitrary string value with no semantic meaning. Will be included in the + * payload verbatim. May be used to track mutations by the client. + */ clientMutationId?: string; email?: string; password?: string; @@ -910,7 +959,12 @@ export interface SignInInput { credentialKind?: string; csrfToken?: string; } +/** All input for the `signUp` mutation. */ export interface SignUpInput { + /** + * An arbitrary string value with no semantic meaning. Will be included in the + * payload verbatim. May be used to track mutations by the client. + */ clientMutationId?: string; email?: string; password?: string; @@ -918,49 +972,100 @@ export interface SignUpInput { credentialKind?: string; csrfToken?: string; } +/** All input for the `oneTimeToken` mutation. */ export interface OneTimeTokenInput { + /** + * An arbitrary string value with no semantic meaning. Will be included in the + * payload verbatim. May be used to track mutations by the client. + */ clientMutationId?: string; email?: string; password?: string; origin?: ConstructiveInternalTypeOrigin; rememberMe?: boolean; } +/** All input for the `extendTokenExpires` mutation. */ export interface ExtendTokenExpiresInput { + /** + * An arbitrary string value with no semantic meaning. Will be included in the + * payload verbatim. May be used to track mutations by the client. + */ clientMutationId?: string; amount?: IntervalInput; } +/** All input for the `forgotPassword` mutation. */ export interface ForgotPasswordInput { + /** + * An arbitrary string value with no semantic meaning. Will be included in the + * payload verbatim. May be used to track mutations by the client. + */ clientMutationId?: string; email?: ConstructiveInternalTypeEmail; } +/** All input for the `sendVerificationEmail` mutation. */ export interface SendVerificationEmailInput { + /** + * An arbitrary string value with no semantic meaning. Will be included in the + * payload verbatim. May be used to track mutations by the client. + */ clientMutationId?: string; email?: ConstructiveInternalTypeEmail; } +/** All input for the `verifyPassword` mutation. */ export interface VerifyPasswordInput { + /** + * An arbitrary string value with no semantic meaning. Will be included in the + * payload verbatim. May be used to track mutations by the client. + */ clientMutationId?: string; password: string; } +/** All input for the `verifyTotp` mutation. */ export interface VerifyTotpInput { + /** + * An arbitrary string value with no semantic meaning. Will be included in the + * payload verbatim. May be used to track mutations by the client. + */ clientMutationId?: string; totpValue: string; } +/** An interval of time that has passed where the smallest distinct unit is a second. */ export interface IntervalInput { + /** + * A quantity of seconds. This is the only non-integer field, as all the other + * fields will dump their overflow into a smaller unit of time. Intervals don’t + * have a smaller unit than seconds. + */ seconds?: number; + /** A quantity of minutes. */ minutes?: number; + /** A quantity of hours. */ hours?: number; + /** A quantity of days. */ days?: number; + /** A quantity of months. */ months?: number; + /** A quantity of years. */ years?: number; } +/** The output of our `signOut` mutation. */ // ============ Payload/Return Types (for custom operations) ============ export interface SignOutPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; } export type SignOutPayloadSelect = { clientMutationId?: boolean; }; +/** The output of our `sendAccountDeletionEmail` mutation. */ export interface SendAccountDeletionEmailPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; result?: boolean | null; } @@ -968,13 +1073,23 @@ export type SendAccountDeletionEmailPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +/** The output of our `checkPassword` mutation. */ export interface CheckPasswordPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; } export type CheckPasswordPayloadSelect = { clientMutationId?: boolean; }; +/** The output of our `confirmDeleteAccount` mutation. */ export interface ConfirmDeleteAccountPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; result?: boolean | null; } @@ -982,7 +1097,12 @@ export type ConfirmDeleteAccountPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +/** The output of our `setPassword` mutation. */ export interface SetPasswordPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; result?: boolean | null; } @@ -990,7 +1110,12 @@ export type SetPasswordPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +/** The output of our `verifyEmail` mutation. */ export interface VerifyEmailPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; result?: boolean | null; } @@ -998,7 +1123,12 @@ export type VerifyEmailPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +/** The output of our `resetPassword` mutation. */ export interface ResetPasswordPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; result?: boolean | null; } @@ -1006,7 +1136,12 @@ export type ResetPasswordPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +/** The output of our `signInOneTimeToken` mutation. */ export interface SignInOneTimeTokenPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; result?: SignInOneTimeTokenRecord | null; } @@ -1016,7 +1151,12 @@ export type SignInOneTimeTokenPayloadSelect = { select: SignInOneTimeTokenRecordSelect; }; }; +/** The output of our `signIn` mutation. */ export interface SignInPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; result?: SignInRecord | null; } @@ -1026,7 +1166,12 @@ export type SignInPayloadSelect = { select: SignInRecordSelect; }; }; +/** The output of our `signUp` mutation. */ export interface SignUpPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; result?: SignUpRecord | null; } @@ -1036,7 +1181,12 @@ export type SignUpPayloadSelect = { select: SignUpRecordSelect; }; }; +/** The output of our `oneTimeToken` mutation. */ export interface OneTimeTokenPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; result?: string | null; } @@ -1044,7 +1194,12 @@ export type OneTimeTokenPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +/** The output of our `extendTokenExpires` mutation. */ export interface ExtendTokenExpiresPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; result?: ExtendTokenExpiresRecord[] | null; } @@ -1054,13 +1209,23 @@ export type ExtendTokenExpiresPayloadSelect = { select: ExtendTokenExpiresRecordSelect; }; }; +/** The output of our `forgotPassword` mutation. */ export interface ForgotPasswordPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; } export type ForgotPasswordPayloadSelect = { clientMutationId?: boolean; }; +/** The output of our `sendVerificationEmail` mutation. */ export interface SendVerificationEmailPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; result?: boolean | null; } @@ -1068,7 +1233,12 @@ export type SendVerificationEmailPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +/** The output of our `verifyPassword` mutation. */ export interface VerifyPasswordPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; result?: Session | null; } @@ -1078,7 +1248,12 @@ export type VerifyPasswordPayloadSelect = { select: SessionSelect; }; }; +/** The output of our `verifyTotp` mutation. */ export interface VerifyTotpPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; result?: Session | null; } @@ -1088,9 +1263,16 @@ export type VerifyTotpPayloadSelect = { select: SessionSelect; }; }; +/** The output of our create `RoleType` mutation. */ export interface CreateRoleTypePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `RoleType` that was created by this mutation. */ roleType?: RoleType | null; + /** An edge for our `RoleType`. May be used by Relay 1. */ roleTypeEdge?: RoleTypeEdge | null; } export type CreateRoleTypePayloadSelect = { @@ -1102,9 +1284,16 @@ export type CreateRoleTypePayloadSelect = { select: RoleTypeEdgeSelect; }; }; +/** The output of our update `RoleType` mutation. */ export interface UpdateRoleTypePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `RoleType` that was updated by this mutation. */ roleType?: RoleType | null; + /** An edge for our `RoleType`. May be used by Relay 1. */ roleTypeEdge?: RoleTypeEdge | null; } export type UpdateRoleTypePayloadSelect = { @@ -1116,9 +1305,16 @@ export type UpdateRoleTypePayloadSelect = { select: RoleTypeEdgeSelect; }; }; +/** The output of our delete `RoleType` mutation. */ export interface DeleteRoleTypePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `RoleType` that was deleted by this mutation. */ roleType?: RoleType | null; + /** An edge for our `RoleType`. May be used by Relay 1. */ roleTypeEdge?: RoleTypeEdge | null; } export type DeleteRoleTypePayloadSelect = { @@ -1130,9 +1326,16 @@ export type DeleteRoleTypePayloadSelect = { select: RoleTypeEdgeSelect; }; }; +/** The output of our create `CryptoAddress` mutation. */ export interface CreateCryptoAddressPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `CryptoAddress` that was created by this mutation. */ cryptoAddress?: CryptoAddress | null; + /** An edge for our `CryptoAddress`. May be used by Relay 1. */ cryptoAddressEdge?: CryptoAddressEdge | null; } export type CreateCryptoAddressPayloadSelect = { @@ -1144,9 +1347,16 @@ export type CreateCryptoAddressPayloadSelect = { select: CryptoAddressEdgeSelect; }; }; +/** The output of our update `CryptoAddress` mutation. */ export interface UpdateCryptoAddressPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `CryptoAddress` that was updated by this mutation. */ cryptoAddress?: CryptoAddress | null; + /** An edge for our `CryptoAddress`. May be used by Relay 1. */ cryptoAddressEdge?: CryptoAddressEdge | null; } export type UpdateCryptoAddressPayloadSelect = { @@ -1158,9 +1368,16 @@ export type UpdateCryptoAddressPayloadSelect = { select: CryptoAddressEdgeSelect; }; }; +/** The output of our delete `CryptoAddress` mutation. */ export interface DeleteCryptoAddressPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `CryptoAddress` that was deleted by this mutation. */ cryptoAddress?: CryptoAddress | null; + /** An edge for our `CryptoAddress`. May be used by Relay 1. */ cryptoAddressEdge?: CryptoAddressEdge | null; } export type DeleteCryptoAddressPayloadSelect = { @@ -1172,9 +1389,16 @@ export type DeleteCryptoAddressPayloadSelect = { select: CryptoAddressEdgeSelect; }; }; +/** The output of our create `PhoneNumber` mutation. */ export interface CreatePhoneNumberPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `PhoneNumber` that was created by this mutation. */ phoneNumber?: PhoneNumber | null; + /** An edge for our `PhoneNumber`. May be used by Relay 1. */ phoneNumberEdge?: PhoneNumberEdge | null; } export type CreatePhoneNumberPayloadSelect = { @@ -1186,9 +1410,16 @@ export type CreatePhoneNumberPayloadSelect = { select: PhoneNumberEdgeSelect; }; }; +/** The output of our update `PhoneNumber` mutation. */ export interface UpdatePhoneNumberPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `PhoneNumber` that was updated by this mutation. */ phoneNumber?: PhoneNumber | null; + /** An edge for our `PhoneNumber`. May be used by Relay 1. */ phoneNumberEdge?: PhoneNumberEdge | null; } export type UpdatePhoneNumberPayloadSelect = { @@ -1200,9 +1431,16 @@ export type UpdatePhoneNumberPayloadSelect = { select: PhoneNumberEdgeSelect; }; }; +/** The output of our delete `PhoneNumber` mutation. */ export interface DeletePhoneNumberPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `PhoneNumber` that was deleted by this mutation. */ phoneNumber?: PhoneNumber | null; + /** An edge for our `PhoneNumber`. May be used by Relay 1. */ phoneNumberEdge?: PhoneNumberEdge | null; } export type DeletePhoneNumberPayloadSelect = { @@ -1214,9 +1452,16 @@ export type DeletePhoneNumberPayloadSelect = { select: PhoneNumberEdgeSelect; }; }; +/** The output of our create `ConnectedAccount` mutation. */ export interface CreateConnectedAccountPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `ConnectedAccount` that was created by this mutation. */ connectedAccount?: ConnectedAccount | null; + /** An edge for our `ConnectedAccount`. May be used by Relay 1. */ connectedAccountEdge?: ConnectedAccountEdge | null; } export type CreateConnectedAccountPayloadSelect = { @@ -1228,9 +1473,16 @@ export type CreateConnectedAccountPayloadSelect = { select: ConnectedAccountEdgeSelect; }; }; +/** The output of our update `ConnectedAccount` mutation. */ export interface UpdateConnectedAccountPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `ConnectedAccount` that was updated by this mutation. */ connectedAccount?: ConnectedAccount | null; + /** An edge for our `ConnectedAccount`. May be used by Relay 1. */ connectedAccountEdge?: ConnectedAccountEdge | null; } export type UpdateConnectedAccountPayloadSelect = { @@ -1242,9 +1494,16 @@ export type UpdateConnectedAccountPayloadSelect = { select: ConnectedAccountEdgeSelect; }; }; +/** The output of our delete `ConnectedAccount` mutation. */ export interface DeleteConnectedAccountPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `ConnectedAccount` that was deleted by this mutation. */ connectedAccount?: ConnectedAccount | null; + /** An edge for our `ConnectedAccount`. May be used by Relay 1. */ connectedAccountEdge?: ConnectedAccountEdge | null; } export type DeleteConnectedAccountPayloadSelect = { @@ -1256,9 +1515,16 @@ export type DeleteConnectedAccountPayloadSelect = { select: ConnectedAccountEdgeSelect; }; }; +/** The output of our create `Email` mutation. */ export interface CreateEmailPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Email` that was created by this mutation. */ email?: Email | null; + /** An edge for our `Email`. May be used by Relay 1. */ emailEdge?: EmailEdge | null; } export type CreateEmailPayloadSelect = { @@ -1270,9 +1536,16 @@ export type CreateEmailPayloadSelect = { select: EmailEdgeSelect; }; }; +/** The output of our update `Email` mutation. */ export interface UpdateEmailPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Email` that was updated by this mutation. */ email?: Email | null; + /** An edge for our `Email`. May be used by Relay 1. */ emailEdge?: EmailEdge | null; } export type UpdateEmailPayloadSelect = { @@ -1284,9 +1557,16 @@ export type UpdateEmailPayloadSelect = { select: EmailEdgeSelect; }; }; +/** The output of our delete `Email` mutation. */ export interface DeleteEmailPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Email` that was deleted by this mutation. */ email?: Email | null; + /** An edge for our `Email`. May be used by Relay 1. */ emailEdge?: EmailEdge | null; } export type DeleteEmailPayloadSelect = { @@ -1298,9 +1578,16 @@ export type DeleteEmailPayloadSelect = { select: EmailEdgeSelect; }; }; +/** The output of our create `AuditLog` mutation. */ export interface CreateAuditLogPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AuditLog` that was created by this mutation. */ auditLog?: AuditLog | null; + /** An edge for our `AuditLog`. May be used by Relay 1. */ auditLogEdge?: AuditLogEdge | null; } export type CreateAuditLogPayloadSelect = { @@ -1312,9 +1599,16 @@ export type CreateAuditLogPayloadSelect = { select: AuditLogEdgeSelect; }; }; +/** The output of our update `AuditLog` mutation. */ export interface UpdateAuditLogPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AuditLog` that was updated by this mutation. */ auditLog?: AuditLog | null; + /** An edge for our `AuditLog`. May be used by Relay 1. */ auditLogEdge?: AuditLogEdge | null; } export type UpdateAuditLogPayloadSelect = { @@ -1326,9 +1620,16 @@ export type UpdateAuditLogPayloadSelect = { select: AuditLogEdgeSelect; }; }; +/** The output of our delete `AuditLog` mutation. */ export interface DeleteAuditLogPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AuditLog` that was deleted by this mutation. */ auditLog?: AuditLog | null; + /** An edge for our `AuditLog`. May be used by Relay 1. */ auditLogEdge?: AuditLogEdge | null; } export type DeleteAuditLogPayloadSelect = { @@ -1340,9 +1641,16 @@ export type DeleteAuditLogPayloadSelect = { select: AuditLogEdgeSelect; }; }; +/** The output of our create `User` mutation. */ export interface CreateUserPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `User` that was created by this mutation. */ user?: User | null; + /** An edge for our `User`. May be used by Relay 1. */ userEdge?: UserEdge | null; } export type CreateUserPayloadSelect = { @@ -1354,9 +1662,16 @@ export type CreateUserPayloadSelect = { select: UserEdgeSelect; }; }; +/** The output of our update `User` mutation. */ export interface UpdateUserPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `User` that was updated by this mutation. */ user?: User | null; + /** An edge for our `User`. May be used by Relay 1. */ userEdge?: UserEdge | null; } export type UpdateUserPayloadSelect = { @@ -1368,9 +1683,16 @@ export type UpdateUserPayloadSelect = { select: UserEdgeSelect; }; }; +/** The output of our delete `User` mutation. */ export interface DeleteUserPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `User` that was deleted by this mutation. */ user?: User | null; + /** An edge for our `User`. May be used by Relay 1. */ userEdge?: UserEdge | null; } export type DeleteUserPayloadSelect = { @@ -1472,8 +1794,11 @@ export type SessionSelect = { createdAt?: boolean; updatedAt?: boolean; }; +/** A `RoleType` edge in the connection. */ export interface RoleTypeEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `RoleType` at the end of the edge. */ node?: RoleType | null; } export type RoleTypeEdgeSelect = { @@ -1482,8 +1807,11 @@ export type RoleTypeEdgeSelect = { select: RoleTypeSelect; }; }; +/** A `CryptoAddress` edge in the connection. */ export interface CryptoAddressEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `CryptoAddress` at the end of the edge. */ node?: CryptoAddress | null; } export type CryptoAddressEdgeSelect = { @@ -1492,8 +1820,11 @@ export type CryptoAddressEdgeSelect = { select: CryptoAddressSelect; }; }; +/** A `PhoneNumber` edge in the connection. */ export interface PhoneNumberEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `PhoneNumber` at the end of the edge. */ node?: PhoneNumber | null; } export type PhoneNumberEdgeSelect = { @@ -1502,8 +1833,11 @@ export type PhoneNumberEdgeSelect = { select: PhoneNumberSelect; }; }; +/** A `ConnectedAccount` edge in the connection. */ export interface ConnectedAccountEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `ConnectedAccount` at the end of the edge. */ node?: ConnectedAccount | null; } export type ConnectedAccountEdgeSelect = { @@ -1512,8 +1846,11 @@ export type ConnectedAccountEdgeSelect = { select: ConnectedAccountSelect; }; }; +/** A `Email` edge in the connection. */ export interface EmailEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `Email` at the end of the edge. */ node?: Email | null; } export type EmailEdgeSelect = { @@ -1522,8 +1859,11 @@ export type EmailEdgeSelect = { select: EmailSelect; }; }; +/** A `AuditLog` edge in the connection. */ export interface AuditLogEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `AuditLog` at the end of the edge. */ node?: AuditLog | null; } export type AuditLogEdgeSelect = { @@ -1532,8 +1872,11 @@ export type AuditLogEdgeSelect = { select: AuditLogSelect; }; }; +/** A `User` edge in the connection. */ export interface UserEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `User` at the end of the edge. */ node?: User | null; } export type UserEdgeSelect = { diff --git a/sdk/constructive-sdk/src/auth/orm/mutation/index.ts b/sdk/constructive-sdk/src/auth/orm/mutation/index.ts index 4428311bb..0d9f251f5 100644 --- a/sdk/constructive-sdk/src/auth/orm/mutation/index.ts +++ b/sdk/constructive-sdk/src/auth/orm/mutation/index.ts @@ -58,51 +58,67 @@ import type { } from '../input-types'; import { connectionFieldsMap } from '../input-types'; export interface SignOutVariables { + /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: SignOutInput; } export interface SendAccountDeletionEmailVariables { + /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: SendAccountDeletionEmailInput; } export interface CheckPasswordVariables { + /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: CheckPasswordInput; } export interface ConfirmDeleteAccountVariables { + /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: ConfirmDeleteAccountInput; } export interface SetPasswordVariables { + /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: SetPasswordInput; } export interface VerifyEmailVariables { + /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: VerifyEmailInput; } export interface ResetPasswordVariables { + /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: ResetPasswordInput; } export interface SignInOneTimeTokenVariables { + /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: SignInOneTimeTokenInput; } export interface SignInVariables { + /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: SignInInput; } export interface SignUpVariables { + /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: SignUpInput; } export interface OneTimeTokenVariables { + /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: OneTimeTokenInput; } export interface ExtendTokenExpiresVariables { + /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: ExtendTokenExpiresInput; } export interface ForgotPasswordVariables { + /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: ForgotPasswordInput; } export interface SendVerificationEmailVariables { + /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: SendVerificationEmailInput; } export interface VerifyPasswordVariables { + /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: VerifyPasswordInput; } export interface VerifyTotpVariables { + /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: VerifyTotpInput; } export function createMutationOperations(client: OrmClient) { diff --git a/sdk/constructive-sdk/src/objects/orm/input-types.ts b/sdk/constructive-sdk/src/objects/orm/input-types.ts index de471f5c7..d39a472eb 100644 --- a/sdk/constructive-sdk/src/objects/orm/input-types.ts +++ b/sdk/constructive-sdk/src/objects/orm/input-types.ts @@ -238,28 +238,44 @@ export interface Object { frzn?: boolean | null; createdAt?: string | null; } +/** A ref is a data structure for pointing to a commit. */ export interface Ref { + /** The primary unique identifier for the ref. */ id: string; + /** The name of the ref or branch */ name?: string | null; databaseId?: string | null; storeId?: string | null; commitId?: string | null; } +/** A store represents an isolated object repository within a database. */ export interface Store { + /** The primary unique identifier for the store. */ id: string; + /** The name of the store (e.g., metaschema, migrations). */ name?: string | null; + /** The database this store belongs to. */ databaseId?: string | null; + /** The current head tree_id for this store. */ hash?: string | null; createdAt?: string | null; } +/** A commit records changes to the repository. */ export interface Commit { + /** The primary unique identifier for the commit. */ id: string; + /** The commit message */ message?: string | null; + /** The repository identifier */ databaseId?: string | null; storeId?: string | null; + /** Parent commits */ parentIds?: string | null; + /** The author of the commit */ authorId?: string | null; + /** The committer of the commit */ committerId?: string | null; + /** The root of the tree */ treeId?: string | null; date?: string | null; } @@ -629,31 +645,56 @@ export interface DeleteCommitInput { } // ============ Connection Fields Map ============ export const connectionFieldsMap = {} as Record>; +/** All input for the `freezeObjects` mutation. */ // ============ Custom Input Types (from schema) ============ export interface FreezeObjectsInput { + /** + * An arbitrary string value with no semantic meaning. Will be included in the + * payload verbatim. May be used to track mutations by the client. + */ clientMutationId?: string; databaseId?: string; id?: string; } +/** All input for the `initEmptyRepo` mutation. */ export interface InitEmptyRepoInput { + /** + * An arbitrary string value with no semantic meaning. Will be included in the + * payload verbatim. May be used to track mutations by the client. + */ clientMutationId?: string; dbId?: string; storeId?: string; } +/** All input for the `removeNodeAtPath` mutation. */ export interface RemoveNodeAtPathInput { + /** + * An arbitrary string value with no semantic meaning. Will be included in the + * payload verbatim. May be used to track mutations by the client. + */ clientMutationId?: string; dbId?: string; root?: string; path?: string[]; } +/** All input for the `setDataAtPath` mutation. */ export interface SetDataAtPathInput { + /** + * An arbitrary string value with no semantic meaning. Will be included in the + * payload verbatim. May be used to track mutations by the client. + */ clientMutationId?: string; dbId?: string; root?: string; path?: string[]; data?: Record; } +/** All input for the `setPropsAndCommit` mutation. */ export interface SetPropsAndCommitInput { + /** + * An arbitrary string value with no semantic meaning. Will be included in the + * payload verbatim. May be used to track mutations by the client. + */ clientMutationId?: string; dbId?: string; storeId?: string; @@ -661,7 +702,12 @@ export interface SetPropsAndCommitInput { path?: string[]; data?: Record; } +/** All input for the `insertNodeAtPath` mutation. */ export interface InsertNodeAtPathInput { + /** + * An arbitrary string value with no semantic meaning. Will be included in the + * payload verbatim. May be used to track mutations by the client. + */ clientMutationId?: string; dbId?: string; root?: string; @@ -670,7 +716,12 @@ export interface InsertNodeAtPathInput { kids?: string[]; ktree?: string[]; } +/** All input for the `updateNodeAtPath` mutation. */ export interface UpdateNodeAtPathInput { + /** + * An arbitrary string value with no semantic meaning. Will be included in the + * payload verbatim. May be used to track mutations by the client. + */ clientMutationId?: string; dbId?: string; root?: string; @@ -679,7 +730,12 @@ export interface UpdateNodeAtPathInput { kids?: string[]; ktree?: string[]; } +/** All input for the `setAndCommit` mutation. */ export interface SetAndCommitInput { + /** + * An arbitrary string value with no semantic meaning. Will be included in the + * payload verbatim. May be used to track mutations by the client. + */ clientMutationId?: string; dbId?: string; storeId?: string; @@ -689,11 +745,16 @@ export interface SetAndCommitInput { kids?: string[]; ktree?: string[]; } +/** A connection to a list of `Object` values. */ // ============ Payload/Return Types (for custom operations) ============ export interface ObjectConnection { + /** A list of `Object` objects. */ nodes: Object[]; + /** A list of edges which contains the `Object` and cursor to aid in pagination. */ edges: ObjectEdge[]; + /** Information to aid in pagination. */ pageInfo: PageInfo; + /** The count of *all* `Object` you could get from the connection. */ totalCount: number; } export type ObjectConnectionSelect = { @@ -708,19 +769,34 @@ export type ObjectConnectionSelect = { }; totalCount?: boolean; }; +/** The output of our `freezeObjects` mutation. */ export interface FreezeObjectsPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; } export type FreezeObjectsPayloadSelect = { clientMutationId?: boolean; }; +/** The output of our `initEmptyRepo` mutation. */ export interface InitEmptyRepoPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; } export type InitEmptyRepoPayloadSelect = { clientMutationId?: boolean; }; +/** The output of our `removeNodeAtPath` mutation. */ export interface RemoveNodeAtPathPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; result?: string | null; } @@ -728,7 +804,12 @@ export type RemoveNodeAtPathPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +/** The output of our `setDataAtPath` mutation. */ export interface SetDataAtPathPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; result?: string | null; } @@ -736,7 +817,12 @@ export type SetDataAtPathPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +/** The output of our `setPropsAndCommit` mutation. */ export interface SetPropsAndCommitPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; result?: string | null; } @@ -744,7 +830,12 @@ export type SetPropsAndCommitPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +/** The output of our `insertNodeAtPath` mutation. */ export interface InsertNodeAtPathPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; result?: string | null; } @@ -752,7 +843,12 @@ export type InsertNodeAtPathPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +/** The output of our `updateNodeAtPath` mutation. */ export interface UpdateNodeAtPathPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; result?: string | null; } @@ -760,7 +856,12 @@ export type UpdateNodeAtPathPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +/** The output of our `setAndCommit` mutation. */ export interface SetAndCommitPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; result?: string | null; } @@ -768,9 +869,16 @@ export type SetAndCommitPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +/** The output of our create `Object` mutation. */ export interface CreateObjectPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Object` that was created by this mutation. */ object?: Object | null; + /** An edge for our `Object`. May be used by Relay 1. */ objectEdge?: ObjectEdge | null; } export type CreateObjectPayloadSelect = { @@ -782,9 +890,16 @@ export type CreateObjectPayloadSelect = { select: ObjectEdgeSelect; }; }; +/** The output of our update `Object` mutation. */ export interface UpdateObjectPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Object` that was updated by this mutation. */ object?: Object | null; + /** An edge for our `Object`. May be used by Relay 1. */ objectEdge?: ObjectEdge | null; } export type UpdateObjectPayloadSelect = { @@ -796,9 +911,16 @@ export type UpdateObjectPayloadSelect = { select: ObjectEdgeSelect; }; }; +/** The output of our delete `Object` mutation. */ export interface DeleteObjectPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Object` that was deleted by this mutation. */ object?: Object | null; + /** An edge for our `Object`. May be used by Relay 1. */ objectEdge?: ObjectEdge | null; } export type DeleteObjectPayloadSelect = { @@ -810,9 +932,16 @@ export type DeleteObjectPayloadSelect = { select: ObjectEdgeSelect; }; }; +/** The output of our create `Ref` mutation. */ export interface CreateRefPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Ref` that was created by this mutation. */ ref?: Ref | null; + /** An edge for our `Ref`. May be used by Relay 1. */ refEdge?: RefEdge | null; } export type CreateRefPayloadSelect = { @@ -824,9 +953,16 @@ export type CreateRefPayloadSelect = { select: RefEdgeSelect; }; }; +/** The output of our update `Ref` mutation. */ export interface UpdateRefPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Ref` that was updated by this mutation. */ ref?: Ref | null; + /** An edge for our `Ref`. May be used by Relay 1. */ refEdge?: RefEdge | null; } export type UpdateRefPayloadSelect = { @@ -838,9 +974,16 @@ export type UpdateRefPayloadSelect = { select: RefEdgeSelect; }; }; +/** The output of our delete `Ref` mutation. */ export interface DeleteRefPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Ref` that was deleted by this mutation. */ ref?: Ref | null; + /** An edge for our `Ref`. May be used by Relay 1. */ refEdge?: RefEdge | null; } export type DeleteRefPayloadSelect = { @@ -852,9 +995,16 @@ export type DeleteRefPayloadSelect = { select: RefEdgeSelect; }; }; +/** The output of our create `Store` mutation. */ export interface CreateStorePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Store` that was created by this mutation. */ store?: Store | null; + /** An edge for our `Store`. May be used by Relay 1. */ storeEdge?: StoreEdge | null; } export type CreateStorePayloadSelect = { @@ -866,9 +1016,16 @@ export type CreateStorePayloadSelect = { select: StoreEdgeSelect; }; }; +/** The output of our update `Store` mutation. */ export interface UpdateStorePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Store` that was updated by this mutation. */ store?: Store | null; + /** An edge for our `Store`. May be used by Relay 1. */ storeEdge?: StoreEdge | null; } export type UpdateStorePayloadSelect = { @@ -880,9 +1037,16 @@ export type UpdateStorePayloadSelect = { select: StoreEdgeSelect; }; }; +/** The output of our delete `Store` mutation. */ export interface DeleteStorePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Store` that was deleted by this mutation. */ store?: Store | null; + /** An edge for our `Store`. May be used by Relay 1. */ storeEdge?: StoreEdge | null; } export type DeleteStorePayloadSelect = { @@ -894,9 +1058,16 @@ export type DeleteStorePayloadSelect = { select: StoreEdgeSelect; }; }; +/** The output of our create `Commit` mutation. */ export interface CreateCommitPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Commit` that was created by this mutation. */ commit?: Commit | null; + /** An edge for our `Commit`. May be used by Relay 1. */ commitEdge?: CommitEdge | null; } export type CreateCommitPayloadSelect = { @@ -908,9 +1079,16 @@ export type CreateCommitPayloadSelect = { select: CommitEdgeSelect; }; }; +/** The output of our update `Commit` mutation. */ export interface UpdateCommitPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Commit` that was updated by this mutation. */ commit?: Commit | null; + /** An edge for our `Commit`. May be used by Relay 1. */ commitEdge?: CommitEdge | null; } export type UpdateCommitPayloadSelect = { @@ -922,9 +1100,16 @@ export type UpdateCommitPayloadSelect = { select: CommitEdgeSelect; }; }; +/** The output of our delete `Commit` mutation. */ export interface DeleteCommitPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Commit` that was deleted by this mutation. */ commit?: Commit | null; + /** An edge for our `Commit`. May be used by Relay 1. */ commitEdge?: CommitEdge | null; } export type DeleteCommitPayloadSelect = { @@ -936,8 +1121,11 @@ export type DeleteCommitPayloadSelect = { select: CommitEdgeSelect; }; }; +/** A `Object` edge in the connection. */ export interface ObjectEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `Object` at the end of the edge. */ node?: Object | null; } export type ObjectEdgeSelect = { @@ -946,10 +1134,15 @@ export type ObjectEdgeSelect = { select: ObjectSelect; }; }; +/** Information about pagination in a connection. */ export interface PageInfo { + /** When paginating forwards, are there more items? */ hasNextPage: boolean; + /** When paginating backwards, are there more items? */ hasPreviousPage: boolean; + /** When paginating backwards, the cursor to continue. */ startCursor?: string | null; + /** When paginating forwards, the cursor to continue. */ endCursor?: string | null; } export type PageInfoSelect = { @@ -958,8 +1151,11 @@ export type PageInfoSelect = { startCursor?: boolean; endCursor?: boolean; }; +/** A `Ref` edge in the connection. */ export interface RefEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `Ref` at the end of the edge. */ node?: Ref | null; } export type RefEdgeSelect = { @@ -968,8 +1164,11 @@ export type RefEdgeSelect = { select: RefSelect; }; }; +/** A `Store` edge in the connection. */ export interface StoreEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `Store` at the end of the edge. */ node?: Store | null; } export type StoreEdgeSelect = { @@ -978,8 +1177,11 @@ export type StoreEdgeSelect = { select: StoreSelect; }; }; +/** A `Commit` edge in the connection. */ export interface CommitEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `Commit` at the end of the edge. */ node?: Commit | null; } export type CommitEdgeSelect = { diff --git a/sdk/constructive-sdk/src/objects/orm/mutation/index.ts b/sdk/constructive-sdk/src/objects/orm/mutation/index.ts index a45680406..4dc08f326 100644 --- a/sdk/constructive-sdk/src/objects/orm/mutation/index.ts +++ b/sdk/constructive-sdk/src/objects/orm/mutation/index.ts @@ -34,27 +34,35 @@ import type { } from '../input-types'; import { connectionFieldsMap } from '../input-types'; export interface FreezeObjectsVariables { + /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: FreezeObjectsInput; } export interface InitEmptyRepoVariables { + /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: InitEmptyRepoInput; } export interface RemoveNodeAtPathVariables { + /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: RemoveNodeAtPathInput; } export interface SetDataAtPathVariables { + /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: SetDataAtPathInput; } export interface SetPropsAndCommitVariables { + /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: SetPropsAndCommitInput; } export interface InsertNodeAtPathVariables { + /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: InsertNodeAtPathInput; } export interface UpdateNodeAtPathVariables { + /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: UpdateNodeAtPathInput; } export interface SetAndCommitVariables { + /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: SetAndCommitInput; } export function createMutationOperations(client: OrmClient) { diff --git a/sdk/constructive-sdk/src/objects/orm/query/index.ts b/sdk/constructive-sdk/src/objects/orm/query/index.ts index cfc74941a..5c1c91a01 100644 --- a/sdk/constructive-sdk/src/objects/orm/query/index.ts +++ b/sdk/constructive-sdk/src/objects/orm/query/index.ts @@ -13,19 +13,39 @@ export interface RevParseVariables { storeId?: string; refname?: string; } +/** + * Variables for getAllObjectsFromRoot + * Reads and enables pagination through a set of `Object`. + */ export interface GetAllObjectsFromRootVariables { databaseId?: string; id?: string; + /** Only read the first `n` values of the set. */ first?: number; + /** + * Skip the first `n` values from our `after` cursor, an alternative to cursor + * based pagination. May not be used with `last`. + */ offset?: number; + /** Read all values in the set after (below) this cursor. */ after?: string; } +/** + * Variables for getPathObjectsFromRoot + * Reads and enables pagination through a set of `Object`. + */ export interface GetPathObjectsFromRootVariables { databaseId?: string; id?: string; path?: string[]; + /** Only read the first `n` values of the set. */ first?: number; + /** + * Skip the first `n` values from our `after` cursor, an alternative to cursor + * based pagination. May not be used with `last`. + */ offset?: number; + /** Read all values in the set after (below) this cursor. */ after?: string; } export interface GetObjectAtPathVariables { diff --git a/sdk/constructive-sdk/src/public/orm/input-types.ts b/sdk/constructive-sdk/src/public/orm/input-types.ts index 39431d7e4..99cc5b837 100644 --- a/sdk/constructive-sdk/src/public/orm/input-types.ts +++ b/sdk/constructive-sdk/src/public/orm/input-types.ts @@ -261,6 +261,7 @@ export interface Object { frzn?: boolean | null; createdAt?: string | null; } +/** Requirements to achieve a level */ export interface AppLevelRequirement { id: string; name?: string | null; @@ -513,6 +514,7 @@ export interface View { scope?: number | null; tags?: string | null; } +/** Junction table linking views to their joined tables for referential integrity */ export interface ViewTable { id: string; viewId?: string | null; @@ -527,12 +529,15 @@ export interface ViewGrant { privilege?: string | null; withGrantOption?: boolean | null; } +/** DO INSTEAD rules for views (e.g., read-only enforcement) */ export interface ViewRule { id: string; databaseId?: string | null; viewId?: string | null; name?: string | null; + /** INSERT, UPDATE, or DELETE */ event?: string | null; + /** NOTHING (for read-only) or custom action */ action?: string | null; } export interface TableModule { @@ -972,17 +977,27 @@ export interface UuidModule { uuidFunction?: string | null; uuidSeed?: string | null; } +/** Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. */ export interface DatabaseProvisionModule { id: string; + /** The name for the new database */ databaseName?: string | null; + /** UUID of the user who owns this database */ ownerId?: string | null; + /** Subdomain prefix for the database. If null, auto-generated using unique_names + random chars */ subdomain?: string | null; + /** Base domain for the database (e.g., example.com) */ domain?: string | null; + /** Array of module IDs to install, or ["all"] for all modules */ modules?: string | null; + /** Additional configuration options for provisioning */ options?: Record | null; + /** When true, copies the owner user and password hash from source database to the newly provisioned database */ bootstrapUser?: boolean | null; + /** Current status: pending, in_progress, completed, or failed */ status?: string | null; errorMessage?: string | null; + /** The ID of the provisioned database (set by trigger before RLS check) */ databaseId?: string | null; createdAt?: string | null; updatedAt?: string | null; @@ -1079,6 +1094,7 @@ export interface OrgLimit { max?: number | null; entityId?: string | null; } +/** The user achieving a requirement for a level. Log table that has every single step ever taken. */ export interface AppStep { id: string; actorId?: string | null; @@ -1087,6 +1103,7 @@ export interface AppStep { 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. */ export interface AppAchievement { id: string; actorId?: string | null; @@ -1146,17 +1163,25 @@ 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. */ id: string; + /** The name of the ref or branch */ name?: string | null; databaseId?: string | null; storeId?: string | null; commitId?: string | null; } +/** A store represents an isolated object repository within a database. */ export interface Store { + /** The primary unique identifier for the store. */ id: string; + /** The name of the store (e.g., metaschema, migrations). */ name?: string | null; + /** The database this store belongs to. */ databaseId?: string | null; + /** The current head tree_id for this store. */ hash?: string | null; createdAt?: string | null; } @@ -1197,8 +1222,11 @@ export interface MembershipType { export interface ConnectedAccount { id: string; ownerId?: string | null; + /** The service used, e.g. `twitter` or `github`. */ service?: string | null; + /** A unique identifier for the user within the service */ identifier?: string | null; + /** Additional profile details extracted from this login method */ details?: Record | null; isVerified?: boolean | null; createdAt?: string | null; @@ -1223,25 +1251,41 @@ export interface AppMembershipDefault { isApproved?: boolean | null; isVerified?: boolean | 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 { + /** PascalCase domain-prefixed node type name (e.g., AuthzDirectOwner, DataTimestamps, FieldImmutable) */ 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) */ category?: string | null; + /** Human-readable display name for UI */ displayName?: string | null; + /** Description of what this node type does */ description?: string | null; + /** JSON Schema defining valid parameters for this node type */ parameterSchema?: Record | null; + /** Tags for categorization and filtering (e.g., ownership, membership, temporal, rls) */ tags?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** A commit records changes to the repository. */ export interface Commit { + /** The primary unique identifier for the commit. */ id: string; + /** The commit message */ message?: string | null; + /** The repository identifier */ databaseId?: string | null; storeId?: string | null; + /** Parent commits */ parentIds?: string | null; + /** The author of the commit */ authorId?: string | null; + /** The committer of the commit */ committerId?: string | null; + /** The root of the tree */ treeId?: string | null; date?: string | null; } @@ -1275,6 +1319,7 @@ export interface AuditLog { success?: boolean | null; createdAt?: string | null; } +/** Levels for achievement */ export interface AppLevel { id: string; name?: string | null; @@ -1340,6 +1385,7 @@ export interface User { 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; } export interface HierarchyModule { @@ -12622,63 +12668,128 @@ export const connectionFieldsMap = { orgClaimedInvitesBySenderId: 'OrgClaimedInvite', }, } as Record>; +/** All input for the `signOut` mutation. */ // ============ Custom Input Types (from schema) ============ export interface SignOutInput { + /** + * An arbitrary string value with no semantic meaning. Will be included in the + * payload verbatim. May be used to track mutations by the client. + */ clientMutationId?: string; } +/** All input for the `sendAccountDeletionEmail` mutation. */ export interface SendAccountDeletionEmailInput { + /** + * An arbitrary string value with no semantic meaning. Will be included in the + * payload verbatim. May be used to track mutations by the client. + */ clientMutationId?: string; } +/** All input for the `checkPassword` mutation. */ export interface CheckPasswordInput { + /** + * An arbitrary string value with no semantic meaning. Will be included in the + * payload verbatim. May be used to track mutations by the client. + */ clientMutationId?: string; password?: string; } +/** All input for the `submitInviteCode` mutation. */ export interface SubmitInviteCodeInput { + /** + * An arbitrary string value with no semantic meaning. Will be included in the + * payload verbatim. May be used to track mutations by the client. + */ clientMutationId?: string; token?: string; } +/** All input for the `submitOrgInviteCode` mutation. */ export interface SubmitOrgInviteCodeInput { + /** + * An arbitrary string value with no semantic meaning. Will be included in the + * payload verbatim. May be used to track mutations by the client. + */ clientMutationId?: string; token?: string; } +/** All input for the `freezeObjects` mutation. */ export interface FreezeObjectsInput { + /** + * An arbitrary string value with no semantic meaning. Will be included in the + * payload verbatim. May be used to track mutations by the client. + */ clientMutationId?: string; databaseId?: string; id?: string; } +/** All input for the `initEmptyRepo` mutation. */ export interface InitEmptyRepoInput { + /** + * An arbitrary string value with no semantic meaning. Will be included in the + * payload verbatim. May be used to track mutations by the client. + */ clientMutationId?: string; dbId?: string; storeId?: string; } +/** All input for the `confirmDeleteAccount` mutation. */ export interface ConfirmDeleteAccountInput { + /** + * An arbitrary string value with no semantic meaning. Will be included in the + * payload verbatim. May be used to track mutations by the client. + */ clientMutationId?: string; userId?: string; token?: string; } +/** All input for the `setPassword` mutation. */ export interface SetPasswordInput { + /** + * An arbitrary string value with no semantic meaning. Will be included in the + * payload verbatim. May be used to track mutations by the client. + */ clientMutationId?: string; currentPassword?: string; newPassword?: string; } +/** All input for the `verifyEmail` mutation. */ export interface VerifyEmailInput { + /** + * An arbitrary string value with no semantic meaning. Will be included in the + * payload verbatim. May be used to track mutations by the client. + */ clientMutationId?: string; emailId?: string; token?: string; } +/** All input for the `resetPassword` mutation. */ export interface ResetPasswordInput { + /** + * An arbitrary string value with no semantic meaning. Will be included in the + * payload verbatim. May be used to track mutations by the client. + */ clientMutationId?: string; roleId?: string; resetToken?: string; newPassword?: string; } +/** All input for the `removeNodeAtPath` mutation. */ export interface RemoveNodeAtPathInput { + /** + * An arbitrary string value with no semantic meaning. Will be included in the + * payload verbatim. May be used to track mutations by the client. + */ clientMutationId?: string; dbId?: string; root?: string; path?: string[]; } +/** All input for the `bootstrapUser` mutation. */ export interface BootstrapUserInput { + /** + * An arbitrary string value with no semantic meaning. Will be included in the + * payload verbatim. May be used to track mutations by the client. + */ clientMutationId?: string; targetDatabaseId?: string; password?: string; @@ -12688,14 +12799,24 @@ export interface BootstrapUserInput { displayName?: string; returnApiKey?: boolean; } +/** All input for the `setDataAtPath` mutation. */ export interface SetDataAtPathInput { + /** + * An arbitrary string value with no semantic meaning. Will be included in the + * payload verbatim. May be used to track mutations by the client. + */ clientMutationId?: string; dbId?: string; root?: string; path?: string[]; data?: Record; } +/** All input for the `setPropsAndCommit` mutation. */ export interface SetPropsAndCommitInput { + /** + * An arbitrary string value with no semantic meaning. Will be included in the + * payload verbatim. May be used to track mutations by the client. + */ clientMutationId?: string; dbId?: string; storeId?: string; @@ -12703,7 +12824,12 @@ export interface SetPropsAndCommitInput { path?: string[]; data?: Record; } +/** All input for the `provisionDatabaseWithUser` mutation. */ export interface ProvisionDatabaseWithUserInput { + /** + * An arbitrary string value with no semantic meaning. Will be included in the + * payload verbatim. May be used to track mutations by the client. + */ clientMutationId?: string; pDatabaseName?: string; pDomain?: string; @@ -12711,12 +12837,22 @@ export interface ProvisionDatabaseWithUserInput { pModules?: string[]; pOptions?: Record; } +/** All input for the `signInOneTimeToken` mutation. */ export interface SignInOneTimeTokenInput { + /** + * An arbitrary string value with no semantic meaning. Will be included in the + * payload verbatim. May be used to track mutations by the client. + */ clientMutationId?: string; token?: string; credentialKind?: string; } +/** All input for the `createUserDatabase` mutation. */ export interface CreateUserDatabaseInput { + /** + * An arbitrary string value with no semantic meaning. Will be included in the + * payload verbatim. May be used to track mutations by the client. + */ clientMutationId?: string; databaseName?: string; ownerId?: string; @@ -12726,11 +12862,21 @@ export interface CreateUserDatabaseInput { bitlen?: number; tokensExpiration?: IntervalInput; } +/** All input for the `extendTokenExpires` mutation. */ export interface ExtendTokenExpiresInput { + /** + * An arbitrary string value with no semantic meaning. Will be included in the + * payload verbatim. May be used to track mutations by the client. + */ clientMutationId?: string; amount?: IntervalInput; } +/** All input for the `signIn` mutation. */ export interface SignInInput { + /** + * An arbitrary string value with no semantic meaning. Will be included in the + * payload verbatim. May be used to track mutations by the client. + */ clientMutationId?: string; email?: string; password?: string; @@ -12738,7 +12884,12 @@ export interface SignInInput { credentialKind?: string; csrfToken?: string; } +/** All input for the `signUp` mutation. */ export interface SignUpInput { + /** + * An arbitrary string value with no semantic meaning. Will be included in the + * payload verbatim. May be used to track mutations by the client. + */ clientMutationId?: string; email?: string; password?: string; @@ -12746,18 +12897,33 @@ export interface SignUpInput { credentialKind?: string; csrfToken?: string; } +/** All input for the `setFieldOrder` mutation. */ export interface SetFieldOrderInput { + /** + * An arbitrary string value with no semantic meaning. Will be included in the + * payload verbatim. May be used to track mutations by the client. + */ clientMutationId?: string; fieldIds?: string[]; } +/** All input for the `oneTimeToken` mutation. */ export interface OneTimeTokenInput { + /** + * An arbitrary string value with no semantic meaning. Will be included in the + * payload verbatim. May be used to track mutations by the client. + */ clientMutationId?: string; email?: string; password?: string; origin?: ConstructiveInternalTypeOrigin; rememberMe?: boolean; } +/** All input for the `insertNodeAtPath` mutation. */ export interface InsertNodeAtPathInput { + /** + * An arbitrary string value with no semantic meaning. Will be included in the + * payload verbatim. May be used to track mutations by the client. + */ clientMutationId?: string; dbId?: string; root?: string; @@ -12766,7 +12932,12 @@ export interface InsertNodeAtPathInput { kids?: string[]; ktree?: string[]; } +/** All input for the `updateNodeAtPath` mutation. */ export interface UpdateNodeAtPathInput { + /** + * An arbitrary string value with no semantic meaning. Will be included in the + * payload verbatim. May be used to track mutations by the client. + */ clientMutationId?: string; dbId?: string; root?: string; @@ -12775,7 +12946,12 @@ export interface UpdateNodeAtPathInput { kids?: string[]; ktree?: string[]; } +/** All input for the `setAndCommit` mutation. */ export interface SetAndCommitInput { + /** + * An arbitrary string value with no semantic meaning. Will be included in the + * payload verbatim. May be used to track mutations by the client. + */ clientMutationId?: string; dbId?: string; storeId?: string; @@ -12785,7 +12961,12 @@ export interface SetAndCommitInput { kids?: string[]; ktree?: string[]; } +/** All input for the `applyRls` mutation. */ export interface ApplyRlsInput { + /** + * An arbitrary string value with no semantic meaning. Will be included in the + * payload verbatim. May be used to track mutations by the client. + */ clientMutationId?: string; tableId?: string; grants?: Record; @@ -12795,35 +12976,71 @@ export interface ApplyRlsInput { permissive?: boolean; name?: string; } +/** All input for the `forgotPassword` mutation. */ export interface ForgotPasswordInput { + /** + * An arbitrary string value with no semantic meaning. Will be included in the + * payload verbatim. May be used to track mutations by the client. + */ clientMutationId?: string; email?: ConstructiveInternalTypeEmail; } +/** All input for the `sendVerificationEmail` mutation. */ export interface SendVerificationEmailInput { + /** + * An arbitrary string value with no semantic meaning. Will be included in the + * payload verbatim. May be used to track mutations by the client. + */ clientMutationId?: string; email?: ConstructiveInternalTypeEmail; } +/** All input for the `verifyPassword` mutation. */ export interface VerifyPasswordInput { + /** + * An arbitrary string value with no semantic meaning. Will be included in the + * payload verbatim. May be used to track mutations by the client. + */ clientMutationId?: string; password: string; } +/** All input for the `verifyTotp` mutation. */ export interface VerifyTotpInput { + /** + * An arbitrary string value with no semantic meaning. Will be included in the + * payload verbatim. May be used to track mutations by the client. + */ clientMutationId?: string; totpValue: string; } +/** An interval of time that has passed where the smallest distinct unit is a second. */ export interface IntervalInput { + /** + * A quantity of seconds. This is the only non-integer field, as all the other + * fields will dump their overflow into a smaller unit of time. Intervals don’t + * have a smaller unit than seconds. + */ seconds?: number; + /** A quantity of minutes. */ minutes?: number; + /** A quantity of hours. */ hours?: number; + /** A quantity of days. */ days?: number; + /** A quantity of months. */ months?: number; + /** A quantity of years. */ years?: number; } +/** A connection to a list of `AppPermission` values. */ // ============ Payload/Return Types (for custom operations) ============ export interface AppPermissionConnection { + /** A list of `AppPermission` objects. */ nodes: AppPermission[]; + /** A list of edges which contains the `AppPermission` and cursor to aid in pagination. */ edges: AppPermissionEdge[]; + /** Information to aid in pagination. */ pageInfo: PageInfo; + /** The count of *all* `AppPermission` you could get from the connection. */ totalCount: number; } export type AppPermissionConnectionSelect = { @@ -12838,10 +13055,15 @@ export type AppPermissionConnectionSelect = { }; totalCount?: boolean; }; +/** A connection to a list of `OrgPermission` values. */ export interface OrgPermissionConnection { + /** A list of `OrgPermission` objects. */ nodes: OrgPermission[]; + /** A list of edges which contains the `OrgPermission` and cursor to aid in pagination. */ edges: OrgPermissionEdge[]; + /** Information to aid in pagination. */ pageInfo: PageInfo; + /** The count of *all* `OrgPermission` you could get from the connection. */ totalCount: number; } export type OrgPermissionConnectionSelect = { @@ -12856,10 +13078,15 @@ export type OrgPermissionConnectionSelect = { }; totalCount?: boolean; }; +/** A connection to a list of `Object` values. */ export interface ObjectConnection { + /** A list of `Object` objects. */ nodes: Object[]; + /** A list of edges which contains the `Object` and cursor to aid in pagination. */ edges: ObjectEdge[]; + /** Information to aid in pagination. */ pageInfo: PageInfo; + /** The count of *all* `Object` you could get from the connection. */ totalCount: number; } export type ObjectConnectionSelect = { @@ -12874,10 +13101,15 @@ export type ObjectConnectionSelect = { }; totalCount?: boolean; }; +/** A connection to a list of `AppLevelRequirement` values. */ export interface AppLevelRequirementConnection { + /** A list of `AppLevelRequirement` objects. */ nodes: AppLevelRequirement[]; + /** A list of edges which contains the `AppLevelRequirement` and cursor to aid in pagination. */ edges: AppLevelRequirementEdge[]; + /** Information to aid in pagination. */ pageInfo: PageInfo; + /** The count of *all* `AppLevelRequirement` you could get from the connection. */ totalCount: number; } export type AppLevelRequirementConnectionSelect = { @@ -12892,13 +13124,23 @@ export type AppLevelRequirementConnectionSelect = { }; totalCount?: boolean; }; +/** The output of our `signOut` mutation. */ export interface SignOutPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; } export type SignOutPayloadSelect = { clientMutationId?: boolean; }; +/** The output of our `sendAccountDeletionEmail` mutation. */ export interface SendAccountDeletionEmailPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; result?: boolean | null; } @@ -12906,13 +13148,23 @@ export type SendAccountDeletionEmailPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +/** The output of our `checkPassword` mutation. */ export interface CheckPasswordPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; } export type CheckPasswordPayloadSelect = { clientMutationId?: boolean; }; +/** The output of our `submitInviteCode` mutation. */ export interface SubmitInviteCodePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; result?: boolean | null; } @@ -12920,7 +13172,12 @@ export type SubmitInviteCodePayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +/** The output of our `submitOrgInviteCode` mutation. */ export interface SubmitOrgInviteCodePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; result?: boolean | null; } @@ -12928,19 +13185,34 @@ export type SubmitOrgInviteCodePayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +/** The output of our `freezeObjects` mutation. */ export interface FreezeObjectsPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; } export type FreezeObjectsPayloadSelect = { clientMutationId?: boolean; }; +/** The output of our `initEmptyRepo` mutation. */ export interface InitEmptyRepoPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; } export type InitEmptyRepoPayloadSelect = { clientMutationId?: boolean; }; +/** The output of our `confirmDeleteAccount` mutation. */ export interface ConfirmDeleteAccountPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; result?: boolean | null; } @@ -12948,7 +13220,12 @@ export type ConfirmDeleteAccountPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +/** The output of our `setPassword` mutation. */ export interface SetPasswordPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; result?: boolean | null; } @@ -12956,7 +13233,12 @@ export type SetPasswordPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +/** The output of our `verifyEmail` mutation. */ export interface VerifyEmailPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; result?: boolean | null; } @@ -12964,7 +13246,12 @@ export type VerifyEmailPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +/** The output of our `resetPassword` mutation. */ export interface ResetPasswordPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; result?: boolean | null; } @@ -12972,7 +13259,12 @@ export type ResetPasswordPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +/** The output of our `removeNodeAtPath` mutation. */ export interface RemoveNodeAtPathPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; result?: string | null; } @@ -12980,7 +13272,12 @@ export type RemoveNodeAtPathPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +/** The output of our `bootstrapUser` mutation. */ export interface BootstrapUserPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; result?: BootstrapUserRecord[] | null; } @@ -12990,7 +13287,12 @@ export type BootstrapUserPayloadSelect = { select: BootstrapUserRecordSelect; }; }; +/** The output of our `setDataAtPath` mutation. */ export interface SetDataAtPathPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; result?: string | null; } @@ -12998,7 +13300,12 @@ export type SetDataAtPathPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +/** The output of our `setPropsAndCommit` mutation. */ export interface SetPropsAndCommitPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; result?: string | null; } @@ -13006,7 +13313,12 @@ export type SetPropsAndCommitPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +/** The output of our `provisionDatabaseWithUser` mutation. */ export interface ProvisionDatabaseWithUserPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; result?: ProvisionDatabaseWithUserRecord[] | null; } @@ -13016,7 +13328,12 @@ export type ProvisionDatabaseWithUserPayloadSelect = { select: ProvisionDatabaseWithUserRecordSelect; }; }; +/** The output of our `signInOneTimeToken` mutation. */ export interface SignInOneTimeTokenPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; result?: SignInOneTimeTokenRecord | null; } @@ -13026,7 +13343,12 @@ export type SignInOneTimeTokenPayloadSelect = { select: SignInOneTimeTokenRecordSelect; }; }; +/** The output of our `createUserDatabase` mutation. */ export interface CreateUserDatabasePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; result?: string | null; } @@ -13034,7 +13356,12 @@ export type CreateUserDatabasePayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +/** The output of our `extendTokenExpires` mutation. */ export interface ExtendTokenExpiresPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; result?: ExtendTokenExpiresRecord[] | null; } @@ -13044,7 +13371,12 @@ export type ExtendTokenExpiresPayloadSelect = { select: ExtendTokenExpiresRecordSelect; }; }; +/** The output of our `signIn` mutation. */ export interface SignInPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; result?: SignInRecord | null; } @@ -13054,7 +13386,12 @@ export type SignInPayloadSelect = { select: SignInRecordSelect; }; }; +/** The output of our `signUp` mutation. */ export interface SignUpPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; result?: SignUpRecord | null; } @@ -13064,13 +13401,23 @@ export type SignUpPayloadSelect = { select: SignUpRecordSelect; }; }; +/** The output of our `setFieldOrder` mutation. */ export interface SetFieldOrderPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; } export type SetFieldOrderPayloadSelect = { clientMutationId?: boolean; }; +/** The output of our `oneTimeToken` mutation. */ export interface OneTimeTokenPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; result?: string | null; } @@ -13078,7 +13425,12 @@ export type OneTimeTokenPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +/** The output of our `insertNodeAtPath` mutation. */ export interface InsertNodeAtPathPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; result?: string | null; } @@ -13086,7 +13438,12 @@ export type InsertNodeAtPathPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +/** The output of our `updateNodeAtPath` mutation. */ export interface UpdateNodeAtPathPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; result?: string | null; } @@ -13094,7 +13451,12 @@ export type UpdateNodeAtPathPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +/** The output of our `setAndCommit` mutation. */ export interface SetAndCommitPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; result?: string | null; } @@ -13102,19 +13464,34 @@ export type SetAndCommitPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +/** The output of our `applyRls` mutation. */ export interface ApplyRlsPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; } export type ApplyRlsPayloadSelect = { clientMutationId?: boolean; }; +/** The output of our `forgotPassword` mutation. */ export interface ForgotPasswordPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; } export type ForgotPasswordPayloadSelect = { clientMutationId?: boolean; }; +/** The output of our `sendVerificationEmail` mutation. */ export interface SendVerificationEmailPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; result?: boolean | null; } @@ -13122,7 +13499,12 @@ export type SendVerificationEmailPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +/** The output of our `verifyPassword` mutation. */ export interface VerifyPasswordPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; result?: Session | null; } @@ -13132,7 +13514,12 @@ export type VerifyPasswordPayloadSelect = { select: SessionSelect; }; }; +/** The output of our `verifyTotp` mutation. */ export interface VerifyTotpPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; result?: Session | null; } @@ -13142,9 +13529,16 @@ export type VerifyTotpPayloadSelect = { select: SessionSelect; }; }; +/** The output of our create `AppPermission` mutation. */ export interface CreateAppPermissionPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppPermission` that was created by this mutation. */ appPermission?: AppPermission | null; + /** An edge for our `AppPermission`. May be used by Relay 1. */ appPermissionEdge?: AppPermissionEdge | null; } export type CreateAppPermissionPayloadSelect = { @@ -13156,9 +13550,16 @@ export type CreateAppPermissionPayloadSelect = { select: AppPermissionEdgeSelect; }; }; +/** The output of our update `AppPermission` mutation. */ export interface UpdateAppPermissionPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppPermission` that was updated by this mutation. */ appPermission?: AppPermission | null; + /** An edge for our `AppPermission`. May be used by Relay 1. */ appPermissionEdge?: AppPermissionEdge | null; } export type UpdateAppPermissionPayloadSelect = { @@ -13170,9 +13571,16 @@ export type UpdateAppPermissionPayloadSelect = { select: AppPermissionEdgeSelect; }; }; +/** The output of our delete `AppPermission` mutation. */ export interface DeleteAppPermissionPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppPermission` that was deleted by this mutation. */ appPermission?: AppPermission | null; + /** An edge for our `AppPermission`. May be used by Relay 1. */ appPermissionEdge?: AppPermissionEdge | null; } export type DeleteAppPermissionPayloadSelect = { @@ -13184,9 +13592,16 @@ export type DeleteAppPermissionPayloadSelect = { select: AppPermissionEdgeSelect; }; }; +/** The output of our create `OrgPermission` mutation. */ export interface CreateOrgPermissionPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgPermission` that was created by this mutation. */ orgPermission?: OrgPermission | null; + /** An edge for our `OrgPermission`. May be used by Relay 1. */ orgPermissionEdge?: OrgPermissionEdge | null; } export type CreateOrgPermissionPayloadSelect = { @@ -13198,9 +13613,16 @@ export type CreateOrgPermissionPayloadSelect = { select: OrgPermissionEdgeSelect; }; }; +/** The output of our update `OrgPermission` mutation. */ export interface UpdateOrgPermissionPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgPermission` that was updated by this mutation. */ orgPermission?: OrgPermission | null; + /** An edge for our `OrgPermission`. May be used by Relay 1. */ orgPermissionEdge?: OrgPermissionEdge | null; } export type UpdateOrgPermissionPayloadSelect = { @@ -13212,9 +13634,16 @@ export type UpdateOrgPermissionPayloadSelect = { select: OrgPermissionEdgeSelect; }; }; +/** The output of our delete `OrgPermission` mutation. */ export interface DeleteOrgPermissionPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgPermission` that was deleted by this mutation. */ orgPermission?: OrgPermission | null; + /** An edge for our `OrgPermission`. May be used by Relay 1. */ orgPermissionEdge?: OrgPermissionEdge | null; } export type DeleteOrgPermissionPayloadSelect = { @@ -13226,9 +13655,16 @@ export type DeleteOrgPermissionPayloadSelect = { select: OrgPermissionEdgeSelect; }; }; +/** The output of our create `Object` mutation. */ export interface CreateObjectPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Object` that was created by this mutation. */ object?: Object | null; + /** An edge for our `Object`. May be used by Relay 1. */ objectEdge?: ObjectEdge | null; } export type CreateObjectPayloadSelect = { @@ -13240,9 +13676,16 @@ export type CreateObjectPayloadSelect = { select: ObjectEdgeSelect; }; }; +/** The output of our update `Object` mutation. */ export interface UpdateObjectPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Object` that was updated by this mutation. */ object?: Object | null; + /** An edge for our `Object`. May be used by Relay 1. */ objectEdge?: ObjectEdge | null; } export type UpdateObjectPayloadSelect = { @@ -13254,9 +13697,16 @@ export type UpdateObjectPayloadSelect = { select: ObjectEdgeSelect; }; }; +/** The output of our delete `Object` mutation. */ export interface DeleteObjectPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Object` that was deleted by this mutation. */ object?: Object | null; + /** An edge for our `Object`. May be used by Relay 1. */ objectEdge?: ObjectEdge | null; } export type DeleteObjectPayloadSelect = { @@ -13268,9 +13718,16 @@ export type DeleteObjectPayloadSelect = { select: ObjectEdgeSelect; }; }; +/** The output of our create `AppLevelRequirement` mutation. */ export interface CreateAppLevelRequirementPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppLevelRequirement` that was created by this mutation. */ appLevelRequirement?: AppLevelRequirement | null; + /** An edge for our `AppLevelRequirement`. May be used by Relay 1. */ appLevelRequirementEdge?: AppLevelRequirementEdge | null; } export type CreateAppLevelRequirementPayloadSelect = { @@ -13282,9 +13739,16 @@ export type CreateAppLevelRequirementPayloadSelect = { select: AppLevelRequirementEdgeSelect; }; }; +/** The output of our update `AppLevelRequirement` mutation. */ export interface UpdateAppLevelRequirementPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppLevelRequirement` that was updated by this mutation. */ appLevelRequirement?: AppLevelRequirement | null; + /** An edge for our `AppLevelRequirement`. May be used by Relay 1. */ appLevelRequirementEdge?: AppLevelRequirementEdge | null; } export type UpdateAppLevelRequirementPayloadSelect = { @@ -13296,9 +13760,16 @@ export type UpdateAppLevelRequirementPayloadSelect = { select: AppLevelRequirementEdgeSelect; }; }; +/** The output of our delete `AppLevelRequirement` mutation. */ export interface DeleteAppLevelRequirementPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppLevelRequirement` that was deleted by this mutation. */ appLevelRequirement?: AppLevelRequirement | null; + /** An edge for our `AppLevelRequirement`. May be used by Relay 1. */ appLevelRequirementEdge?: AppLevelRequirementEdge | null; } export type DeleteAppLevelRequirementPayloadSelect = { @@ -13310,9 +13781,16 @@ export type DeleteAppLevelRequirementPayloadSelect = { select: AppLevelRequirementEdgeSelect; }; }; +/** The output of our create `Database` mutation. */ export interface CreateDatabasePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Database` that was created by this mutation. */ database?: Database | null; + /** An edge for our `Database`. May be used by Relay 1. */ databaseEdge?: DatabaseEdge | null; } export type CreateDatabasePayloadSelect = { @@ -13324,9 +13802,16 @@ export type CreateDatabasePayloadSelect = { select: DatabaseEdgeSelect; }; }; +/** The output of our update `Database` mutation. */ export interface UpdateDatabasePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Database` that was updated by this mutation. */ database?: Database | null; + /** An edge for our `Database`. May be used by Relay 1. */ databaseEdge?: DatabaseEdge | null; } export type UpdateDatabasePayloadSelect = { @@ -13338,9 +13823,16 @@ export type UpdateDatabasePayloadSelect = { select: DatabaseEdgeSelect; }; }; +/** The output of our delete `Database` mutation. */ export interface DeleteDatabasePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Database` that was deleted by this mutation. */ database?: Database | null; + /** An edge for our `Database`. May be used by Relay 1. */ databaseEdge?: DatabaseEdge | null; } export type DeleteDatabasePayloadSelect = { @@ -13352,9 +13844,16 @@ export type DeleteDatabasePayloadSelect = { select: DatabaseEdgeSelect; }; }; +/** The output of our create `Schema` mutation. */ export interface CreateSchemaPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Schema` that was created by this mutation. */ schema?: Schema | null; + /** An edge for our `Schema`. May be used by Relay 1. */ schemaEdge?: SchemaEdge | null; } export type CreateSchemaPayloadSelect = { @@ -13366,9 +13865,16 @@ export type CreateSchemaPayloadSelect = { select: SchemaEdgeSelect; }; }; +/** The output of our update `Schema` mutation. */ export interface UpdateSchemaPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Schema` that was updated by this mutation. */ schema?: Schema | null; + /** An edge for our `Schema`. May be used by Relay 1. */ schemaEdge?: SchemaEdge | null; } export type UpdateSchemaPayloadSelect = { @@ -13380,9 +13886,16 @@ export type UpdateSchemaPayloadSelect = { select: SchemaEdgeSelect; }; }; +/** The output of our delete `Schema` mutation. */ export interface DeleteSchemaPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Schema` that was deleted by this mutation. */ schema?: Schema | null; + /** An edge for our `Schema`. May be used by Relay 1. */ schemaEdge?: SchemaEdge | null; } export type DeleteSchemaPayloadSelect = { @@ -13394,9 +13907,16 @@ export type DeleteSchemaPayloadSelect = { select: SchemaEdgeSelect; }; }; +/** The output of our create `Table` mutation. */ export interface CreateTablePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Table` that was created by this mutation. */ table?: Table | null; + /** An edge for our `Table`. May be used by Relay 1. */ tableEdge?: TableEdge | null; } export type CreateTablePayloadSelect = { @@ -13408,9 +13928,16 @@ export type CreateTablePayloadSelect = { select: TableEdgeSelect; }; }; +/** The output of our update `Table` mutation. */ export interface UpdateTablePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Table` that was updated by this mutation. */ table?: Table | null; + /** An edge for our `Table`. May be used by Relay 1. */ tableEdge?: TableEdge | null; } export type UpdateTablePayloadSelect = { @@ -13422,9 +13949,16 @@ export type UpdateTablePayloadSelect = { select: TableEdgeSelect; }; }; +/** The output of our delete `Table` mutation. */ export interface DeleteTablePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Table` that was deleted by this mutation. */ table?: Table | null; + /** An edge for our `Table`. May be used by Relay 1. */ tableEdge?: TableEdge | null; } export type DeleteTablePayloadSelect = { @@ -13436,9 +13970,16 @@ export type DeleteTablePayloadSelect = { select: TableEdgeSelect; }; }; +/** The output of our create `CheckConstraint` mutation. */ export interface CreateCheckConstraintPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `CheckConstraint` that was created by this mutation. */ checkConstraint?: CheckConstraint | null; + /** An edge for our `CheckConstraint`. May be used by Relay 1. */ checkConstraintEdge?: CheckConstraintEdge | null; } export type CreateCheckConstraintPayloadSelect = { @@ -13450,9 +13991,16 @@ export type CreateCheckConstraintPayloadSelect = { select: CheckConstraintEdgeSelect; }; }; +/** The output of our update `CheckConstraint` mutation. */ export interface UpdateCheckConstraintPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `CheckConstraint` that was updated by this mutation. */ checkConstraint?: CheckConstraint | null; + /** An edge for our `CheckConstraint`. May be used by Relay 1. */ checkConstraintEdge?: CheckConstraintEdge | null; } export type UpdateCheckConstraintPayloadSelect = { @@ -13464,9 +14012,16 @@ export type UpdateCheckConstraintPayloadSelect = { select: CheckConstraintEdgeSelect; }; }; +/** The output of our delete `CheckConstraint` mutation. */ export interface DeleteCheckConstraintPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `CheckConstraint` that was deleted by this mutation. */ checkConstraint?: CheckConstraint | null; + /** An edge for our `CheckConstraint`. May be used by Relay 1. */ checkConstraintEdge?: CheckConstraintEdge | null; } export type DeleteCheckConstraintPayloadSelect = { @@ -13478,9 +14033,16 @@ export type DeleteCheckConstraintPayloadSelect = { select: CheckConstraintEdgeSelect; }; }; +/** The output of our create `Field` mutation. */ export interface CreateFieldPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Field` that was created by this mutation. */ field?: Field | null; + /** An edge for our `Field`. May be used by Relay 1. */ fieldEdge?: FieldEdge | null; } export type CreateFieldPayloadSelect = { @@ -13492,9 +14054,16 @@ export type CreateFieldPayloadSelect = { select: FieldEdgeSelect; }; }; +/** The output of our update `Field` mutation. */ export interface UpdateFieldPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Field` that was updated by this mutation. */ field?: Field | null; + /** An edge for our `Field`. May be used by Relay 1. */ fieldEdge?: FieldEdge | null; } export type UpdateFieldPayloadSelect = { @@ -13506,9 +14075,16 @@ export type UpdateFieldPayloadSelect = { select: FieldEdgeSelect; }; }; +/** The output of our delete `Field` mutation. */ export interface DeleteFieldPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Field` that was deleted by this mutation. */ field?: Field | null; + /** An edge for our `Field`. May be used by Relay 1. */ fieldEdge?: FieldEdge | null; } export type DeleteFieldPayloadSelect = { @@ -13520,9 +14096,16 @@ export type DeleteFieldPayloadSelect = { select: FieldEdgeSelect; }; }; +/** The output of our create `ForeignKeyConstraint` mutation. */ export interface CreateForeignKeyConstraintPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `ForeignKeyConstraint` that was created by this mutation. */ foreignKeyConstraint?: ForeignKeyConstraint | null; + /** An edge for our `ForeignKeyConstraint`. May be used by Relay 1. */ foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null; } export type CreateForeignKeyConstraintPayloadSelect = { @@ -13534,9 +14117,16 @@ export type CreateForeignKeyConstraintPayloadSelect = { select: ForeignKeyConstraintEdgeSelect; }; }; +/** The output of our update `ForeignKeyConstraint` mutation. */ export interface UpdateForeignKeyConstraintPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `ForeignKeyConstraint` that was updated by this mutation. */ foreignKeyConstraint?: ForeignKeyConstraint | null; + /** An edge for our `ForeignKeyConstraint`. May be used by Relay 1. */ foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null; } export type UpdateForeignKeyConstraintPayloadSelect = { @@ -13548,9 +14138,16 @@ export type UpdateForeignKeyConstraintPayloadSelect = { select: ForeignKeyConstraintEdgeSelect; }; }; +/** The output of our delete `ForeignKeyConstraint` mutation. */ export interface DeleteForeignKeyConstraintPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `ForeignKeyConstraint` that was deleted by this mutation. */ foreignKeyConstraint?: ForeignKeyConstraint | null; + /** An edge for our `ForeignKeyConstraint`. May be used by Relay 1. */ foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null; } export type DeleteForeignKeyConstraintPayloadSelect = { @@ -13562,9 +14159,16 @@ export type DeleteForeignKeyConstraintPayloadSelect = { select: ForeignKeyConstraintEdgeSelect; }; }; +/** The output of our create `FullTextSearch` mutation. */ export interface CreateFullTextSearchPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `FullTextSearch` that was created by this mutation. */ fullTextSearch?: FullTextSearch | null; + /** An edge for our `FullTextSearch`. May be used by Relay 1. */ fullTextSearchEdge?: FullTextSearchEdge | null; } export type CreateFullTextSearchPayloadSelect = { @@ -13576,9 +14180,16 @@ export type CreateFullTextSearchPayloadSelect = { select: FullTextSearchEdgeSelect; }; }; +/** The output of our update `FullTextSearch` mutation. */ export interface UpdateFullTextSearchPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `FullTextSearch` that was updated by this mutation. */ fullTextSearch?: FullTextSearch | null; + /** An edge for our `FullTextSearch`. May be used by Relay 1. */ fullTextSearchEdge?: FullTextSearchEdge | null; } export type UpdateFullTextSearchPayloadSelect = { @@ -13590,9 +14201,16 @@ export type UpdateFullTextSearchPayloadSelect = { select: FullTextSearchEdgeSelect; }; }; +/** The output of our delete `FullTextSearch` mutation. */ export interface DeleteFullTextSearchPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `FullTextSearch` that was deleted by this mutation. */ fullTextSearch?: FullTextSearch | null; + /** An edge for our `FullTextSearch`. May be used by Relay 1. */ fullTextSearchEdge?: FullTextSearchEdge | null; } export type DeleteFullTextSearchPayloadSelect = { @@ -13604,9 +14222,16 @@ export type DeleteFullTextSearchPayloadSelect = { select: FullTextSearchEdgeSelect; }; }; +/** The output of our create `Index` mutation. */ export interface CreateIndexPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Index` that was created by this mutation. */ index?: Index | null; + /** An edge for our `Index`. May be used by Relay 1. */ indexEdge?: IndexEdge | null; } export type CreateIndexPayloadSelect = { @@ -13618,9 +14243,16 @@ export type CreateIndexPayloadSelect = { select: IndexEdgeSelect; }; }; +/** The output of our update `Index` mutation. */ export interface UpdateIndexPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Index` that was updated by this mutation. */ index?: Index | null; + /** An edge for our `Index`. May be used by Relay 1. */ indexEdge?: IndexEdge | null; } export type UpdateIndexPayloadSelect = { @@ -13632,9 +14264,16 @@ export type UpdateIndexPayloadSelect = { select: IndexEdgeSelect; }; }; +/** The output of our delete `Index` mutation. */ export interface DeleteIndexPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Index` that was deleted by this mutation. */ index?: Index | null; + /** An edge for our `Index`. May be used by Relay 1. */ indexEdge?: IndexEdge | null; } export type DeleteIndexPayloadSelect = { @@ -13646,9 +14285,16 @@ export type DeleteIndexPayloadSelect = { select: IndexEdgeSelect; }; }; +/** The output of our create `LimitFunction` mutation. */ export interface CreateLimitFunctionPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `LimitFunction` that was created by this mutation. */ limitFunction?: LimitFunction | null; + /** An edge for our `LimitFunction`. May be used by Relay 1. */ limitFunctionEdge?: LimitFunctionEdge | null; } export type CreateLimitFunctionPayloadSelect = { @@ -13660,9 +14306,16 @@ export type CreateLimitFunctionPayloadSelect = { select: LimitFunctionEdgeSelect; }; }; +/** The output of our update `LimitFunction` mutation. */ export interface UpdateLimitFunctionPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `LimitFunction` that was updated by this mutation. */ limitFunction?: LimitFunction | null; + /** An edge for our `LimitFunction`. May be used by Relay 1. */ limitFunctionEdge?: LimitFunctionEdge | null; } export type UpdateLimitFunctionPayloadSelect = { @@ -13674,9 +14327,16 @@ export type UpdateLimitFunctionPayloadSelect = { select: LimitFunctionEdgeSelect; }; }; +/** The output of our delete `LimitFunction` mutation. */ export interface DeleteLimitFunctionPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `LimitFunction` that was deleted by this mutation. */ limitFunction?: LimitFunction | null; + /** An edge for our `LimitFunction`. May be used by Relay 1. */ limitFunctionEdge?: LimitFunctionEdge | null; } export type DeleteLimitFunctionPayloadSelect = { @@ -13688,9 +14348,16 @@ export type DeleteLimitFunctionPayloadSelect = { select: LimitFunctionEdgeSelect; }; }; +/** The output of our create `Policy` mutation. */ export interface CreatePolicyPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Policy` that was created by this mutation. */ policy?: Policy | null; + /** An edge for our `Policy`. May be used by Relay 1. */ policyEdge?: PolicyEdge | null; } export type CreatePolicyPayloadSelect = { @@ -13702,9 +14369,16 @@ export type CreatePolicyPayloadSelect = { select: PolicyEdgeSelect; }; }; +/** The output of our update `Policy` mutation. */ export interface UpdatePolicyPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Policy` that was updated by this mutation. */ policy?: Policy | null; + /** An edge for our `Policy`. May be used by Relay 1. */ policyEdge?: PolicyEdge | null; } export type UpdatePolicyPayloadSelect = { @@ -13716,9 +14390,16 @@ export type UpdatePolicyPayloadSelect = { select: PolicyEdgeSelect; }; }; +/** The output of our delete `Policy` mutation. */ export interface DeletePolicyPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Policy` that was deleted by this mutation. */ policy?: Policy | null; + /** An edge for our `Policy`. May be used by Relay 1. */ policyEdge?: PolicyEdge | null; } export type DeletePolicyPayloadSelect = { @@ -13730,9 +14411,16 @@ export type DeletePolicyPayloadSelect = { select: PolicyEdgeSelect; }; }; +/** The output of our create `PrimaryKeyConstraint` mutation. */ export interface CreatePrimaryKeyConstraintPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `PrimaryKeyConstraint` that was created by this mutation. */ primaryKeyConstraint?: PrimaryKeyConstraint | null; + /** An edge for our `PrimaryKeyConstraint`. May be used by Relay 1. */ primaryKeyConstraintEdge?: PrimaryKeyConstraintEdge | null; } export type CreatePrimaryKeyConstraintPayloadSelect = { @@ -13744,9 +14432,16 @@ export type CreatePrimaryKeyConstraintPayloadSelect = { select: PrimaryKeyConstraintEdgeSelect; }; }; +/** The output of our update `PrimaryKeyConstraint` mutation. */ export interface UpdatePrimaryKeyConstraintPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `PrimaryKeyConstraint` that was updated by this mutation. */ primaryKeyConstraint?: PrimaryKeyConstraint | null; + /** An edge for our `PrimaryKeyConstraint`. May be used by Relay 1. */ primaryKeyConstraintEdge?: PrimaryKeyConstraintEdge | null; } export type UpdatePrimaryKeyConstraintPayloadSelect = { @@ -13758,9 +14453,16 @@ export type UpdatePrimaryKeyConstraintPayloadSelect = { select: PrimaryKeyConstraintEdgeSelect; }; }; +/** The output of our delete `PrimaryKeyConstraint` mutation. */ export interface DeletePrimaryKeyConstraintPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `PrimaryKeyConstraint` that was deleted by this mutation. */ primaryKeyConstraint?: PrimaryKeyConstraint | null; + /** An edge for our `PrimaryKeyConstraint`. May be used by Relay 1. */ primaryKeyConstraintEdge?: PrimaryKeyConstraintEdge | null; } export type DeletePrimaryKeyConstraintPayloadSelect = { @@ -13772,9 +14474,16 @@ export type DeletePrimaryKeyConstraintPayloadSelect = { select: PrimaryKeyConstraintEdgeSelect; }; }; +/** The output of our create `TableGrant` mutation. */ export interface CreateTableGrantPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `TableGrant` that was created by this mutation. */ tableGrant?: TableGrant | null; + /** An edge for our `TableGrant`. May be used by Relay 1. */ tableGrantEdge?: TableGrantEdge | null; } export type CreateTableGrantPayloadSelect = { @@ -13786,9 +14495,16 @@ export type CreateTableGrantPayloadSelect = { select: TableGrantEdgeSelect; }; }; +/** The output of our update `TableGrant` mutation. */ export interface UpdateTableGrantPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `TableGrant` that was updated by this mutation. */ tableGrant?: TableGrant | null; + /** An edge for our `TableGrant`. May be used by Relay 1. */ tableGrantEdge?: TableGrantEdge | null; } export type UpdateTableGrantPayloadSelect = { @@ -13800,9 +14516,16 @@ export type UpdateTableGrantPayloadSelect = { select: TableGrantEdgeSelect; }; }; +/** The output of our delete `TableGrant` mutation. */ export interface DeleteTableGrantPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `TableGrant` that was deleted by this mutation. */ tableGrant?: TableGrant | null; + /** An edge for our `TableGrant`. May be used by Relay 1. */ tableGrantEdge?: TableGrantEdge | null; } export type DeleteTableGrantPayloadSelect = { @@ -13814,9 +14537,16 @@ export type DeleteTableGrantPayloadSelect = { select: TableGrantEdgeSelect; }; }; +/** The output of our create `Trigger` mutation. */ export interface CreateTriggerPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Trigger` that was created by this mutation. */ trigger?: Trigger | null; + /** An edge for our `Trigger`. May be used by Relay 1. */ triggerEdge?: TriggerEdge | null; } export type CreateTriggerPayloadSelect = { @@ -13828,9 +14558,16 @@ export type CreateTriggerPayloadSelect = { select: TriggerEdgeSelect; }; }; +/** The output of our update `Trigger` mutation. */ export interface UpdateTriggerPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Trigger` that was updated by this mutation. */ trigger?: Trigger | null; + /** An edge for our `Trigger`. May be used by Relay 1. */ triggerEdge?: TriggerEdge | null; } export type UpdateTriggerPayloadSelect = { @@ -13842,9 +14579,16 @@ export type UpdateTriggerPayloadSelect = { select: TriggerEdgeSelect; }; }; +/** The output of our delete `Trigger` mutation. */ export interface DeleteTriggerPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Trigger` that was deleted by this mutation. */ trigger?: Trigger | null; + /** An edge for our `Trigger`. May be used by Relay 1. */ triggerEdge?: TriggerEdge | null; } export type DeleteTriggerPayloadSelect = { @@ -13856,9 +14600,16 @@ export type DeleteTriggerPayloadSelect = { select: TriggerEdgeSelect; }; }; +/** The output of our create `UniqueConstraint` mutation. */ export interface CreateUniqueConstraintPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `UniqueConstraint` that was created by this mutation. */ uniqueConstraint?: UniqueConstraint | null; + /** An edge for our `UniqueConstraint`. May be used by Relay 1. */ uniqueConstraintEdge?: UniqueConstraintEdge | null; } export type CreateUniqueConstraintPayloadSelect = { @@ -13870,9 +14621,16 @@ export type CreateUniqueConstraintPayloadSelect = { select: UniqueConstraintEdgeSelect; }; }; +/** The output of our update `UniqueConstraint` mutation. */ export interface UpdateUniqueConstraintPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `UniqueConstraint` that was updated by this mutation. */ uniqueConstraint?: UniqueConstraint | null; + /** An edge for our `UniqueConstraint`. May be used by Relay 1. */ uniqueConstraintEdge?: UniqueConstraintEdge | null; } export type UpdateUniqueConstraintPayloadSelect = { @@ -13884,9 +14642,16 @@ export type UpdateUniqueConstraintPayloadSelect = { select: UniqueConstraintEdgeSelect; }; }; +/** The output of our delete `UniqueConstraint` mutation. */ export interface DeleteUniqueConstraintPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `UniqueConstraint` that was deleted by this mutation. */ uniqueConstraint?: UniqueConstraint | null; + /** An edge for our `UniqueConstraint`. May be used by Relay 1. */ uniqueConstraintEdge?: UniqueConstraintEdge | null; } export type DeleteUniqueConstraintPayloadSelect = { @@ -13898,9 +14663,16 @@ export type DeleteUniqueConstraintPayloadSelect = { select: UniqueConstraintEdgeSelect; }; }; +/** The output of our create `View` mutation. */ export interface CreateViewPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `View` that was created by this mutation. */ view?: View | null; + /** An edge for our `View`. May be used by Relay 1. */ viewEdge?: ViewEdge | null; } export type CreateViewPayloadSelect = { @@ -13912,9 +14684,16 @@ export type CreateViewPayloadSelect = { select: ViewEdgeSelect; }; }; +/** The output of our update `View` mutation. */ export interface UpdateViewPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `View` that was updated by this mutation. */ view?: View | null; + /** An edge for our `View`. May be used by Relay 1. */ viewEdge?: ViewEdge | null; } export type UpdateViewPayloadSelect = { @@ -13926,9 +14705,16 @@ export type UpdateViewPayloadSelect = { select: ViewEdgeSelect; }; }; +/** The output of our delete `View` mutation. */ export interface DeleteViewPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `View` that was deleted by this mutation. */ view?: View | null; + /** An edge for our `View`. May be used by Relay 1. */ viewEdge?: ViewEdge | null; } export type DeleteViewPayloadSelect = { @@ -13940,9 +14726,16 @@ export type DeleteViewPayloadSelect = { select: ViewEdgeSelect; }; }; +/** The output of our create `ViewTable` mutation. */ export interface CreateViewTablePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `ViewTable` that was created by this mutation. */ viewTable?: ViewTable | null; + /** An edge for our `ViewTable`. May be used by Relay 1. */ viewTableEdge?: ViewTableEdge | null; } export type CreateViewTablePayloadSelect = { @@ -13954,9 +14747,16 @@ export type CreateViewTablePayloadSelect = { select: ViewTableEdgeSelect; }; }; +/** The output of our update `ViewTable` mutation. */ export interface UpdateViewTablePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `ViewTable` that was updated by this mutation. */ viewTable?: ViewTable | null; + /** An edge for our `ViewTable`. May be used by Relay 1. */ viewTableEdge?: ViewTableEdge | null; } export type UpdateViewTablePayloadSelect = { @@ -13968,9 +14768,16 @@ export type UpdateViewTablePayloadSelect = { select: ViewTableEdgeSelect; }; }; +/** The output of our delete `ViewTable` mutation. */ export interface DeleteViewTablePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `ViewTable` that was deleted by this mutation. */ viewTable?: ViewTable | null; + /** An edge for our `ViewTable`. May be used by Relay 1. */ viewTableEdge?: ViewTableEdge | null; } export type DeleteViewTablePayloadSelect = { @@ -13982,9 +14789,16 @@ export type DeleteViewTablePayloadSelect = { select: ViewTableEdgeSelect; }; }; +/** The output of our create `ViewGrant` mutation. */ export interface CreateViewGrantPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `ViewGrant` that was created by this mutation. */ viewGrant?: ViewGrant | null; + /** An edge for our `ViewGrant`. May be used by Relay 1. */ viewGrantEdge?: ViewGrantEdge | null; } export type CreateViewGrantPayloadSelect = { @@ -13996,9 +14810,16 @@ export type CreateViewGrantPayloadSelect = { select: ViewGrantEdgeSelect; }; }; +/** The output of our update `ViewGrant` mutation. */ export interface UpdateViewGrantPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `ViewGrant` that was updated by this mutation. */ viewGrant?: ViewGrant | null; + /** An edge for our `ViewGrant`. May be used by Relay 1. */ viewGrantEdge?: ViewGrantEdge | null; } export type UpdateViewGrantPayloadSelect = { @@ -14010,9 +14831,16 @@ export type UpdateViewGrantPayloadSelect = { select: ViewGrantEdgeSelect; }; }; +/** The output of our delete `ViewGrant` mutation. */ export interface DeleteViewGrantPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `ViewGrant` that was deleted by this mutation. */ viewGrant?: ViewGrant | null; + /** An edge for our `ViewGrant`. May be used by Relay 1. */ viewGrantEdge?: ViewGrantEdge | null; } export type DeleteViewGrantPayloadSelect = { @@ -14024,9 +14852,16 @@ export type DeleteViewGrantPayloadSelect = { select: ViewGrantEdgeSelect; }; }; +/** The output of our create `ViewRule` mutation. */ export interface CreateViewRulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `ViewRule` that was created by this mutation. */ viewRule?: ViewRule | null; + /** An edge for our `ViewRule`. May be used by Relay 1. */ viewRuleEdge?: ViewRuleEdge | null; } export type CreateViewRulePayloadSelect = { @@ -14038,9 +14873,16 @@ export type CreateViewRulePayloadSelect = { select: ViewRuleEdgeSelect; }; }; +/** The output of our update `ViewRule` mutation. */ export interface UpdateViewRulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `ViewRule` that was updated by this mutation. */ viewRule?: ViewRule | null; + /** An edge for our `ViewRule`. May be used by Relay 1. */ viewRuleEdge?: ViewRuleEdge | null; } export type UpdateViewRulePayloadSelect = { @@ -14052,9 +14894,16 @@ export type UpdateViewRulePayloadSelect = { select: ViewRuleEdgeSelect; }; }; +/** The output of our delete `ViewRule` mutation. */ export interface DeleteViewRulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `ViewRule` that was deleted by this mutation. */ viewRule?: ViewRule | null; + /** An edge for our `ViewRule`. May be used by Relay 1. */ viewRuleEdge?: ViewRuleEdge | null; } export type DeleteViewRulePayloadSelect = { @@ -14066,9 +14915,16 @@ export type DeleteViewRulePayloadSelect = { select: ViewRuleEdgeSelect; }; }; +/** The output of our create `TableModule` mutation. */ export interface CreateTableModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `TableModule` that was created by this mutation. */ tableModule?: TableModule | null; + /** An edge for our `TableModule`. May be used by Relay 1. */ tableModuleEdge?: TableModuleEdge | null; } export type CreateTableModulePayloadSelect = { @@ -14080,9 +14936,16 @@ export type CreateTableModulePayloadSelect = { select: TableModuleEdgeSelect; }; }; +/** The output of our update `TableModule` mutation. */ export interface UpdateTableModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `TableModule` that was updated by this mutation. */ tableModule?: TableModule | null; + /** An edge for our `TableModule`. May be used by Relay 1. */ tableModuleEdge?: TableModuleEdge | null; } export type UpdateTableModulePayloadSelect = { @@ -14094,9 +14957,16 @@ export type UpdateTableModulePayloadSelect = { select: TableModuleEdgeSelect; }; }; +/** The output of our delete `TableModule` mutation. */ export interface DeleteTableModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `TableModule` that was deleted by this mutation. */ tableModule?: TableModule | null; + /** An edge for our `TableModule`. May be used by Relay 1. */ tableModuleEdge?: TableModuleEdge | null; } export type DeleteTableModulePayloadSelect = { @@ -14108,9 +14978,16 @@ export type DeleteTableModulePayloadSelect = { select: TableModuleEdgeSelect; }; }; +/** The output of our create `TableTemplateModule` mutation. */ export interface CreateTableTemplateModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `TableTemplateModule` that was created by this mutation. */ tableTemplateModule?: TableTemplateModule | null; + /** An edge for our `TableTemplateModule`. May be used by Relay 1. */ tableTemplateModuleEdge?: TableTemplateModuleEdge | null; } export type CreateTableTemplateModulePayloadSelect = { @@ -14122,9 +14999,16 @@ export type CreateTableTemplateModulePayloadSelect = { select: TableTemplateModuleEdgeSelect; }; }; +/** The output of our update `TableTemplateModule` mutation. */ export interface UpdateTableTemplateModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `TableTemplateModule` that was updated by this mutation. */ tableTemplateModule?: TableTemplateModule | null; + /** An edge for our `TableTemplateModule`. May be used by Relay 1. */ tableTemplateModuleEdge?: TableTemplateModuleEdge | null; } export type UpdateTableTemplateModulePayloadSelect = { @@ -14136,9 +15020,16 @@ export type UpdateTableTemplateModulePayloadSelect = { select: TableTemplateModuleEdgeSelect; }; }; +/** The output of our delete `TableTemplateModule` mutation. */ export interface DeleteTableTemplateModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `TableTemplateModule` that was deleted by this mutation. */ tableTemplateModule?: TableTemplateModule | null; + /** An edge for our `TableTemplateModule`. May be used by Relay 1. */ tableTemplateModuleEdge?: TableTemplateModuleEdge | null; } export type DeleteTableTemplateModulePayloadSelect = { @@ -14150,9 +15041,16 @@ export type DeleteTableTemplateModulePayloadSelect = { select: TableTemplateModuleEdgeSelect; }; }; +/** The output of our create `SchemaGrant` mutation. */ export interface CreateSchemaGrantPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `SchemaGrant` that was created by this mutation. */ schemaGrant?: SchemaGrant | null; + /** An edge for our `SchemaGrant`. May be used by Relay 1. */ schemaGrantEdge?: SchemaGrantEdge | null; } export type CreateSchemaGrantPayloadSelect = { @@ -14164,9 +15062,16 @@ export type CreateSchemaGrantPayloadSelect = { select: SchemaGrantEdgeSelect; }; }; +/** The output of our update `SchemaGrant` mutation. */ export interface UpdateSchemaGrantPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `SchemaGrant` that was updated by this mutation. */ schemaGrant?: SchemaGrant | null; + /** An edge for our `SchemaGrant`. May be used by Relay 1. */ schemaGrantEdge?: SchemaGrantEdge | null; } export type UpdateSchemaGrantPayloadSelect = { @@ -14178,9 +15083,16 @@ export type UpdateSchemaGrantPayloadSelect = { select: SchemaGrantEdgeSelect; }; }; +/** The output of our delete `SchemaGrant` mutation. */ export interface DeleteSchemaGrantPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `SchemaGrant` that was deleted by this mutation. */ schemaGrant?: SchemaGrant | null; + /** An edge for our `SchemaGrant`. May be used by Relay 1. */ schemaGrantEdge?: SchemaGrantEdge | null; } export type DeleteSchemaGrantPayloadSelect = { @@ -14192,9 +15104,16 @@ export type DeleteSchemaGrantPayloadSelect = { select: SchemaGrantEdgeSelect; }; }; +/** The output of our create `ApiSchema` mutation. */ export interface CreateApiSchemaPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `ApiSchema` that was created by this mutation. */ apiSchema?: ApiSchema | null; + /** An edge for our `ApiSchema`. May be used by Relay 1. */ apiSchemaEdge?: ApiSchemaEdge | null; } export type CreateApiSchemaPayloadSelect = { @@ -14206,9 +15125,16 @@ export type CreateApiSchemaPayloadSelect = { select: ApiSchemaEdgeSelect; }; }; +/** The output of our update `ApiSchema` mutation. */ export interface UpdateApiSchemaPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `ApiSchema` that was updated by this mutation. */ apiSchema?: ApiSchema | null; + /** An edge for our `ApiSchema`. May be used by Relay 1. */ apiSchemaEdge?: ApiSchemaEdge | null; } export type UpdateApiSchemaPayloadSelect = { @@ -14220,9 +15146,16 @@ export type UpdateApiSchemaPayloadSelect = { select: ApiSchemaEdgeSelect; }; }; +/** The output of our delete `ApiSchema` mutation. */ export interface DeleteApiSchemaPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `ApiSchema` that was deleted by this mutation. */ apiSchema?: ApiSchema | null; + /** An edge for our `ApiSchema`. May be used by Relay 1. */ apiSchemaEdge?: ApiSchemaEdge | null; } export type DeleteApiSchemaPayloadSelect = { @@ -14234,9 +15167,16 @@ export type DeleteApiSchemaPayloadSelect = { select: ApiSchemaEdgeSelect; }; }; +/** The output of our create `ApiModule` mutation. */ export interface CreateApiModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `ApiModule` that was created by this mutation. */ apiModule?: ApiModule | null; + /** An edge for our `ApiModule`. May be used by Relay 1. */ apiModuleEdge?: ApiModuleEdge | null; } export type CreateApiModulePayloadSelect = { @@ -14248,9 +15188,16 @@ export type CreateApiModulePayloadSelect = { select: ApiModuleEdgeSelect; }; }; +/** The output of our update `ApiModule` mutation. */ export interface UpdateApiModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `ApiModule` that was updated by this mutation. */ apiModule?: ApiModule | null; + /** An edge for our `ApiModule`. May be used by Relay 1. */ apiModuleEdge?: ApiModuleEdge | null; } export type UpdateApiModulePayloadSelect = { @@ -14262,9 +15209,16 @@ export type UpdateApiModulePayloadSelect = { select: ApiModuleEdgeSelect; }; }; +/** The output of our delete `ApiModule` mutation. */ export interface DeleteApiModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `ApiModule` that was deleted by this mutation. */ apiModule?: ApiModule | null; + /** An edge for our `ApiModule`. May be used by Relay 1. */ apiModuleEdge?: ApiModuleEdge | null; } export type DeleteApiModulePayloadSelect = { @@ -14276,9 +15230,16 @@ export type DeleteApiModulePayloadSelect = { select: ApiModuleEdgeSelect; }; }; +/** The output of our create `Domain` mutation. */ export interface CreateDomainPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Domain` that was created by this mutation. */ domain?: Domain | null; + /** An edge for our `Domain`. May be used by Relay 1. */ domainEdge?: DomainEdge | null; } export type CreateDomainPayloadSelect = { @@ -14290,9 +15251,16 @@ export type CreateDomainPayloadSelect = { select: DomainEdgeSelect; }; }; +/** The output of our update `Domain` mutation. */ export interface UpdateDomainPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Domain` that was updated by this mutation. */ domain?: Domain | null; + /** An edge for our `Domain`. May be used by Relay 1. */ domainEdge?: DomainEdge | null; } export type UpdateDomainPayloadSelect = { @@ -14304,9 +15272,16 @@ export type UpdateDomainPayloadSelect = { select: DomainEdgeSelect; }; }; +/** The output of our delete `Domain` mutation. */ export interface DeleteDomainPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Domain` that was deleted by this mutation. */ domain?: Domain | null; + /** An edge for our `Domain`. May be used by Relay 1. */ domainEdge?: DomainEdge | null; } export type DeleteDomainPayloadSelect = { @@ -14318,9 +15293,16 @@ export type DeleteDomainPayloadSelect = { select: DomainEdgeSelect; }; }; +/** The output of our create `SiteMetadatum` mutation. */ export interface CreateSiteMetadatumPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `SiteMetadatum` that was created by this mutation. */ siteMetadatum?: SiteMetadatum | null; + /** An edge for our `SiteMetadatum`. May be used by Relay 1. */ siteMetadatumEdge?: SiteMetadatumEdge | null; } export type CreateSiteMetadatumPayloadSelect = { @@ -14332,9 +15314,16 @@ export type CreateSiteMetadatumPayloadSelect = { select: SiteMetadatumEdgeSelect; }; }; +/** The output of our update `SiteMetadatum` mutation. */ export interface UpdateSiteMetadatumPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `SiteMetadatum` that was updated by this mutation. */ siteMetadatum?: SiteMetadatum | null; + /** An edge for our `SiteMetadatum`. May be used by Relay 1. */ siteMetadatumEdge?: SiteMetadatumEdge | null; } export type UpdateSiteMetadatumPayloadSelect = { @@ -14346,9 +15335,16 @@ export type UpdateSiteMetadatumPayloadSelect = { select: SiteMetadatumEdgeSelect; }; }; +/** The output of our delete `SiteMetadatum` mutation. */ export interface DeleteSiteMetadatumPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `SiteMetadatum` that was deleted by this mutation. */ siteMetadatum?: SiteMetadatum | null; + /** An edge for our `SiteMetadatum`. May be used by Relay 1. */ siteMetadatumEdge?: SiteMetadatumEdge | null; } export type DeleteSiteMetadatumPayloadSelect = { @@ -14360,9 +15356,16 @@ export type DeleteSiteMetadatumPayloadSelect = { select: SiteMetadatumEdgeSelect; }; }; +/** The output of our create `SiteModule` mutation. */ export interface CreateSiteModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `SiteModule` that was created by this mutation. */ siteModule?: SiteModule | null; + /** An edge for our `SiteModule`. May be used by Relay 1. */ siteModuleEdge?: SiteModuleEdge | null; } export type CreateSiteModulePayloadSelect = { @@ -14374,9 +15377,16 @@ export type CreateSiteModulePayloadSelect = { select: SiteModuleEdgeSelect; }; }; +/** The output of our update `SiteModule` mutation. */ export interface UpdateSiteModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `SiteModule` that was updated by this mutation. */ siteModule?: SiteModule | null; + /** An edge for our `SiteModule`. May be used by Relay 1. */ siteModuleEdge?: SiteModuleEdge | null; } export type UpdateSiteModulePayloadSelect = { @@ -14388,9 +15398,16 @@ export type UpdateSiteModulePayloadSelect = { select: SiteModuleEdgeSelect; }; }; +/** The output of our delete `SiteModule` mutation. */ export interface DeleteSiteModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `SiteModule` that was deleted by this mutation. */ siteModule?: SiteModule | null; + /** An edge for our `SiteModule`. May be used by Relay 1. */ siteModuleEdge?: SiteModuleEdge | null; } export type DeleteSiteModulePayloadSelect = { @@ -14402,9 +15419,16 @@ export type DeleteSiteModulePayloadSelect = { select: SiteModuleEdgeSelect; }; }; +/** The output of our create `SiteTheme` mutation. */ export interface CreateSiteThemePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `SiteTheme` that was created by this mutation. */ siteTheme?: SiteTheme | null; + /** An edge for our `SiteTheme`. May be used by Relay 1. */ siteThemeEdge?: SiteThemeEdge | null; } export type CreateSiteThemePayloadSelect = { @@ -14416,9 +15440,16 @@ export type CreateSiteThemePayloadSelect = { select: SiteThemeEdgeSelect; }; }; +/** The output of our update `SiteTheme` mutation. */ export interface UpdateSiteThemePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `SiteTheme` that was updated by this mutation. */ siteTheme?: SiteTheme | null; + /** An edge for our `SiteTheme`. May be used by Relay 1. */ siteThemeEdge?: SiteThemeEdge | null; } export type UpdateSiteThemePayloadSelect = { @@ -14430,9 +15461,16 @@ export type UpdateSiteThemePayloadSelect = { select: SiteThemeEdgeSelect; }; }; +/** The output of our delete `SiteTheme` mutation. */ export interface DeleteSiteThemePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `SiteTheme` that was deleted by this mutation. */ siteTheme?: SiteTheme | null; + /** An edge for our `SiteTheme`. May be used by Relay 1. */ siteThemeEdge?: SiteThemeEdge | null; } export type DeleteSiteThemePayloadSelect = { @@ -14444,9 +15482,16 @@ export type DeleteSiteThemePayloadSelect = { select: SiteThemeEdgeSelect; }; }; +/** The output of our create `Procedure` mutation. */ export interface CreateProcedurePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Procedure` that was created by this mutation. */ procedure?: Procedure | null; + /** An edge for our `Procedure`. May be used by Relay 1. */ procedureEdge?: ProcedureEdge | null; } export type CreateProcedurePayloadSelect = { @@ -14458,9 +15503,16 @@ export type CreateProcedurePayloadSelect = { select: ProcedureEdgeSelect; }; }; +/** The output of our update `Procedure` mutation. */ export interface UpdateProcedurePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Procedure` that was updated by this mutation. */ procedure?: Procedure | null; + /** An edge for our `Procedure`. May be used by Relay 1. */ procedureEdge?: ProcedureEdge | null; } export type UpdateProcedurePayloadSelect = { @@ -14472,9 +15524,16 @@ export type UpdateProcedurePayloadSelect = { select: ProcedureEdgeSelect; }; }; +/** The output of our delete `Procedure` mutation. */ export interface DeleteProcedurePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Procedure` that was deleted by this mutation. */ procedure?: Procedure | null; + /** An edge for our `Procedure`. May be used by Relay 1. */ procedureEdge?: ProcedureEdge | null; } export type DeleteProcedurePayloadSelect = { @@ -14486,9 +15545,16 @@ export type DeleteProcedurePayloadSelect = { select: ProcedureEdgeSelect; }; }; +/** The output of our create `TriggerFunction` mutation. */ export interface CreateTriggerFunctionPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `TriggerFunction` that was created by this mutation. */ triggerFunction?: TriggerFunction | null; + /** An edge for our `TriggerFunction`. May be used by Relay 1. */ triggerFunctionEdge?: TriggerFunctionEdge | null; } export type CreateTriggerFunctionPayloadSelect = { @@ -14500,9 +15566,16 @@ export type CreateTriggerFunctionPayloadSelect = { select: TriggerFunctionEdgeSelect; }; }; +/** The output of our update `TriggerFunction` mutation. */ export interface UpdateTriggerFunctionPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `TriggerFunction` that was updated by this mutation. */ triggerFunction?: TriggerFunction | null; + /** An edge for our `TriggerFunction`. May be used by Relay 1. */ triggerFunctionEdge?: TriggerFunctionEdge | null; } export type UpdateTriggerFunctionPayloadSelect = { @@ -14514,9 +15587,16 @@ export type UpdateTriggerFunctionPayloadSelect = { select: TriggerFunctionEdgeSelect; }; }; +/** The output of our delete `TriggerFunction` mutation. */ export interface DeleteTriggerFunctionPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `TriggerFunction` that was deleted by this mutation. */ triggerFunction?: TriggerFunction | null; + /** An edge for our `TriggerFunction`. May be used by Relay 1. */ triggerFunctionEdge?: TriggerFunctionEdge | null; } export type DeleteTriggerFunctionPayloadSelect = { @@ -14528,9 +15608,16 @@ export type DeleteTriggerFunctionPayloadSelect = { select: TriggerFunctionEdgeSelect; }; }; +/** The output of our create `Api` mutation. */ export interface CreateApiPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Api` that was created by this mutation. */ api?: Api | null; + /** An edge for our `Api`. May be used by Relay 1. */ apiEdge?: ApiEdge | null; } export type CreateApiPayloadSelect = { @@ -14542,9 +15629,16 @@ export type CreateApiPayloadSelect = { select: ApiEdgeSelect; }; }; +/** The output of our update `Api` mutation. */ export interface UpdateApiPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Api` that was updated by this mutation. */ api?: Api | null; + /** An edge for our `Api`. May be used by Relay 1. */ apiEdge?: ApiEdge | null; } export type UpdateApiPayloadSelect = { @@ -14556,9 +15650,16 @@ export type UpdateApiPayloadSelect = { select: ApiEdgeSelect; }; }; +/** The output of our delete `Api` mutation. */ export interface DeleteApiPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Api` that was deleted by this mutation. */ api?: Api | null; + /** An edge for our `Api`. May be used by Relay 1. */ apiEdge?: ApiEdge | null; } export type DeleteApiPayloadSelect = { @@ -14570,9 +15671,16 @@ export type DeleteApiPayloadSelect = { select: ApiEdgeSelect; }; }; +/** The output of our create `Site` mutation. */ export interface CreateSitePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Site` that was created by this mutation. */ site?: Site | null; + /** An edge for our `Site`. May be used by Relay 1. */ siteEdge?: SiteEdge | null; } export type CreateSitePayloadSelect = { @@ -14584,9 +15692,16 @@ export type CreateSitePayloadSelect = { select: SiteEdgeSelect; }; }; +/** The output of our update `Site` mutation. */ export interface UpdateSitePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Site` that was updated by this mutation. */ site?: Site | null; + /** An edge for our `Site`. May be used by Relay 1. */ siteEdge?: SiteEdge | null; } export type UpdateSitePayloadSelect = { @@ -14598,9 +15713,16 @@ export type UpdateSitePayloadSelect = { select: SiteEdgeSelect; }; }; +/** The output of our delete `Site` mutation. */ export interface DeleteSitePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Site` that was deleted by this mutation. */ site?: Site | null; + /** An edge for our `Site`. May be used by Relay 1. */ siteEdge?: SiteEdge | null; } export type DeleteSitePayloadSelect = { @@ -14612,9 +15734,16 @@ export type DeleteSitePayloadSelect = { select: SiteEdgeSelect; }; }; +/** The output of our create `App` mutation. */ export interface CreateAppPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `App` that was created by this mutation. */ app?: App | null; + /** An edge for our `App`. May be used by Relay 1. */ appEdge?: AppEdge | null; } export type CreateAppPayloadSelect = { @@ -14626,9 +15755,16 @@ export type CreateAppPayloadSelect = { select: AppEdgeSelect; }; }; +/** The output of our update `App` mutation. */ export interface UpdateAppPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `App` that was updated by this mutation. */ app?: App | null; + /** An edge for our `App`. May be used by Relay 1. */ appEdge?: AppEdge | null; } export type UpdateAppPayloadSelect = { @@ -14640,9 +15776,16 @@ export type UpdateAppPayloadSelect = { select: AppEdgeSelect; }; }; +/** The output of our delete `App` mutation. */ export interface DeleteAppPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `App` that was deleted by this mutation. */ app?: App | null; + /** An edge for our `App`. May be used by Relay 1. */ appEdge?: AppEdge | null; } export type DeleteAppPayloadSelect = { @@ -14654,9 +15797,16 @@ export type DeleteAppPayloadSelect = { select: AppEdgeSelect; }; }; +/** The output of our create `ConnectedAccountsModule` mutation. */ export interface CreateConnectedAccountsModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `ConnectedAccountsModule` that was created by this mutation. */ connectedAccountsModule?: ConnectedAccountsModule | null; + /** An edge for our `ConnectedAccountsModule`. May be used by Relay 1. */ connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; } export type CreateConnectedAccountsModulePayloadSelect = { @@ -14668,9 +15818,16 @@ export type CreateConnectedAccountsModulePayloadSelect = { select: ConnectedAccountsModuleEdgeSelect; }; }; +/** The output of our update `ConnectedAccountsModule` mutation. */ export interface UpdateConnectedAccountsModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `ConnectedAccountsModule` that was updated by this mutation. */ connectedAccountsModule?: ConnectedAccountsModule | null; + /** An edge for our `ConnectedAccountsModule`. May be used by Relay 1. */ connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; } export type UpdateConnectedAccountsModulePayloadSelect = { @@ -14682,9 +15839,16 @@ export type UpdateConnectedAccountsModulePayloadSelect = { select: ConnectedAccountsModuleEdgeSelect; }; }; +/** The output of our delete `ConnectedAccountsModule` mutation. */ export interface DeleteConnectedAccountsModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `ConnectedAccountsModule` that was deleted by this mutation. */ connectedAccountsModule?: ConnectedAccountsModule | null; + /** An edge for our `ConnectedAccountsModule`. May be used by Relay 1. */ connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; } export type DeleteConnectedAccountsModulePayloadSelect = { @@ -14696,9 +15860,16 @@ export type DeleteConnectedAccountsModulePayloadSelect = { select: ConnectedAccountsModuleEdgeSelect; }; }; +/** The output of our create `CryptoAddressesModule` mutation. */ export interface CreateCryptoAddressesModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `CryptoAddressesModule` that was created by this mutation. */ cryptoAddressesModule?: CryptoAddressesModule | null; + /** An edge for our `CryptoAddressesModule`. May be used by Relay 1. */ cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; } export type CreateCryptoAddressesModulePayloadSelect = { @@ -14710,9 +15881,16 @@ export type CreateCryptoAddressesModulePayloadSelect = { select: CryptoAddressesModuleEdgeSelect; }; }; +/** The output of our update `CryptoAddressesModule` mutation. */ export interface UpdateCryptoAddressesModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `CryptoAddressesModule` that was updated by this mutation. */ cryptoAddressesModule?: CryptoAddressesModule | null; + /** An edge for our `CryptoAddressesModule`. May be used by Relay 1. */ cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; } export type UpdateCryptoAddressesModulePayloadSelect = { @@ -14724,9 +15902,16 @@ export type UpdateCryptoAddressesModulePayloadSelect = { select: CryptoAddressesModuleEdgeSelect; }; }; +/** The output of our delete `CryptoAddressesModule` mutation. */ export interface DeleteCryptoAddressesModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `CryptoAddressesModule` that was deleted by this mutation. */ cryptoAddressesModule?: CryptoAddressesModule | null; + /** An edge for our `CryptoAddressesModule`. May be used by Relay 1. */ cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; } export type DeleteCryptoAddressesModulePayloadSelect = { @@ -14738,9 +15923,16 @@ export type DeleteCryptoAddressesModulePayloadSelect = { select: CryptoAddressesModuleEdgeSelect; }; }; +/** The output of our create `CryptoAuthModule` mutation. */ export interface CreateCryptoAuthModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `CryptoAuthModule` that was created by this mutation. */ cryptoAuthModule?: CryptoAuthModule | null; + /** An edge for our `CryptoAuthModule`. May be used by Relay 1. */ cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; } export type CreateCryptoAuthModulePayloadSelect = { @@ -14752,9 +15944,16 @@ export type CreateCryptoAuthModulePayloadSelect = { select: CryptoAuthModuleEdgeSelect; }; }; +/** The output of our update `CryptoAuthModule` mutation. */ export interface UpdateCryptoAuthModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `CryptoAuthModule` that was updated by this mutation. */ cryptoAuthModule?: CryptoAuthModule | null; + /** An edge for our `CryptoAuthModule`. May be used by Relay 1. */ cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; } export type UpdateCryptoAuthModulePayloadSelect = { @@ -14766,9 +15965,16 @@ export type UpdateCryptoAuthModulePayloadSelect = { select: CryptoAuthModuleEdgeSelect; }; }; +/** The output of our delete `CryptoAuthModule` mutation. */ export interface DeleteCryptoAuthModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `CryptoAuthModule` that was deleted by this mutation. */ cryptoAuthModule?: CryptoAuthModule | null; + /** An edge for our `CryptoAuthModule`. May be used by Relay 1. */ cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; } export type DeleteCryptoAuthModulePayloadSelect = { @@ -14780,9 +15986,16 @@ export type DeleteCryptoAuthModulePayloadSelect = { select: CryptoAuthModuleEdgeSelect; }; }; +/** The output of our create `DefaultIdsModule` mutation. */ export interface CreateDefaultIdsModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `DefaultIdsModule` that was created by this mutation. */ defaultIdsModule?: DefaultIdsModule | null; + /** An edge for our `DefaultIdsModule`. May be used by Relay 1. */ defaultIdsModuleEdge?: DefaultIdsModuleEdge | null; } export type CreateDefaultIdsModulePayloadSelect = { @@ -14794,9 +16007,16 @@ export type CreateDefaultIdsModulePayloadSelect = { select: DefaultIdsModuleEdgeSelect; }; }; +/** The output of our update `DefaultIdsModule` mutation. */ export interface UpdateDefaultIdsModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `DefaultIdsModule` that was updated by this mutation. */ defaultIdsModule?: DefaultIdsModule | null; + /** An edge for our `DefaultIdsModule`. May be used by Relay 1. */ defaultIdsModuleEdge?: DefaultIdsModuleEdge | null; } export type UpdateDefaultIdsModulePayloadSelect = { @@ -14808,9 +16028,16 @@ export type UpdateDefaultIdsModulePayloadSelect = { select: DefaultIdsModuleEdgeSelect; }; }; +/** The output of our delete `DefaultIdsModule` mutation. */ export interface DeleteDefaultIdsModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `DefaultIdsModule` that was deleted by this mutation. */ defaultIdsModule?: DefaultIdsModule | null; + /** An edge for our `DefaultIdsModule`. May be used by Relay 1. */ defaultIdsModuleEdge?: DefaultIdsModuleEdge | null; } export type DeleteDefaultIdsModulePayloadSelect = { @@ -14822,9 +16049,16 @@ export type DeleteDefaultIdsModulePayloadSelect = { select: DefaultIdsModuleEdgeSelect; }; }; +/** The output of our create `DenormalizedTableField` mutation. */ export interface CreateDenormalizedTableFieldPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `DenormalizedTableField` that was created by this mutation. */ denormalizedTableField?: DenormalizedTableField | null; + /** An edge for our `DenormalizedTableField`. May be used by Relay 1. */ denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; } export type CreateDenormalizedTableFieldPayloadSelect = { @@ -14836,9 +16070,16 @@ export type CreateDenormalizedTableFieldPayloadSelect = { select: DenormalizedTableFieldEdgeSelect; }; }; +/** The output of our update `DenormalizedTableField` mutation. */ export interface UpdateDenormalizedTableFieldPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `DenormalizedTableField` that was updated by this mutation. */ denormalizedTableField?: DenormalizedTableField | null; + /** An edge for our `DenormalizedTableField`. May be used by Relay 1. */ denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; } export type UpdateDenormalizedTableFieldPayloadSelect = { @@ -14850,9 +16091,16 @@ export type UpdateDenormalizedTableFieldPayloadSelect = { select: DenormalizedTableFieldEdgeSelect; }; }; +/** The output of our delete `DenormalizedTableField` mutation. */ export interface DeleteDenormalizedTableFieldPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `DenormalizedTableField` that was deleted by this mutation. */ denormalizedTableField?: DenormalizedTableField | null; + /** An edge for our `DenormalizedTableField`. May be used by Relay 1. */ denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; } export type DeleteDenormalizedTableFieldPayloadSelect = { @@ -14864,9 +16112,16 @@ export type DeleteDenormalizedTableFieldPayloadSelect = { select: DenormalizedTableFieldEdgeSelect; }; }; +/** The output of our create `EmailsModule` mutation. */ export interface CreateEmailsModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `EmailsModule` that was created by this mutation. */ emailsModule?: EmailsModule | null; + /** An edge for our `EmailsModule`. May be used by Relay 1. */ emailsModuleEdge?: EmailsModuleEdge | null; } export type CreateEmailsModulePayloadSelect = { @@ -14878,9 +16133,16 @@ export type CreateEmailsModulePayloadSelect = { select: EmailsModuleEdgeSelect; }; }; +/** The output of our update `EmailsModule` mutation. */ export interface UpdateEmailsModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `EmailsModule` that was updated by this mutation. */ emailsModule?: EmailsModule | null; + /** An edge for our `EmailsModule`. May be used by Relay 1. */ emailsModuleEdge?: EmailsModuleEdge | null; } export type UpdateEmailsModulePayloadSelect = { @@ -14892,9 +16154,16 @@ export type UpdateEmailsModulePayloadSelect = { select: EmailsModuleEdgeSelect; }; }; +/** The output of our delete `EmailsModule` mutation. */ export interface DeleteEmailsModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `EmailsModule` that was deleted by this mutation. */ emailsModule?: EmailsModule | null; + /** An edge for our `EmailsModule`. May be used by Relay 1. */ emailsModuleEdge?: EmailsModuleEdge | null; } export type DeleteEmailsModulePayloadSelect = { @@ -14906,9 +16175,16 @@ export type DeleteEmailsModulePayloadSelect = { select: EmailsModuleEdgeSelect; }; }; +/** The output of our create `EncryptedSecretsModule` mutation. */ export interface CreateEncryptedSecretsModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `EncryptedSecretsModule` that was created by this mutation. */ encryptedSecretsModule?: EncryptedSecretsModule | null; + /** An edge for our `EncryptedSecretsModule`. May be used by Relay 1. */ encryptedSecretsModuleEdge?: EncryptedSecretsModuleEdge | null; } export type CreateEncryptedSecretsModulePayloadSelect = { @@ -14920,9 +16196,16 @@ export type CreateEncryptedSecretsModulePayloadSelect = { select: EncryptedSecretsModuleEdgeSelect; }; }; +/** The output of our update `EncryptedSecretsModule` mutation. */ export interface UpdateEncryptedSecretsModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `EncryptedSecretsModule` that was updated by this mutation. */ encryptedSecretsModule?: EncryptedSecretsModule | null; + /** An edge for our `EncryptedSecretsModule`. May be used by Relay 1. */ encryptedSecretsModuleEdge?: EncryptedSecretsModuleEdge | null; } export type UpdateEncryptedSecretsModulePayloadSelect = { @@ -14934,9 +16217,16 @@ export type UpdateEncryptedSecretsModulePayloadSelect = { select: EncryptedSecretsModuleEdgeSelect; }; }; +/** The output of our delete `EncryptedSecretsModule` mutation. */ export interface DeleteEncryptedSecretsModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `EncryptedSecretsModule` that was deleted by this mutation. */ encryptedSecretsModule?: EncryptedSecretsModule | null; + /** An edge for our `EncryptedSecretsModule`. May be used by Relay 1. */ encryptedSecretsModuleEdge?: EncryptedSecretsModuleEdge | null; } export type DeleteEncryptedSecretsModulePayloadSelect = { @@ -14948,9 +16238,16 @@ export type DeleteEncryptedSecretsModulePayloadSelect = { select: EncryptedSecretsModuleEdgeSelect; }; }; +/** The output of our create `FieldModule` mutation. */ export interface CreateFieldModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `FieldModule` that was created by this mutation. */ fieldModule?: FieldModule | null; + /** An edge for our `FieldModule`. May be used by Relay 1. */ fieldModuleEdge?: FieldModuleEdge | null; } export type CreateFieldModulePayloadSelect = { @@ -14962,9 +16259,16 @@ export type CreateFieldModulePayloadSelect = { select: FieldModuleEdgeSelect; }; }; +/** The output of our update `FieldModule` mutation. */ export interface UpdateFieldModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `FieldModule` that was updated by this mutation. */ fieldModule?: FieldModule | null; + /** An edge for our `FieldModule`. May be used by Relay 1. */ fieldModuleEdge?: FieldModuleEdge | null; } export type UpdateFieldModulePayloadSelect = { @@ -14976,9 +16280,16 @@ export type UpdateFieldModulePayloadSelect = { select: FieldModuleEdgeSelect; }; }; +/** The output of our delete `FieldModule` mutation. */ export interface DeleteFieldModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `FieldModule` that was deleted by this mutation. */ fieldModule?: FieldModule | null; + /** An edge for our `FieldModule`. May be used by Relay 1. */ fieldModuleEdge?: FieldModuleEdge | null; } export type DeleteFieldModulePayloadSelect = { @@ -14990,9 +16301,16 @@ export type DeleteFieldModulePayloadSelect = { select: FieldModuleEdgeSelect; }; }; +/** The output of our create `InvitesModule` mutation. */ export interface CreateInvitesModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `InvitesModule` that was created by this mutation. */ invitesModule?: InvitesModule | null; + /** An edge for our `InvitesModule`. May be used by Relay 1. */ invitesModuleEdge?: InvitesModuleEdge | null; } export type CreateInvitesModulePayloadSelect = { @@ -15004,9 +16322,16 @@ export type CreateInvitesModulePayloadSelect = { select: InvitesModuleEdgeSelect; }; }; +/** The output of our update `InvitesModule` mutation. */ export interface UpdateInvitesModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `InvitesModule` that was updated by this mutation. */ invitesModule?: InvitesModule | null; + /** An edge for our `InvitesModule`. May be used by Relay 1. */ invitesModuleEdge?: InvitesModuleEdge | null; } export type UpdateInvitesModulePayloadSelect = { @@ -15018,9 +16343,16 @@ export type UpdateInvitesModulePayloadSelect = { select: InvitesModuleEdgeSelect; }; }; +/** The output of our delete `InvitesModule` mutation. */ export interface DeleteInvitesModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `InvitesModule` that was deleted by this mutation. */ invitesModule?: InvitesModule | null; + /** An edge for our `InvitesModule`. May be used by Relay 1. */ invitesModuleEdge?: InvitesModuleEdge | null; } export type DeleteInvitesModulePayloadSelect = { @@ -15032,9 +16364,16 @@ export type DeleteInvitesModulePayloadSelect = { select: InvitesModuleEdgeSelect; }; }; +/** The output of our create `LevelsModule` mutation. */ export interface CreateLevelsModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `LevelsModule` that was created by this mutation. */ levelsModule?: LevelsModule | null; + /** An edge for our `LevelsModule`. May be used by Relay 1. */ levelsModuleEdge?: LevelsModuleEdge | null; } export type CreateLevelsModulePayloadSelect = { @@ -15046,9 +16385,16 @@ export type CreateLevelsModulePayloadSelect = { select: LevelsModuleEdgeSelect; }; }; +/** The output of our update `LevelsModule` mutation. */ export interface UpdateLevelsModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `LevelsModule` that was updated by this mutation. */ levelsModule?: LevelsModule | null; + /** An edge for our `LevelsModule`. May be used by Relay 1. */ levelsModuleEdge?: LevelsModuleEdge | null; } export type UpdateLevelsModulePayloadSelect = { @@ -15060,9 +16406,16 @@ export type UpdateLevelsModulePayloadSelect = { select: LevelsModuleEdgeSelect; }; }; +/** The output of our delete `LevelsModule` mutation. */ export interface DeleteLevelsModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `LevelsModule` that was deleted by this mutation. */ levelsModule?: LevelsModule | null; + /** An edge for our `LevelsModule`. May be used by Relay 1. */ levelsModuleEdge?: LevelsModuleEdge | null; } export type DeleteLevelsModulePayloadSelect = { @@ -15074,9 +16427,16 @@ export type DeleteLevelsModulePayloadSelect = { select: LevelsModuleEdgeSelect; }; }; +/** The output of our create `LimitsModule` mutation. */ export interface CreateLimitsModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `LimitsModule` that was created by this mutation. */ limitsModule?: LimitsModule | null; + /** An edge for our `LimitsModule`. May be used by Relay 1. */ limitsModuleEdge?: LimitsModuleEdge | null; } export type CreateLimitsModulePayloadSelect = { @@ -15088,9 +16448,16 @@ export type CreateLimitsModulePayloadSelect = { select: LimitsModuleEdgeSelect; }; }; +/** The output of our update `LimitsModule` mutation. */ export interface UpdateLimitsModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `LimitsModule` that was updated by this mutation. */ limitsModule?: LimitsModule | null; + /** An edge for our `LimitsModule`. May be used by Relay 1. */ limitsModuleEdge?: LimitsModuleEdge | null; } export type UpdateLimitsModulePayloadSelect = { @@ -15102,9 +16469,16 @@ export type UpdateLimitsModulePayloadSelect = { select: LimitsModuleEdgeSelect; }; }; +/** The output of our delete `LimitsModule` mutation. */ export interface DeleteLimitsModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `LimitsModule` that was deleted by this mutation. */ limitsModule?: LimitsModule | null; + /** An edge for our `LimitsModule`. May be used by Relay 1. */ limitsModuleEdge?: LimitsModuleEdge | null; } export type DeleteLimitsModulePayloadSelect = { @@ -15116,9 +16490,16 @@ export type DeleteLimitsModulePayloadSelect = { select: LimitsModuleEdgeSelect; }; }; +/** The output of our create `MembershipTypesModule` mutation. */ export interface CreateMembershipTypesModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `MembershipTypesModule` that was created by this mutation. */ membershipTypesModule?: MembershipTypesModule | null; + /** An edge for our `MembershipTypesModule`. May be used by Relay 1. */ membershipTypesModuleEdge?: MembershipTypesModuleEdge | null; } export type CreateMembershipTypesModulePayloadSelect = { @@ -15130,9 +16511,16 @@ export type CreateMembershipTypesModulePayloadSelect = { select: MembershipTypesModuleEdgeSelect; }; }; +/** The output of our update `MembershipTypesModule` mutation. */ export interface UpdateMembershipTypesModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `MembershipTypesModule` that was updated by this mutation. */ membershipTypesModule?: MembershipTypesModule | null; + /** An edge for our `MembershipTypesModule`. May be used by Relay 1. */ membershipTypesModuleEdge?: MembershipTypesModuleEdge | null; } export type UpdateMembershipTypesModulePayloadSelect = { @@ -15144,9 +16532,16 @@ export type UpdateMembershipTypesModulePayloadSelect = { select: MembershipTypesModuleEdgeSelect; }; }; +/** The output of our delete `MembershipTypesModule` mutation. */ export interface DeleteMembershipTypesModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `MembershipTypesModule` that was deleted by this mutation. */ membershipTypesModule?: MembershipTypesModule | null; + /** An edge for our `MembershipTypesModule`. May be used by Relay 1. */ membershipTypesModuleEdge?: MembershipTypesModuleEdge | null; } export type DeleteMembershipTypesModulePayloadSelect = { @@ -15158,9 +16553,16 @@ export type DeleteMembershipTypesModulePayloadSelect = { select: MembershipTypesModuleEdgeSelect; }; }; +/** The output of our create `MembershipsModule` mutation. */ export interface CreateMembershipsModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `MembershipsModule` that was created by this mutation. */ membershipsModule?: MembershipsModule | null; + /** An edge for our `MembershipsModule`. May be used by Relay 1. */ membershipsModuleEdge?: MembershipsModuleEdge | null; } export type CreateMembershipsModulePayloadSelect = { @@ -15172,9 +16574,16 @@ export type CreateMembershipsModulePayloadSelect = { select: MembershipsModuleEdgeSelect; }; }; +/** The output of our update `MembershipsModule` mutation. */ export interface UpdateMembershipsModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `MembershipsModule` that was updated by this mutation. */ membershipsModule?: MembershipsModule | null; + /** An edge for our `MembershipsModule`. May be used by Relay 1. */ membershipsModuleEdge?: MembershipsModuleEdge | null; } export type UpdateMembershipsModulePayloadSelect = { @@ -15186,9 +16595,16 @@ export type UpdateMembershipsModulePayloadSelect = { select: MembershipsModuleEdgeSelect; }; }; +/** The output of our delete `MembershipsModule` mutation. */ export interface DeleteMembershipsModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `MembershipsModule` that was deleted by this mutation. */ membershipsModule?: MembershipsModule | null; + /** An edge for our `MembershipsModule`. May be used by Relay 1. */ membershipsModuleEdge?: MembershipsModuleEdge | null; } export type DeleteMembershipsModulePayloadSelect = { @@ -15200,9 +16616,16 @@ export type DeleteMembershipsModulePayloadSelect = { select: MembershipsModuleEdgeSelect; }; }; +/** The output of our create `PermissionsModule` mutation. */ export interface CreatePermissionsModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `PermissionsModule` that was created by this mutation. */ permissionsModule?: PermissionsModule | null; + /** An edge for our `PermissionsModule`. May be used by Relay 1. */ permissionsModuleEdge?: PermissionsModuleEdge | null; } export type CreatePermissionsModulePayloadSelect = { @@ -15214,9 +16637,16 @@ export type CreatePermissionsModulePayloadSelect = { select: PermissionsModuleEdgeSelect; }; }; +/** The output of our update `PermissionsModule` mutation. */ export interface UpdatePermissionsModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `PermissionsModule` that was updated by this mutation. */ permissionsModule?: PermissionsModule | null; + /** An edge for our `PermissionsModule`. May be used by Relay 1. */ permissionsModuleEdge?: PermissionsModuleEdge | null; } export type UpdatePermissionsModulePayloadSelect = { @@ -15228,9 +16658,16 @@ export type UpdatePermissionsModulePayloadSelect = { select: PermissionsModuleEdgeSelect; }; }; +/** The output of our delete `PermissionsModule` mutation. */ export interface DeletePermissionsModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `PermissionsModule` that was deleted by this mutation. */ permissionsModule?: PermissionsModule | null; + /** An edge for our `PermissionsModule`. May be used by Relay 1. */ permissionsModuleEdge?: PermissionsModuleEdge | null; } export type DeletePermissionsModulePayloadSelect = { @@ -15242,9 +16679,16 @@ export type DeletePermissionsModulePayloadSelect = { select: PermissionsModuleEdgeSelect; }; }; +/** The output of our create `PhoneNumbersModule` mutation. */ export interface CreatePhoneNumbersModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `PhoneNumbersModule` that was created by this mutation. */ phoneNumbersModule?: PhoneNumbersModule | null; + /** An edge for our `PhoneNumbersModule`. May be used by Relay 1. */ phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; } export type CreatePhoneNumbersModulePayloadSelect = { @@ -15256,9 +16700,16 @@ export type CreatePhoneNumbersModulePayloadSelect = { select: PhoneNumbersModuleEdgeSelect; }; }; +/** The output of our update `PhoneNumbersModule` mutation. */ export interface UpdatePhoneNumbersModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `PhoneNumbersModule` that was updated by this mutation. */ phoneNumbersModule?: PhoneNumbersModule | null; + /** An edge for our `PhoneNumbersModule`. May be used by Relay 1. */ phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; } export type UpdatePhoneNumbersModulePayloadSelect = { @@ -15270,9 +16721,16 @@ export type UpdatePhoneNumbersModulePayloadSelect = { select: PhoneNumbersModuleEdgeSelect; }; }; +/** The output of our delete `PhoneNumbersModule` mutation. */ export interface DeletePhoneNumbersModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `PhoneNumbersModule` that was deleted by this mutation. */ phoneNumbersModule?: PhoneNumbersModule | null; + /** An edge for our `PhoneNumbersModule`. May be used by Relay 1. */ phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; } export type DeletePhoneNumbersModulePayloadSelect = { @@ -15284,9 +16742,16 @@ export type DeletePhoneNumbersModulePayloadSelect = { select: PhoneNumbersModuleEdgeSelect; }; }; +/** The output of our create `ProfilesModule` mutation. */ export interface CreateProfilesModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `ProfilesModule` that was created by this mutation. */ profilesModule?: ProfilesModule | null; + /** An edge for our `ProfilesModule`. May be used by Relay 1. */ profilesModuleEdge?: ProfilesModuleEdge | null; } export type CreateProfilesModulePayloadSelect = { @@ -15298,9 +16763,16 @@ export type CreateProfilesModulePayloadSelect = { select: ProfilesModuleEdgeSelect; }; }; +/** The output of our update `ProfilesModule` mutation. */ export interface UpdateProfilesModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `ProfilesModule` that was updated by this mutation. */ profilesModule?: ProfilesModule | null; + /** An edge for our `ProfilesModule`. May be used by Relay 1. */ profilesModuleEdge?: ProfilesModuleEdge | null; } export type UpdateProfilesModulePayloadSelect = { @@ -15312,9 +16784,16 @@ export type UpdateProfilesModulePayloadSelect = { select: ProfilesModuleEdgeSelect; }; }; +/** The output of our delete `ProfilesModule` mutation. */ export interface DeleteProfilesModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `ProfilesModule` that was deleted by this mutation. */ profilesModule?: ProfilesModule | null; + /** An edge for our `ProfilesModule`. May be used by Relay 1. */ profilesModuleEdge?: ProfilesModuleEdge | null; } export type DeleteProfilesModulePayloadSelect = { @@ -15326,9 +16805,16 @@ export type DeleteProfilesModulePayloadSelect = { select: ProfilesModuleEdgeSelect; }; }; +/** The output of our create `RlsModule` mutation. */ export interface CreateRlsModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `RlsModule` that was created by this mutation. */ rlsModule?: RlsModule | null; + /** An edge for our `RlsModule`. May be used by Relay 1. */ rlsModuleEdge?: RlsModuleEdge | null; } export type CreateRlsModulePayloadSelect = { @@ -15340,9 +16826,16 @@ export type CreateRlsModulePayloadSelect = { select: RlsModuleEdgeSelect; }; }; +/** The output of our update `RlsModule` mutation. */ export interface UpdateRlsModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `RlsModule` that was updated by this mutation. */ rlsModule?: RlsModule | null; + /** An edge for our `RlsModule`. May be used by Relay 1. */ rlsModuleEdge?: RlsModuleEdge | null; } export type UpdateRlsModulePayloadSelect = { @@ -15354,9 +16847,16 @@ export type UpdateRlsModulePayloadSelect = { select: RlsModuleEdgeSelect; }; }; +/** The output of our delete `RlsModule` mutation. */ export interface DeleteRlsModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `RlsModule` that was deleted by this mutation. */ rlsModule?: RlsModule | null; + /** An edge for our `RlsModule`. May be used by Relay 1. */ rlsModuleEdge?: RlsModuleEdge | null; } export type DeleteRlsModulePayloadSelect = { @@ -15368,9 +16868,16 @@ export type DeleteRlsModulePayloadSelect = { select: RlsModuleEdgeSelect; }; }; +/** The output of our create `SecretsModule` mutation. */ export interface CreateSecretsModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `SecretsModule` that was created by this mutation. */ secretsModule?: SecretsModule | null; + /** An edge for our `SecretsModule`. May be used by Relay 1. */ secretsModuleEdge?: SecretsModuleEdge | null; } export type CreateSecretsModulePayloadSelect = { @@ -15382,9 +16889,16 @@ export type CreateSecretsModulePayloadSelect = { select: SecretsModuleEdgeSelect; }; }; +/** The output of our update `SecretsModule` mutation. */ export interface UpdateSecretsModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `SecretsModule` that was updated by this mutation. */ secretsModule?: SecretsModule | null; + /** An edge for our `SecretsModule`. May be used by Relay 1. */ secretsModuleEdge?: SecretsModuleEdge | null; } export type UpdateSecretsModulePayloadSelect = { @@ -15396,9 +16910,16 @@ export type UpdateSecretsModulePayloadSelect = { select: SecretsModuleEdgeSelect; }; }; +/** The output of our delete `SecretsModule` mutation. */ export interface DeleteSecretsModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `SecretsModule` that was deleted by this mutation. */ secretsModule?: SecretsModule | null; + /** An edge for our `SecretsModule`. May be used by Relay 1. */ secretsModuleEdge?: SecretsModuleEdge | null; } export type DeleteSecretsModulePayloadSelect = { @@ -15410,9 +16931,16 @@ export type DeleteSecretsModulePayloadSelect = { select: SecretsModuleEdgeSelect; }; }; +/** The output of our create `SessionsModule` mutation. */ export interface CreateSessionsModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `SessionsModule` that was created by this mutation. */ sessionsModule?: SessionsModule | null; + /** An edge for our `SessionsModule`. May be used by Relay 1. */ sessionsModuleEdge?: SessionsModuleEdge | null; } export type CreateSessionsModulePayloadSelect = { @@ -15424,9 +16952,16 @@ export type CreateSessionsModulePayloadSelect = { select: SessionsModuleEdgeSelect; }; }; +/** The output of our update `SessionsModule` mutation. */ export interface UpdateSessionsModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `SessionsModule` that was updated by this mutation. */ sessionsModule?: SessionsModule | null; + /** An edge for our `SessionsModule`. May be used by Relay 1. */ sessionsModuleEdge?: SessionsModuleEdge | null; } export type UpdateSessionsModulePayloadSelect = { @@ -15438,9 +16973,16 @@ export type UpdateSessionsModulePayloadSelect = { select: SessionsModuleEdgeSelect; }; }; +/** The output of our delete `SessionsModule` mutation. */ export interface DeleteSessionsModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `SessionsModule` that was deleted by this mutation. */ sessionsModule?: SessionsModule | null; + /** An edge for our `SessionsModule`. May be used by Relay 1. */ sessionsModuleEdge?: SessionsModuleEdge | null; } export type DeleteSessionsModulePayloadSelect = { @@ -15452,9 +16994,16 @@ export type DeleteSessionsModulePayloadSelect = { select: SessionsModuleEdgeSelect; }; }; +/** The output of our create `UserAuthModule` mutation. */ export interface CreateUserAuthModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `UserAuthModule` that was created by this mutation. */ userAuthModule?: UserAuthModule | null; + /** An edge for our `UserAuthModule`. May be used by Relay 1. */ userAuthModuleEdge?: UserAuthModuleEdge | null; } export type CreateUserAuthModulePayloadSelect = { @@ -15466,9 +17015,16 @@ export type CreateUserAuthModulePayloadSelect = { select: UserAuthModuleEdgeSelect; }; }; +/** The output of our update `UserAuthModule` mutation. */ export interface UpdateUserAuthModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `UserAuthModule` that was updated by this mutation. */ userAuthModule?: UserAuthModule | null; + /** An edge for our `UserAuthModule`. May be used by Relay 1. */ userAuthModuleEdge?: UserAuthModuleEdge | null; } export type UpdateUserAuthModulePayloadSelect = { @@ -15480,9 +17036,16 @@ export type UpdateUserAuthModulePayloadSelect = { select: UserAuthModuleEdgeSelect; }; }; +/** The output of our delete `UserAuthModule` mutation. */ export interface DeleteUserAuthModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `UserAuthModule` that was deleted by this mutation. */ userAuthModule?: UserAuthModule | null; + /** An edge for our `UserAuthModule`. May be used by Relay 1. */ userAuthModuleEdge?: UserAuthModuleEdge | null; } export type DeleteUserAuthModulePayloadSelect = { @@ -15494,9 +17057,16 @@ export type DeleteUserAuthModulePayloadSelect = { select: UserAuthModuleEdgeSelect; }; }; +/** The output of our create `UsersModule` mutation. */ export interface CreateUsersModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `UsersModule` that was created by this mutation. */ usersModule?: UsersModule | null; + /** An edge for our `UsersModule`. May be used by Relay 1. */ usersModuleEdge?: UsersModuleEdge | null; } export type CreateUsersModulePayloadSelect = { @@ -15508,9 +17078,16 @@ export type CreateUsersModulePayloadSelect = { select: UsersModuleEdgeSelect; }; }; +/** The output of our update `UsersModule` mutation. */ export interface UpdateUsersModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `UsersModule` that was updated by this mutation. */ usersModule?: UsersModule | null; + /** An edge for our `UsersModule`. May be used by Relay 1. */ usersModuleEdge?: UsersModuleEdge | null; } export type UpdateUsersModulePayloadSelect = { @@ -15522,9 +17099,16 @@ export type UpdateUsersModulePayloadSelect = { select: UsersModuleEdgeSelect; }; }; +/** The output of our delete `UsersModule` mutation. */ export interface DeleteUsersModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `UsersModule` that was deleted by this mutation. */ usersModule?: UsersModule | null; + /** An edge for our `UsersModule`. May be used by Relay 1. */ usersModuleEdge?: UsersModuleEdge | null; } export type DeleteUsersModulePayloadSelect = { @@ -15536,9 +17120,16 @@ export type DeleteUsersModulePayloadSelect = { select: UsersModuleEdgeSelect; }; }; +/** The output of our create `UuidModule` mutation. */ export interface CreateUuidModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `UuidModule` that was created by this mutation. */ uuidModule?: UuidModule | null; + /** An edge for our `UuidModule`. May be used by Relay 1. */ uuidModuleEdge?: UuidModuleEdge | null; } export type CreateUuidModulePayloadSelect = { @@ -15550,9 +17141,16 @@ export type CreateUuidModulePayloadSelect = { select: UuidModuleEdgeSelect; }; }; +/** The output of our update `UuidModule` mutation. */ export interface UpdateUuidModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `UuidModule` that was updated by this mutation. */ uuidModule?: UuidModule | null; + /** An edge for our `UuidModule`. May be used by Relay 1. */ uuidModuleEdge?: UuidModuleEdge | null; } export type UpdateUuidModulePayloadSelect = { @@ -15564,9 +17162,16 @@ export type UpdateUuidModulePayloadSelect = { select: UuidModuleEdgeSelect; }; }; +/** The output of our delete `UuidModule` mutation. */ export interface DeleteUuidModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `UuidModule` that was deleted by this mutation. */ uuidModule?: UuidModule | null; + /** An edge for our `UuidModule`. May be used by Relay 1. */ uuidModuleEdge?: UuidModuleEdge | null; } export type DeleteUuidModulePayloadSelect = { @@ -15578,9 +17183,16 @@ export type DeleteUuidModulePayloadSelect = { select: UuidModuleEdgeSelect; }; }; +/** The output of our create `DatabaseProvisionModule` mutation. */ export interface CreateDatabaseProvisionModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `DatabaseProvisionModule` that was created by this mutation. */ databaseProvisionModule?: DatabaseProvisionModule | null; + /** An edge for our `DatabaseProvisionModule`. May be used by Relay 1. */ databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; } export type CreateDatabaseProvisionModulePayloadSelect = { @@ -15592,9 +17204,16 @@ export type CreateDatabaseProvisionModulePayloadSelect = { select: DatabaseProvisionModuleEdgeSelect; }; }; +/** The output of our update `DatabaseProvisionModule` mutation. */ export interface UpdateDatabaseProvisionModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `DatabaseProvisionModule` that was updated by this mutation. */ databaseProvisionModule?: DatabaseProvisionModule | null; + /** An edge for our `DatabaseProvisionModule`. May be used by Relay 1. */ databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; } export type UpdateDatabaseProvisionModulePayloadSelect = { @@ -15606,9 +17225,16 @@ export type UpdateDatabaseProvisionModulePayloadSelect = { select: DatabaseProvisionModuleEdgeSelect; }; }; +/** The output of our delete `DatabaseProvisionModule` mutation. */ export interface DeleteDatabaseProvisionModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `DatabaseProvisionModule` that was deleted by this mutation. */ databaseProvisionModule?: DatabaseProvisionModule | null; + /** An edge for our `DatabaseProvisionModule`. May be used by Relay 1. */ databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; } export type DeleteDatabaseProvisionModulePayloadSelect = { @@ -15620,9 +17246,16 @@ export type DeleteDatabaseProvisionModulePayloadSelect = { select: DatabaseProvisionModuleEdgeSelect; }; }; +/** The output of our create `AppAdminGrant` mutation. */ export interface CreateAppAdminGrantPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppAdminGrant` that was created by this mutation. */ appAdminGrant?: AppAdminGrant | null; + /** An edge for our `AppAdminGrant`. May be used by Relay 1. */ appAdminGrantEdge?: AppAdminGrantEdge | null; } export type CreateAppAdminGrantPayloadSelect = { @@ -15634,9 +17267,16 @@ export type CreateAppAdminGrantPayloadSelect = { select: AppAdminGrantEdgeSelect; }; }; +/** The output of our update `AppAdminGrant` mutation. */ export interface UpdateAppAdminGrantPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppAdminGrant` that was updated by this mutation. */ appAdminGrant?: AppAdminGrant | null; + /** An edge for our `AppAdminGrant`. May be used by Relay 1. */ appAdminGrantEdge?: AppAdminGrantEdge | null; } export type UpdateAppAdminGrantPayloadSelect = { @@ -15648,9 +17288,16 @@ export type UpdateAppAdminGrantPayloadSelect = { select: AppAdminGrantEdgeSelect; }; }; +/** The output of our delete `AppAdminGrant` mutation. */ export interface DeleteAppAdminGrantPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppAdminGrant` that was deleted by this mutation. */ appAdminGrant?: AppAdminGrant | null; + /** An edge for our `AppAdminGrant`. May be used by Relay 1. */ appAdminGrantEdge?: AppAdminGrantEdge | null; } export type DeleteAppAdminGrantPayloadSelect = { @@ -15662,9 +17309,16 @@ export type DeleteAppAdminGrantPayloadSelect = { select: AppAdminGrantEdgeSelect; }; }; +/** The output of our create `AppOwnerGrant` mutation. */ export interface CreateAppOwnerGrantPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppOwnerGrant` that was created by this mutation. */ appOwnerGrant?: AppOwnerGrant | null; + /** An edge for our `AppOwnerGrant`. May be used by Relay 1. */ appOwnerGrantEdge?: AppOwnerGrantEdge | null; } export type CreateAppOwnerGrantPayloadSelect = { @@ -15676,9 +17330,16 @@ export type CreateAppOwnerGrantPayloadSelect = { select: AppOwnerGrantEdgeSelect; }; }; +/** The output of our update `AppOwnerGrant` mutation. */ export interface UpdateAppOwnerGrantPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppOwnerGrant` that was updated by this mutation. */ appOwnerGrant?: AppOwnerGrant | null; + /** An edge for our `AppOwnerGrant`. May be used by Relay 1. */ appOwnerGrantEdge?: AppOwnerGrantEdge | null; } export type UpdateAppOwnerGrantPayloadSelect = { @@ -15690,9 +17351,16 @@ export type UpdateAppOwnerGrantPayloadSelect = { select: AppOwnerGrantEdgeSelect; }; }; +/** The output of our delete `AppOwnerGrant` mutation. */ export interface DeleteAppOwnerGrantPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppOwnerGrant` that was deleted by this mutation. */ appOwnerGrant?: AppOwnerGrant | null; + /** An edge for our `AppOwnerGrant`. May be used by Relay 1. */ appOwnerGrantEdge?: AppOwnerGrantEdge | null; } export type DeleteAppOwnerGrantPayloadSelect = { @@ -15704,9 +17372,16 @@ export type DeleteAppOwnerGrantPayloadSelect = { select: AppOwnerGrantEdgeSelect; }; }; +/** The output of our create `AppGrant` mutation. */ export interface CreateAppGrantPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppGrant` that was created by this mutation. */ appGrant?: AppGrant | null; + /** An edge for our `AppGrant`. May be used by Relay 1. */ appGrantEdge?: AppGrantEdge | null; } export type CreateAppGrantPayloadSelect = { @@ -15718,9 +17393,16 @@ export type CreateAppGrantPayloadSelect = { select: AppGrantEdgeSelect; }; }; +/** The output of our update `AppGrant` mutation. */ export interface UpdateAppGrantPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppGrant` that was updated by this mutation. */ appGrant?: AppGrant | null; + /** An edge for our `AppGrant`. May be used by Relay 1. */ appGrantEdge?: AppGrantEdge | null; } export type UpdateAppGrantPayloadSelect = { @@ -15732,9 +17414,16 @@ export type UpdateAppGrantPayloadSelect = { select: AppGrantEdgeSelect; }; }; +/** The output of our delete `AppGrant` mutation. */ export interface DeleteAppGrantPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppGrant` that was deleted by this mutation. */ appGrant?: AppGrant | null; + /** An edge for our `AppGrant`. May be used by Relay 1. */ appGrantEdge?: AppGrantEdge | null; } export type DeleteAppGrantPayloadSelect = { @@ -15746,9 +17435,16 @@ export type DeleteAppGrantPayloadSelect = { select: AppGrantEdgeSelect; }; }; +/** The output of our create `OrgMembership` mutation. */ export interface CreateOrgMembershipPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgMembership` that was created by this mutation. */ orgMembership?: OrgMembership | null; + /** An edge for our `OrgMembership`. May be used by Relay 1. */ orgMembershipEdge?: OrgMembershipEdge | null; } export type CreateOrgMembershipPayloadSelect = { @@ -15760,9 +17456,16 @@ export type CreateOrgMembershipPayloadSelect = { select: OrgMembershipEdgeSelect; }; }; +/** The output of our update `OrgMembership` mutation. */ export interface UpdateOrgMembershipPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgMembership` that was updated by this mutation. */ orgMembership?: OrgMembership | null; + /** An edge for our `OrgMembership`. May be used by Relay 1. */ orgMembershipEdge?: OrgMembershipEdge | null; } export type UpdateOrgMembershipPayloadSelect = { @@ -15774,9 +17477,16 @@ export type UpdateOrgMembershipPayloadSelect = { select: OrgMembershipEdgeSelect; }; }; +/** The output of our delete `OrgMembership` mutation. */ export interface DeleteOrgMembershipPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgMembership` that was deleted by this mutation. */ orgMembership?: OrgMembership | null; + /** An edge for our `OrgMembership`. May be used by Relay 1. */ orgMembershipEdge?: OrgMembershipEdge | null; } export type DeleteOrgMembershipPayloadSelect = { @@ -15788,9 +17498,16 @@ export type DeleteOrgMembershipPayloadSelect = { select: OrgMembershipEdgeSelect; }; }; +/** The output of our create `OrgMember` mutation. */ export interface CreateOrgMemberPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgMember` that was created by this mutation. */ orgMember?: OrgMember | null; + /** An edge for our `OrgMember`. May be used by Relay 1. */ orgMemberEdge?: OrgMemberEdge | null; } export type CreateOrgMemberPayloadSelect = { @@ -15802,9 +17519,16 @@ export type CreateOrgMemberPayloadSelect = { select: OrgMemberEdgeSelect; }; }; +/** The output of our update `OrgMember` mutation. */ export interface UpdateOrgMemberPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgMember` that was updated by this mutation. */ orgMember?: OrgMember | null; + /** An edge for our `OrgMember`. May be used by Relay 1. */ orgMemberEdge?: OrgMemberEdge | null; } export type UpdateOrgMemberPayloadSelect = { @@ -15816,9 +17540,16 @@ export type UpdateOrgMemberPayloadSelect = { select: OrgMemberEdgeSelect; }; }; +/** The output of our delete `OrgMember` mutation. */ export interface DeleteOrgMemberPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgMember` that was deleted by this mutation. */ orgMember?: OrgMember | null; + /** An edge for our `OrgMember`. May be used by Relay 1. */ orgMemberEdge?: OrgMemberEdge | null; } export type DeleteOrgMemberPayloadSelect = { @@ -15830,9 +17561,16 @@ export type DeleteOrgMemberPayloadSelect = { select: OrgMemberEdgeSelect; }; }; +/** The output of our create `OrgAdminGrant` mutation. */ export interface CreateOrgAdminGrantPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgAdminGrant` that was created by this mutation. */ orgAdminGrant?: OrgAdminGrant | null; + /** An edge for our `OrgAdminGrant`. May be used by Relay 1. */ orgAdminGrantEdge?: OrgAdminGrantEdge | null; } export type CreateOrgAdminGrantPayloadSelect = { @@ -15844,9 +17582,16 @@ export type CreateOrgAdminGrantPayloadSelect = { select: OrgAdminGrantEdgeSelect; }; }; +/** The output of our update `OrgAdminGrant` mutation. */ export interface UpdateOrgAdminGrantPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgAdminGrant` that was updated by this mutation. */ orgAdminGrant?: OrgAdminGrant | null; + /** An edge for our `OrgAdminGrant`. May be used by Relay 1. */ orgAdminGrantEdge?: OrgAdminGrantEdge | null; } export type UpdateOrgAdminGrantPayloadSelect = { @@ -15858,9 +17603,16 @@ export type UpdateOrgAdminGrantPayloadSelect = { select: OrgAdminGrantEdgeSelect; }; }; +/** The output of our delete `OrgAdminGrant` mutation. */ export interface DeleteOrgAdminGrantPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgAdminGrant` that was deleted by this mutation. */ orgAdminGrant?: OrgAdminGrant | null; + /** An edge for our `OrgAdminGrant`. May be used by Relay 1. */ orgAdminGrantEdge?: OrgAdminGrantEdge | null; } export type DeleteOrgAdminGrantPayloadSelect = { @@ -15872,9 +17624,16 @@ export type DeleteOrgAdminGrantPayloadSelect = { select: OrgAdminGrantEdgeSelect; }; }; +/** The output of our create `OrgOwnerGrant` mutation. */ export interface CreateOrgOwnerGrantPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgOwnerGrant` that was created by this mutation. */ orgOwnerGrant?: OrgOwnerGrant | null; + /** An edge for our `OrgOwnerGrant`. May be used by Relay 1. */ orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } export type CreateOrgOwnerGrantPayloadSelect = { @@ -15886,9 +17645,16 @@ export type CreateOrgOwnerGrantPayloadSelect = { select: OrgOwnerGrantEdgeSelect; }; }; +/** The output of our update `OrgOwnerGrant` mutation. */ export interface UpdateOrgOwnerGrantPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgOwnerGrant` that was updated by this mutation. */ orgOwnerGrant?: OrgOwnerGrant | null; + /** An edge for our `OrgOwnerGrant`. May be used by Relay 1. */ orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } export type UpdateOrgOwnerGrantPayloadSelect = { @@ -15900,9 +17666,16 @@ export type UpdateOrgOwnerGrantPayloadSelect = { select: OrgOwnerGrantEdgeSelect; }; }; +/** The output of our delete `OrgOwnerGrant` mutation. */ export interface DeleteOrgOwnerGrantPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgOwnerGrant` that was deleted by this mutation. */ orgOwnerGrant?: OrgOwnerGrant | null; + /** An edge for our `OrgOwnerGrant`. May be used by Relay 1. */ orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } export type DeleteOrgOwnerGrantPayloadSelect = { @@ -15914,9 +17687,16 @@ export type DeleteOrgOwnerGrantPayloadSelect = { select: OrgOwnerGrantEdgeSelect; }; }; +/** The output of our create `OrgGrant` mutation. */ export interface CreateOrgGrantPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgGrant` that was created by this mutation. */ orgGrant?: OrgGrant | null; + /** An edge for our `OrgGrant`. May be used by Relay 1. */ orgGrantEdge?: OrgGrantEdge | null; } export type CreateOrgGrantPayloadSelect = { @@ -15928,9 +17708,16 @@ export type CreateOrgGrantPayloadSelect = { select: OrgGrantEdgeSelect; }; }; +/** The output of our update `OrgGrant` mutation. */ export interface UpdateOrgGrantPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgGrant` that was updated by this mutation. */ orgGrant?: OrgGrant | null; + /** An edge for our `OrgGrant`. May be used by Relay 1. */ orgGrantEdge?: OrgGrantEdge | null; } export type UpdateOrgGrantPayloadSelect = { @@ -15942,9 +17729,16 @@ export type UpdateOrgGrantPayloadSelect = { select: OrgGrantEdgeSelect; }; }; +/** The output of our delete `OrgGrant` mutation. */ export interface DeleteOrgGrantPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgGrant` that was deleted by this mutation. */ orgGrant?: OrgGrant | null; + /** An edge for our `OrgGrant`. May be used by Relay 1. */ orgGrantEdge?: OrgGrantEdge | null; } export type DeleteOrgGrantPayloadSelect = { @@ -15956,9 +17750,16 @@ export type DeleteOrgGrantPayloadSelect = { select: OrgGrantEdgeSelect; }; }; +/** The output of our create `AppLimit` mutation. */ export interface CreateAppLimitPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppLimit` that was created by this mutation. */ appLimit?: AppLimit | null; + /** An edge for our `AppLimit`. May be used by Relay 1. */ appLimitEdge?: AppLimitEdge | null; } export type CreateAppLimitPayloadSelect = { @@ -15970,9 +17771,16 @@ export type CreateAppLimitPayloadSelect = { select: AppLimitEdgeSelect; }; }; +/** The output of our update `AppLimit` mutation. */ export interface UpdateAppLimitPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppLimit` that was updated by this mutation. */ appLimit?: AppLimit | null; + /** An edge for our `AppLimit`. May be used by Relay 1. */ appLimitEdge?: AppLimitEdge | null; } export type UpdateAppLimitPayloadSelect = { @@ -15984,9 +17792,16 @@ export type UpdateAppLimitPayloadSelect = { select: AppLimitEdgeSelect; }; }; +/** The output of our delete `AppLimit` mutation. */ export interface DeleteAppLimitPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppLimit` that was deleted by this mutation. */ appLimit?: AppLimit | null; + /** An edge for our `AppLimit`. May be used by Relay 1. */ appLimitEdge?: AppLimitEdge | null; } export type DeleteAppLimitPayloadSelect = { @@ -15998,9 +17813,16 @@ export type DeleteAppLimitPayloadSelect = { select: AppLimitEdgeSelect; }; }; +/** The output of our create `OrgLimit` mutation. */ export interface CreateOrgLimitPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgLimit` that was created by this mutation. */ orgLimit?: OrgLimit | null; + /** An edge for our `OrgLimit`. May be used by Relay 1. */ orgLimitEdge?: OrgLimitEdge | null; } export type CreateOrgLimitPayloadSelect = { @@ -16012,9 +17834,16 @@ export type CreateOrgLimitPayloadSelect = { select: OrgLimitEdgeSelect; }; }; +/** The output of our update `OrgLimit` mutation. */ export interface UpdateOrgLimitPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgLimit` that was updated by this mutation. */ orgLimit?: OrgLimit | null; + /** An edge for our `OrgLimit`. May be used by Relay 1. */ orgLimitEdge?: OrgLimitEdge | null; } export type UpdateOrgLimitPayloadSelect = { @@ -16026,9 +17855,16 @@ export type UpdateOrgLimitPayloadSelect = { select: OrgLimitEdgeSelect; }; }; +/** The output of our delete `OrgLimit` mutation. */ export interface DeleteOrgLimitPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgLimit` that was deleted by this mutation. */ orgLimit?: OrgLimit | null; + /** An edge for our `OrgLimit`. May be used by Relay 1. */ orgLimitEdge?: OrgLimitEdge | null; } export type DeleteOrgLimitPayloadSelect = { @@ -16040,9 +17876,16 @@ export type DeleteOrgLimitPayloadSelect = { select: OrgLimitEdgeSelect; }; }; +/** The output of our create `AppStep` mutation. */ export interface CreateAppStepPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppStep` that was created by this mutation. */ appStep?: AppStep | null; + /** An edge for our `AppStep`. May be used by Relay 1. */ appStepEdge?: AppStepEdge | null; } export type CreateAppStepPayloadSelect = { @@ -16054,9 +17897,16 @@ export type CreateAppStepPayloadSelect = { select: AppStepEdgeSelect; }; }; +/** The output of our update `AppStep` mutation. */ export interface UpdateAppStepPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppStep` that was updated by this mutation. */ appStep?: AppStep | null; + /** An edge for our `AppStep`. May be used by Relay 1. */ appStepEdge?: AppStepEdge | null; } export type UpdateAppStepPayloadSelect = { @@ -16068,9 +17918,16 @@ export type UpdateAppStepPayloadSelect = { select: AppStepEdgeSelect; }; }; +/** The output of our delete `AppStep` mutation. */ export interface DeleteAppStepPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppStep` that was deleted by this mutation. */ appStep?: AppStep | null; + /** An edge for our `AppStep`. May be used by Relay 1. */ appStepEdge?: AppStepEdge | null; } export type DeleteAppStepPayloadSelect = { @@ -16082,9 +17939,16 @@ export type DeleteAppStepPayloadSelect = { select: AppStepEdgeSelect; }; }; +/** The output of our create `AppAchievement` mutation. */ export interface CreateAppAchievementPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppAchievement` that was created by this mutation. */ appAchievement?: AppAchievement | null; + /** An edge for our `AppAchievement`. May be used by Relay 1. */ appAchievementEdge?: AppAchievementEdge | null; } export type CreateAppAchievementPayloadSelect = { @@ -16096,9 +17960,16 @@ export type CreateAppAchievementPayloadSelect = { select: AppAchievementEdgeSelect; }; }; +/** The output of our update `AppAchievement` mutation. */ export interface UpdateAppAchievementPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppAchievement` that was updated by this mutation. */ appAchievement?: AppAchievement | null; + /** An edge for our `AppAchievement`. May be used by Relay 1. */ appAchievementEdge?: AppAchievementEdge | null; } export type UpdateAppAchievementPayloadSelect = { @@ -16110,9 +17981,16 @@ export type UpdateAppAchievementPayloadSelect = { select: AppAchievementEdgeSelect; }; }; +/** The output of our delete `AppAchievement` mutation. */ export interface DeleteAppAchievementPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppAchievement` that was deleted by this mutation. */ appAchievement?: AppAchievement | null; + /** An edge for our `AppAchievement`. May be used by Relay 1. */ appAchievementEdge?: AppAchievementEdge | null; } export type DeleteAppAchievementPayloadSelect = { @@ -16124,9 +18002,16 @@ export type DeleteAppAchievementPayloadSelect = { select: AppAchievementEdgeSelect; }; }; +/** The output of our create `Invite` mutation. */ export interface CreateInvitePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Invite` that was created by this mutation. */ invite?: Invite | null; + /** An edge for our `Invite`. May be used by Relay 1. */ inviteEdge?: InviteEdge | null; } export type CreateInvitePayloadSelect = { @@ -16138,9 +18023,16 @@ export type CreateInvitePayloadSelect = { select: InviteEdgeSelect; }; }; +/** The output of our update `Invite` mutation. */ export interface UpdateInvitePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Invite` that was updated by this mutation. */ invite?: Invite | null; + /** An edge for our `Invite`. May be used by Relay 1. */ inviteEdge?: InviteEdge | null; } export type UpdateInvitePayloadSelect = { @@ -16152,9 +18044,16 @@ export type UpdateInvitePayloadSelect = { select: InviteEdgeSelect; }; }; +/** The output of our delete `Invite` mutation. */ export interface DeleteInvitePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Invite` that was deleted by this mutation. */ invite?: Invite | null; + /** An edge for our `Invite`. May be used by Relay 1. */ inviteEdge?: InviteEdge | null; } export type DeleteInvitePayloadSelect = { @@ -16166,9 +18065,16 @@ export type DeleteInvitePayloadSelect = { select: InviteEdgeSelect; }; }; +/** The output of our create `ClaimedInvite` mutation. */ export interface CreateClaimedInvitePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `ClaimedInvite` that was created by this mutation. */ claimedInvite?: ClaimedInvite | null; + /** An edge for our `ClaimedInvite`. May be used by Relay 1. */ claimedInviteEdge?: ClaimedInviteEdge | null; } export type CreateClaimedInvitePayloadSelect = { @@ -16180,9 +18086,16 @@ export type CreateClaimedInvitePayloadSelect = { select: ClaimedInviteEdgeSelect; }; }; +/** The output of our update `ClaimedInvite` mutation. */ export interface UpdateClaimedInvitePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `ClaimedInvite` that was updated by this mutation. */ claimedInvite?: ClaimedInvite | null; + /** An edge for our `ClaimedInvite`. May be used by Relay 1. */ claimedInviteEdge?: ClaimedInviteEdge | null; } export type UpdateClaimedInvitePayloadSelect = { @@ -16194,9 +18107,16 @@ export type UpdateClaimedInvitePayloadSelect = { select: ClaimedInviteEdgeSelect; }; }; +/** The output of our delete `ClaimedInvite` mutation. */ export interface DeleteClaimedInvitePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `ClaimedInvite` that was deleted by this mutation. */ claimedInvite?: ClaimedInvite | null; + /** An edge for our `ClaimedInvite`. May be used by Relay 1. */ claimedInviteEdge?: ClaimedInviteEdge | null; } export type DeleteClaimedInvitePayloadSelect = { @@ -16208,9 +18128,16 @@ export type DeleteClaimedInvitePayloadSelect = { select: ClaimedInviteEdgeSelect; }; }; +/** The output of our create `OrgInvite` mutation. */ export interface CreateOrgInvitePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgInvite` that was created by this mutation. */ orgInvite?: OrgInvite | null; + /** An edge for our `OrgInvite`. May be used by Relay 1. */ orgInviteEdge?: OrgInviteEdge | null; } export type CreateOrgInvitePayloadSelect = { @@ -16222,9 +18149,16 @@ export type CreateOrgInvitePayloadSelect = { select: OrgInviteEdgeSelect; }; }; +/** The output of our update `OrgInvite` mutation. */ export interface UpdateOrgInvitePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgInvite` that was updated by this mutation. */ orgInvite?: OrgInvite | null; + /** An edge for our `OrgInvite`. May be used by Relay 1. */ orgInviteEdge?: OrgInviteEdge | null; } export type UpdateOrgInvitePayloadSelect = { @@ -16236,9 +18170,16 @@ export type UpdateOrgInvitePayloadSelect = { select: OrgInviteEdgeSelect; }; }; +/** The output of our delete `OrgInvite` mutation. */ export interface DeleteOrgInvitePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgInvite` that was deleted by this mutation. */ orgInvite?: OrgInvite | null; + /** An edge for our `OrgInvite`. May be used by Relay 1. */ orgInviteEdge?: OrgInviteEdge | null; } export type DeleteOrgInvitePayloadSelect = { @@ -16250,9 +18191,16 @@ export type DeleteOrgInvitePayloadSelect = { select: OrgInviteEdgeSelect; }; }; +/** The output of our create `OrgClaimedInvite` mutation. */ export interface CreateOrgClaimedInvitePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgClaimedInvite` that was created by this mutation. */ orgClaimedInvite?: OrgClaimedInvite | null; + /** An edge for our `OrgClaimedInvite`. May be used by Relay 1. */ orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; } export type CreateOrgClaimedInvitePayloadSelect = { @@ -16264,9 +18212,16 @@ export type CreateOrgClaimedInvitePayloadSelect = { select: OrgClaimedInviteEdgeSelect; }; }; +/** The output of our update `OrgClaimedInvite` mutation. */ export interface UpdateOrgClaimedInvitePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgClaimedInvite` that was updated by this mutation. */ orgClaimedInvite?: OrgClaimedInvite | null; + /** An edge for our `OrgClaimedInvite`. May be used by Relay 1. */ orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; } export type UpdateOrgClaimedInvitePayloadSelect = { @@ -16278,9 +18233,16 @@ export type UpdateOrgClaimedInvitePayloadSelect = { select: OrgClaimedInviteEdgeSelect; }; }; +/** The output of our delete `OrgClaimedInvite` mutation. */ export interface DeleteOrgClaimedInvitePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgClaimedInvite` that was deleted by this mutation. */ orgClaimedInvite?: OrgClaimedInvite | null; + /** An edge for our `OrgClaimedInvite`. May be used by Relay 1. */ orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; } export type DeleteOrgClaimedInvitePayloadSelect = { @@ -16292,9 +18254,16 @@ export type DeleteOrgClaimedInvitePayloadSelect = { select: OrgClaimedInviteEdgeSelect; }; }; +/** The output of our create `AppPermissionDefault` mutation. */ export interface CreateAppPermissionDefaultPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppPermissionDefault` that was created by this mutation. */ appPermissionDefault?: AppPermissionDefault | null; + /** An edge for our `AppPermissionDefault`. May be used by Relay 1. */ appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; } export type CreateAppPermissionDefaultPayloadSelect = { @@ -16306,9 +18275,16 @@ export type CreateAppPermissionDefaultPayloadSelect = { select: AppPermissionDefaultEdgeSelect; }; }; +/** The output of our update `AppPermissionDefault` mutation. */ export interface UpdateAppPermissionDefaultPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppPermissionDefault` that was updated by this mutation. */ appPermissionDefault?: AppPermissionDefault | null; + /** An edge for our `AppPermissionDefault`. May be used by Relay 1. */ appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; } export type UpdateAppPermissionDefaultPayloadSelect = { @@ -16320,9 +18296,16 @@ export type UpdateAppPermissionDefaultPayloadSelect = { select: AppPermissionDefaultEdgeSelect; }; }; +/** The output of our delete `AppPermissionDefault` mutation. */ export interface DeleteAppPermissionDefaultPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppPermissionDefault` that was deleted by this mutation. */ appPermissionDefault?: AppPermissionDefault | null; + /** An edge for our `AppPermissionDefault`. May be used by Relay 1. */ appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; } export type DeleteAppPermissionDefaultPayloadSelect = { @@ -16334,9 +18317,16 @@ export type DeleteAppPermissionDefaultPayloadSelect = { select: AppPermissionDefaultEdgeSelect; }; }; +/** The output of our create `Ref` mutation. */ export interface CreateRefPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Ref` that was created by this mutation. */ ref?: Ref | null; + /** An edge for our `Ref`. May be used by Relay 1. */ refEdge?: RefEdge | null; } export type CreateRefPayloadSelect = { @@ -16348,9 +18338,16 @@ export type CreateRefPayloadSelect = { select: RefEdgeSelect; }; }; +/** The output of our update `Ref` mutation. */ export interface UpdateRefPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Ref` that was updated by this mutation. */ ref?: Ref | null; + /** An edge for our `Ref`. May be used by Relay 1. */ refEdge?: RefEdge | null; } export type UpdateRefPayloadSelect = { @@ -16362,9 +18359,16 @@ export type UpdateRefPayloadSelect = { select: RefEdgeSelect; }; }; +/** The output of our delete `Ref` mutation. */ export interface DeleteRefPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Ref` that was deleted by this mutation. */ ref?: Ref | null; + /** An edge for our `Ref`. May be used by Relay 1. */ refEdge?: RefEdge | null; } export type DeleteRefPayloadSelect = { @@ -16376,9 +18380,16 @@ export type DeleteRefPayloadSelect = { select: RefEdgeSelect; }; }; +/** The output of our create `Store` mutation. */ export interface CreateStorePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Store` that was created by this mutation. */ store?: Store | null; + /** An edge for our `Store`. May be used by Relay 1. */ storeEdge?: StoreEdge | null; } export type CreateStorePayloadSelect = { @@ -16390,9 +18401,16 @@ export type CreateStorePayloadSelect = { select: StoreEdgeSelect; }; }; +/** The output of our update `Store` mutation. */ export interface UpdateStorePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Store` that was updated by this mutation. */ store?: Store | null; + /** An edge for our `Store`. May be used by Relay 1. */ storeEdge?: StoreEdge | null; } export type UpdateStorePayloadSelect = { @@ -16404,9 +18422,16 @@ export type UpdateStorePayloadSelect = { select: StoreEdgeSelect; }; }; +/** The output of our delete `Store` mutation. */ export interface DeleteStorePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Store` that was deleted by this mutation. */ store?: Store | null; + /** An edge for our `Store`. May be used by Relay 1. */ storeEdge?: StoreEdge | null; } export type DeleteStorePayloadSelect = { @@ -16418,9 +18443,16 @@ export type DeleteStorePayloadSelect = { select: StoreEdgeSelect; }; }; +/** The output of our create `RoleType` mutation. */ export interface CreateRoleTypePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `RoleType` that was created by this mutation. */ roleType?: RoleType | null; + /** An edge for our `RoleType`. May be used by Relay 1. */ roleTypeEdge?: RoleTypeEdge | null; } export type CreateRoleTypePayloadSelect = { @@ -16432,9 +18464,16 @@ export type CreateRoleTypePayloadSelect = { select: RoleTypeEdgeSelect; }; }; +/** The output of our update `RoleType` mutation. */ export interface UpdateRoleTypePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `RoleType` that was updated by this mutation. */ roleType?: RoleType | null; + /** An edge for our `RoleType`. May be used by Relay 1. */ roleTypeEdge?: RoleTypeEdge | null; } export type UpdateRoleTypePayloadSelect = { @@ -16446,9 +18485,16 @@ export type UpdateRoleTypePayloadSelect = { select: RoleTypeEdgeSelect; }; }; +/** The output of our delete `RoleType` mutation. */ export interface DeleteRoleTypePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `RoleType` that was deleted by this mutation. */ roleType?: RoleType | null; + /** An edge for our `RoleType`. May be used by Relay 1. */ roleTypeEdge?: RoleTypeEdge | null; } export type DeleteRoleTypePayloadSelect = { @@ -16460,9 +18506,16 @@ export type DeleteRoleTypePayloadSelect = { select: RoleTypeEdgeSelect; }; }; +/** The output of our create `OrgPermissionDefault` mutation. */ export interface CreateOrgPermissionDefaultPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgPermissionDefault` that was created by this mutation. */ orgPermissionDefault?: OrgPermissionDefault | null; + /** An edge for our `OrgPermissionDefault`. May be used by Relay 1. */ orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; } export type CreateOrgPermissionDefaultPayloadSelect = { @@ -16474,9 +18527,16 @@ export type CreateOrgPermissionDefaultPayloadSelect = { select: OrgPermissionDefaultEdgeSelect; }; }; +/** The output of our update `OrgPermissionDefault` mutation. */ export interface UpdateOrgPermissionDefaultPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgPermissionDefault` that was updated by this mutation. */ orgPermissionDefault?: OrgPermissionDefault | null; + /** An edge for our `OrgPermissionDefault`. May be used by Relay 1. */ orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; } export type UpdateOrgPermissionDefaultPayloadSelect = { @@ -16488,9 +18548,16 @@ export type UpdateOrgPermissionDefaultPayloadSelect = { select: OrgPermissionDefaultEdgeSelect; }; }; +/** The output of our delete `OrgPermissionDefault` mutation. */ export interface DeleteOrgPermissionDefaultPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgPermissionDefault` that was deleted by this mutation. */ orgPermissionDefault?: OrgPermissionDefault | null; + /** An edge for our `OrgPermissionDefault`. May be used by Relay 1. */ orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; } export type DeleteOrgPermissionDefaultPayloadSelect = { @@ -16502,9 +18569,16 @@ export type DeleteOrgPermissionDefaultPayloadSelect = { select: OrgPermissionDefaultEdgeSelect; }; }; +/** The output of our create `AppLimitDefault` mutation. */ export interface CreateAppLimitDefaultPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppLimitDefault` that was created by this mutation. */ appLimitDefault?: AppLimitDefault | null; + /** An edge for our `AppLimitDefault`. May be used by Relay 1. */ appLimitDefaultEdge?: AppLimitDefaultEdge | null; } export type CreateAppLimitDefaultPayloadSelect = { @@ -16516,9 +18590,16 @@ export type CreateAppLimitDefaultPayloadSelect = { select: AppLimitDefaultEdgeSelect; }; }; +/** The output of our update `AppLimitDefault` mutation. */ export interface UpdateAppLimitDefaultPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppLimitDefault` that was updated by this mutation. */ appLimitDefault?: AppLimitDefault | null; + /** An edge for our `AppLimitDefault`. May be used by Relay 1. */ appLimitDefaultEdge?: AppLimitDefaultEdge | null; } export type UpdateAppLimitDefaultPayloadSelect = { @@ -16530,9 +18611,16 @@ export type UpdateAppLimitDefaultPayloadSelect = { select: AppLimitDefaultEdgeSelect; }; }; +/** The output of our delete `AppLimitDefault` mutation. */ export interface DeleteAppLimitDefaultPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppLimitDefault` that was deleted by this mutation. */ appLimitDefault?: AppLimitDefault | null; + /** An edge for our `AppLimitDefault`. May be used by Relay 1. */ appLimitDefaultEdge?: AppLimitDefaultEdge | null; } export type DeleteAppLimitDefaultPayloadSelect = { @@ -16544,9 +18632,16 @@ export type DeleteAppLimitDefaultPayloadSelect = { select: AppLimitDefaultEdgeSelect; }; }; +/** The output of our create `OrgLimitDefault` mutation. */ export interface CreateOrgLimitDefaultPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgLimitDefault` that was created by this mutation. */ orgLimitDefault?: OrgLimitDefault | null; + /** An edge for our `OrgLimitDefault`. May be used by Relay 1. */ orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; } export type CreateOrgLimitDefaultPayloadSelect = { @@ -16558,9 +18653,16 @@ export type CreateOrgLimitDefaultPayloadSelect = { select: OrgLimitDefaultEdgeSelect; }; }; +/** The output of our update `OrgLimitDefault` mutation. */ export interface UpdateOrgLimitDefaultPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgLimitDefault` that was updated by this mutation. */ orgLimitDefault?: OrgLimitDefault | null; + /** An edge for our `OrgLimitDefault`. May be used by Relay 1. */ orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; } export type UpdateOrgLimitDefaultPayloadSelect = { @@ -16572,9 +18674,16 @@ export type UpdateOrgLimitDefaultPayloadSelect = { select: OrgLimitDefaultEdgeSelect; }; }; +/** The output of our delete `OrgLimitDefault` mutation. */ export interface DeleteOrgLimitDefaultPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgLimitDefault` that was deleted by this mutation. */ orgLimitDefault?: OrgLimitDefault | null; + /** An edge for our `OrgLimitDefault`. May be used by Relay 1. */ orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; } export type DeleteOrgLimitDefaultPayloadSelect = { @@ -16586,9 +18695,16 @@ export type DeleteOrgLimitDefaultPayloadSelect = { select: OrgLimitDefaultEdgeSelect; }; }; +/** The output of our create `CryptoAddress` mutation. */ export interface CreateCryptoAddressPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `CryptoAddress` that was created by this mutation. */ cryptoAddress?: CryptoAddress | null; + /** An edge for our `CryptoAddress`. May be used by Relay 1. */ cryptoAddressEdge?: CryptoAddressEdge | null; } export type CreateCryptoAddressPayloadSelect = { @@ -16600,9 +18716,16 @@ export type CreateCryptoAddressPayloadSelect = { select: CryptoAddressEdgeSelect; }; }; +/** The output of our update `CryptoAddress` mutation. */ export interface UpdateCryptoAddressPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `CryptoAddress` that was updated by this mutation. */ cryptoAddress?: CryptoAddress | null; + /** An edge for our `CryptoAddress`. May be used by Relay 1. */ cryptoAddressEdge?: CryptoAddressEdge | null; } export type UpdateCryptoAddressPayloadSelect = { @@ -16614,9 +18737,16 @@ export type UpdateCryptoAddressPayloadSelect = { select: CryptoAddressEdgeSelect; }; }; +/** The output of our delete `CryptoAddress` mutation. */ export interface DeleteCryptoAddressPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `CryptoAddress` that was deleted by this mutation. */ cryptoAddress?: CryptoAddress | null; + /** An edge for our `CryptoAddress`. May be used by Relay 1. */ cryptoAddressEdge?: CryptoAddressEdge | null; } export type DeleteCryptoAddressPayloadSelect = { @@ -16628,9 +18758,16 @@ export type DeleteCryptoAddressPayloadSelect = { select: CryptoAddressEdgeSelect; }; }; +/** The output of our create `MembershipType` mutation. */ export interface CreateMembershipTypePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `MembershipType` that was created by this mutation. */ membershipType?: MembershipType | null; + /** An edge for our `MembershipType`. May be used by Relay 1. */ membershipTypeEdge?: MembershipTypeEdge | null; } export type CreateMembershipTypePayloadSelect = { @@ -16642,9 +18779,16 @@ export type CreateMembershipTypePayloadSelect = { select: MembershipTypeEdgeSelect; }; }; +/** The output of our update `MembershipType` mutation. */ export interface UpdateMembershipTypePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `MembershipType` that was updated by this mutation. */ membershipType?: MembershipType | null; + /** An edge for our `MembershipType`. May be used by Relay 1. */ membershipTypeEdge?: MembershipTypeEdge | null; } export type UpdateMembershipTypePayloadSelect = { @@ -16656,9 +18800,16 @@ export type UpdateMembershipTypePayloadSelect = { select: MembershipTypeEdgeSelect; }; }; +/** The output of our delete `MembershipType` mutation. */ export interface DeleteMembershipTypePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `MembershipType` that was deleted by this mutation. */ membershipType?: MembershipType | null; + /** An edge for our `MembershipType`. May be used by Relay 1. */ membershipTypeEdge?: MembershipTypeEdge | null; } export type DeleteMembershipTypePayloadSelect = { @@ -16670,9 +18821,16 @@ export type DeleteMembershipTypePayloadSelect = { select: MembershipTypeEdgeSelect; }; }; +/** The output of our create `ConnectedAccount` mutation. */ export interface CreateConnectedAccountPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `ConnectedAccount` that was created by this mutation. */ connectedAccount?: ConnectedAccount | null; + /** An edge for our `ConnectedAccount`. May be used by Relay 1. */ connectedAccountEdge?: ConnectedAccountEdge | null; } export type CreateConnectedAccountPayloadSelect = { @@ -16684,9 +18842,16 @@ export type CreateConnectedAccountPayloadSelect = { select: ConnectedAccountEdgeSelect; }; }; +/** The output of our update `ConnectedAccount` mutation. */ export interface UpdateConnectedAccountPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `ConnectedAccount` that was updated by this mutation. */ connectedAccount?: ConnectedAccount | null; + /** An edge for our `ConnectedAccount`. May be used by Relay 1. */ connectedAccountEdge?: ConnectedAccountEdge | null; } export type UpdateConnectedAccountPayloadSelect = { @@ -16698,9 +18863,16 @@ export type UpdateConnectedAccountPayloadSelect = { select: ConnectedAccountEdgeSelect; }; }; +/** The output of our delete `ConnectedAccount` mutation. */ export interface DeleteConnectedAccountPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `ConnectedAccount` that was deleted by this mutation. */ connectedAccount?: ConnectedAccount | null; + /** An edge for our `ConnectedAccount`. May be used by Relay 1. */ connectedAccountEdge?: ConnectedAccountEdge | null; } export type DeleteConnectedAccountPayloadSelect = { @@ -16712,9 +18884,16 @@ export type DeleteConnectedAccountPayloadSelect = { select: ConnectedAccountEdgeSelect; }; }; +/** The output of our create `PhoneNumber` mutation. */ export interface CreatePhoneNumberPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `PhoneNumber` that was created by this mutation. */ phoneNumber?: PhoneNumber | null; + /** An edge for our `PhoneNumber`. May be used by Relay 1. */ phoneNumberEdge?: PhoneNumberEdge | null; } export type CreatePhoneNumberPayloadSelect = { @@ -16726,9 +18905,16 @@ export type CreatePhoneNumberPayloadSelect = { select: PhoneNumberEdgeSelect; }; }; +/** The output of our update `PhoneNumber` mutation. */ export interface UpdatePhoneNumberPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `PhoneNumber` that was updated by this mutation. */ phoneNumber?: PhoneNumber | null; + /** An edge for our `PhoneNumber`. May be used by Relay 1. */ phoneNumberEdge?: PhoneNumberEdge | null; } export type UpdatePhoneNumberPayloadSelect = { @@ -16740,9 +18926,16 @@ export type UpdatePhoneNumberPayloadSelect = { select: PhoneNumberEdgeSelect; }; }; +/** The output of our delete `PhoneNumber` mutation. */ export interface DeletePhoneNumberPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `PhoneNumber` that was deleted by this mutation. */ phoneNumber?: PhoneNumber | null; + /** An edge for our `PhoneNumber`. May be used by Relay 1. */ phoneNumberEdge?: PhoneNumberEdge | null; } export type DeletePhoneNumberPayloadSelect = { @@ -16754,9 +18947,16 @@ export type DeletePhoneNumberPayloadSelect = { select: PhoneNumberEdgeSelect; }; }; +/** The output of our create `AppMembershipDefault` mutation. */ export interface CreateAppMembershipDefaultPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppMembershipDefault` that was created by this mutation. */ appMembershipDefault?: AppMembershipDefault | null; + /** An edge for our `AppMembershipDefault`. May be used by Relay 1. */ appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; } export type CreateAppMembershipDefaultPayloadSelect = { @@ -16768,9 +18968,16 @@ export type CreateAppMembershipDefaultPayloadSelect = { select: AppMembershipDefaultEdgeSelect; }; }; +/** The output of our update `AppMembershipDefault` mutation. */ export interface UpdateAppMembershipDefaultPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppMembershipDefault` that was updated by this mutation. */ appMembershipDefault?: AppMembershipDefault | null; + /** An edge for our `AppMembershipDefault`. May be used by Relay 1. */ appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; } export type UpdateAppMembershipDefaultPayloadSelect = { @@ -16782,9 +18989,16 @@ export type UpdateAppMembershipDefaultPayloadSelect = { select: AppMembershipDefaultEdgeSelect; }; }; +/** The output of our delete `AppMembershipDefault` mutation. */ export interface DeleteAppMembershipDefaultPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppMembershipDefault` that was deleted by this mutation. */ appMembershipDefault?: AppMembershipDefault | null; + /** An edge for our `AppMembershipDefault`. May be used by Relay 1. */ appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; } export type DeleteAppMembershipDefaultPayloadSelect = { @@ -16796,9 +19010,16 @@ export type DeleteAppMembershipDefaultPayloadSelect = { select: AppMembershipDefaultEdgeSelect; }; }; +/** The output of our create `NodeTypeRegistry` mutation. */ export interface CreateNodeTypeRegistryPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `NodeTypeRegistry` that was created by this mutation. */ nodeTypeRegistry?: NodeTypeRegistry | null; + /** An edge for our `NodeTypeRegistry`. May be used by Relay 1. */ nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; } export type CreateNodeTypeRegistryPayloadSelect = { @@ -16810,9 +19031,16 @@ export type CreateNodeTypeRegistryPayloadSelect = { select: NodeTypeRegistryEdgeSelect; }; }; +/** The output of our update `NodeTypeRegistry` mutation. */ export interface UpdateNodeTypeRegistryPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `NodeTypeRegistry` that was updated by this mutation. */ nodeTypeRegistry?: NodeTypeRegistry | null; + /** An edge for our `NodeTypeRegistry`. May be used by Relay 1. */ nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; } export type UpdateNodeTypeRegistryPayloadSelect = { @@ -16824,9 +19052,16 @@ export type UpdateNodeTypeRegistryPayloadSelect = { select: NodeTypeRegistryEdgeSelect; }; }; +/** The output of our delete `NodeTypeRegistry` mutation. */ export interface DeleteNodeTypeRegistryPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `NodeTypeRegistry` that was deleted by this mutation. */ nodeTypeRegistry?: NodeTypeRegistry | null; + /** An edge for our `NodeTypeRegistry`. May be used by Relay 1. */ nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; } export type DeleteNodeTypeRegistryPayloadSelect = { @@ -16838,9 +19073,16 @@ export type DeleteNodeTypeRegistryPayloadSelect = { select: NodeTypeRegistryEdgeSelect; }; }; +/** The output of our create `Commit` mutation. */ export interface CreateCommitPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Commit` that was created by this mutation. */ commit?: Commit | null; + /** An edge for our `Commit`. May be used by Relay 1. */ commitEdge?: CommitEdge | null; } export type CreateCommitPayloadSelect = { @@ -16852,9 +19094,16 @@ export type CreateCommitPayloadSelect = { select: CommitEdgeSelect; }; }; +/** The output of our update `Commit` mutation. */ export interface UpdateCommitPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Commit` that was updated by this mutation. */ commit?: Commit | null; + /** An edge for our `Commit`. May be used by Relay 1. */ commitEdge?: CommitEdge | null; } export type UpdateCommitPayloadSelect = { @@ -16866,9 +19115,16 @@ export type UpdateCommitPayloadSelect = { select: CommitEdgeSelect; }; }; +/** The output of our delete `Commit` mutation. */ export interface DeleteCommitPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Commit` that was deleted by this mutation. */ commit?: Commit | null; + /** An edge for our `Commit`. May be used by Relay 1. */ commitEdge?: CommitEdge | null; } export type DeleteCommitPayloadSelect = { @@ -16880,9 +19136,16 @@ export type DeleteCommitPayloadSelect = { select: CommitEdgeSelect; }; }; +/** The output of our create `OrgMembershipDefault` mutation. */ export interface CreateOrgMembershipDefaultPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgMembershipDefault` that was created by this mutation. */ orgMembershipDefault?: OrgMembershipDefault | null; + /** An edge for our `OrgMembershipDefault`. May be used by Relay 1. */ orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; } export type CreateOrgMembershipDefaultPayloadSelect = { @@ -16894,9 +19157,16 @@ export type CreateOrgMembershipDefaultPayloadSelect = { select: OrgMembershipDefaultEdgeSelect; }; }; +/** The output of our update `OrgMembershipDefault` mutation. */ export interface UpdateOrgMembershipDefaultPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgMembershipDefault` that was updated by this mutation. */ orgMembershipDefault?: OrgMembershipDefault | null; + /** An edge for our `OrgMembershipDefault`. May be used by Relay 1. */ orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; } export type UpdateOrgMembershipDefaultPayloadSelect = { @@ -16908,9 +19178,16 @@ export type UpdateOrgMembershipDefaultPayloadSelect = { select: OrgMembershipDefaultEdgeSelect; }; }; +/** The output of our delete `OrgMembershipDefault` mutation. */ export interface DeleteOrgMembershipDefaultPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `OrgMembershipDefault` that was deleted by this mutation. */ orgMembershipDefault?: OrgMembershipDefault | null; + /** An edge for our `OrgMembershipDefault`. May be used by Relay 1. */ orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; } export type DeleteOrgMembershipDefaultPayloadSelect = { @@ -16922,9 +19199,16 @@ export type DeleteOrgMembershipDefaultPayloadSelect = { select: OrgMembershipDefaultEdgeSelect; }; }; +/** The output of our create `Email` mutation. */ export interface CreateEmailPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Email` that was created by this mutation. */ email?: Email | null; + /** An edge for our `Email`. May be used by Relay 1. */ emailEdge?: EmailEdge | null; } export type CreateEmailPayloadSelect = { @@ -16936,9 +19220,16 @@ export type CreateEmailPayloadSelect = { select: EmailEdgeSelect; }; }; +/** The output of our update `Email` mutation. */ export interface UpdateEmailPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Email` that was updated by this mutation. */ email?: Email | null; + /** An edge for our `Email`. May be used by Relay 1. */ emailEdge?: EmailEdge | null; } export type UpdateEmailPayloadSelect = { @@ -16950,9 +19241,16 @@ export type UpdateEmailPayloadSelect = { select: EmailEdgeSelect; }; }; +/** The output of our delete `Email` mutation. */ export interface DeleteEmailPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `Email` that was deleted by this mutation. */ email?: Email | null; + /** An edge for our `Email`. May be used by Relay 1. */ emailEdge?: EmailEdge | null; } export type DeleteEmailPayloadSelect = { @@ -16964,9 +19262,16 @@ export type DeleteEmailPayloadSelect = { select: EmailEdgeSelect; }; }; +/** The output of our create `AuditLog` mutation. */ export interface CreateAuditLogPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AuditLog` that was created by this mutation. */ auditLog?: AuditLog | null; + /** An edge for our `AuditLog`. May be used by Relay 1. */ auditLogEdge?: AuditLogEdge | null; } export type CreateAuditLogPayloadSelect = { @@ -16978,9 +19283,16 @@ export type CreateAuditLogPayloadSelect = { select: AuditLogEdgeSelect; }; }; +/** The output of our update `AuditLog` mutation. */ export interface UpdateAuditLogPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AuditLog` that was updated by this mutation. */ auditLog?: AuditLog | null; + /** An edge for our `AuditLog`. May be used by Relay 1. */ auditLogEdge?: AuditLogEdge | null; } export type UpdateAuditLogPayloadSelect = { @@ -16992,9 +19304,16 @@ export type UpdateAuditLogPayloadSelect = { select: AuditLogEdgeSelect; }; }; +/** The output of our delete `AuditLog` mutation. */ export interface DeleteAuditLogPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AuditLog` that was deleted by this mutation. */ auditLog?: AuditLog | null; + /** An edge for our `AuditLog`. May be used by Relay 1. */ auditLogEdge?: AuditLogEdge | null; } export type DeleteAuditLogPayloadSelect = { @@ -17006,9 +19325,16 @@ export type DeleteAuditLogPayloadSelect = { select: AuditLogEdgeSelect; }; }; +/** The output of our create `AppLevel` mutation. */ export interface CreateAppLevelPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppLevel` that was created by this mutation. */ appLevel?: AppLevel | null; + /** An edge for our `AppLevel`. May be used by Relay 1. */ appLevelEdge?: AppLevelEdge | null; } export type CreateAppLevelPayloadSelect = { @@ -17020,9 +19346,16 @@ export type CreateAppLevelPayloadSelect = { select: AppLevelEdgeSelect; }; }; +/** The output of our update `AppLevel` mutation. */ export interface UpdateAppLevelPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppLevel` that was updated by this mutation. */ appLevel?: AppLevel | null; + /** An edge for our `AppLevel`. May be used by Relay 1. */ appLevelEdge?: AppLevelEdge | null; } export type UpdateAppLevelPayloadSelect = { @@ -17034,9 +19367,16 @@ export type UpdateAppLevelPayloadSelect = { select: AppLevelEdgeSelect; }; }; +/** The output of our delete `AppLevel` mutation. */ export interface DeleteAppLevelPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppLevel` that was deleted by this mutation. */ appLevel?: AppLevel | null; + /** An edge for our `AppLevel`. May be used by Relay 1. */ appLevelEdge?: AppLevelEdge | null; } export type DeleteAppLevelPayloadSelect = { @@ -17048,8 +19388,14 @@ export type DeleteAppLevelPayloadSelect = { select: AppLevelEdgeSelect; }; }; +/** The output of our create `SqlMigration` mutation. */ export interface CreateSqlMigrationPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `SqlMigration` that was created by this mutation. */ sqlMigration?: SqlMigration | null; } export type CreateSqlMigrationPayloadSelect = { @@ -17058,8 +19404,14 @@ export type CreateSqlMigrationPayloadSelect = { select: SqlMigrationSelect; }; }; +/** The output of our create `AstMigration` mutation. */ export interface CreateAstMigrationPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AstMigration` that was created by this mutation. */ astMigration?: AstMigration | null; } export type CreateAstMigrationPayloadSelect = { @@ -17068,9 +19420,16 @@ export type CreateAstMigrationPayloadSelect = { select: AstMigrationSelect; }; }; +/** The output of our create `AppMembership` mutation. */ export interface CreateAppMembershipPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppMembership` that was created by this mutation. */ appMembership?: AppMembership | null; + /** An edge for our `AppMembership`. May be used by Relay 1. */ appMembershipEdge?: AppMembershipEdge | null; } export type CreateAppMembershipPayloadSelect = { @@ -17082,9 +19441,16 @@ export type CreateAppMembershipPayloadSelect = { select: AppMembershipEdgeSelect; }; }; +/** The output of our update `AppMembership` mutation. */ export interface UpdateAppMembershipPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppMembership` that was updated by this mutation. */ appMembership?: AppMembership | null; + /** An edge for our `AppMembership`. May be used by Relay 1. */ appMembershipEdge?: AppMembershipEdge | null; } export type UpdateAppMembershipPayloadSelect = { @@ -17096,9 +19462,16 @@ export type UpdateAppMembershipPayloadSelect = { select: AppMembershipEdgeSelect; }; }; +/** The output of our delete `AppMembership` mutation. */ export interface DeleteAppMembershipPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `AppMembership` that was deleted by this mutation. */ appMembership?: AppMembership | null; + /** An edge for our `AppMembership`. May be used by Relay 1. */ appMembershipEdge?: AppMembershipEdge | null; } export type DeleteAppMembershipPayloadSelect = { @@ -17110,9 +19483,16 @@ export type DeleteAppMembershipPayloadSelect = { select: AppMembershipEdgeSelect; }; }; +/** The output of our create `User` mutation. */ export interface CreateUserPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `User` that was created by this mutation. */ user?: User | null; + /** An edge for our `User`. May be used by Relay 1. */ userEdge?: UserEdge | null; } export type CreateUserPayloadSelect = { @@ -17124,9 +19504,16 @@ export type CreateUserPayloadSelect = { select: UserEdgeSelect; }; }; +/** The output of our update `User` mutation. */ export interface UpdateUserPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `User` that was updated by this mutation. */ user?: User | null; + /** An edge for our `User`. May be used by Relay 1. */ userEdge?: UserEdge | null; } export type UpdateUserPayloadSelect = { @@ -17138,9 +19525,16 @@ export type UpdateUserPayloadSelect = { select: UserEdgeSelect; }; }; +/** The output of our delete `User` mutation. */ export interface DeleteUserPayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `User` that was deleted by this mutation. */ user?: User | null; + /** An edge for our `User`. May be used by Relay 1. */ userEdge?: UserEdge | null; } export type DeleteUserPayloadSelect = { @@ -17152,9 +19546,16 @@ export type DeleteUserPayloadSelect = { select: UserEdgeSelect; }; }; +/** The output of our create `HierarchyModule` mutation. */ export interface CreateHierarchyModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `HierarchyModule` that was created by this mutation. */ hierarchyModule?: HierarchyModule | null; + /** An edge for our `HierarchyModule`. May be used by Relay 1. */ hierarchyModuleEdge?: HierarchyModuleEdge | null; } export type CreateHierarchyModulePayloadSelect = { @@ -17166,9 +19567,16 @@ export type CreateHierarchyModulePayloadSelect = { select: HierarchyModuleEdgeSelect; }; }; +/** The output of our update `HierarchyModule` mutation. */ export interface UpdateHierarchyModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `HierarchyModule` that was updated by this mutation. */ hierarchyModule?: HierarchyModule | null; + /** An edge for our `HierarchyModule`. May be used by Relay 1. */ hierarchyModuleEdge?: HierarchyModuleEdge | null; } export type UpdateHierarchyModulePayloadSelect = { @@ -17180,9 +19588,16 @@ export type UpdateHierarchyModulePayloadSelect = { select: HierarchyModuleEdgeSelect; }; }; +/** The output of our delete `HierarchyModule` mutation. */ export interface DeleteHierarchyModulePayload { + /** + * The exact same `clientMutationId` that was provided in the mutation input, + * unchanged and unused. May be used by a client to track mutations. + */ clientMutationId?: string | null; + /** The `HierarchyModule` that was deleted by this mutation. */ hierarchyModule?: HierarchyModule | null; + /** An edge for our `HierarchyModule`. May be used by Relay 1. */ hierarchyModuleEdge?: HierarchyModuleEdge | null; } export type DeleteHierarchyModulePayloadSelect = { @@ -17194,8 +19609,11 @@ export type DeleteHierarchyModulePayloadSelect = { select: HierarchyModuleEdgeSelect; }; }; +/** A `AppPermission` edge in the connection. */ export interface AppPermissionEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `AppPermission` at the end of the edge. */ node?: AppPermission | null; } export type AppPermissionEdgeSelect = { @@ -17204,10 +19622,15 @@ export type AppPermissionEdgeSelect = { select: AppPermissionSelect; }; }; +/** Information about pagination in a connection. */ export interface PageInfo { + /** When paginating forwards, are there more items? */ hasNextPage: boolean; + /** When paginating backwards, are there more items? */ hasPreviousPage: boolean; + /** When paginating backwards, the cursor to continue. */ startCursor?: string | null; + /** When paginating forwards, the cursor to continue. */ endCursor?: string | null; } export type PageInfoSelect = { @@ -17216,8 +19639,11 @@ export type PageInfoSelect = { startCursor?: boolean; endCursor?: boolean; }; +/** A `OrgPermission` edge in the connection. */ export interface OrgPermissionEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `OrgPermission` at the end of the edge. */ node?: OrgPermission | null; } export type OrgPermissionEdgeSelect = { @@ -17226,8 +19652,11 @@ export type OrgPermissionEdgeSelect = { select: OrgPermissionSelect; }; }; +/** A `Object` edge in the connection. */ export interface ObjectEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `Object` at the end of the edge. */ node?: Object | null; } export type ObjectEdgeSelect = { @@ -17236,8 +19665,11 @@ export type ObjectEdgeSelect = { select: ObjectSelect; }; }; +/** A `AppLevelRequirement` edge in the connection. */ export interface AppLevelRequirementEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `AppLevelRequirement` at the end of the edge. */ node?: AppLevelRequirement | null; } export type AppLevelRequirementEdgeSelect = { @@ -17364,8 +19796,11 @@ export type SessionSelect = { createdAt?: boolean; updatedAt?: boolean; }; +/** A `Database` edge in the connection. */ export interface DatabaseEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `Database` at the end of the edge. */ node?: Database | null; } export type DatabaseEdgeSelect = { @@ -17374,8 +19809,11 @@ export type DatabaseEdgeSelect = { select: DatabaseSelect; }; }; +/** A `Schema` edge in the connection. */ export interface SchemaEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `Schema` at the end of the edge. */ node?: Schema | null; } export type SchemaEdgeSelect = { @@ -17384,8 +19822,11 @@ export type SchemaEdgeSelect = { select: SchemaSelect; }; }; +/** A `Table` edge in the connection. */ export interface TableEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `Table` at the end of the edge. */ node?: Table | null; } export type TableEdgeSelect = { @@ -17394,8 +19835,11 @@ export type TableEdgeSelect = { select: TableSelect; }; }; +/** A `CheckConstraint` edge in the connection. */ export interface CheckConstraintEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `CheckConstraint` at the end of the edge. */ node?: CheckConstraint | null; } export type CheckConstraintEdgeSelect = { @@ -17404,8 +19848,11 @@ export type CheckConstraintEdgeSelect = { select: CheckConstraintSelect; }; }; +/** A `Field` edge in the connection. */ export interface FieldEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `Field` at the end of the edge. */ node?: Field | null; } export type FieldEdgeSelect = { @@ -17414,8 +19861,11 @@ export type FieldEdgeSelect = { select: FieldSelect; }; }; +/** A `ForeignKeyConstraint` edge in the connection. */ export interface ForeignKeyConstraintEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `ForeignKeyConstraint` at the end of the edge. */ node?: ForeignKeyConstraint | null; } export type ForeignKeyConstraintEdgeSelect = { @@ -17424,8 +19874,11 @@ export type ForeignKeyConstraintEdgeSelect = { select: ForeignKeyConstraintSelect; }; }; +/** A `FullTextSearch` edge in the connection. */ export interface FullTextSearchEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `FullTextSearch` at the end of the edge. */ node?: FullTextSearch | null; } export type FullTextSearchEdgeSelect = { @@ -17434,8 +19887,11 @@ export type FullTextSearchEdgeSelect = { select: FullTextSearchSelect; }; }; +/** A `Index` edge in the connection. */ export interface IndexEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `Index` at the end of the edge. */ node?: Index | null; } export type IndexEdgeSelect = { @@ -17444,8 +19900,11 @@ export type IndexEdgeSelect = { select: IndexSelect; }; }; +/** A `LimitFunction` edge in the connection. */ export interface LimitFunctionEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `LimitFunction` at the end of the edge. */ node?: LimitFunction | null; } export type LimitFunctionEdgeSelect = { @@ -17454,8 +19913,11 @@ export type LimitFunctionEdgeSelect = { select: LimitFunctionSelect; }; }; +/** A `Policy` edge in the connection. */ export interface PolicyEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `Policy` at the end of the edge. */ node?: Policy | null; } export type PolicyEdgeSelect = { @@ -17464,8 +19926,11 @@ export type PolicyEdgeSelect = { select: PolicySelect; }; }; +/** A `PrimaryKeyConstraint` edge in the connection. */ export interface PrimaryKeyConstraintEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `PrimaryKeyConstraint` at the end of the edge. */ node?: PrimaryKeyConstraint | null; } export type PrimaryKeyConstraintEdgeSelect = { @@ -17474,8 +19939,11 @@ export type PrimaryKeyConstraintEdgeSelect = { select: PrimaryKeyConstraintSelect; }; }; +/** A `TableGrant` edge in the connection. */ export interface TableGrantEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `TableGrant` at the end of the edge. */ node?: TableGrant | null; } export type TableGrantEdgeSelect = { @@ -17484,8 +19952,11 @@ export type TableGrantEdgeSelect = { select: TableGrantSelect; }; }; +/** A `Trigger` edge in the connection. */ export interface TriggerEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `Trigger` at the end of the edge. */ node?: Trigger | null; } export type TriggerEdgeSelect = { @@ -17494,8 +19965,11 @@ export type TriggerEdgeSelect = { select: TriggerSelect; }; }; +/** A `UniqueConstraint` edge in the connection. */ export interface UniqueConstraintEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `UniqueConstraint` at the end of the edge. */ node?: UniqueConstraint | null; } export type UniqueConstraintEdgeSelect = { @@ -17504,8 +19978,11 @@ export type UniqueConstraintEdgeSelect = { select: UniqueConstraintSelect; }; }; +/** A `View` edge in the connection. */ export interface ViewEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `View` at the end of the edge. */ node?: View | null; } export type ViewEdgeSelect = { @@ -17514,8 +19991,11 @@ export type ViewEdgeSelect = { select: ViewSelect; }; }; +/** A `ViewTable` edge in the connection. */ export interface ViewTableEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `ViewTable` at the end of the edge. */ node?: ViewTable | null; } export type ViewTableEdgeSelect = { @@ -17524,8 +20004,11 @@ export type ViewTableEdgeSelect = { select: ViewTableSelect; }; }; +/** A `ViewGrant` edge in the connection. */ export interface ViewGrantEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `ViewGrant` at the end of the edge. */ node?: ViewGrant | null; } export type ViewGrantEdgeSelect = { @@ -17534,8 +20017,11 @@ export type ViewGrantEdgeSelect = { select: ViewGrantSelect; }; }; +/** A `ViewRule` edge in the connection. */ export interface ViewRuleEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `ViewRule` at the end of the edge. */ node?: ViewRule | null; } export type ViewRuleEdgeSelect = { @@ -17544,8 +20030,11 @@ export type ViewRuleEdgeSelect = { select: ViewRuleSelect; }; }; +/** A `TableModule` edge in the connection. */ export interface TableModuleEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `TableModule` at the end of the edge. */ node?: TableModule | null; } export type TableModuleEdgeSelect = { @@ -17554,8 +20043,11 @@ export type TableModuleEdgeSelect = { select: TableModuleSelect; }; }; +/** A `TableTemplateModule` edge in the connection. */ export interface TableTemplateModuleEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `TableTemplateModule` at the end of the edge. */ node?: TableTemplateModule | null; } export type TableTemplateModuleEdgeSelect = { @@ -17564,8 +20056,11 @@ export type TableTemplateModuleEdgeSelect = { select: TableTemplateModuleSelect; }; }; +/** A `SchemaGrant` edge in the connection. */ export interface SchemaGrantEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `SchemaGrant` at the end of the edge. */ node?: SchemaGrant | null; } export type SchemaGrantEdgeSelect = { @@ -17574,8 +20069,11 @@ export type SchemaGrantEdgeSelect = { select: SchemaGrantSelect; }; }; +/** A `ApiSchema` edge in the connection. */ export interface ApiSchemaEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `ApiSchema` at the end of the edge. */ node?: ApiSchema | null; } export type ApiSchemaEdgeSelect = { @@ -17584,8 +20082,11 @@ export type ApiSchemaEdgeSelect = { select: ApiSchemaSelect; }; }; +/** A `ApiModule` edge in the connection. */ export interface ApiModuleEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `ApiModule` at the end of the edge. */ node?: ApiModule | null; } export type ApiModuleEdgeSelect = { @@ -17594,8 +20095,11 @@ export type ApiModuleEdgeSelect = { select: ApiModuleSelect; }; }; +/** A `Domain` edge in the connection. */ export interface DomainEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `Domain` at the end of the edge. */ node?: Domain | null; } export type DomainEdgeSelect = { @@ -17604,8 +20108,11 @@ export type DomainEdgeSelect = { select: DomainSelect; }; }; +/** A `SiteMetadatum` edge in the connection. */ export interface SiteMetadatumEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `SiteMetadatum` at the end of the edge. */ node?: SiteMetadatum | null; } export type SiteMetadatumEdgeSelect = { @@ -17614,8 +20121,11 @@ export type SiteMetadatumEdgeSelect = { select: SiteMetadatumSelect; }; }; +/** A `SiteModule` edge in the connection. */ export interface SiteModuleEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `SiteModule` at the end of the edge. */ node?: SiteModule | null; } export type SiteModuleEdgeSelect = { @@ -17624,8 +20134,11 @@ export type SiteModuleEdgeSelect = { select: SiteModuleSelect; }; }; +/** A `SiteTheme` edge in the connection. */ export interface SiteThemeEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `SiteTheme` at the end of the edge. */ node?: SiteTheme | null; } export type SiteThemeEdgeSelect = { @@ -17634,8 +20147,11 @@ export type SiteThemeEdgeSelect = { select: SiteThemeSelect; }; }; +/** A `Procedure` edge in the connection. */ export interface ProcedureEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `Procedure` at the end of the edge. */ node?: Procedure | null; } export type ProcedureEdgeSelect = { @@ -17644,8 +20160,11 @@ export type ProcedureEdgeSelect = { select: ProcedureSelect; }; }; +/** A `TriggerFunction` edge in the connection. */ export interface TriggerFunctionEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `TriggerFunction` at the end of the edge. */ node?: TriggerFunction | null; } export type TriggerFunctionEdgeSelect = { @@ -17654,8 +20173,11 @@ export type TriggerFunctionEdgeSelect = { select: TriggerFunctionSelect; }; }; +/** A `Api` edge in the connection. */ export interface ApiEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `Api` at the end of the edge. */ node?: Api | null; } export type ApiEdgeSelect = { @@ -17664,8 +20186,11 @@ export type ApiEdgeSelect = { select: ApiSelect; }; }; +/** A `Site` edge in the connection. */ export interface SiteEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `Site` at the end of the edge. */ node?: Site | null; } export type SiteEdgeSelect = { @@ -17674,8 +20199,11 @@ export type SiteEdgeSelect = { select: SiteSelect; }; }; +/** A `App` edge in the connection. */ export interface AppEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `App` at the end of the edge. */ node?: App | null; } export type AppEdgeSelect = { @@ -17684,8 +20212,11 @@ export type AppEdgeSelect = { select: AppSelect; }; }; +/** A `ConnectedAccountsModule` edge in the connection. */ export interface ConnectedAccountsModuleEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `ConnectedAccountsModule` at the end of the edge. */ node?: ConnectedAccountsModule | null; } export type ConnectedAccountsModuleEdgeSelect = { @@ -17694,8 +20225,11 @@ export type ConnectedAccountsModuleEdgeSelect = { select: ConnectedAccountsModuleSelect; }; }; +/** A `CryptoAddressesModule` edge in the connection. */ export interface CryptoAddressesModuleEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `CryptoAddressesModule` at the end of the edge. */ node?: CryptoAddressesModule | null; } export type CryptoAddressesModuleEdgeSelect = { @@ -17704,8 +20238,11 @@ export type CryptoAddressesModuleEdgeSelect = { select: CryptoAddressesModuleSelect; }; }; +/** A `CryptoAuthModule` edge in the connection. */ export interface CryptoAuthModuleEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `CryptoAuthModule` at the end of the edge. */ node?: CryptoAuthModule | null; } export type CryptoAuthModuleEdgeSelect = { @@ -17714,8 +20251,11 @@ export type CryptoAuthModuleEdgeSelect = { select: CryptoAuthModuleSelect; }; }; +/** A `DefaultIdsModule` edge in the connection. */ export interface DefaultIdsModuleEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `DefaultIdsModule` at the end of the edge. */ node?: DefaultIdsModule | null; } export type DefaultIdsModuleEdgeSelect = { @@ -17724,8 +20264,11 @@ export type DefaultIdsModuleEdgeSelect = { select: DefaultIdsModuleSelect; }; }; +/** A `DenormalizedTableField` edge in the connection. */ export interface DenormalizedTableFieldEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `DenormalizedTableField` at the end of the edge. */ node?: DenormalizedTableField | null; } export type DenormalizedTableFieldEdgeSelect = { @@ -17734,8 +20277,11 @@ export type DenormalizedTableFieldEdgeSelect = { select: DenormalizedTableFieldSelect; }; }; +/** A `EmailsModule` edge in the connection. */ export interface EmailsModuleEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `EmailsModule` at the end of the edge. */ node?: EmailsModule | null; } export type EmailsModuleEdgeSelect = { @@ -17744,8 +20290,11 @@ export type EmailsModuleEdgeSelect = { select: EmailsModuleSelect; }; }; +/** A `EncryptedSecretsModule` edge in the connection. */ export interface EncryptedSecretsModuleEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `EncryptedSecretsModule` at the end of the edge. */ node?: EncryptedSecretsModule | null; } export type EncryptedSecretsModuleEdgeSelect = { @@ -17754,8 +20303,11 @@ export type EncryptedSecretsModuleEdgeSelect = { select: EncryptedSecretsModuleSelect; }; }; +/** A `FieldModule` edge in the connection. */ export interface FieldModuleEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `FieldModule` at the end of the edge. */ node?: FieldModule | null; } export type FieldModuleEdgeSelect = { @@ -17764,8 +20316,11 @@ export type FieldModuleEdgeSelect = { select: FieldModuleSelect; }; }; +/** A `InvitesModule` edge in the connection. */ export interface InvitesModuleEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `InvitesModule` at the end of the edge. */ node?: InvitesModule | null; } export type InvitesModuleEdgeSelect = { @@ -17774,8 +20329,11 @@ export type InvitesModuleEdgeSelect = { select: InvitesModuleSelect; }; }; +/** A `LevelsModule` edge in the connection. */ export interface LevelsModuleEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `LevelsModule` at the end of the edge. */ node?: LevelsModule | null; } export type LevelsModuleEdgeSelect = { @@ -17784,8 +20342,11 @@ export type LevelsModuleEdgeSelect = { select: LevelsModuleSelect; }; }; +/** A `LimitsModule` edge in the connection. */ export interface LimitsModuleEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `LimitsModule` at the end of the edge. */ node?: LimitsModule | null; } export type LimitsModuleEdgeSelect = { @@ -17794,8 +20355,11 @@ export type LimitsModuleEdgeSelect = { select: LimitsModuleSelect; }; }; +/** A `MembershipTypesModule` edge in the connection. */ export interface MembershipTypesModuleEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `MembershipTypesModule` at the end of the edge. */ node?: MembershipTypesModule | null; } export type MembershipTypesModuleEdgeSelect = { @@ -17804,8 +20368,11 @@ export type MembershipTypesModuleEdgeSelect = { select: MembershipTypesModuleSelect; }; }; +/** A `MembershipsModule` edge in the connection. */ export interface MembershipsModuleEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `MembershipsModule` at the end of the edge. */ node?: MembershipsModule | null; } export type MembershipsModuleEdgeSelect = { @@ -17814,8 +20381,11 @@ export type MembershipsModuleEdgeSelect = { select: MembershipsModuleSelect; }; }; +/** A `PermissionsModule` edge in the connection. */ export interface PermissionsModuleEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `PermissionsModule` at the end of the edge. */ node?: PermissionsModule | null; } export type PermissionsModuleEdgeSelect = { @@ -17824,8 +20394,11 @@ export type PermissionsModuleEdgeSelect = { select: PermissionsModuleSelect; }; }; +/** A `PhoneNumbersModule` edge in the connection. */ export interface PhoneNumbersModuleEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `PhoneNumbersModule` at the end of the edge. */ node?: PhoneNumbersModule | null; } export type PhoneNumbersModuleEdgeSelect = { @@ -17834,8 +20407,11 @@ export type PhoneNumbersModuleEdgeSelect = { select: PhoneNumbersModuleSelect; }; }; +/** A `ProfilesModule` edge in the connection. */ export interface ProfilesModuleEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `ProfilesModule` at the end of the edge. */ node?: ProfilesModule | null; } export type ProfilesModuleEdgeSelect = { @@ -17844,8 +20420,11 @@ export type ProfilesModuleEdgeSelect = { select: ProfilesModuleSelect; }; }; +/** A `RlsModule` edge in the connection. */ export interface RlsModuleEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `RlsModule` at the end of the edge. */ node?: RlsModule | null; } export type RlsModuleEdgeSelect = { @@ -17854,8 +20433,11 @@ export type RlsModuleEdgeSelect = { select: RlsModuleSelect; }; }; +/** A `SecretsModule` edge in the connection. */ export interface SecretsModuleEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `SecretsModule` at the end of the edge. */ node?: SecretsModule | null; } export type SecretsModuleEdgeSelect = { @@ -17864,8 +20446,11 @@ export type SecretsModuleEdgeSelect = { select: SecretsModuleSelect; }; }; +/** A `SessionsModule` edge in the connection. */ export interface SessionsModuleEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `SessionsModule` at the end of the edge. */ node?: SessionsModule | null; } export type SessionsModuleEdgeSelect = { @@ -17874,8 +20459,11 @@ export type SessionsModuleEdgeSelect = { select: SessionsModuleSelect; }; }; +/** A `UserAuthModule` edge in the connection. */ export interface UserAuthModuleEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `UserAuthModule` at the end of the edge. */ node?: UserAuthModule | null; } export type UserAuthModuleEdgeSelect = { @@ -17884,8 +20472,11 @@ export type UserAuthModuleEdgeSelect = { select: UserAuthModuleSelect; }; }; +/** A `UsersModule` edge in the connection. */ export interface UsersModuleEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `UsersModule` at the end of the edge. */ node?: UsersModule | null; } export type UsersModuleEdgeSelect = { @@ -17894,8 +20485,11 @@ export type UsersModuleEdgeSelect = { select: UsersModuleSelect; }; }; +/** A `UuidModule` edge in the connection. */ export interface UuidModuleEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `UuidModule` at the end of the edge. */ node?: UuidModule | null; } export type UuidModuleEdgeSelect = { @@ -17904,8 +20498,11 @@ export type UuidModuleEdgeSelect = { select: UuidModuleSelect; }; }; +/** A `DatabaseProvisionModule` edge in the connection. */ export interface DatabaseProvisionModuleEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `DatabaseProvisionModule` at the end of the edge. */ node?: DatabaseProvisionModule | null; } export type DatabaseProvisionModuleEdgeSelect = { @@ -17914,8 +20511,11 @@ export type DatabaseProvisionModuleEdgeSelect = { select: DatabaseProvisionModuleSelect; }; }; +/** A `AppAdminGrant` edge in the connection. */ export interface AppAdminGrantEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `AppAdminGrant` at the end of the edge. */ node?: AppAdminGrant | null; } export type AppAdminGrantEdgeSelect = { @@ -17924,8 +20524,11 @@ export type AppAdminGrantEdgeSelect = { select: AppAdminGrantSelect; }; }; +/** A `AppOwnerGrant` edge in the connection. */ export interface AppOwnerGrantEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `AppOwnerGrant` at the end of the edge. */ node?: AppOwnerGrant | null; } export type AppOwnerGrantEdgeSelect = { @@ -17934,8 +20537,11 @@ export type AppOwnerGrantEdgeSelect = { select: AppOwnerGrantSelect; }; }; +/** A `AppGrant` edge in the connection. */ export interface AppGrantEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `AppGrant` at the end of the edge. */ node?: AppGrant | null; } export type AppGrantEdgeSelect = { @@ -17944,8 +20550,11 @@ export type AppGrantEdgeSelect = { select: AppGrantSelect; }; }; +/** A `OrgMembership` edge in the connection. */ export interface OrgMembershipEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `OrgMembership` at the end of the edge. */ node?: OrgMembership | null; } export type OrgMembershipEdgeSelect = { @@ -17954,8 +20563,11 @@ export type OrgMembershipEdgeSelect = { select: OrgMembershipSelect; }; }; +/** A `OrgMember` edge in the connection. */ export interface OrgMemberEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `OrgMember` at the end of the edge. */ node?: OrgMember | null; } export type OrgMemberEdgeSelect = { @@ -17964,8 +20576,11 @@ export type OrgMemberEdgeSelect = { select: OrgMemberSelect; }; }; +/** A `OrgAdminGrant` edge in the connection. */ export interface OrgAdminGrantEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `OrgAdminGrant` at the end of the edge. */ node?: OrgAdminGrant | null; } export type OrgAdminGrantEdgeSelect = { @@ -17974,8 +20589,11 @@ export type OrgAdminGrantEdgeSelect = { select: OrgAdminGrantSelect; }; }; +/** A `OrgOwnerGrant` edge in the connection. */ export interface OrgOwnerGrantEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `OrgOwnerGrant` at the end of the edge. */ node?: OrgOwnerGrant | null; } export type OrgOwnerGrantEdgeSelect = { @@ -17984,8 +20602,11 @@ export type OrgOwnerGrantEdgeSelect = { select: OrgOwnerGrantSelect; }; }; +/** A `OrgGrant` edge in the connection. */ export interface OrgGrantEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `OrgGrant` at the end of the edge. */ node?: OrgGrant | null; } export type OrgGrantEdgeSelect = { @@ -17994,8 +20615,11 @@ export type OrgGrantEdgeSelect = { select: OrgGrantSelect; }; }; +/** A `AppLimit` edge in the connection. */ export interface AppLimitEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `AppLimit` at the end of the edge. */ node?: AppLimit | null; } export type AppLimitEdgeSelect = { @@ -18004,8 +20628,11 @@ export type AppLimitEdgeSelect = { select: AppLimitSelect; }; }; +/** A `OrgLimit` edge in the connection. */ export interface OrgLimitEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `OrgLimit` at the end of the edge. */ node?: OrgLimit | null; } export type OrgLimitEdgeSelect = { @@ -18014,8 +20641,11 @@ export type OrgLimitEdgeSelect = { select: OrgLimitSelect; }; }; +/** A `AppStep` edge in the connection. */ export interface AppStepEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `AppStep` at the end of the edge. */ node?: AppStep | null; } export type AppStepEdgeSelect = { @@ -18024,8 +20654,11 @@ export type AppStepEdgeSelect = { select: AppStepSelect; }; }; +/** A `AppAchievement` edge in the connection. */ export interface AppAchievementEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `AppAchievement` at the end of the edge. */ node?: AppAchievement | null; } export type AppAchievementEdgeSelect = { @@ -18034,8 +20667,11 @@ export type AppAchievementEdgeSelect = { select: AppAchievementSelect; }; }; +/** A `Invite` edge in the connection. */ export interface InviteEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `Invite` at the end of the edge. */ node?: Invite | null; } export type InviteEdgeSelect = { @@ -18044,8 +20680,11 @@ export type InviteEdgeSelect = { select: InviteSelect; }; }; +/** A `ClaimedInvite` edge in the connection. */ export interface ClaimedInviteEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `ClaimedInvite` at the end of the edge. */ node?: ClaimedInvite | null; } export type ClaimedInviteEdgeSelect = { @@ -18054,8 +20693,11 @@ export type ClaimedInviteEdgeSelect = { select: ClaimedInviteSelect; }; }; +/** A `OrgInvite` edge in the connection. */ export interface OrgInviteEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `OrgInvite` at the end of the edge. */ node?: OrgInvite | null; } export type OrgInviteEdgeSelect = { @@ -18064,8 +20706,11 @@ export type OrgInviteEdgeSelect = { select: OrgInviteSelect; }; }; +/** A `OrgClaimedInvite` edge in the connection. */ export interface OrgClaimedInviteEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `OrgClaimedInvite` at the end of the edge. */ node?: OrgClaimedInvite | null; } export type OrgClaimedInviteEdgeSelect = { @@ -18074,8 +20719,11 @@ export type OrgClaimedInviteEdgeSelect = { select: OrgClaimedInviteSelect; }; }; +/** A `AppPermissionDefault` edge in the connection. */ export interface AppPermissionDefaultEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `AppPermissionDefault` at the end of the edge. */ node?: AppPermissionDefault | null; } export type AppPermissionDefaultEdgeSelect = { @@ -18084,8 +20732,11 @@ export type AppPermissionDefaultEdgeSelect = { select: AppPermissionDefaultSelect; }; }; +/** A `Ref` edge in the connection. */ export interface RefEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `Ref` at the end of the edge. */ node?: Ref | null; } export type RefEdgeSelect = { @@ -18094,8 +20745,11 @@ export type RefEdgeSelect = { select: RefSelect; }; }; +/** A `Store` edge in the connection. */ export interface StoreEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `Store` at the end of the edge. */ node?: Store | null; } export type StoreEdgeSelect = { @@ -18104,8 +20758,11 @@ export type StoreEdgeSelect = { select: StoreSelect; }; }; +/** A `RoleType` edge in the connection. */ export interface RoleTypeEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `RoleType` at the end of the edge. */ node?: RoleType | null; } export type RoleTypeEdgeSelect = { @@ -18114,8 +20771,11 @@ export type RoleTypeEdgeSelect = { select: RoleTypeSelect; }; }; +/** A `OrgPermissionDefault` edge in the connection. */ export interface OrgPermissionDefaultEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `OrgPermissionDefault` at the end of the edge. */ node?: OrgPermissionDefault | null; } export type OrgPermissionDefaultEdgeSelect = { @@ -18124,8 +20784,11 @@ export type OrgPermissionDefaultEdgeSelect = { select: OrgPermissionDefaultSelect; }; }; +/** A `AppLimitDefault` edge in the connection. */ export interface AppLimitDefaultEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `AppLimitDefault` at the end of the edge. */ node?: AppLimitDefault | null; } export type AppLimitDefaultEdgeSelect = { @@ -18134,8 +20797,11 @@ export type AppLimitDefaultEdgeSelect = { select: AppLimitDefaultSelect; }; }; +/** A `OrgLimitDefault` edge in the connection. */ export interface OrgLimitDefaultEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `OrgLimitDefault` at the end of the edge. */ node?: OrgLimitDefault | null; } export type OrgLimitDefaultEdgeSelect = { @@ -18144,8 +20810,11 @@ export type OrgLimitDefaultEdgeSelect = { select: OrgLimitDefaultSelect; }; }; +/** A `CryptoAddress` edge in the connection. */ export interface CryptoAddressEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `CryptoAddress` at the end of the edge. */ node?: CryptoAddress | null; } export type CryptoAddressEdgeSelect = { @@ -18154,8 +20823,11 @@ export type CryptoAddressEdgeSelect = { select: CryptoAddressSelect; }; }; +/** A `MembershipType` edge in the connection. */ export interface MembershipTypeEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `MembershipType` at the end of the edge. */ node?: MembershipType | null; } export type MembershipTypeEdgeSelect = { @@ -18164,8 +20836,11 @@ export type MembershipTypeEdgeSelect = { select: MembershipTypeSelect; }; }; +/** A `ConnectedAccount` edge in the connection. */ export interface ConnectedAccountEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `ConnectedAccount` at the end of the edge. */ node?: ConnectedAccount | null; } export type ConnectedAccountEdgeSelect = { @@ -18174,8 +20849,11 @@ export type ConnectedAccountEdgeSelect = { select: ConnectedAccountSelect; }; }; +/** A `PhoneNumber` edge in the connection. */ export interface PhoneNumberEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `PhoneNumber` at the end of the edge. */ node?: PhoneNumber | null; } export type PhoneNumberEdgeSelect = { @@ -18184,8 +20862,11 @@ export type PhoneNumberEdgeSelect = { select: PhoneNumberSelect; }; }; +/** A `AppMembershipDefault` edge in the connection. */ export interface AppMembershipDefaultEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `AppMembershipDefault` at the end of the edge. */ node?: AppMembershipDefault | null; } export type AppMembershipDefaultEdgeSelect = { @@ -18194,8 +20875,11 @@ export type AppMembershipDefaultEdgeSelect = { select: AppMembershipDefaultSelect; }; }; +/** A `NodeTypeRegistry` edge in the connection. */ export interface NodeTypeRegistryEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `NodeTypeRegistry` at the end of the edge. */ node?: NodeTypeRegistry | null; } export type NodeTypeRegistryEdgeSelect = { @@ -18204,8 +20888,11 @@ export type NodeTypeRegistryEdgeSelect = { select: NodeTypeRegistrySelect; }; }; +/** A `Commit` edge in the connection. */ export interface CommitEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `Commit` at the end of the edge. */ node?: Commit | null; } export type CommitEdgeSelect = { @@ -18214,8 +20901,11 @@ export type CommitEdgeSelect = { select: CommitSelect; }; }; +/** A `OrgMembershipDefault` edge in the connection. */ export interface OrgMembershipDefaultEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `OrgMembershipDefault` at the end of the edge. */ node?: OrgMembershipDefault | null; } export type OrgMembershipDefaultEdgeSelect = { @@ -18224,8 +20914,11 @@ export type OrgMembershipDefaultEdgeSelect = { select: OrgMembershipDefaultSelect; }; }; +/** A `Email` edge in the connection. */ export interface EmailEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `Email` at the end of the edge. */ node?: Email | null; } export type EmailEdgeSelect = { @@ -18234,8 +20927,11 @@ export type EmailEdgeSelect = { select: EmailSelect; }; }; +/** A `AuditLog` edge in the connection. */ export interface AuditLogEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `AuditLog` at the end of the edge. */ node?: AuditLog | null; } export type AuditLogEdgeSelect = { @@ -18244,8 +20940,11 @@ export type AuditLogEdgeSelect = { select: AuditLogSelect; }; }; +/** A `AppLevel` edge in the connection. */ export interface AppLevelEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `AppLevel` at the end of the edge. */ node?: AppLevel | null; } export type AppLevelEdgeSelect = { @@ -18254,8 +20953,11 @@ export type AppLevelEdgeSelect = { select: AppLevelSelect; }; }; +/** A `AppMembership` edge in the connection. */ export interface AppMembershipEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `AppMembership` at the end of the edge. */ node?: AppMembership | null; } export type AppMembershipEdgeSelect = { @@ -18264,8 +20966,11 @@ export type AppMembershipEdgeSelect = { select: AppMembershipSelect; }; }; +/** A `User` edge in the connection. */ export interface UserEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `User` at the end of the edge. */ node?: User | null; } export type UserEdgeSelect = { @@ -18274,8 +20979,11 @@ export type UserEdgeSelect = { select: UserSelect; }; }; +/** A `HierarchyModule` edge in the connection. */ export interface HierarchyModuleEdge { + /** A cursor for use in pagination. */ cursor?: string | null; + /** The `HierarchyModule` at the end of the edge. */ node?: HierarchyModule | null; } export type HierarchyModuleEdgeSelect = { diff --git a/sdk/constructive-sdk/src/public/orm/mutation/index.ts b/sdk/constructive-sdk/src/public/orm/mutation/index.ts index d6ef2d515..b8937ffd0 100644 --- a/sdk/constructive-sdk/src/public/orm/mutation/index.ts +++ b/sdk/constructive-sdk/src/public/orm/mutation/index.ts @@ -103,96 +103,146 @@ import type { } from '../input-types'; import { connectionFieldsMap } from '../input-types'; export interface SignOutVariables { + /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: SignOutInput; } export interface SendAccountDeletionEmailVariables { + /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: SendAccountDeletionEmailInput; } export interface CheckPasswordVariables { + /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: CheckPasswordInput; } export interface SubmitInviteCodeVariables { + /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: SubmitInviteCodeInput; } export interface SubmitOrgInviteCodeVariables { + /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: SubmitOrgInviteCodeInput; } export interface FreezeObjectsVariables { + /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: FreezeObjectsInput; } export interface InitEmptyRepoVariables { + /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: InitEmptyRepoInput; } export interface ConfirmDeleteAccountVariables { + /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: ConfirmDeleteAccountInput; } export interface SetPasswordVariables { + /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: SetPasswordInput; } export interface VerifyEmailVariables { + /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: VerifyEmailInput; } export interface ResetPasswordVariables { + /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: ResetPasswordInput; } export interface RemoveNodeAtPathVariables { + /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: RemoveNodeAtPathInput; } export interface BootstrapUserVariables { + /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: BootstrapUserInput; } export interface SetDataAtPathVariables { + /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: SetDataAtPathInput; } export interface SetPropsAndCommitVariables { + /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: SetPropsAndCommitInput; } export interface ProvisionDatabaseWithUserVariables { + /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: ProvisionDatabaseWithUserInput; } export interface SignInOneTimeTokenVariables { + /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: SignInOneTimeTokenInput; } +/** + * Variables for 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 + */ export interface CreateUserDatabaseVariables { + /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: CreateUserDatabaseInput; } export interface ExtendTokenExpiresVariables { + /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: ExtendTokenExpiresInput; } export interface SignInVariables { + /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: SignInInput; } export interface SignUpVariables { + /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: SignUpInput; } export interface SetFieldOrderVariables { + /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: SetFieldOrderInput; } export interface OneTimeTokenVariables { + /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: OneTimeTokenInput; } export interface InsertNodeAtPathVariables { + /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: InsertNodeAtPathInput; } export interface UpdateNodeAtPathVariables { + /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: UpdateNodeAtPathInput; } export interface SetAndCommitVariables { + /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: SetAndCommitInput; } export interface ApplyRlsVariables { + /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: ApplyRlsInput; } export interface ForgotPasswordVariables { + /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: ForgotPasswordInput; } export interface SendVerificationEmailVariables { + /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: SendVerificationEmailInput; } export interface VerifyPasswordVariables { + /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: VerifyPasswordInput; } export interface VerifyTotpVariables { + /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: VerifyTotpInput; } export function createMutationOperations(client: OrmClient) { diff --git a/sdk/constructive-sdk/src/public/orm/query/index.ts b/sdk/constructive-sdk/src/public/orm/query/index.ts index 4fcab5f55..3da90dee7 100644 --- a/sdk/constructive-sdk/src/public/orm/query/index.ts +++ b/sdk/constructive-sdk/src/public/orm/query/index.ts @@ -44,31 +44,71 @@ export interface AppPermissionsGetMaskByNamesVariables { export interface OrgPermissionsGetMaskByNamesVariables { names?: string[]; } +/** + * Variables for appPermissionsGetByMask + * Reads and enables pagination through a set of `AppPermission`. + */ export interface AppPermissionsGetByMaskVariables { mask?: string; + /** Only read the first `n` values of the set. */ first?: number; + /** + * Skip the first `n` values from our `after` cursor, an alternative to cursor + * based pagination. May not be used with `last`. + */ offset?: number; + /** Read all values in the set after (below) this cursor. */ after?: string; } +/** + * Variables for orgPermissionsGetByMask + * Reads and enables pagination through a set of `OrgPermission`. + */ export interface OrgPermissionsGetByMaskVariables { mask?: string; + /** Only read the first `n` values of the set. */ first?: number; + /** + * Skip the first `n` values from our `after` cursor, an alternative to cursor + * based pagination. May not be used with `last`. + */ offset?: number; + /** Read all values in the set after (below) this cursor. */ after?: string; } +/** + * Variables for getAllObjectsFromRoot + * Reads and enables pagination through a set of `Object`. + */ export interface GetAllObjectsFromRootVariables { databaseId?: string; id?: string; + /** Only read the first `n` values of the set. */ first?: number; + /** + * Skip the first `n` values from our `after` cursor, an alternative to cursor + * based pagination. May not be used with `last`. + */ offset?: number; + /** Read all values in the set after (below) this cursor. */ after?: string; } +/** + * Variables for getPathObjectsFromRoot + * Reads and enables pagination through a set of `Object`. + */ export interface GetPathObjectsFromRootVariables { databaseId?: string; id?: string; path?: string[]; + /** Only read the first `n` values of the set. */ first?: number; + /** + * Skip the first `n` values from our `after` cursor, an alternative to cursor + * based pagination. May not be used with `last`. + */ offset?: number; + /** Read all values in the set after (below) this cursor. */ after?: string; } export interface GetObjectAtPathVariables { @@ -77,11 +117,21 @@ export interface GetObjectAtPathVariables { path?: string[]; refname?: string; } +/** + * Variables for stepsRequired + * Reads and enables pagination through a set of `AppLevelRequirement`. + */ export interface StepsRequiredVariables { vlevel?: string; vroleId?: string; + /** Only read the first `n` values of the set. */ first?: number; + /** + * Skip the first `n` values from our `after` cursor, an alternative to cursor + * based pagination. May not be used with `last`. + */ offset?: number; + /** Read all values in the set after (below) this cursor. */ after?: string; } export function createQueryOperations(client: OrmClient) { From cb82a82ca7a4d9da7417d6afbf44da014a6f94b5 Mon Sep 17 00:00:00 2001 From: Dan Lynch Date: Fri, 27 Feb 2026 23:10:36 +0000 Subject: [PATCH 3/8] fix(codegen): filter PostGraphile boilerplate descriptions from JSDoc output Strip generic PostGraphile-generated descriptions that add noise: - 'The exclusive input argument for this mutation...' - 'An arbitrary string value with no semantic meaning...' - 'The output of our...' - 'All input for the...' Uses startsWith matching to handle curly apostrophe variants. --- graphql/codegen/src/core/codegen/utils.ts | 41 +- .../src/admin/orm/input-types.ts | 96 ---- .../src/admin/orm/mutation/index.ts | 2 - .../src/auth/orm/input-types.ts | 117 ----- .../src/auth/orm/mutation/index.ts | 16 - .../src/objects/orm/input-types.ts | 60 --- .../src/objects/orm/mutation/index.ts | 8 - .../src/public/orm/input-types.ts | 476 ------------------ .../src/public/orm/mutation/index.ts | 31 -- 9 files changed, 36 insertions(+), 811 deletions(-) diff --git a/graphql/codegen/src/core/codegen/utils.ts b/graphql/codegen/src/core/codegen/utils.ts index 05413526f..e42e35b6a 100644 --- a/graphql/codegen/src/core/codegen/utils.ts +++ b/graphql/codegen/src/core/codegen/utils.ts @@ -434,20 +434,46 @@ export function getQueryKeyPrefix(table: CleanTable): string { */ /** - * Strip PostGraphile smart comments from a description string. + * PostGraphile auto-generated boilerplate descriptions that add no value. + * These are generic descriptions PostGraphile puts on every mutation input, + * clientMutationId field, etc. We filter them out to keep generated code clean. + */ +const POSTGRAPHILE_BOILERPLATE: string[] = [ + 'The exclusive input argument for this mutation.', + 'An arbitrary string value with no semantic meaning.', + 'The output of our', + 'All input for the', +]; + +/** + * Check if a description is generic PostGraphile boilerplate that should be suppressed. + */ +function isBoilerplateDescription(description: string): boolean { + const trimmed = description.trim(); + return POSTGRAPHILE_BOILERPLATE.some((bp) => trimmed.startsWith(bp)); +} + +/** + * Strip PostGraphile smart comments and boilerplate from a description string. * * Smart comments are lines starting with `@` (e.g., `@omit`, `@name newName`). - * This returns only the human-readable portion of the comment, or undefined - * if the result is empty. + * Boilerplate descriptions are generic PostGraphile-generated text that repeats + * on every mutation input, clientMutationId field, etc. + * + * This returns only the meaningful human-readable portion of the comment, + * or undefined if the result is empty or boilerplate. * * @param description - Raw description from GraphQL introspection - * @returns Cleaned description with smart comments removed, or undefined if empty + * @returns Cleaned description, or undefined if empty/boilerplate */ export function stripSmartComments( description: string | null | undefined, ): string | undefined { if (!description) return undefined; + // Check if entire description is boilerplate + if (isBoilerplateDescription(description)) return undefined; + const lines = description.split('\n'); const cleanLines: string[] = []; @@ -459,7 +485,12 @@ export function stripSmartComments( } const result = cleanLines.join('\n').trim(); - return result.length > 0 ? result : undefined; + if (result.length === 0) return undefined; + + // Re-check after stripping smart comments + if (isBoilerplateDescription(result)) return undefined; + + return result; } // ============================================================================ diff --git a/sdk/constructive-sdk/src/admin/orm/input-types.ts b/sdk/constructive-sdk/src/admin/orm/input-types.ts index eb5dccc14..9919344e9 100644 --- a/sdk/constructive-sdk/src/admin/orm/input-types.ts +++ b/sdk/constructive-sdk/src/admin/orm/input-types.ts @@ -2596,22 +2596,12 @@ export interface DeleteOrgInviteInput { } // ============ Connection Fields Map ============ export const connectionFieldsMap = {} as Record>; -/** All input for the `submitInviteCode` mutation. */ // ============ Custom Input Types (from schema) ============ export interface SubmitInviteCodeInput { - /** - * An arbitrary string value with no semantic meaning. Will be included in the - * payload verbatim. May be used to track mutations by the client. - */ clientMutationId?: string; token?: string; } -/** All input for the `submitOrgInviteCode` mutation. */ export interface SubmitOrgInviteCodeInput { - /** - * An arbitrary string value with no semantic meaning. Will be included in the - * payload verbatim. May be used to track mutations by the client. - */ clientMutationId?: string; token?: string; } @@ -2685,7 +2675,6 @@ export type AppLevelRequirementConnectionSelect = { }; totalCount?: boolean; }; -/** The output of our `submitInviteCode` mutation. */ export interface SubmitInviteCodePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -2698,7 +2687,6 @@ export type SubmitInviteCodePayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -/** The output of our `submitOrgInviteCode` mutation. */ export interface SubmitOrgInviteCodePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -2711,7 +2699,6 @@ export type SubmitOrgInviteCodePayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -/** The output of our create `AppPermission` mutation. */ export interface CreateAppPermissionPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -2732,7 +2719,6 @@ export type CreateAppPermissionPayloadSelect = { select: AppPermissionEdgeSelect; }; }; -/** The output of our update `AppPermission` mutation. */ export interface UpdateAppPermissionPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -2753,7 +2739,6 @@ export type UpdateAppPermissionPayloadSelect = { select: AppPermissionEdgeSelect; }; }; -/** The output of our delete `AppPermission` mutation. */ export interface DeleteAppPermissionPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -2774,7 +2759,6 @@ export type DeleteAppPermissionPayloadSelect = { select: AppPermissionEdgeSelect; }; }; -/** The output of our create `OrgPermission` mutation. */ export interface CreateOrgPermissionPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -2795,7 +2779,6 @@ export type CreateOrgPermissionPayloadSelect = { select: OrgPermissionEdgeSelect; }; }; -/** The output of our update `OrgPermission` mutation. */ export interface UpdateOrgPermissionPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -2816,7 +2799,6 @@ export type UpdateOrgPermissionPayloadSelect = { select: OrgPermissionEdgeSelect; }; }; -/** The output of our delete `OrgPermission` mutation. */ export interface DeleteOrgPermissionPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -2837,7 +2819,6 @@ export type DeleteOrgPermissionPayloadSelect = { select: OrgPermissionEdgeSelect; }; }; -/** The output of our create `AppLevelRequirement` mutation. */ export interface CreateAppLevelRequirementPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -2858,7 +2839,6 @@ export type CreateAppLevelRequirementPayloadSelect = { select: AppLevelRequirementEdgeSelect; }; }; -/** The output of our update `AppLevelRequirement` mutation. */ export interface UpdateAppLevelRequirementPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -2879,7 +2859,6 @@ export type UpdateAppLevelRequirementPayloadSelect = { select: AppLevelRequirementEdgeSelect; }; }; -/** The output of our delete `AppLevelRequirement` mutation. */ export interface DeleteAppLevelRequirementPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -2900,7 +2879,6 @@ export type DeleteAppLevelRequirementPayloadSelect = { select: AppLevelRequirementEdgeSelect; }; }; -/** The output of our create `OrgMember` mutation. */ export interface CreateOrgMemberPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -2921,7 +2899,6 @@ export type CreateOrgMemberPayloadSelect = { select: OrgMemberEdgeSelect; }; }; -/** The output of our update `OrgMember` mutation. */ export interface UpdateOrgMemberPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -2942,7 +2919,6 @@ export type UpdateOrgMemberPayloadSelect = { select: OrgMemberEdgeSelect; }; }; -/** The output of our delete `OrgMember` mutation. */ export interface DeleteOrgMemberPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -2963,7 +2939,6 @@ export type DeleteOrgMemberPayloadSelect = { select: OrgMemberEdgeSelect; }; }; -/** The output of our create `AppPermissionDefault` mutation. */ export interface CreateAppPermissionDefaultPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -2984,7 +2959,6 @@ export type CreateAppPermissionDefaultPayloadSelect = { select: AppPermissionDefaultEdgeSelect; }; }; -/** The output of our update `AppPermissionDefault` mutation. */ export interface UpdateAppPermissionDefaultPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -3005,7 +2979,6 @@ export type UpdateAppPermissionDefaultPayloadSelect = { select: AppPermissionDefaultEdgeSelect; }; }; -/** The output of our delete `AppPermissionDefault` mutation. */ export interface DeleteAppPermissionDefaultPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -3026,7 +2999,6 @@ export type DeleteAppPermissionDefaultPayloadSelect = { select: AppPermissionDefaultEdgeSelect; }; }; -/** The output of our create `OrgPermissionDefault` mutation. */ export interface CreateOrgPermissionDefaultPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -3047,7 +3019,6 @@ export type CreateOrgPermissionDefaultPayloadSelect = { select: OrgPermissionDefaultEdgeSelect; }; }; -/** The output of our update `OrgPermissionDefault` mutation. */ export interface UpdateOrgPermissionDefaultPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -3068,7 +3039,6 @@ export type UpdateOrgPermissionDefaultPayloadSelect = { select: OrgPermissionDefaultEdgeSelect; }; }; -/** The output of our delete `OrgPermissionDefault` mutation. */ export interface DeleteOrgPermissionDefaultPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -3089,7 +3059,6 @@ export type DeleteOrgPermissionDefaultPayloadSelect = { select: OrgPermissionDefaultEdgeSelect; }; }; -/** The output of our create `AppAdminGrant` mutation. */ export interface CreateAppAdminGrantPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -3110,7 +3079,6 @@ export type CreateAppAdminGrantPayloadSelect = { select: AppAdminGrantEdgeSelect; }; }; -/** The output of our update `AppAdminGrant` mutation. */ export interface UpdateAppAdminGrantPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -3131,7 +3099,6 @@ export type UpdateAppAdminGrantPayloadSelect = { select: AppAdminGrantEdgeSelect; }; }; -/** The output of our delete `AppAdminGrant` mutation. */ export interface DeleteAppAdminGrantPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -3152,7 +3119,6 @@ export type DeleteAppAdminGrantPayloadSelect = { select: AppAdminGrantEdgeSelect; }; }; -/** The output of our create `AppOwnerGrant` mutation. */ export interface CreateAppOwnerGrantPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -3173,7 +3139,6 @@ export type CreateAppOwnerGrantPayloadSelect = { select: AppOwnerGrantEdgeSelect; }; }; -/** The output of our update `AppOwnerGrant` mutation. */ export interface UpdateAppOwnerGrantPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -3194,7 +3159,6 @@ export type UpdateAppOwnerGrantPayloadSelect = { select: AppOwnerGrantEdgeSelect; }; }; -/** The output of our delete `AppOwnerGrant` mutation. */ export interface DeleteAppOwnerGrantPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -3215,7 +3179,6 @@ export type DeleteAppOwnerGrantPayloadSelect = { select: AppOwnerGrantEdgeSelect; }; }; -/** The output of our create `AppLimitDefault` mutation. */ export interface CreateAppLimitDefaultPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -3236,7 +3199,6 @@ export type CreateAppLimitDefaultPayloadSelect = { select: AppLimitDefaultEdgeSelect; }; }; -/** The output of our update `AppLimitDefault` mutation. */ export interface UpdateAppLimitDefaultPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -3257,7 +3219,6 @@ export type UpdateAppLimitDefaultPayloadSelect = { select: AppLimitDefaultEdgeSelect; }; }; -/** The output of our delete `AppLimitDefault` mutation. */ export interface DeleteAppLimitDefaultPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -3278,7 +3239,6 @@ export type DeleteAppLimitDefaultPayloadSelect = { select: AppLimitDefaultEdgeSelect; }; }; -/** The output of our create `OrgLimitDefault` mutation. */ export interface CreateOrgLimitDefaultPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -3299,7 +3259,6 @@ export type CreateOrgLimitDefaultPayloadSelect = { select: OrgLimitDefaultEdgeSelect; }; }; -/** The output of our update `OrgLimitDefault` mutation. */ export interface UpdateOrgLimitDefaultPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -3320,7 +3279,6 @@ export type UpdateOrgLimitDefaultPayloadSelect = { select: OrgLimitDefaultEdgeSelect; }; }; -/** The output of our delete `OrgLimitDefault` mutation. */ export interface DeleteOrgLimitDefaultPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -3341,7 +3299,6 @@ export type DeleteOrgLimitDefaultPayloadSelect = { select: OrgLimitDefaultEdgeSelect; }; }; -/** The output of our create `OrgAdminGrant` mutation. */ export interface CreateOrgAdminGrantPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -3362,7 +3319,6 @@ export type CreateOrgAdminGrantPayloadSelect = { select: OrgAdminGrantEdgeSelect; }; }; -/** The output of our update `OrgAdminGrant` mutation. */ export interface UpdateOrgAdminGrantPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -3383,7 +3339,6 @@ export type UpdateOrgAdminGrantPayloadSelect = { select: OrgAdminGrantEdgeSelect; }; }; -/** The output of our delete `OrgAdminGrant` mutation. */ export interface DeleteOrgAdminGrantPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -3404,7 +3359,6 @@ export type DeleteOrgAdminGrantPayloadSelect = { select: OrgAdminGrantEdgeSelect; }; }; -/** The output of our create `OrgOwnerGrant` mutation. */ export interface CreateOrgOwnerGrantPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -3425,7 +3379,6 @@ export type CreateOrgOwnerGrantPayloadSelect = { select: OrgOwnerGrantEdgeSelect; }; }; -/** The output of our update `OrgOwnerGrant` mutation. */ export interface UpdateOrgOwnerGrantPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -3446,7 +3399,6 @@ export type UpdateOrgOwnerGrantPayloadSelect = { select: OrgOwnerGrantEdgeSelect; }; }; -/** The output of our delete `OrgOwnerGrant` mutation. */ export interface DeleteOrgOwnerGrantPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -3467,7 +3419,6 @@ export type DeleteOrgOwnerGrantPayloadSelect = { select: OrgOwnerGrantEdgeSelect; }; }; -/** The output of our create `MembershipType` mutation. */ export interface CreateMembershipTypePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -3488,7 +3439,6 @@ export type CreateMembershipTypePayloadSelect = { select: MembershipTypeEdgeSelect; }; }; -/** The output of our update `MembershipType` mutation. */ export interface UpdateMembershipTypePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -3509,7 +3459,6 @@ export type UpdateMembershipTypePayloadSelect = { select: MembershipTypeEdgeSelect; }; }; -/** The output of our delete `MembershipType` mutation. */ export interface DeleteMembershipTypePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -3530,7 +3479,6 @@ export type DeleteMembershipTypePayloadSelect = { select: MembershipTypeEdgeSelect; }; }; -/** The output of our create `AppLimit` mutation. */ export interface CreateAppLimitPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -3551,7 +3499,6 @@ export type CreateAppLimitPayloadSelect = { select: AppLimitEdgeSelect; }; }; -/** The output of our update `AppLimit` mutation. */ export interface UpdateAppLimitPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -3572,7 +3519,6 @@ export type UpdateAppLimitPayloadSelect = { select: AppLimitEdgeSelect; }; }; -/** The output of our delete `AppLimit` mutation. */ export interface DeleteAppLimitPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -3593,7 +3539,6 @@ export type DeleteAppLimitPayloadSelect = { select: AppLimitEdgeSelect; }; }; -/** The output of our create `AppAchievement` mutation. */ export interface CreateAppAchievementPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -3614,7 +3559,6 @@ export type CreateAppAchievementPayloadSelect = { select: AppAchievementEdgeSelect; }; }; -/** The output of our update `AppAchievement` mutation. */ export interface UpdateAppAchievementPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -3635,7 +3579,6 @@ export type UpdateAppAchievementPayloadSelect = { select: AppAchievementEdgeSelect; }; }; -/** The output of our delete `AppAchievement` mutation. */ export interface DeleteAppAchievementPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -3656,7 +3599,6 @@ export type DeleteAppAchievementPayloadSelect = { select: AppAchievementEdgeSelect; }; }; -/** The output of our create `AppStep` mutation. */ export interface CreateAppStepPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -3677,7 +3619,6 @@ export type CreateAppStepPayloadSelect = { select: AppStepEdgeSelect; }; }; -/** The output of our update `AppStep` mutation. */ export interface UpdateAppStepPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -3698,7 +3639,6 @@ export type UpdateAppStepPayloadSelect = { select: AppStepEdgeSelect; }; }; -/** The output of our delete `AppStep` mutation. */ export interface DeleteAppStepPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -3719,7 +3659,6 @@ export type DeleteAppStepPayloadSelect = { select: AppStepEdgeSelect; }; }; -/** The output of our create `ClaimedInvite` mutation. */ export interface CreateClaimedInvitePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -3740,7 +3679,6 @@ export type CreateClaimedInvitePayloadSelect = { select: ClaimedInviteEdgeSelect; }; }; -/** The output of our update `ClaimedInvite` mutation. */ export interface UpdateClaimedInvitePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -3761,7 +3699,6 @@ export type UpdateClaimedInvitePayloadSelect = { select: ClaimedInviteEdgeSelect; }; }; -/** The output of our delete `ClaimedInvite` mutation. */ export interface DeleteClaimedInvitePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -3782,7 +3719,6 @@ export type DeleteClaimedInvitePayloadSelect = { select: ClaimedInviteEdgeSelect; }; }; -/** The output of our create `AppGrant` mutation. */ export interface CreateAppGrantPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -3803,7 +3739,6 @@ export type CreateAppGrantPayloadSelect = { select: AppGrantEdgeSelect; }; }; -/** The output of our update `AppGrant` mutation. */ export interface UpdateAppGrantPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -3824,7 +3759,6 @@ export type UpdateAppGrantPayloadSelect = { select: AppGrantEdgeSelect; }; }; -/** The output of our delete `AppGrant` mutation. */ export interface DeleteAppGrantPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -3845,7 +3779,6 @@ export type DeleteAppGrantPayloadSelect = { select: AppGrantEdgeSelect; }; }; -/** The output of our create `AppMembershipDefault` mutation. */ export interface CreateAppMembershipDefaultPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -3866,7 +3799,6 @@ export type CreateAppMembershipDefaultPayloadSelect = { select: AppMembershipDefaultEdgeSelect; }; }; -/** The output of our update `AppMembershipDefault` mutation. */ export interface UpdateAppMembershipDefaultPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -3887,7 +3819,6 @@ export type UpdateAppMembershipDefaultPayloadSelect = { select: AppMembershipDefaultEdgeSelect; }; }; -/** The output of our delete `AppMembershipDefault` mutation. */ export interface DeleteAppMembershipDefaultPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -3908,7 +3839,6 @@ export type DeleteAppMembershipDefaultPayloadSelect = { select: AppMembershipDefaultEdgeSelect; }; }; -/** The output of our create `OrgLimit` mutation. */ export interface CreateOrgLimitPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -3929,7 +3859,6 @@ export type CreateOrgLimitPayloadSelect = { select: OrgLimitEdgeSelect; }; }; -/** The output of our update `OrgLimit` mutation. */ export interface UpdateOrgLimitPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -3950,7 +3879,6 @@ export type UpdateOrgLimitPayloadSelect = { select: OrgLimitEdgeSelect; }; }; -/** The output of our delete `OrgLimit` mutation. */ export interface DeleteOrgLimitPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -3971,7 +3899,6 @@ export type DeleteOrgLimitPayloadSelect = { select: OrgLimitEdgeSelect; }; }; -/** The output of our create `OrgClaimedInvite` mutation. */ export interface CreateOrgClaimedInvitePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -3992,7 +3919,6 @@ export type CreateOrgClaimedInvitePayloadSelect = { select: OrgClaimedInviteEdgeSelect; }; }; -/** The output of our update `OrgClaimedInvite` mutation. */ export interface UpdateOrgClaimedInvitePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -4013,7 +3939,6 @@ export type UpdateOrgClaimedInvitePayloadSelect = { select: OrgClaimedInviteEdgeSelect; }; }; -/** The output of our delete `OrgClaimedInvite` mutation. */ export interface DeleteOrgClaimedInvitePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -4034,7 +3959,6 @@ export type DeleteOrgClaimedInvitePayloadSelect = { select: OrgClaimedInviteEdgeSelect; }; }; -/** The output of our create `OrgGrant` mutation. */ export interface CreateOrgGrantPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -4055,7 +3979,6 @@ export type CreateOrgGrantPayloadSelect = { select: OrgGrantEdgeSelect; }; }; -/** The output of our update `OrgGrant` mutation. */ export interface UpdateOrgGrantPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -4076,7 +3999,6 @@ export type UpdateOrgGrantPayloadSelect = { select: OrgGrantEdgeSelect; }; }; -/** The output of our delete `OrgGrant` mutation. */ export interface DeleteOrgGrantPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -4097,7 +4019,6 @@ export type DeleteOrgGrantPayloadSelect = { select: OrgGrantEdgeSelect; }; }; -/** The output of our create `OrgMembershipDefault` mutation. */ export interface CreateOrgMembershipDefaultPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -4118,7 +4039,6 @@ export type CreateOrgMembershipDefaultPayloadSelect = { select: OrgMembershipDefaultEdgeSelect; }; }; -/** The output of our update `OrgMembershipDefault` mutation. */ export interface UpdateOrgMembershipDefaultPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -4139,7 +4059,6 @@ export type UpdateOrgMembershipDefaultPayloadSelect = { select: OrgMembershipDefaultEdgeSelect; }; }; -/** The output of our delete `OrgMembershipDefault` mutation. */ export interface DeleteOrgMembershipDefaultPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -4160,7 +4079,6 @@ export type DeleteOrgMembershipDefaultPayloadSelect = { select: OrgMembershipDefaultEdgeSelect; }; }; -/** The output of our create `AppLevel` mutation. */ export interface CreateAppLevelPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -4181,7 +4099,6 @@ export type CreateAppLevelPayloadSelect = { select: AppLevelEdgeSelect; }; }; -/** The output of our update `AppLevel` mutation. */ export interface UpdateAppLevelPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -4202,7 +4119,6 @@ export type UpdateAppLevelPayloadSelect = { select: AppLevelEdgeSelect; }; }; -/** The output of our delete `AppLevel` mutation. */ export interface DeleteAppLevelPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -4223,7 +4139,6 @@ export type DeleteAppLevelPayloadSelect = { select: AppLevelEdgeSelect; }; }; -/** The output of our create `Invite` mutation. */ export interface CreateInvitePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -4244,7 +4159,6 @@ export type CreateInvitePayloadSelect = { select: InviteEdgeSelect; }; }; -/** The output of our update `Invite` mutation. */ export interface UpdateInvitePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -4265,7 +4179,6 @@ export type UpdateInvitePayloadSelect = { select: InviteEdgeSelect; }; }; -/** The output of our delete `Invite` mutation. */ export interface DeleteInvitePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -4286,7 +4199,6 @@ export type DeleteInvitePayloadSelect = { select: InviteEdgeSelect; }; }; -/** The output of our create `AppMembership` mutation. */ export interface CreateAppMembershipPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -4307,7 +4219,6 @@ export type CreateAppMembershipPayloadSelect = { select: AppMembershipEdgeSelect; }; }; -/** The output of our update `AppMembership` mutation. */ export interface UpdateAppMembershipPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -4328,7 +4239,6 @@ export type UpdateAppMembershipPayloadSelect = { select: AppMembershipEdgeSelect; }; }; -/** The output of our delete `AppMembership` mutation. */ export interface DeleteAppMembershipPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -4349,7 +4259,6 @@ export type DeleteAppMembershipPayloadSelect = { select: AppMembershipEdgeSelect; }; }; -/** The output of our create `OrgMembership` mutation. */ export interface CreateOrgMembershipPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -4370,7 +4279,6 @@ export type CreateOrgMembershipPayloadSelect = { select: OrgMembershipEdgeSelect; }; }; -/** The output of our update `OrgMembership` mutation. */ export interface UpdateOrgMembershipPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -4391,7 +4299,6 @@ export type UpdateOrgMembershipPayloadSelect = { select: OrgMembershipEdgeSelect; }; }; -/** The output of our delete `OrgMembership` mutation. */ export interface DeleteOrgMembershipPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -4412,7 +4319,6 @@ export type DeleteOrgMembershipPayloadSelect = { select: OrgMembershipEdgeSelect; }; }; -/** The output of our create `OrgInvite` mutation. */ export interface CreateOrgInvitePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -4433,7 +4339,6 @@ export type CreateOrgInvitePayloadSelect = { select: OrgInviteEdgeSelect; }; }; -/** The output of our update `OrgInvite` mutation. */ export interface UpdateOrgInvitePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -4454,7 +4359,6 @@ export type UpdateOrgInvitePayloadSelect = { select: OrgInviteEdgeSelect; }; }; -/** The output of our delete `OrgInvite` mutation. */ export interface DeleteOrgInvitePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, diff --git a/sdk/constructive-sdk/src/admin/orm/mutation/index.ts b/sdk/constructive-sdk/src/admin/orm/mutation/index.ts index 2f31d43c1..7c2c241a1 100644 --- a/sdk/constructive-sdk/src/admin/orm/mutation/index.ts +++ b/sdk/constructive-sdk/src/admin/orm/mutation/index.ts @@ -16,11 +16,9 @@ import type { } from '../input-types'; import { connectionFieldsMap } from '../input-types'; export interface SubmitInviteCodeVariables { - /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: SubmitInviteCodeInput; } export interface SubmitOrgInviteCodeVariables { - /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: SubmitOrgInviteCodeInput; } export function createMutationOperations(client: OrmClient) { diff --git a/sdk/constructive-sdk/src/auth/orm/input-types.ts b/sdk/constructive-sdk/src/auth/orm/input-types.ts index 572684f29..e7c25ebf4 100644 --- a/sdk/constructive-sdk/src/auth/orm/input-types.ts +++ b/sdk/constructive-sdk/src/auth/orm/input-types.ts @@ -869,89 +869,44 @@ export interface DeleteUserInput { } // ============ Connection Fields Map ============ export const connectionFieldsMap = {} as Record>; -/** All input for the `signOut` mutation. */ // ============ Custom Input Types (from schema) ============ export interface SignOutInput { - /** - * An arbitrary string value with no semantic meaning. Will be included in the - * payload verbatim. May be used to track mutations by the client. - */ clientMutationId?: string; } -/** All input for the `sendAccountDeletionEmail` mutation. */ export interface SendAccountDeletionEmailInput { - /** - * An arbitrary string value with no semantic meaning. Will be included in the - * payload verbatim. May be used to track mutations by the client. - */ clientMutationId?: string; } -/** All input for the `checkPassword` mutation. */ export interface CheckPasswordInput { - /** - * An arbitrary string value with no semantic meaning. Will be included in the - * payload verbatim. May be used to track mutations by the client. - */ clientMutationId?: string; password?: string; } -/** All input for the `confirmDeleteAccount` mutation. */ export interface ConfirmDeleteAccountInput { - /** - * An arbitrary string value with no semantic meaning. Will be included in the - * payload verbatim. May be used to track mutations by the client. - */ clientMutationId?: string; userId?: string; token?: string; } -/** All input for the `setPassword` mutation. */ export interface SetPasswordInput { - /** - * An arbitrary string value with no semantic meaning. Will be included in the - * payload verbatim. May be used to track mutations by the client. - */ clientMutationId?: string; currentPassword?: string; newPassword?: string; } -/** All input for the `verifyEmail` mutation. */ export interface VerifyEmailInput { - /** - * An arbitrary string value with no semantic meaning. Will be included in the - * payload verbatim. May be used to track mutations by the client. - */ clientMutationId?: string; emailId?: string; token?: string; } -/** All input for the `resetPassword` mutation. */ export interface ResetPasswordInput { - /** - * An arbitrary string value with no semantic meaning. Will be included in the - * payload verbatim. May be used to track mutations by the client. - */ clientMutationId?: string; roleId?: string; resetToken?: string; newPassword?: string; } -/** All input for the `signInOneTimeToken` mutation. */ export interface SignInOneTimeTokenInput { - /** - * An arbitrary string value with no semantic meaning. Will be included in the - * payload verbatim. May be used to track mutations by the client. - */ clientMutationId?: string; token?: string; credentialKind?: string; } -/** All input for the `signIn` mutation. */ export interface SignInInput { - /** - * An arbitrary string value with no semantic meaning. Will be included in the - * payload verbatim. May be used to track mutations by the client. - */ clientMutationId?: string; email?: string; password?: string; @@ -959,12 +914,7 @@ export interface SignInInput { credentialKind?: string; csrfToken?: string; } -/** All input for the `signUp` mutation. */ export interface SignUpInput { - /** - * An arbitrary string value with no semantic meaning. Will be included in the - * payload verbatim. May be used to track mutations by the client. - */ clientMutationId?: string; email?: string; password?: string; @@ -972,60 +922,30 @@ export interface SignUpInput { credentialKind?: string; csrfToken?: string; } -/** All input for the `oneTimeToken` mutation. */ export interface OneTimeTokenInput { - /** - * An arbitrary string value with no semantic meaning. Will be included in the - * payload verbatim. May be used to track mutations by the client. - */ clientMutationId?: string; email?: string; password?: string; origin?: ConstructiveInternalTypeOrigin; rememberMe?: boolean; } -/** All input for the `extendTokenExpires` mutation. */ export interface ExtendTokenExpiresInput { - /** - * An arbitrary string value with no semantic meaning. Will be included in the - * payload verbatim. May be used to track mutations by the client. - */ clientMutationId?: string; amount?: IntervalInput; } -/** All input for the `forgotPassword` mutation. */ export interface ForgotPasswordInput { - /** - * An arbitrary string value with no semantic meaning. Will be included in the - * payload verbatim. May be used to track mutations by the client. - */ clientMutationId?: string; email?: ConstructiveInternalTypeEmail; } -/** All input for the `sendVerificationEmail` mutation. */ export interface SendVerificationEmailInput { - /** - * An arbitrary string value with no semantic meaning. Will be included in the - * payload verbatim. May be used to track mutations by the client. - */ clientMutationId?: string; email?: ConstructiveInternalTypeEmail; } -/** All input for the `verifyPassword` mutation. */ export interface VerifyPasswordInput { - /** - * An arbitrary string value with no semantic meaning. Will be included in the - * payload verbatim. May be used to track mutations by the client. - */ clientMutationId?: string; password: string; } -/** All input for the `verifyTotp` mutation. */ export interface VerifyTotpInput { - /** - * An arbitrary string value with no semantic meaning. Will be included in the - * payload verbatim. May be used to track mutations by the client. - */ clientMutationId?: string; totpValue: string; } @@ -1048,7 +968,6 @@ export interface IntervalInput { /** A quantity of years. */ years?: number; } -/** The output of our `signOut` mutation. */ // ============ Payload/Return Types (for custom operations) ============ export interface SignOutPayload { /** @@ -1060,7 +979,6 @@ export interface SignOutPayload { export type SignOutPayloadSelect = { clientMutationId?: boolean; }; -/** The output of our `sendAccountDeletionEmail` mutation. */ export interface SendAccountDeletionEmailPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -1073,7 +991,6 @@ export type SendAccountDeletionEmailPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -/** The output of our `checkPassword` mutation. */ export interface CheckPasswordPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -1084,7 +1001,6 @@ export interface CheckPasswordPayload { export type CheckPasswordPayloadSelect = { clientMutationId?: boolean; }; -/** The output of our `confirmDeleteAccount` mutation. */ export interface ConfirmDeleteAccountPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -1097,7 +1013,6 @@ export type ConfirmDeleteAccountPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -/** The output of our `setPassword` mutation. */ export interface SetPasswordPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -1110,7 +1025,6 @@ export type SetPasswordPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -/** The output of our `verifyEmail` mutation. */ export interface VerifyEmailPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -1123,7 +1037,6 @@ export type VerifyEmailPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -/** The output of our `resetPassword` mutation. */ export interface ResetPasswordPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -1136,7 +1049,6 @@ export type ResetPasswordPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -/** The output of our `signInOneTimeToken` mutation. */ export interface SignInOneTimeTokenPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -1151,7 +1063,6 @@ export type SignInOneTimeTokenPayloadSelect = { select: SignInOneTimeTokenRecordSelect; }; }; -/** The output of our `signIn` mutation. */ export interface SignInPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -1166,7 +1077,6 @@ export type SignInPayloadSelect = { select: SignInRecordSelect; }; }; -/** The output of our `signUp` mutation. */ export interface SignUpPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -1181,7 +1091,6 @@ export type SignUpPayloadSelect = { select: SignUpRecordSelect; }; }; -/** The output of our `oneTimeToken` mutation. */ export interface OneTimeTokenPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -1194,7 +1103,6 @@ export type OneTimeTokenPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -/** The output of our `extendTokenExpires` mutation. */ export interface ExtendTokenExpiresPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -1209,7 +1117,6 @@ export type ExtendTokenExpiresPayloadSelect = { select: ExtendTokenExpiresRecordSelect; }; }; -/** The output of our `forgotPassword` mutation. */ export interface ForgotPasswordPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -1220,7 +1127,6 @@ export interface ForgotPasswordPayload { export type ForgotPasswordPayloadSelect = { clientMutationId?: boolean; }; -/** The output of our `sendVerificationEmail` mutation. */ export interface SendVerificationEmailPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -1233,7 +1139,6 @@ export type SendVerificationEmailPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -/** The output of our `verifyPassword` mutation. */ export interface VerifyPasswordPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -1248,7 +1153,6 @@ export type VerifyPasswordPayloadSelect = { select: SessionSelect; }; }; -/** The output of our `verifyTotp` mutation. */ export interface VerifyTotpPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -1263,7 +1167,6 @@ export type VerifyTotpPayloadSelect = { select: SessionSelect; }; }; -/** The output of our create `RoleType` mutation. */ export interface CreateRoleTypePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -1284,7 +1187,6 @@ export type CreateRoleTypePayloadSelect = { select: RoleTypeEdgeSelect; }; }; -/** The output of our update `RoleType` mutation. */ export interface UpdateRoleTypePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -1305,7 +1207,6 @@ export type UpdateRoleTypePayloadSelect = { select: RoleTypeEdgeSelect; }; }; -/** The output of our delete `RoleType` mutation. */ export interface DeleteRoleTypePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -1326,7 +1227,6 @@ export type DeleteRoleTypePayloadSelect = { select: RoleTypeEdgeSelect; }; }; -/** The output of our create `CryptoAddress` mutation. */ export interface CreateCryptoAddressPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -1347,7 +1247,6 @@ export type CreateCryptoAddressPayloadSelect = { select: CryptoAddressEdgeSelect; }; }; -/** The output of our update `CryptoAddress` mutation. */ export interface UpdateCryptoAddressPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -1368,7 +1267,6 @@ export type UpdateCryptoAddressPayloadSelect = { select: CryptoAddressEdgeSelect; }; }; -/** The output of our delete `CryptoAddress` mutation. */ export interface DeleteCryptoAddressPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -1389,7 +1287,6 @@ export type DeleteCryptoAddressPayloadSelect = { select: CryptoAddressEdgeSelect; }; }; -/** The output of our create `PhoneNumber` mutation. */ export interface CreatePhoneNumberPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -1410,7 +1307,6 @@ export type CreatePhoneNumberPayloadSelect = { select: PhoneNumberEdgeSelect; }; }; -/** The output of our update `PhoneNumber` mutation. */ export interface UpdatePhoneNumberPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -1431,7 +1327,6 @@ export type UpdatePhoneNumberPayloadSelect = { select: PhoneNumberEdgeSelect; }; }; -/** The output of our delete `PhoneNumber` mutation. */ export interface DeletePhoneNumberPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -1452,7 +1347,6 @@ export type DeletePhoneNumberPayloadSelect = { select: PhoneNumberEdgeSelect; }; }; -/** The output of our create `ConnectedAccount` mutation. */ export interface CreateConnectedAccountPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -1473,7 +1367,6 @@ export type CreateConnectedAccountPayloadSelect = { select: ConnectedAccountEdgeSelect; }; }; -/** The output of our update `ConnectedAccount` mutation. */ export interface UpdateConnectedAccountPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -1494,7 +1387,6 @@ export type UpdateConnectedAccountPayloadSelect = { select: ConnectedAccountEdgeSelect; }; }; -/** The output of our delete `ConnectedAccount` mutation. */ export interface DeleteConnectedAccountPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -1515,7 +1407,6 @@ export type DeleteConnectedAccountPayloadSelect = { select: ConnectedAccountEdgeSelect; }; }; -/** The output of our create `Email` mutation. */ export interface CreateEmailPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -1536,7 +1427,6 @@ export type CreateEmailPayloadSelect = { select: EmailEdgeSelect; }; }; -/** The output of our update `Email` mutation. */ export interface UpdateEmailPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -1557,7 +1447,6 @@ export type UpdateEmailPayloadSelect = { select: EmailEdgeSelect; }; }; -/** The output of our delete `Email` mutation. */ export interface DeleteEmailPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -1578,7 +1467,6 @@ export type DeleteEmailPayloadSelect = { select: EmailEdgeSelect; }; }; -/** The output of our create `AuditLog` mutation. */ export interface CreateAuditLogPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -1599,7 +1487,6 @@ export type CreateAuditLogPayloadSelect = { select: AuditLogEdgeSelect; }; }; -/** The output of our update `AuditLog` mutation. */ export interface UpdateAuditLogPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -1620,7 +1507,6 @@ export type UpdateAuditLogPayloadSelect = { select: AuditLogEdgeSelect; }; }; -/** The output of our delete `AuditLog` mutation. */ export interface DeleteAuditLogPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -1641,7 +1527,6 @@ export type DeleteAuditLogPayloadSelect = { select: AuditLogEdgeSelect; }; }; -/** The output of our create `User` mutation. */ export interface CreateUserPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -1662,7 +1547,6 @@ export type CreateUserPayloadSelect = { select: UserEdgeSelect; }; }; -/** The output of our update `User` mutation. */ export interface UpdateUserPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -1683,7 +1567,6 @@ export type UpdateUserPayloadSelect = { select: UserEdgeSelect; }; }; -/** The output of our delete `User` mutation. */ export interface DeleteUserPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, diff --git a/sdk/constructive-sdk/src/auth/orm/mutation/index.ts b/sdk/constructive-sdk/src/auth/orm/mutation/index.ts index 0d9f251f5..4428311bb 100644 --- a/sdk/constructive-sdk/src/auth/orm/mutation/index.ts +++ b/sdk/constructive-sdk/src/auth/orm/mutation/index.ts @@ -58,67 +58,51 @@ import type { } from '../input-types'; import { connectionFieldsMap } from '../input-types'; export interface SignOutVariables { - /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: SignOutInput; } export interface SendAccountDeletionEmailVariables { - /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: SendAccountDeletionEmailInput; } export interface CheckPasswordVariables { - /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: CheckPasswordInput; } export interface ConfirmDeleteAccountVariables { - /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: ConfirmDeleteAccountInput; } export interface SetPasswordVariables { - /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: SetPasswordInput; } export interface VerifyEmailVariables { - /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: VerifyEmailInput; } export interface ResetPasswordVariables { - /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: ResetPasswordInput; } export interface SignInOneTimeTokenVariables { - /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: SignInOneTimeTokenInput; } export interface SignInVariables { - /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: SignInInput; } export interface SignUpVariables { - /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: SignUpInput; } export interface OneTimeTokenVariables { - /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: OneTimeTokenInput; } export interface ExtendTokenExpiresVariables { - /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: ExtendTokenExpiresInput; } export interface ForgotPasswordVariables { - /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: ForgotPasswordInput; } export interface SendVerificationEmailVariables { - /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: SendVerificationEmailInput; } export interface VerifyPasswordVariables { - /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: VerifyPasswordInput; } export interface VerifyTotpVariables { - /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: VerifyTotpInput; } export function createMutationOperations(client: OrmClient) { diff --git a/sdk/constructive-sdk/src/objects/orm/input-types.ts b/sdk/constructive-sdk/src/objects/orm/input-types.ts index d39a472eb..18a970959 100644 --- a/sdk/constructive-sdk/src/objects/orm/input-types.ts +++ b/sdk/constructive-sdk/src/objects/orm/input-types.ts @@ -645,56 +645,31 @@ export interface DeleteCommitInput { } // ============ Connection Fields Map ============ export const connectionFieldsMap = {} as Record>; -/** All input for the `freezeObjects` mutation. */ // ============ Custom Input Types (from schema) ============ export interface FreezeObjectsInput { - /** - * An arbitrary string value with no semantic meaning. Will be included in the - * payload verbatim. May be used to track mutations by the client. - */ clientMutationId?: string; databaseId?: string; id?: string; } -/** All input for the `initEmptyRepo` mutation. */ export interface InitEmptyRepoInput { - /** - * An arbitrary string value with no semantic meaning. Will be included in the - * payload verbatim. May be used to track mutations by the client. - */ clientMutationId?: string; dbId?: string; storeId?: string; } -/** All input for the `removeNodeAtPath` mutation. */ export interface RemoveNodeAtPathInput { - /** - * An arbitrary string value with no semantic meaning. Will be included in the - * payload verbatim. May be used to track mutations by the client. - */ clientMutationId?: string; dbId?: string; root?: string; path?: string[]; } -/** All input for the `setDataAtPath` mutation. */ export interface SetDataAtPathInput { - /** - * An arbitrary string value with no semantic meaning. Will be included in the - * payload verbatim. May be used to track mutations by the client. - */ clientMutationId?: string; dbId?: string; root?: string; path?: string[]; data?: Record; } -/** All input for the `setPropsAndCommit` mutation. */ export interface SetPropsAndCommitInput { - /** - * An arbitrary string value with no semantic meaning. Will be included in the - * payload verbatim. May be used to track mutations by the client. - */ clientMutationId?: string; dbId?: string; storeId?: string; @@ -702,12 +677,7 @@ export interface SetPropsAndCommitInput { path?: string[]; data?: Record; } -/** All input for the `insertNodeAtPath` mutation. */ export interface InsertNodeAtPathInput { - /** - * An arbitrary string value with no semantic meaning. Will be included in the - * payload verbatim. May be used to track mutations by the client. - */ clientMutationId?: string; dbId?: string; root?: string; @@ -716,12 +686,7 @@ export interface InsertNodeAtPathInput { kids?: string[]; ktree?: string[]; } -/** All input for the `updateNodeAtPath` mutation. */ export interface UpdateNodeAtPathInput { - /** - * An arbitrary string value with no semantic meaning. Will be included in the - * payload verbatim. May be used to track mutations by the client. - */ clientMutationId?: string; dbId?: string; root?: string; @@ -730,12 +695,7 @@ export interface UpdateNodeAtPathInput { kids?: string[]; ktree?: string[]; } -/** All input for the `setAndCommit` mutation. */ export interface SetAndCommitInput { - /** - * An arbitrary string value with no semantic meaning. Will be included in the - * payload verbatim. May be used to track mutations by the client. - */ clientMutationId?: string; dbId?: string; storeId?: string; @@ -769,7 +729,6 @@ export type ObjectConnectionSelect = { }; totalCount?: boolean; }; -/** The output of our `freezeObjects` mutation. */ export interface FreezeObjectsPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -780,7 +739,6 @@ export interface FreezeObjectsPayload { export type FreezeObjectsPayloadSelect = { clientMutationId?: boolean; }; -/** The output of our `initEmptyRepo` mutation. */ export interface InitEmptyRepoPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -791,7 +749,6 @@ export interface InitEmptyRepoPayload { export type InitEmptyRepoPayloadSelect = { clientMutationId?: boolean; }; -/** The output of our `removeNodeAtPath` mutation. */ export interface RemoveNodeAtPathPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -804,7 +761,6 @@ export type RemoveNodeAtPathPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -/** The output of our `setDataAtPath` mutation. */ export interface SetDataAtPathPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -817,7 +773,6 @@ export type SetDataAtPathPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -/** The output of our `setPropsAndCommit` mutation. */ export interface SetPropsAndCommitPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -830,7 +785,6 @@ export type SetPropsAndCommitPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -/** The output of our `insertNodeAtPath` mutation. */ export interface InsertNodeAtPathPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -843,7 +797,6 @@ export type InsertNodeAtPathPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -/** The output of our `updateNodeAtPath` mutation. */ export interface UpdateNodeAtPathPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -856,7 +809,6 @@ export type UpdateNodeAtPathPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -/** The output of our `setAndCommit` mutation. */ export interface SetAndCommitPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -869,7 +821,6 @@ export type SetAndCommitPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -/** The output of our create `Object` mutation. */ export interface CreateObjectPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -890,7 +841,6 @@ export type CreateObjectPayloadSelect = { select: ObjectEdgeSelect; }; }; -/** The output of our update `Object` mutation. */ export interface UpdateObjectPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -911,7 +861,6 @@ export type UpdateObjectPayloadSelect = { select: ObjectEdgeSelect; }; }; -/** The output of our delete `Object` mutation. */ export interface DeleteObjectPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -932,7 +881,6 @@ export type DeleteObjectPayloadSelect = { select: ObjectEdgeSelect; }; }; -/** The output of our create `Ref` mutation. */ export interface CreateRefPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -953,7 +901,6 @@ export type CreateRefPayloadSelect = { select: RefEdgeSelect; }; }; -/** The output of our update `Ref` mutation. */ export interface UpdateRefPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -974,7 +921,6 @@ export type UpdateRefPayloadSelect = { select: RefEdgeSelect; }; }; -/** The output of our delete `Ref` mutation. */ export interface DeleteRefPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -995,7 +941,6 @@ export type DeleteRefPayloadSelect = { select: RefEdgeSelect; }; }; -/** The output of our create `Store` mutation. */ export interface CreateStorePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -1016,7 +961,6 @@ export type CreateStorePayloadSelect = { select: StoreEdgeSelect; }; }; -/** The output of our update `Store` mutation. */ export interface UpdateStorePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -1037,7 +981,6 @@ export type UpdateStorePayloadSelect = { select: StoreEdgeSelect; }; }; -/** The output of our delete `Store` mutation. */ export interface DeleteStorePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -1058,7 +1001,6 @@ export type DeleteStorePayloadSelect = { select: StoreEdgeSelect; }; }; -/** The output of our create `Commit` mutation. */ export interface CreateCommitPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -1079,7 +1021,6 @@ export type CreateCommitPayloadSelect = { select: CommitEdgeSelect; }; }; -/** The output of our update `Commit` mutation. */ export interface UpdateCommitPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -1100,7 +1041,6 @@ export type UpdateCommitPayloadSelect = { select: CommitEdgeSelect; }; }; -/** The output of our delete `Commit` mutation. */ export interface DeleteCommitPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, diff --git a/sdk/constructive-sdk/src/objects/orm/mutation/index.ts b/sdk/constructive-sdk/src/objects/orm/mutation/index.ts index 4dc08f326..a45680406 100644 --- a/sdk/constructive-sdk/src/objects/orm/mutation/index.ts +++ b/sdk/constructive-sdk/src/objects/orm/mutation/index.ts @@ -34,35 +34,27 @@ import type { } from '../input-types'; import { connectionFieldsMap } from '../input-types'; export interface FreezeObjectsVariables { - /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: FreezeObjectsInput; } export interface InitEmptyRepoVariables { - /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: InitEmptyRepoInput; } export interface RemoveNodeAtPathVariables { - /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: RemoveNodeAtPathInput; } export interface SetDataAtPathVariables { - /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: SetDataAtPathInput; } export interface SetPropsAndCommitVariables { - /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: SetPropsAndCommitInput; } export interface InsertNodeAtPathVariables { - /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: InsertNodeAtPathInput; } export interface UpdateNodeAtPathVariables { - /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: UpdateNodeAtPathInput; } export interface SetAndCommitVariables { - /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: SetAndCommitInput; } export function createMutationOperations(client: OrmClient) { diff --git a/sdk/constructive-sdk/src/public/orm/input-types.ts b/sdk/constructive-sdk/src/public/orm/input-types.ts index 99cc5b837..a083a522d 100644 --- a/sdk/constructive-sdk/src/public/orm/input-types.ts +++ b/sdk/constructive-sdk/src/public/orm/input-types.ts @@ -12668,128 +12668,63 @@ export const connectionFieldsMap = { orgClaimedInvitesBySenderId: 'OrgClaimedInvite', }, } as Record>; -/** All input for the `signOut` mutation. */ // ============ Custom Input Types (from schema) ============ export interface SignOutInput { - /** - * An arbitrary string value with no semantic meaning. Will be included in the - * payload verbatim. May be used to track mutations by the client. - */ clientMutationId?: string; } -/** All input for the `sendAccountDeletionEmail` mutation. */ export interface SendAccountDeletionEmailInput { - /** - * An arbitrary string value with no semantic meaning. Will be included in the - * payload verbatim. May be used to track mutations by the client. - */ clientMutationId?: string; } -/** All input for the `checkPassword` mutation. */ export interface CheckPasswordInput { - /** - * An arbitrary string value with no semantic meaning. Will be included in the - * payload verbatim. May be used to track mutations by the client. - */ clientMutationId?: string; password?: string; } -/** All input for the `submitInviteCode` mutation. */ export interface SubmitInviteCodeInput { - /** - * An arbitrary string value with no semantic meaning. Will be included in the - * payload verbatim. May be used to track mutations by the client. - */ clientMutationId?: string; token?: string; } -/** All input for the `submitOrgInviteCode` mutation. */ export interface SubmitOrgInviteCodeInput { - /** - * An arbitrary string value with no semantic meaning. Will be included in the - * payload verbatim. May be used to track mutations by the client. - */ clientMutationId?: string; token?: string; } -/** All input for the `freezeObjects` mutation. */ export interface FreezeObjectsInput { - /** - * An arbitrary string value with no semantic meaning. Will be included in the - * payload verbatim. May be used to track mutations by the client. - */ clientMutationId?: string; databaseId?: string; id?: string; } -/** All input for the `initEmptyRepo` mutation. */ export interface InitEmptyRepoInput { - /** - * An arbitrary string value with no semantic meaning. Will be included in the - * payload verbatim. May be used to track mutations by the client. - */ clientMutationId?: string; dbId?: string; storeId?: string; } -/** All input for the `confirmDeleteAccount` mutation. */ export interface ConfirmDeleteAccountInput { - /** - * An arbitrary string value with no semantic meaning. Will be included in the - * payload verbatim. May be used to track mutations by the client. - */ clientMutationId?: string; userId?: string; token?: string; } -/** All input for the `setPassword` mutation. */ export interface SetPasswordInput { - /** - * An arbitrary string value with no semantic meaning. Will be included in the - * payload verbatim. May be used to track mutations by the client. - */ clientMutationId?: string; currentPassword?: string; newPassword?: string; } -/** All input for the `verifyEmail` mutation. */ export interface VerifyEmailInput { - /** - * An arbitrary string value with no semantic meaning. Will be included in the - * payload verbatim. May be used to track mutations by the client. - */ clientMutationId?: string; emailId?: string; token?: string; } -/** All input for the `resetPassword` mutation. */ export interface ResetPasswordInput { - /** - * An arbitrary string value with no semantic meaning. Will be included in the - * payload verbatim. May be used to track mutations by the client. - */ clientMutationId?: string; roleId?: string; resetToken?: string; newPassword?: string; } -/** All input for the `removeNodeAtPath` mutation. */ export interface RemoveNodeAtPathInput { - /** - * An arbitrary string value with no semantic meaning. Will be included in the - * payload verbatim. May be used to track mutations by the client. - */ clientMutationId?: string; dbId?: string; root?: string; path?: string[]; } -/** All input for the `bootstrapUser` mutation. */ export interface BootstrapUserInput { - /** - * An arbitrary string value with no semantic meaning. Will be included in the - * payload verbatim. May be used to track mutations by the client. - */ clientMutationId?: string; targetDatabaseId?: string; password?: string; @@ -12799,24 +12734,14 @@ export interface BootstrapUserInput { displayName?: string; returnApiKey?: boolean; } -/** All input for the `setDataAtPath` mutation. */ export interface SetDataAtPathInput { - /** - * An arbitrary string value with no semantic meaning. Will be included in the - * payload verbatim. May be used to track mutations by the client. - */ clientMutationId?: string; dbId?: string; root?: string; path?: string[]; data?: Record; } -/** All input for the `setPropsAndCommit` mutation. */ export interface SetPropsAndCommitInput { - /** - * An arbitrary string value with no semantic meaning. Will be included in the - * payload verbatim. May be used to track mutations by the client. - */ clientMutationId?: string; dbId?: string; storeId?: string; @@ -12824,12 +12749,7 @@ export interface SetPropsAndCommitInput { path?: string[]; data?: Record; } -/** All input for the `provisionDatabaseWithUser` mutation. */ export interface ProvisionDatabaseWithUserInput { - /** - * An arbitrary string value with no semantic meaning. Will be included in the - * payload verbatim. May be used to track mutations by the client. - */ clientMutationId?: string; pDatabaseName?: string; pDomain?: string; @@ -12837,22 +12757,12 @@ export interface ProvisionDatabaseWithUserInput { pModules?: string[]; pOptions?: Record; } -/** All input for the `signInOneTimeToken` mutation. */ export interface SignInOneTimeTokenInput { - /** - * An arbitrary string value with no semantic meaning. Will be included in the - * payload verbatim. May be used to track mutations by the client. - */ clientMutationId?: string; token?: string; credentialKind?: string; } -/** All input for the `createUserDatabase` mutation. */ export interface CreateUserDatabaseInput { - /** - * An arbitrary string value with no semantic meaning. Will be included in the - * payload verbatim. May be used to track mutations by the client. - */ clientMutationId?: string; databaseName?: string; ownerId?: string; @@ -12862,21 +12772,11 @@ export interface CreateUserDatabaseInput { bitlen?: number; tokensExpiration?: IntervalInput; } -/** All input for the `extendTokenExpires` mutation. */ export interface ExtendTokenExpiresInput { - /** - * An arbitrary string value with no semantic meaning. Will be included in the - * payload verbatim. May be used to track mutations by the client. - */ clientMutationId?: string; amount?: IntervalInput; } -/** All input for the `signIn` mutation. */ export interface SignInInput { - /** - * An arbitrary string value with no semantic meaning. Will be included in the - * payload verbatim. May be used to track mutations by the client. - */ clientMutationId?: string; email?: string; password?: string; @@ -12884,12 +12784,7 @@ export interface SignInInput { credentialKind?: string; csrfToken?: string; } -/** All input for the `signUp` mutation. */ export interface SignUpInput { - /** - * An arbitrary string value with no semantic meaning. Will be included in the - * payload verbatim. May be used to track mutations by the client. - */ clientMutationId?: string; email?: string; password?: string; @@ -12897,33 +12792,18 @@ export interface SignUpInput { credentialKind?: string; csrfToken?: string; } -/** All input for the `setFieldOrder` mutation. */ export interface SetFieldOrderInput { - /** - * An arbitrary string value with no semantic meaning. Will be included in the - * payload verbatim. May be used to track mutations by the client. - */ clientMutationId?: string; fieldIds?: string[]; } -/** All input for the `oneTimeToken` mutation. */ export interface OneTimeTokenInput { - /** - * An arbitrary string value with no semantic meaning. Will be included in the - * payload verbatim. May be used to track mutations by the client. - */ clientMutationId?: string; email?: string; password?: string; origin?: ConstructiveInternalTypeOrigin; rememberMe?: boolean; } -/** All input for the `insertNodeAtPath` mutation. */ export interface InsertNodeAtPathInput { - /** - * An arbitrary string value with no semantic meaning. Will be included in the - * payload verbatim. May be used to track mutations by the client. - */ clientMutationId?: string; dbId?: string; root?: string; @@ -12932,12 +12812,7 @@ export interface InsertNodeAtPathInput { kids?: string[]; ktree?: string[]; } -/** All input for the `updateNodeAtPath` mutation. */ export interface UpdateNodeAtPathInput { - /** - * An arbitrary string value with no semantic meaning. Will be included in the - * payload verbatim. May be used to track mutations by the client. - */ clientMutationId?: string; dbId?: string; root?: string; @@ -12946,12 +12821,7 @@ export interface UpdateNodeAtPathInput { kids?: string[]; ktree?: string[]; } -/** All input for the `setAndCommit` mutation. */ export interface SetAndCommitInput { - /** - * An arbitrary string value with no semantic meaning. Will be included in the - * payload verbatim. May be used to track mutations by the client. - */ clientMutationId?: string; dbId?: string; storeId?: string; @@ -12961,12 +12831,7 @@ export interface SetAndCommitInput { kids?: string[]; ktree?: string[]; } -/** All input for the `applyRls` mutation. */ export interface ApplyRlsInput { - /** - * An arbitrary string value with no semantic meaning. Will be included in the - * payload verbatim. May be used to track mutations by the client. - */ clientMutationId?: string; tableId?: string; grants?: Record; @@ -12976,39 +12841,19 @@ export interface ApplyRlsInput { permissive?: boolean; name?: string; } -/** All input for the `forgotPassword` mutation. */ export interface ForgotPasswordInput { - /** - * An arbitrary string value with no semantic meaning. Will be included in the - * payload verbatim. May be used to track mutations by the client. - */ clientMutationId?: string; email?: ConstructiveInternalTypeEmail; } -/** All input for the `sendVerificationEmail` mutation. */ export interface SendVerificationEmailInput { - /** - * An arbitrary string value with no semantic meaning. Will be included in the - * payload verbatim. May be used to track mutations by the client. - */ clientMutationId?: string; email?: ConstructiveInternalTypeEmail; } -/** All input for the `verifyPassword` mutation. */ export interface VerifyPasswordInput { - /** - * An arbitrary string value with no semantic meaning. Will be included in the - * payload verbatim. May be used to track mutations by the client. - */ clientMutationId?: string; password: string; } -/** All input for the `verifyTotp` mutation. */ export interface VerifyTotpInput { - /** - * An arbitrary string value with no semantic meaning. Will be included in the - * payload verbatim. May be used to track mutations by the client. - */ clientMutationId?: string; totpValue: string; } @@ -13124,7 +12969,6 @@ export type AppLevelRequirementConnectionSelect = { }; totalCount?: boolean; }; -/** The output of our `signOut` mutation. */ export interface SignOutPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -13135,7 +12979,6 @@ export interface SignOutPayload { export type SignOutPayloadSelect = { clientMutationId?: boolean; }; -/** The output of our `sendAccountDeletionEmail` mutation. */ export interface SendAccountDeletionEmailPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -13148,7 +12991,6 @@ export type SendAccountDeletionEmailPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -/** The output of our `checkPassword` mutation. */ export interface CheckPasswordPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -13159,7 +13001,6 @@ export interface CheckPasswordPayload { export type CheckPasswordPayloadSelect = { clientMutationId?: boolean; }; -/** The output of our `submitInviteCode` mutation. */ export interface SubmitInviteCodePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -13172,7 +13013,6 @@ export type SubmitInviteCodePayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -/** The output of our `submitOrgInviteCode` mutation. */ export interface SubmitOrgInviteCodePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -13185,7 +13025,6 @@ export type SubmitOrgInviteCodePayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -/** The output of our `freezeObjects` mutation. */ export interface FreezeObjectsPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -13196,7 +13035,6 @@ export interface FreezeObjectsPayload { export type FreezeObjectsPayloadSelect = { clientMutationId?: boolean; }; -/** The output of our `initEmptyRepo` mutation. */ export interface InitEmptyRepoPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -13207,7 +13045,6 @@ export interface InitEmptyRepoPayload { export type InitEmptyRepoPayloadSelect = { clientMutationId?: boolean; }; -/** The output of our `confirmDeleteAccount` mutation. */ export interface ConfirmDeleteAccountPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -13220,7 +13057,6 @@ export type ConfirmDeleteAccountPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -/** The output of our `setPassword` mutation. */ export interface SetPasswordPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -13233,7 +13069,6 @@ export type SetPasswordPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -/** The output of our `verifyEmail` mutation. */ export interface VerifyEmailPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -13246,7 +13081,6 @@ export type VerifyEmailPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -/** The output of our `resetPassword` mutation. */ export interface ResetPasswordPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -13259,7 +13093,6 @@ export type ResetPasswordPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -/** The output of our `removeNodeAtPath` mutation. */ export interface RemoveNodeAtPathPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -13272,7 +13105,6 @@ export type RemoveNodeAtPathPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -/** The output of our `bootstrapUser` mutation. */ export interface BootstrapUserPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -13287,7 +13119,6 @@ export type BootstrapUserPayloadSelect = { select: BootstrapUserRecordSelect; }; }; -/** The output of our `setDataAtPath` mutation. */ export interface SetDataAtPathPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -13300,7 +13131,6 @@ export type SetDataAtPathPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -/** The output of our `setPropsAndCommit` mutation. */ export interface SetPropsAndCommitPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -13313,7 +13143,6 @@ export type SetPropsAndCommitPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -/** The output of our `provisionDatabaseWithUser` mutation. */ export interface ProvisionDatabaseWithUserPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -13328,7 +13157,6 @@ export type ProvisionDatabaseWithUserPayloadSelect = { select: ProvisionDatabaseWithUserRecordSelect; }; }; -/** The output of our `signInOneTimeToken` mutation. */ export interface SignInOneTimeTokenPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -13343,7 +13171,6 @@ export type SignInOneTimeTokenPayloadSelect = { select: SignInOneTimeTokenRecordSelect; }; }; -/** The output of our `createUserDatabase` mutation. */ export interface CreateUserDatabasePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -13356,7 +13183,6 @@ export type CreateUserDatabasePayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -/** The output of our `extendTokenExpires` mutation. */ export interface ExtendTokenExpiresPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -13371,7 +13197,6 @@ export type ExtendTokenExpiresPayloadSelect = { select: ExtendTokenExpiresRecordSelect; }; }; -/** The output of our `signIn` mutation. */ export interface SignInPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -13386,7 +13211,6 @@ export type SignInPayloadSelect = { select: SignInRecordSelect; }; }; -/** The output of our `signUp` mutation. */ export interface SignUpPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -13401,7 +13225,6 @@ export type SignUpPayloadSelect = { select: SignUpRecordSelect; }; }; -/** The output of our `setFieldOrder` mutation. */ export interface SetFieldOrderPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -13412,7 +13235,6 @@ export interface SetFieldOrderPayload { export type SetFieldOrderPayloadSelect = { clientMutationId?: boolean; }; -/** The output of our `oneTimeToken` mutation. */ export interface OneTimeTokenPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -13425,7 +13247,6 @@ export type OneTimeTokenPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -/** The output of our `insertNodeAtPath` mutation. */ export interface InsertNodeAtPathPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -13438,7 +13259,6 @@ export type InsertNodeAtPathPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -/** The output of our `updateNodeAtPath` mutation. */ export interface UpdateNodeAtPathPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -13451,7 +13271,6 @@ export type UpdateNodeAtPathPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -/** The output of our `setAndCommit` mutation. */ export interface SetAndCommitPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -13464,7 +13283,6 @@ export type SetAndCommitPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -/** The output of our `applyRls` mutation. */ export interface ApplyRlsPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -13475,7 +13293,6 @@ export interface ApplyRlsPayload { export type ApplyRlsPayloadSelect = { clientMutationId?: boolean; }; -/** The output of our `forgotPassword` mutation. */ export interface ForgotPasswordPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -13486,7 +13303,6 @@ export interface ForgotPasswordPayload { export type ForgotPasswordPayloadSelect = { clientMutationId?: boolean; }; -/** The output of our `sendVerificationEmail` mutation. */ export interface SendVerificationEmailPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -13499,7 +13315,6 @@ export type SendVerificationEmailPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -/** The output of our `verifyPassword` mutation. */ export interface VerifyPasswordPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -13514,7 +13329,6 @@ export type VerifyPasswordPayloadSelect = { select: SessionSelect; }; }; -/** The output of our `verifyTotp` mutation. */ export interface VerifyTotpPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -13529,7 +13343,6 @@ export type VerifyTotpPayloadSelect = { select: SessionSelect; }; }; -/** The output of our create `AppPermission` mutation. */ export interface CreateAppPermissionPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -13550,7 +13363,6 @@ export type CreateAppPermissionPayloadSelect = { select: AppPermissionEdgeSelect; }; }; -/** The output of our update `AppPermission` mutation. */ export interface UpdateAppPermissionPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -13571,7 +13383,6 @@ export type UpdateAppPermissionPayloadSelect = { select: AppPermissionEdgeSelect; }; }; -/** The output of our delete `AppPermission` mutation. */ export interface DeleteAppPermissionPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -13592,7 +13403,6 @@ export type DeleteAppPermissionPayloadSelect = { select: AppPermissionEdgeSelect; }; }; -/** The output of our create `OrgPermission` mutation. */ export interface CreateOrgPermissionPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -13613,7 +13423,6 @@ export type CreateOrgPermissionPayloadSelect = { select: OrgPermissionEdgeSelect; }; }; -/** The output of our update `OrgPermission` mutation. */ export interface UpdateOrgPermissionPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -13634,7 +13443,6 @@ export type UpdateOrgPermissionPayloadSelect = { select: OrgPermissionEdgeSelect; }; }; -/** The output of our delete `OrgPermission` mutation. */ export interface DeleteOrgPermissionPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -13655,7 +13463,6 @@ export type DeleteOrgPermissionPayloadSelect = { select: OrgPermissionEdgeSelect; }; }; -/** The output of our create `Object` mutation. */ export interface CreateObjectPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -13676,7 +13483,6 @@ export type CreateObjectPayloadSelect = { select: ObjectEdgeSelect; }; }; -/** The output of our update `Object` mutation. */ export interface UpdateObjectPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -13697,7 +13503,6 @@ export type UpdateObjectPayloadSelect = { select: ObjectEdgeSelect; }; }; -/** The output of our delete `Object` mutation. */ export interface DeleteObjectPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -13718,7 +13523,6 @@ export type DeleteObjectPayloadSelect = { select: ObjectEdgeSelect; }; }; -/** The output of our create `AppLevelRequirement` mutation. */ export interface CreateAppLevelRequirementPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -13739,7 +13543,6 @@ export type CreateAppLevelRequirementPayloadSelect = { select: AppLevelRequirementEdgeSelect; }; }; -/** The output of our update `AppLevelRequirement` mutation. */ export interface UpdateAppLevelRequirementPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -13760,7 +13563,6 @@ export type UpdateAppLevelRequirementPayloadSelect = { select: AppLevelRequirementEdgeSelect; }; }; -/** The output of our delete `AppLevelRequirement` mutation. */ export interface DeleteAppLevelRequirementPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -13781,7 +13583,6 @@ export type DeleteAppLevelRequirementPayloadSelect = { select: AppLevelRequirementEdgeSelect; }; }; -/** The output of our create `Database` mutation. */ export interface CreateDatabasePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -13802,7 +13603,6 @@ export type CreateDatabasePayloadSelect = { select: DatabaseEdgeSelect; }; }; -/** The output of our update `Database` mutation. */ export interface UpdateDatabasePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -13823,7 +13623,6 @@ export type UpdateDatabasePayloadSelect = { select: DatabaseEdgeSelect; }; }; -/** The output of our delete `Database` mutation. */ export interface DeleteDatabasePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -13844,7 +13643,6 @@ export type DeleteDatabasePayloadSelect = { select: DatabaseEdgeSelect; }; }; -/** The output of our create `Schema` mutation. */ export interface CreateSchemaPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -13865,7 +13663,6 @@ export type CreateSchemaPayloadSelect = { select: SchemaEdgeSelect; }; }; -/** The output of our update `Schema` mutation. */ export interface UpdateSchemaPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -13886,7 +13683,6 @@ export type UpdateSchemaPayloadSelect = { select: SchemaEdgeSelect; }; }; -/** The output of our delete `Schema` mutation. */ export interface DeleteSchemaPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -13907,7 +13703,6 @@ export type DeleteSchemaPayloadSelect = { select: SchemaEdgeSelect; }; }; -/** The output of our create `Table` mutation. */ export interface CreateTablePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -13928,7 +13723,6 @@ export type CreateTablePayloadSelect = { select: TableEdgeSelect; }; }; -/** The output of our update `Table` mutation. */ export interface UpdateTablePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -13949,7 +13743,6 @@ export type UpdateTablePayloadSelect = { select: TableEdgeSelect; }; }; -/** The output of our delete `Table` mutation. */ export interface DeleteTablePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -13970,7 +13763,6 @@ export type DeleteTablePayloadSelect = { select: TableEdgeSelect; }; }; -/** The output of our create `CheckConstraint` mutation. */ export interface CreateCheckConstraintPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -13991,7 +13783,6 @@ export type CreateCheckConstraintPayloadSelect = { select: CheckConstraintEdgeSelect; }; }; -/** The output of our update `CheckConstraint` mutation. */ export interface UpdateCheckConstraintPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -14012,7 +13803,6 @@ export type UpdateCheckConstraintPayloadSelect = { select: CheckConstraintEdgeSelect; }; }; -/** The output of our delete `CheckConstraint` mutation. */ export interface DeleteCheckConstraintPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -14033,7 +13823,6 @@ export type DeleteCheckConstraintPayloadSelect = { select: CheckConstraintEdgeSelect; }; }; -/** The output of our create `Field` mutation. */ export interface CreateFieldPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -14054,7 +13843,6 @@ export type CreateFieldPayloadSelect = { select: FieldEdgeSelect; }; }; -/** The output of our update `Field` mutation. */ export interface UpdateFieldPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -14075,7 +13863,6 @@ export type UpdateFieldPayloadSelect = { select: FieldEdgeSelect; }; }; -/** The output of our delete `Field` mutation. */ export interface DeleteFieldPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -14096,7 +13883,6 @@ export type DeleteFieldPayloadSelect = { select: FieldEdgeSelect; }; }; -/** The output of our create `ForeignKeyConstraint` mutation. */ export interface CreateForeignKeyConstraintPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -14117,7 +13903,6 @@ export type CreateForeignKeyConstraintPayloadSelect = { select: ForeignKeyConstraintEdgeSelect; }; }; -/** The output of our update `ForeignKeyConstraint` mutation. */ export interface UpdateForeignKeyConstraintPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -14138,7 +13923,6 @@ export type UpdateForeignKeyConstraintPayloadSelect = { select: ForeignKeyConstraintEdgeSelect; }; }; -/** The output of our delete `ForeignKeyConstraint` mutation. */ export interface DeleteForeignKeyConstraintPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -14159,7 +13943,6 @@ export type DeleteForeignKeyConstraintPayloadSelect = { select: ForeignKeyConstraintEdgeSelect; }; }; -/** The output of our create `FullTextSearch` mutation. */ export interface CreateFullTextSearchPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -14180,7 +13963,6 @@ export type CreateFullTextSearchPayloadSelect = { select: FullTextSearchEdgeSelect; }; }; -/** The output of our update `FullTextSearch` mutation. */ export interface UpdateFullTextSearchPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -14201,7 +13983,6 @@ export type UpdateFullTextSearchPayloadSelect = { select: FullTextSearchEdgeSelect; }; }; -/** The output of our delete `FullTextSearch` mutation. */ export interface DeleteFullTextSearchPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -14222,7 +14003,6 @@ export type DeleteFullTextSearchPayloadSelect = { select: FullTextSearchEdgeSelect; }; }; -/** The output of our create `Index` mutation. */ export interface CreateIndexPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -14243,7 +14023,6 @@ export type CreateIndexPayloadSelect = { select: IndexEdgeSelect; }; }; -/** The output of our update `Index` mutation. */ export interface UpdateIndexPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -14264,7 +14043,6 @@ export type UpdateIndexPayloadSelect = { select: IndexEdgeSelect; }; }; -/** The output of our delete `Index` mutation. */ export interface DeleteIndexPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -14285,7 +14063,6 @@ export type DeleteIndexPayloadSelect = { select: IndexEdgeSelect; }; }; -/** The output of our create `LimitFunction` mutation. */ export interface CreateLimitFunctionPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -14306,7 +14083,6 @@ export type CreateLimitFunctionPayloadSelect = { select: LimitFunctionEdgeSelect; }; }; -/** The output of our update `LimitFunction` mutation. */ export interface UpdateLimitFunctionPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -14327,7 +14103,6 @@ export type UpdateLimitFunctionPayloadSelect = { select: LimitFunctionEdgeSelect; }; }; -/** The output of our delete `LimitFunction` mutation. */ export interface DeleteLimitFunctionPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -14348,7 +14123,6 @@ export type DeleteLimitFunctionPayloadSelect = { select: LimitFunctionEdgeSelect; }; }; -/** The output of our create `Policy` mutation. */ export interface CreatePolicyPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -14369,7 +14143,6 @@ export type CreatePolicyPayloadSelect = { select: PolicyEdgeSelect; }; }; -/** The output of our update `Policy` mutation. */ export interface UpdatePolicyPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -14390,7 +14163,6 @@ export type UpdatePolicyPayloadSelect = { select: PolicyEdgeSelect; }; }; -/** The output of our delete `Policy` mutation. */ export interface DeletePolicyPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -14411,7 +14183,6 @@ export type DeletePolicyPayloadSelect = { select: PolicyEdgeSelect; }; }; -/** The output of our create `PrimaryKeyConstraint` mutation. */ export interface CreatePrimaryKeyConstraintPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -14432,7 +14203,6 @@ export type CreatePrimaryKeyConstraintPayloadSelect = { select: PrimaryKeyConstraintEdgeSelect; }; }; -/** The output of our update `PrimaryKeyConstraint` mutation. */ export interface UpdatePrimaryKeyConstraintPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -14453,7 +14223,6 @@ export type UpdatePrimaryKeyConstraintPayloadSelect = { select: PrimaryKeyConstraintEdgeSelect; }; }; -/** The output of our delete `PrimaryKeyConstraint` mutation. */ export interface DeletePrimaryKeyConstraintPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -14474,7 +14243,6 @@ export type DeletePrimaryKeyConstraintPayloadSelect = { select: PrimaryKeyConstraintEdgeSelect; }; }; -/** The output of our create `TableGrant` mutation. */ export interface CreateTableGrantPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -14495,7 +14263,6 @@ export type CreateTableGrantPayloadSelect = { select: TableGrantEdgeSelect; }; }; -/** The output of our update `TableGrant` mutation. */ export interface UpdateTableGrantPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -14516,7 +14283,6 @@ export type UpdateTableGrantPayloadSelect = { select: TableGrantEdgeSelect; }; }; -/** The output of our delete `TableGrant` mutation. */ export interface DeleteTableGrantPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -14537,7 +14303,6 @@ export type DeleteTableGrantPayloadSelect = { select: TableGrantEdgeSelect; }; }; -/** The output of our create `Trigger` mutation. */ export interface CreateTriggerPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -14558,7 +14323,6 @@ export type CreateTriggerPayloadSelect = { select: TriggerEdgeSelect; }; }; -/** The output of our update `Trigger` mutation. */ export interface UpdateTriggerPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -14579,7 +14343,6 @@ export type UpdateTriggerPayloadSelect = { select: TriggerEdgeSelect; }; }; -/** The output of our delete `Trigger` mutation. */ export interface DeleteTriggerPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -14600,7 +14363,6 @@ export type DeleteTriggerPayloadSelect = { select: TriggerEdgeSelect; }; }; -/** The output of our create `UniqueConstraint` mutation. */ export interface CreateUniqueConstraintPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -14621,7 +14383,6 @@ export type CreateUniqueConstraintPayloadSelect = { select: UniqueConstraintEdgeSelect; }; }; -/** The output of our update `UniqueConstraint` mutation. */ export interface UpdateUniqueConstraintPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -14642,7 +14403,6 @@ export type UpdateUniqueConstraintPayloadSelect = { select: UniqueConstraintEdgeSelect; }; }; -/** The output of our delete `UniqueConstraint` mutation. */ export interface DeleteUniqueConstraintPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -14663,7 +14423,6 @@ export type DeleteUniqueConstraintPayloadSelect = { select: UniqueConstraintEdgeSelect; }; }; -/** The output of our create `View` mutation. */ export interface CreateViewPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -14684,7 +14443,6 @@ export type CreateViewPayloadSelect = { select: ViewEdgeSelect; }; }; -/** The output of our update `View` mutation. */ export interface UpdateViewPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -14705,7 +14463,6 @@ export type UpdateViewPayloadSelect = { select: ViewEdgeSelect; }; }; -/** The output of our delete `View` mutation. */ export interface DeleteViewPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -14726,7 +14483,6 @@ export type DeleteViewPayloadSelect = { select: ViewEdgeSelect; }; }; -/** The output of our create `ViewTable` mutation. */ export interface CreateViewTablePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -14747,7 +14503,6 @@ export type CreateViewTablePayloadSelect = { select: ViewTableEdgeSelect; }; }; -/** The output of our update `ViewTable` mutation. */ export interface UpdateViewTablePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -14768,7 +14523,6 @@ export type UpdateViewTablePayloadSelect = { select: ViewTableEdgeSelect; }; }; -/** The output of our delete `ViewTable` mutation. */ export interface DeleteViewTablePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -14789,7 +14543,6 @@ export type DeleteViewTablePayloadSelect = { select: ViewTableEdgeSelect; }; }; -/** The output of our create `ViewGrant` mutation. */ export interface CreateViewGrantPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -14810,7 +14563,6 @@ export type CreateViewGrantPayloadSelect = { select: ViewGrantEdgeSelect; }; }; -/** The output of our update `ViewGrant` mutation. */ export interface UpdateViewGrantPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -14831,7 +14583,6 @@ export type UpdateViewGrantPayloadSelect = { select: ViewGrantEdgeSelect; }; }; -/** The output of our delete `ViewGrant` mutation. */ export interface DeleteViewGrantPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -14852,7 +14603,6 @@ export type DeleteViewGrantPayloadSelect = { select: ViewGrantEdgeSelect; }; }; -/** The output of our create `ViewRule` mutation. */ export interface CreateViewRulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -14873,7 +14623,6 @@ export type CreateViewRulePayloadSelect = { select: ViewRuleEdgeSelect; }; }; -/** The output of our update `ViewRule` mutation. */ export interface UpdateViewRulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -14894,7 +14643,6 @@ export type UpdateViewRulePayloadSelect = { select: ViewRuleEdgeSelect; }; }; -/** The output of our delete `ViewRule` mutation. */ export interface DeleteViewRulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -14915,7 +14663,6 @@ export type DeleteViewRulePayloadSelect = { select: ViewRuleEdgeSelect; }; }; -/** The output of our create `TableModule` mutation. */ export interface CreateTableModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -14936,7 +14683,6 @@ export type CreateTableModulePayloadSelect = { select: TableModuleEdgeSelect; }; }; -/** The output of our update `TableModule` mutation. */ export interface UpdateTableModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -14957,7 +14703,6 @@ export type UpdateTableModulePayloadSelect = { select: TableModuleEdgeSelect; }; }; -/** The output of our delete `TableModule` mutation. */ export interface DeleteTableModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -14978,7 +14723,6 @@ export type DeleteTableModulePayloadSelect = { select: TableModuleEdgeSelect; }; }; -/** The output of our create `TableTemplateModule` mutation. */ export interface CreateTableTemplateModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -14999,7 +14743,6 @@ export type CreateTableTemplateModulePayloadSelect = { select: TableTemplateModuleEdgeSelect; }; }; -/** The output of our update `TableTemplateModule` mutation. */ export interface UpdateTableTemplateModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -15020,7 +14763,6 @@ export type UpdateTableTemplateModulePayloadSelect = { select: TableTemplateModuleEdgeSelect; }; }; -/** The output of our delete `TableTemplateModule` mutation. */ export interface DeleteTableTemplateModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -15041,7 +14783,6 @@ export type DeleteTableTemplateModulePayloadSelect = { select: TableTemplateModuleEdgeSelect; }; }; -/** The output of our create `SchemaGrant` mutation. */ export interface CreateSchemaGrantPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -15062,7 +14803,6 @@ export type CreateSchemaGrantPayloadSelect = { select: SchemaGrantEdgeSelect; }; }; -/** The output of our update `SchemaGrant` mutation. */ export interface UpdateSchemaGrantPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -15083,7 +14823,6 @@ export type UpdateSchemaGrantPayloadSelect = { select: SchemaGrantEdgeSelect; }; }; -/** The output of our delete `SchemaGrant` mutation. */ export interface DeleteSchemaGrantPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -15104,7 +14843,6 @@ export type DeleteSchemaGrantPayloadSelect = { select: SchemaGrantEdgeSelect; }; }; -/** The output of our create `ApiSchema` mutation. */ export interface CreateApiSchemaPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -15125,7 +14863,6 @@ export type CreateApiSchemaPayloadSelect = { select: ApiSchemaEdgeSelect; }; }; -/** The output of our update `ApiSchema` mutation. */ export interface UpdateApiSchemaPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -15146,7 +14883,6 @@ export type UpdateApiSchemaPayloadSelect = { select: ApiSchemaEdgeSelect; }; }; -/** The output of our delete `ApiSchema` mutation. */ export interface DeleteApiSchemaPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -15167,7 +14903,6 @@ export type DeleteApiSchemaPayloadSelect = { select: ApiSchemaEdgeSelect; }; }; -/** The output of our create `ApiModule` mutation. */ export interface CreateApiModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -15188,7 +14923,6 @@ export type CreateApiModulePayloadSelect = { select: ApiModuleEdgeSelect; }; }; -/** The output of our update `ApiModule` mutation. */ export interface UpdateApiModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -15209,7 +14943,6 @@ export type UpdateApiModulePayloadSelect = { select: ApiModuleEdgeSelect; }; }; -/** The output of our delete `ApiModule` mutation. */ export interface DeleteApiModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -15230,7 +14963,6 @@ export type DeleteApiModulePayloadSelect = { select: ApiModuleEdgeSelect; }; }; -/** The output of our create `Domain` mutation. */ export interface CreateDomainPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -15251,7 +14983,6 @@ export type CreateDomainPayloadSelect = { select: DomainEdgeSelect; }; }; -/** The output of our update `Domain` mutation. */ export interface UpdateDomainPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -15272,7 +15003,6 @@ export type UpdateDomainPayloadSelect = { select: DomainEdgeSelect; }; }; -/** The output of our delete `Domain` mutation. */ export interface DeleteDomainPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -15293,7 +15023,6 @@ export type DeleteDomainPayloadSelect = { select: DomainEdgeSelect; }; }; -/** The output of our create `SiteMetadatum` mutation. */ export interface CreateSiteMetadatumPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -15314,7 +15043,6 @@ export type CreateSiteMetadatumPayloadSelect = { select: SiteMetadatumEdgeSelect; }; }; -/** The output of our update `SiteMetadatum` mutation. */ export interface UpdateSiteMetadatumPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -15335,7 +15063,6 @@ export type UpdateSiteMetadatumPayloadSelect = { select: SiteMetadatumEdgeSelect; }; }; -/** The output of our delete `SiteMetadatum` mutation. */ export interface DeleteSiteMetadatumPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -15356,7 +15083,6 @@ export type DeleteSiteMetadatumPayloadSelect = { select: SiteMetadatumEdgeSelect; }; }; -/** The output of our create `SiteModule` mutation. */ export interface CreateSiteModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -15377,7 +15103,6 @@ export type CreateSiteModulePayloadSelect = { select: SiteModuleEdgeSelect; }; }; -/** The output of our update `SiteModule` mutation. */ export interface UpdateSiteModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -15398,7 +15123,6 @@ export type UpdateSiteModulePayloadSelect = { select: SiteModuleEdgeSelect; }; }; -/** The output of our delete `SiteModule` mutation. */ export interface DeleteSiteModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -15419,7 +15143,6 @@ export type DeleteSiteModulePayloadSelect = { select: SiteModuleEdgeSelect; }; }; -/** The output of our create `SiteTheme` mutation. */ export interface CreateSiteThemePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -15440,7 +15163,6 @@ export type CreateSiteThemePayloadSelect = { select: SiteThemeEdgeSelect; }; }; -/** The output of our update `SiteTheme` mutation. */ export interface UpdateSiteThemePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -15461,7 +15183,6 @@ export type UpdateSiteThemePayloadSelect = { select: SiteThemeEdgeSelect; }; }; -/** The output of our delete `SiteTheme` mutation. */ export interface DeleteSiteThemePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -15482,7 +15203,6 @@ export type DeleteSiteThemePayloadSelect = { select: SiteThemeEdgeSelect; }; }; -/** The output of our create `Procedure` mutation. */ export interface CreateProcedurePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -15503,7 +15223,6 @@ export type CreateProcedurePayloadSelect = { select: ProcedureEdgeSelect; }; }; -/** The output of our update `Procedure` mutation. */ export interface UpdateProcedurePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -15524,7 +15243,6 @@ export type UpdateProcedurePayloadSelect = { select: ProcedureEdgeSelect; }; }; -/** The output of our delete `Procedure` mutation. */ export interface DeleteProcedurePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -15545,7 +15263,6 @@ export type DeleteProcedurePayloadSelect = { select: ProcedureEdgeSelect; }; }; -/** The output of our create `TriggerFunction` mutation. */ export interface CreateTriggerFunctionPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -15566,7 +15283,6 @@ export type CreateTriggerFunctionPayloadSelect = { select: TriggerFunctionEdgeSelect; }; }; -/** The output of our update `TriggerFunction` mutation. */ export interface UpdateTriggerFunctionPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -15587,7 +15303,6 @@ export type UpdateTriggerFunctionPayloadSelect = { select: TriggerFunctionEdgeSelect; }; }; -/** The output of our delete `TriggerFunction` mutation. */ export interface DeleteTriggerFunctionPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -15608,7 +15323,6 @@ export type DeleteTriggerFunctionPayloadSelect = { select: TriggerFunctionEdgeSelect; }; }; -/** The output of our create `Api` mutation. */ export interface CreateApiPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -15629,7 +15343,6 @@ export type CreateApiPayloadSelect = { select: ApiEdgeSelect; }; }; -/** The output of our update `Api` mutation. */ export interface UpdateApiPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -15650,7 +15363,6 @@ export type UpdateApiPayloadSelect = { select: ApiEdgeSelect; }; }; -/** The output of our delete `Api` mutation. */ export interface DeleteApiPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -15671,7 +15383,6 @@ export type DeleteApiPayloadSelect = { select: ApiEdgeSelect; }; }; -/** The output of our create `Site` mutation. */ export interface CreateSitePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -15692,7 +15403,6 @@ export type CreateSitePayloadSelect = { select: SiteEdgeSelect; }; }; -/** The output of our update `Site` mutation. */ export interface UpdateSitePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -15713,7 +15423,6 @@ export type UpdateSitePayloadSelect = { select: SiteEdgeSelect; }; }; -/** The output of our delete `Site` mutation. */ export interface DeleteSitePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -15734,7 +15443,6 @@ export type DeleteSitePayloadSelect = { select: SiteEdgeSelect; }; }; -/** The output of our create `App` mutation. */ export interface CreateAppPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -15755,7 +15463,6 @@ export type CreateAppPayloadSelect = { select: AppEdgeSelect; }; }; -/** The output of our update `App` mutation. */ export interface UpdateAppPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -15776,7 +15483,6 @@ export type UpdateAppPayloadSelect = { select: AppEdgeSelect; }; }; -/** The output of our delete `App` mutation. */ export interface DeleteAppPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -15797,7 +15503,6 @@ export type DeleteAppPayloadSelect = { select: AppEdgeSelect; }; }; -/** The output of our create `ConnectedAccountsModule` mutation. */ export interface CreateConnectedAccountsModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -15818,7 +15523,6 @@ export type CreateConnectedAccountsModulePayloadSelect = { select: ConnectedAccountsModuleEdgeSelect; }; }; -/** The output of our update `ConnectedAccountsModule` mutation. */ export interface UpdateConnectedAccountsModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -15839,7 +15543,6 @@ export type UpdateConnectedAccountsModulePayloadSelect = { select: ConnectedAccountsModuleEdgeSelect; }; }; -/** The output of our delete `ConnectedAccountsModule` mutation. */ export interface DeleteConnectedAccountsModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -15860,7 +15563,6 @@ export type DeleteConnectedAccountsModulePayloadSelect = { select: ConnectedAccountsModuleEdgeSelect; }; }; -/** The output of our create `CryptoAddressesModule` mutation. */ export interface CreateCryptoAddressesModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -15881,7 +15583,6 @@ export type CreateCryptoAddressesModulePayloadSelect = { select: CryptoAddressesModuleEdgeSelect; }; }; -/** The output of our update `CryptoAddressesModule` mutation. */ export interface UpdateCryptoAddressesModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -15902,7 +15603,6 @@ export type UpdateCryptoAddressesModulePayloadSelect = { select: CryptoAddressesModuleEdgeSelect; }; }; -/** The output of our delete `CryptoAddressesModule` mutation. */ export interface DeleteCryptoAddressesModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -15923,7 +15623,6 @@ export type DeleteCryptoAddressesModulePayloadSelect = { select: CryptoAddressesModuleEdgeSelect; }; }; -/** The output of our create `CryptoAuthModule` mutation. */ export interface CreateCryptoAuthModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -15944,7 +15643,6 @@ export type CreateCryptoAuthModulePayloadSelect = { select: CryptoAuthModuleEdgeSelect; }; }; -/** The output of our update `CryptoAuthModule` mutation. */ export interface UpdateCryptoAuthModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -15965,7 +15663,6 @@ export type UpdateCryptoAuthModulePayloadSelect = { select: CryptoAuthModuleEdgeSelect; }; }; -/** The output of our delete `CryptoAuthModule` mutation. */ export interface DeleteCryptoAuthModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -15986,7 +15683,6 @@ export type DeleteCryptoAuthModulePayloadSelect = { select: CryptoAuthModuleEdgeSelect; }; }; -/** The output of our create `DefaultIdsModule` mutation. */ export interface CreateDefaultIdsModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -16007,7 +15703,6 @@ export type CreateDefaultIdsModulePayloadSelect = { select: DefaultIdsModuleEdgeSelect; }; }; -/** The output of our update `DefaultIdsModule` mutation. */ export interface UpdateDefaultIdsModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -16028,7 +15723,6 @@ export type UpdateDefaultIdsModulePayloadSelect = { select: DefaultIdsModuleEdgeSelect; }; }; -/** The output of our delete `DefaultIdsModule` mutation. */ export interface DeleteDefaultIdsModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -16049,7 +15743,6 @@ export type DeleteDefaultIdsModulePayloadSelect = { select: DefaultIdsModuleEdgeSelect; }; }; -/** The output of our create `DenormalizedTableField` mutation. */ export interface CreateDenormalizedTableFieldPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -16070,7 +15763,6 @@ export type CreateDenormalizedTableFieldPayloadSelect = { select: DenormalizedTableFieldEdgeSelect; }; }; -/** The output of our update `DenormalizedTableField` mutation. */ export interface UpdateDenormalizedTableFieldPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -16091,7 +15783,6 @@ export type UpdateDenormalizedTableFieldPayloadSelect = { select: DenormalizedTableFieldEdgeSelect; }; }; -/** The output of our delete `DenormalizedTableField` mutation. */ export interface DeleteDenormalizedTableFieldPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -16112,7 +15803,6 @@ export type DeleteDenormalizedTableFieldPayloadSelect = { select: DenormalizedTableFieldEdgeSelect; }; }; -/** The output of our create `EmailsModule` mutation. */ export interface CreateEmailsModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -16133,7 +15823,6 @@ export type CreateEmailsModulePayloadSelect = { select: EmailsModuleEdgeSelect; }; }; -/** The output of our update `EmailsModule` mutation. */ export interface UpdateEmailsModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -16154,7 +15843,6 @@ export type UpdateEmailsModulePayloadSelect = { select: EmailsModuleEdgeSelect; }; }; -/** The output of our delete `EmailsModule` mutation. */ export interface DeleteEmailsModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -16175,7 +15863,6 @@ export type DeleteEmailsModulePayloadSelect = { select: EmailsModuleEdgeSelect; }; }; -/** The output of our create `EncryptedSecretsModule` mutation. */ export interface CreateEncryptedSecretsModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -16196,7 +15883,6 @@ export type CreateEncryptedSecretsModulePayloadSelect = { select: EncryptedSecretsModuleEdgeSelect; }; }; -/** The output of our update `EncryptedSecretsModule` mutation. */ export interface UpdateEncryptedSecretsModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -16217,7 +15903,6 @@ export type UpdateEncryptedSecretsModulePayloadSelect = { select: EncryptedSecretsModuleEdgeSelect; }; }; -/** The output of our delete `EncryptedSecretsModule` mutation. */ export interface DeleteEncryptedSecretsModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -16238,7 +15923,6 @@ export type DeleteEncryptedSecretsModulePayloadSelect = { select: EncryptedSecretsModuleEdgeSelect; }; }; -/** The output of our create `FieldModule` mutation. */ export interface CreateFieldModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -16259,7 +15943,6 @@ export type CreateFieldModulePayloadSelect = { select: FieldModuleEdgeSelect; }; }; -/** The output of our update `FieldModule` mutation. */ export interface UpdateFieldModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -16280,7 +15963,6 @@ export type UpdateFieldModulePayloadSelect = { select: FieldModuleEdgeSelect; }; }; -/** The output of our delete `FieldModule` mutation. */ export interface DeleteFieldModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -16301,7 +15983,6 @@ export type DeleteFieldModulePayloadSelect = { select: FieldModuleEdgeSelect; }; }; -/** The output of our create `InvitesModule` mutation. */ export interface CreateInvitesModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -16322,7 +16003,6 @@ export type CreateInvitesModulePayloadSelect = { select: InvitesModuleEdgeSelect; }; }; -/** The output of our update `InvitesModule` mutation. */ export interface UpdateInvitesModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -16343,7 +16023,6 @@ export type UpdateInvitesModulePayloadSelect = { select: InvitesModuleEdgeSelect; }; }; -/** The output of our delete `InvitesModule` mutation. */ export interface DeleteInvitesModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -16364,7 +16043,6 @@ export type DeleteInvitesModulePayloadSelect = { select: InvitesModuleEdgeSelect; }; }; -/** The output of our create `LevelsModule` mutation. */ export interface CreateLevelsModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -16385,7 +16063,6 @@ export type CreateLevelsModulePayloadSelect = { select: LevelsModuleEdgeSelect; }; }; -/** The output of our update `LevelsModule` mutation. */ export interface UpdateLevelsModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -16406,7 +16083,6 @@ export type UpdateLevelsModulePayloadSelect = { select: LevelsModuleEdgeSelect; }; }; -/** The output of our delete `LevelsModule` mutation. */ export interface DeleteLevelsModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -16427,7 +16103,6 @@ export type DeleteLevelsModulePayloadSelect = { select: LevelsModuleEdgeSelect; }; }; -/** The output of our create `LimitsModule` mutation. */ export interface CreateLimitsModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -16448,7 +16123,6 @@ export type CreateLimitsModulePayloadSelect = { select: LimitsModuleEdgeSelect; }; }; -/** The output of our update `LimitsModule` mutation. */ export interface UpdateLimitsModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -16469,7 +16143,6 @@ export type UpdateLimitsModulePayloadSelect = { select: LimitsModuleEdgeSelect; }; }; -/** The output of our delete `LimitsModule` mutation. */ export interface DeleteLimitsModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -16490,7 +16163,6 @@ export type DeleteLimitsModulePayloadSelect = { select: LimitsModuleEdgeSelect; }; }; -/** The output of our create `MembershipTypesModule` mutation. */ export interface CreateMembershipTypesModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -16511,7 +16183,6 @@ export type CreateMembershipTypesModulePayloadSelect = { select: MembershipTypesModuleEdgeSelect; }; }; -/** The output of our update `MembershipTypesModule` mutation. */ export interface UpdateMembershipTypesModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -16532,7 +16203,6 @@ export type UpdateMembershipTypesModulePayloadSelect = { select: MembershipTypesModuleEdgeSelect; }; }; -/** The output of our delete `MembershipTypesModule` mutation. */ export interface DeleteMembershipTypesModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -16553,7 +16223,6 @@ export type DeleteMembershipTypesModulePayloadSelect = { select: MembershipTypesModuleEdgeSelect; }; }; -/** The output of our create `MembershipsModule` mutation. */ export interface CreateMembershipsModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -16574,7 +16243,6 @@ export type CreateMembershipsModulePayloadSelect = { select: MembershipsModuleEdgeSelect; }; }; -/** The output of our update `MembershipsModule` mutation. */ export interface UpdateMembershipsModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -16595,7 +16263,6 @@ export type UpdateMembershipsModulePayloadSelect = { select: MembershipsModuleEdgeSelect; }; }; -/** The output of our delete `MembershipsModule` mutation. */ export interface DeleteMembershipsModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -16616,7 +16283,6 @@ export type DeleteMembershipsModulePayloadSelect = { select: MembershipsModuleEdgeSelect; }; }; -/** The output of our create `PermissionsModule` mutation. */ export interface CreatePermissionsModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -16637,7 +16303,6 @@ export type CreatePermissionsModulePayloadSelect = { select: PermissionsModuleEdgeSelect; }; }; -/** The output of our update `PermissionsModule` mutation. */ export interface UpdatePermissionsModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -16658,7 +16323,6 @@ export type UpdatePermissionsModulePayloadSelect = { select: PermissionsModuleEdgeSelect; }; }; -/** The output of our delete `PermissionsModule` mutation. */ export interface DeletePermissionsModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -16679,7 +16343,6 @@ export type DeletePermissionsModulePayloadSelect = { select: PermissionsModuleEdgeSelect; }; }; -/** The output of our create `PhoneNumbersModule` mutation. */ export interface CreatePhoneNumbersModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -16700,7 +16363,6 @@ export type CreatePhoneNumbersModulePayloadSelect = { select: PhoneNumbersModuleEdgeSelect; }; }; -/** The output of our update `PhoneNumbersModule` mutation. */ export interface UpdatePhoneNumbersModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -16721,7 +16383,6 @@ export type UpdatePhoneNumbersModulePayloadSelect = { select: PhoneNumbersModuleEdgeSelect; }; }; -/** The output of our delete `PhoneNumbersModule` mutation. */ export interface DeletePhoneNumbersModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -16742,7 +16403,6 @@ export type DeletePhoneNumbersModulePayloadSelect = { select: PhoneNumbersModuleEdgeSelect; }; }; -/** The output of our create `ProfilesModule` mutation. */ export interface CreateProfilesModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -16763,7 +16423,6 @@ export type CreateProfilesModulePayloadSelect = { select: ProfilesModuleEdgeSelect; }; }; -/** The output of our update `ProfilesModule` mutation. */ export interface UpdateProfilesModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -16784,7 +16443,6 @@ export type UpdateProfilesModulePayloadSelect = { select: ProfilesModuleEdgeSelect; }; }; -/** The output of our delete `ProfilesModule` mutation. */ export interface DeleteProfilesModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -16805,7 +16463,6 @@ export type DeleteProfilesModulePayloadSelect = { select: ProfilesModuleEdgeSelect; }; }; -/** The output of our create `RlsModule` mutation. */ export interface CreateRlsModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -16826,7 +16483,6 @@ export type CreateRlsModulePayloadSelect = { select: RlsModuleEdgeSelect; }; }; -/** The output of our update `RlsModule` mutation. */ export interface UpdateRlsModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -16847,7 +16503,6 @@ export type UpdateRlsModulePayloadSelect = { select: RlsModuleEdgeSelect; }; }; -/** The output of our delete `RlsModule` mutation. */ export interface DeleteRlsModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -16868,7 +16523,6 @@ export type DeleteRlsModulePayloadSelect = { select: RlsModuleEdgeSelect; }; }; -/** The output of our create `SecretsModule` mutation. */ export interface CreateSecretsModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -16889,7 +16543,6 @@ export type CreateSecretsModulePayloadSelect = { select: SecretsModuleEdgeSelect; }; }; -/** The output of our update `SecretsModule` mutation. */ export interface UpdateSecretsModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -16910,7 +16563,6 @@ export type UpdateSecretsModulePayloadSelect = { select: SecretsModuleEdgeSelect; }; }; -/** The output of our delete `SecretsModule` mutation. */ export interface DeleteSecretsModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -16931,7 +16583,6 @@ export type DeleteSecretsModulePayloadSelect = { select: SecretsModuleEdgeSelect; }; }; -/** The output of our create `SessionsModule` mutation. */ export interface CreateSessionsModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -16952,7 +16603,6 @@ export type CreateSessionsModulePayloadSelect = { select: SessionsModuleEdgeSelect; }; }; -/** The output of our update `SessionsModule` mutation. */ export interface UpdateSessionsModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -16973,7 +16623,6 @@ export type UpdateSessionsModulePayloadSelect = { select: SessionsModuleEdgeSelect; }; }; -/** The output of our delete `SessionsModule` mutation. */ export interface DeleteSessionsModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -16994,7 +16643,6 @@ export type DeleteSessionsModulePayloadSelect = { select: SessionsModuleEdgeSelect; }; }; -/** The output of our create `UserAuthModule` mutation. */ export interface CreateUserAuthModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -17015,7 +16663,6 @@ export type CreateUserAuthModulePayloadSelect = { select: UserAuthModuleEdgeSelect; }; }; -/** The output of our update `UserAuthModule` mutation. */ export interface UpdateUserAuthModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -17036,7 +16683,6 @@ export type UpdateUserAuthModulePayloadSelect = { select: UserAuthModuleEdgeSelect; }; }; -/** The output of our delete `UserAuthModule` mutation. */ export interface DeleteUserAuthModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -17057,7 +16703,6 @@ export type DeleteUserAuthModulePayloadSelect = { select: UserAuthModuleEdgeSelect; }; }; -/** The output of our create `UsersModule` mutation. */ export interface CreateUsersModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -17078,7 +16723,6 @@ export type CreateUsersModulePayloadSelect = { select: UsersModuleEdgeSelect; }; }; -/** The output of our update `UsersModule` mutation. */ export interface UpdateUsersModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -17099,7 +16743,6 @@ export type UpdateUsersModulePayloadSelect = { select: UsersModuleEdgeSelect; }; }; -/** The output of our delete `UsersModule` mutation. */ export interface DeleteUsersModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -17120,7 +16763,6 @@ export type DeleteUsersModulePayloadSelect = { select: UsersModuleEdgeSelect; }; }; -/** The output of our create `UuidModule` mutation. */ export interface CreateUuidModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -17141,7 +16783,6 @@ export type CreateUuidModulePayloadSelect = { select: UuidModuleEdgeSelect; }; }; -/** The output of our update `UuidModule` mutation. */ export interface UpdateUuidModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -17162,7 +16803,6 @@ export type UpdateUuidModulePayloadSelect = { select: UuidModuleEdgeSelect; }; }; -/** The output of our delete `UuidModule` mutation. */ export interface DeleteUuidModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -17183,7 +16823,6 @@ export type DeleteUuidModulePayloadSelect = { select: UuidModuleEdgeSelect; }; }; -/** The output of our create `DatabaseProvisionModule` mutation. */ export interface CreateDatabaseProvisionModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -17204,7 +16843,6 @@ export type CreateDatabaseProvisionModulePayloadSelect = { select: DatabaseProvisionModuleEdgeSelect; }; }; -/** The output of our update `DatabaseProvisionModule` mutation. */ export interface UpdateDatabaseProvisionModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -17225,7 +16863,6 @@ export type UpdateDatabaseProvisionModulePayloadSelect = { select: DatabaseProvisionModuleEdgeSelect; }; }; -/** The output of our delete `DatabaseProvisionModule` mutation. */ export interface DeleteDatabaseProvisionModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -17246,7 +16883,6 @@ export type DeleteDatabaseProvisionModulePayloadSelect = { select: DatabaseProvisionModuleEdgeSelect; }; }; -/** The output of our create `AppAdminGrant` mutation. */ export interface CreateAppAdminGrantPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -17267,7 +16903,6 @@ export type CreateAppAdminGrantPayloadSelect = { select: AppAdminGrantEdgeSelect; }; }; -/** The output of our update `AppAdminGrant` mutation. */ export interface UpdateAppAdminGrantPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -17288,7 +16923,6 @@ export type UpdateAppAdminGrantPayloadSelect = { select: AppAdminGrantEdgeSelect; }; }; -/** The output of our delete `AppAdminGrant` mutation. */ export interface DeleteAppAdminGrantPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -17309,7 +16943,6 @@ export type DeleteAppAdminGrantPayloadSelect = { select: AppAdminGrantEdgeSelect; }; }; -/** The output of our create `AppOwnerGrant` mutation. */ export interface CreateAppOwnerGrantPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -17330,7 +16963,6 @@ export type CreateAppOwnerGrantPayloadSelect = { select: AppOwnerGrantEdgeSelect; }; }; -/** The output of our update `AppOwnerGrant` mutation. */ export interface UpdateAppOwnerGrantPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -17351,7 +16983,6 @@ export type UpdateAppOwnerGrantPayloadSelect = { select: AppOwnerGrantEdgeSelect; }; }; -/** The output of our delete `AppOwnerGrant` mutation. */ export interface DeleteAppOwnerGrantPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -17372,7 +17003,6 @@ export type DeleteAppOwnerGrantPayloadSelect = { select: AppOwnerGrantEdgeSelect; }; }; -/** The output of our create `AppGrant` mutation. */ export interface CreateAppGrantPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -17393,7 +17023,6 @@ export type CreateAppGrantPayloadSelect = { select: AppGrantEdgeSelect; }; }; -/** The output of our update `AppGrant` mutation. */ export interface UpdateAppGrantPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -17414,7 +17043,6 @@ export type UpdateAppGrantPayloadSelect = { select: AppGrantEdgeSelect; }; }; -/** The output of our delete `AppGrant` mutation. */ export interface DeleteAppGrantPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -17435,7 +17063,6 @@ export type DeleteAppGrantPayloadSelect = { select: AppGrantEdgeSelect; }; }; -/** The output of our create `OrgMembership` mutation. */ export interface CreateOrgMembershipPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -17456,7 +17083,6 @@ export type CreateOrgMembershipPayloadSelect = { select: OrgMembershipEdgeSelect; }; }; -/** The output of our update `OrgMembership` mutation. */ export interface UpdateOrgMembershipPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -17477,7 +17103,6 @@ export type UpdateOrgMembershipPayloadSelect = { select: OrgMembershipEdgeSelect; }; }; -/** The output of our delete `OrgMembership` mutation. */ export interface DeleteOrgMembershipPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -17498,7 +17123,6 @@ export type DeleteOrgMembershipPayloadSelect = { select: OrgMembershipEdgeSelect; }; }; -/** The output of our create `OrgMember` mutation. */ export interface CreateOrgMemberPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -17519,7 +17143,6 @@ export type CreateOrgMemberPayloadSelect = { select: OrgMemberEdgeSelect; }; }; -/** The output of our update `OrgMember` mutation. */ export interface UpdateOrgMemberPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -17540,7 +17163,6 @@ export type UpdateOrgMemberPayloadSelect = { select: OrgMemberEdgeSelect; }; }; -/** The output of our delete `OrgMember` mutation. */ export interface DeleteOrgMemberPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -17561,7 +17183,6 @@ export type DeleteOrgMemberPayloadSelect = { select: OrgMemberEdgeSelect; }; }; -/** The output of our create `OrgAdminGrant` mutation. */ export interface CreateOrgAdminGrantPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -17582,7 +17203,6 @@ export type CreateOrgAdminGrantPayloadSelect = { select: OrgAdminGrantEdgeSelect; }; }; -/** The output of our update `OrgAdminGrant` mutation. */ export interface UpdateOrgAdminGrantPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -17603,7 +17223,6 @@ export type UpdateOrgAdminGrantPayloadSelect = { select: OrgAdminGrantEdgeSelect; }; }; -/** The output of our delete `OrgAdminGrant` mutation. */ export interface DeleteOrgAdminGrantPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -17624,7 +17243,6 @@ export type DeleteOrgAdminGrantPayloadSelect = { select: OrgAdminGrantEdgeSelect; }; }; -/** The output of our create `OrgOwnerGrant` mutation. */ export interface CreateOrgOwnerGrantPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -17645,7 +17263,6 @@ export type CreateOrgOwnerGrantPayloadSelect = { select: OrgOwnerGrantEdgeSelect; }; }; -/** The output of our update `OrgOwnerGrant` mutation. */ export interface UpdateOrgOwnerGrantPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -17666,7 +17283,6 @@ export type UpdateOrgOwnerGrantPayloadSelect = { select: OrgOwnerGrantEdgeSelect; }; }; -/** The output of our delete `OrgOwnerGrant` mutation. */ export interface DeleteOrgOwnerGrantPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -17687,7 +17303,6 @@ export type DeleteOrgOwnerGrantPayloadSelect = { select: OrgOwnerGrantEdgeSelect; }; }; -/** The output of our create `OrgGrant` mutation. */ export interface CreateOrgGrantPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -17708,7 +17323,6 @@ export type CreateOrgGrantPayloadSelect = { select: OrgGrantEdgeSelect; }; }; -/** The output of our update `OrgGrant` mutation. */ export interface UpdateOrgGrantPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -17729,7 +17343,6 @@ export type UpdateOrgGrantPayloadSelect = { select: OrgGrantEdgeSelect; }; }; -/** The output of our delete `OrgGrant` mutation. */ export interface DeleteOrgGrantPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -17750,7 +17363,6 @@ export type DeleteOrgGrantPayloadSelect = { select: OrgGrantEdgeSelect; }; }; -/** The output of our create `AppLimit` mutation. */ export interface CreateAppLimitPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -17771,7 +17383,6 @@ export type CreateAppLimitPayloadSelect = { select: AppLimitEdgeSelect; }; }; -/** The output of our update `AppLimit` mutation. */ export interface UpdateAppLimitPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -17792,7 +17403,6 @@ export type UpdateAppLimitPayloadSelect = { select: AppLimitEdgeSelect; }; }; -/** The output of our delete `AppLimit` mutation. */ export interface DeleteAppLimitPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -17813,7 +17423,6 @@ export type DeleteAppLimitPayloadSelect = { select: AppLimitEdgeSelect; }; }; -/** The output of our create `OrgLimit` mutation. */ export interface CreateOrgLimitPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -17834,7 +17443,6 @@ export type CreateOrgLimitPayloadSelect = { select: OrgLimitEdgeSelect; }; }; -/** The output of our update `OrgLimit` mutation. */ export interface UpdateOrgLimitPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -17855,7 +17463,6 @@ export type UpdateOrgLimitPayloadSelect = { select: OrgLimitEdgeSelect; }; }; -/** The output of our delete `OrgLimit` mutation. */ export interface DeleteOrgLimitPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -17876,7 +17483,6 @@ export type DeleteOrgLimitPayloadSelect = { select: OrgLimitEdgeSelect; }; }; -/** The output of our create `AppStep` mutation. */ export interface CreateAppStepPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -17897,7 +17503,6 @@ export type CreateAppStepPayloadSelect = { select: AppStepEdgeSelect; }; }; -/** The output of our update `AppStep` mutation. */ export interface UpdateAppStepPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -17918,7 +17523,6 @@ export type UpdateAppStepPayloadSelect = { select: AppStepEdgeSelect; }; }; -/** The output of our delete `AppStep` mutation. */ export interface DeleteAppStepPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -17939,7 +17543,6 @@ export type DeleteAppStepPayloadSelect = { select: AppStepEdgeSelect; }; }; -/** The output of our create `AppAchievement` mutation. */ export interface CreateAppAchievementPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -17960,7 +17563,6 @@ export type CreateAppAchievementPayloadSelect = { select: AppAchievementEdgeSelect; }; }; -/** The output of our update `AppAchievement` mutation. */ export interface UpdateAppAchievementPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -17981,7 +17583,6 @@ export type UpdateAppAchievementPayloadSelect = { select: AppAchievementEdgeSelect; }; }; -/** The output of our delete `AppAchievement` mutation. */ export interface DeleteAppAchievementPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -18002,7 +17603,6 @@ export type DeleteAppAchievementPayloadSelect = { select: AppAchievementEdgeSelect; }; }; -/** The output of our create `Invite` mutation. */ export interface CreateInvitePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -18023,7 +17623,6 @@ export type CreateInvitePayloadSelect = { select: InviteEdgeSelect; }; }; -/** The output of our update `Invite` mutation. */ export interface UpdateInvitePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -18044,7 +17643,6 @@ export type UpdateInvitePayloadSelect = { select: InviteEdgeSelect; }; }; -/** The output of our delete `Invite` mutation. */ export interface DeleteInvitePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -18065,7 +17663,6 @@ export type DeleteInvitePayloadSelect = { select: InviteEdgeSelect; }; }; -/** The output of our create `ClaimedInvite` mutation. */ export interface CreateClaimedInvitePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -18086,7 +17683,6 @@ export type CreateClaimedInvitePayloadSelect = { select: ClaimedInviteEdgeSelect; }; }; -/** The output of our update `ClaimedInvite` mutation. */ export interface UpdateClaimedInvitePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -18107,7 +17703,6 @@ export type UpdateClaimedInvitePayloadSelect = { select: ClaimedInviteEdgeSelect; }; }; -/** The output of our delete `ClaimedInvite` mutation. */ export interface DeleteClaimedInvitePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -18128,7 +17723,6 @@ export type DeleteClaimedInvitePayloadSelect = { select: ClaimedInviteEdgeSelect; }; }; -/** The output of our create `OrgInvite` mutation. */ export interface CreateOrgInvitePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -18149,7 +17743,6 @@ export type CreateOrgInvitePayloadSelect = { select: OrgInviteEdgeSelect; }; }; -/** The output of our update `OrgInvite` mutation. */ export interface UpdateOrgInvitePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -18170,7 +17763,6 @@ export type UpdateOrgInvitePayloadSelect = { select: OrgInviteEdgeSelect; }; }; -/** The output of our delete `OrgInvite` mutation. */ export interface DeleteOrgInvitePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -18191,7 +17783,6 @@ export type DeleteOrgInvitePayloadSelect = { select: OrgInviteEdgeSelect; }; }; -/** The output of our create `OrgClaimedInvite` mutation. */ export interface CreateOrgClaimedInvitePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -18212,7 +17803,6 @@ export type CreateOrgClaimedInvitePayloadSelect = { select: OrgClaimedInviteEdgeSelect; }; }; -/** The output of our update `OrgClaimedInvite` mutation. */ export interface UpdateOrgClaimedInvitePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -18233,7 +17823,6 @@ export type UpdateOrgClaimedInvitePayloadSelect = { select: OrgClaimedInviteEdgeSelect; }; }; -/** The output of our delete `OrgClaimedInvite` mutation. */ export interface DeleteOrgClaimedInvitePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -18254,7 +17843,6 @@ export type DeleteOrgClaimedInvitePayloadSelect = { select: OrgClaimedInviteEdgeSelect; }; }; -/** The output of our create `AppPermissionDefault` mutation. */ export interface CreateAppPermissionDefaultPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -18275,7 +17863,6 @@ export type CreateAppPermissionDefaultPayloadSelect = { select: AppPermissionDefaultEdgeSelect; }; }; -/** The output of our update `AppPermissionDefault` mutation. */ export interface UpdateAppPermissionDefaultPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -18296,7 +17883,6 @@ export type UpdateAppPermissionDefaultPayloadSelect = { select: AppPermissionDefaultEdgeSelect; }; }; -/** The output of our delete `AppPermissionDefault` mutation. */ export interface DeleteAppPermissionDefaultPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -18317,7 +17903,6 @@ export type DeleteAppPermissionDefaultPayloadSelect = { select: AppPermissionDefaultEdgeSelect; }; }; -/** The output of our create `Ref` mutation. */ export interface CreateRefPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -18338,7 +17923,6 @@ export type CreateRefPayloadSelect = { select: RefEdgeSelect; }; }; -/** The output of our update `Ref` mutation. */ export interface UpdateRefPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -18359,7 +17943,6 @@ export type UpdateRefPayloadSelect = { select: RefEdgeSelect; }; }; -/** The output of our delete `Ref` mutation. */ export interface DeleteRefPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -18380,7 +17963,6 @@ export type DeleteRefPayloadSelect = { select: RefEdgeSelect; }; }; -/** The output of our create `Store` mutation. */ export interface CreateStorePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -18401,7 +17983,6 @@ export type CreateStorePayloadSelect = { select: StoreEdgeSelect; }; }; -/** The output of our update `Store` mutation. */ export interface UpdateStorePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -18422,7 +18003,6 @@ export type UpdateStorePayloadSelect = { select: StoreEdgeSelect; }; }; -/** The output of our delete `Store` mutation. */ export interface DeleteStorePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -18443,7 +18023,6 @@ export type DeleteStorePayloadSelect = { select: StoreEdgeSelect; }; }; -/** The output of our create `RoleType` mutation. */ export interface CreateRoleTypePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -18464,7 +18043,6 @@ export type CreateRoleTypePayloadSelect = { select: RoleTypeEdgeSelect; }; }; -/** The output of our update `RoleType` mutation. */ export interface UpdateRoleTypePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -18485,7 +18063,6 @@ export type UpdateRoleTypePayloadSelect = { select: RoleTypeEdgeSelect; }; }; -/** The output of our delete `RoleType` mutation. */ export interface DeleteRoleTypePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -18506,7 +18083,6 @@ export type DeleteRoleTypePayloadSelect = { select: RoleTypeEdgeSelect; }; }; -/** The output of our create `OrgPermissionDefault` mutation. */ export interface CreateOrgPermissionDefaultPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -18527,7 +18103,6 @@ export type CreateOrgPermissionDefaultPayloadSelect = { select: OrgPermissionDefaultEdgeSelect; }; }; -/** The output of our update `OrgPermissionDefault` mutation. */ export interface UpdateOrgPermissionDefaultPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -18548,7 +18123,6 @@ export type UpdateOrgPermissionDefaultPayloadSelect = { select: OrgPermissionDefaultEdgeSelect; }; }; -/** The output of our delete `OrgPermissionDefault` mutation. */ export interface DeleteOrgPermissionDefaultPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -18569,7 +18143,6 @@ export type DeleteOrgPermissionDefaultPayloadSelect = { select: OrgPermissionDefaultEdgeSelect; }; }; -/** The output of our create `AppLimitDefault` mutation. */ export interface CreateAppLimitDefaultPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -18590,7 +18163,6 @@ export type CreateAppLimitDefaultPayloadSelect = { select: AppLimitDefaultEdgeSelect; }; }; -/** The output of our update `AppLimitDefault` mutation. */ export interface UpdateAppLimitDefaultPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -18611,7 +18183,6 @@ export type UpdateAppLimitDefaultPayloadSelect = { select: AppLimitDefaultEdgeSelect; }; }; -/** The output of our delete `AppLimitDefault` mutation. */ export interface DeleteAppLimitDefaultPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -18632,7 +18203,6 @@ export type DeleteAppLimitDefaultPayloadSelect = { select: AppLimitDefaultEdgeSelect; }; }; -/** The output of our create `OrgLimitDefault` mutation. */ export interface CreateOrgLimitDefaultPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -18653,7 +18223,6 @@ export type CreateOrgLimitDefaultPayloadSelect = { select: OrgLimitDefaultEdgeSelect; }; }; -/** The output of our update `OrgLimitDefault` mutation. */ export interface UpdateOrgLimitDefaultPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -18674,7 +18243,6 @@ export type UpdateOrgLimitDefaultPayloadSelect = { select: OrgLimitDefaultEdgeSelect; }; }; -/** The output of our delete `OrgLimitDefault` mutation. */ export interface DeleteOrgLimitDefaultPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -18695,7 +18263,6 @@ export type DeleteOrgLimitDefaultPayloadSelect = { select: OrgLimitDefaultEdgeSelect; }; }; -/** The output of our create `CryptoAddress` mutation. */ export interface CreateCryptoAddressPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -18716,7 +18283,6 @@ export type CreateCryptoAddressPayloadSelect = { select: CryptoAddressEdgeSelect; }; }; -/** The output of our update `CryptoAddress` mutation. */ export interface UpdateCryptoAddressPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -18737,7 +18303,6 @@ export type UpdateCryptoAddressPayloadSelect = { select: CryptoAddressEdgeSelect; }; }; -/** The output of our delete `CryptoAddress` mutation. */ export interface DeleteCryptoAddressPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -18758,7 +18323,6 @@ export type DeleteCryptoAddressPayloadSelect = { select: CryptoAddressEdgeSelect; }; }; -/** The output of our create `MembershipType` mutation. */ export interface CreateMembershipTypePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -18779,7 +18343,6 @@ export type CreateMembershipTypePayloadSelect = { select: MembershipTypeEdgeSelect; }; }; -/** The output of our update `MembershipType` mutation. */ export interface UpdateMembershipTypePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -18800,7 +18363,6 @@ export type UpdateMembershipTypePayloadSelect = { select: MembershipTypeEdgeSelect; }; }; -/** The output of our delete `MembershipType` mutation. */ export interface DeleteMembershipTypePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -18821,7 +18383,6 @@ export type DeleteMembershipTypePayloadSelect = { select: MembershipTypeEdgeSelect; }; }; -/** The output of our create `ConnectedAccount` mutation. */ export interface CreateConnectedAccountPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -18842,7 +18403,6 @@ export type CreateConnectedAccountPayloadSelect = { select: ConnectedAccountEdgeSelect; }; }; -/** The output of our update `ConnectedAccount` mutation. */ export interface UpdateConnectedAccountPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -18863,7 +18423,6 @@ export type UpdateConnectedAccountPayloadSelect = { select: ConnectedAccountEdgeSelect; }; }; -/** The output of our delete `ConnectedAccount` mutation. */ export interface DeleteConnectedAccountPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -18884,7 +18443,6 @@ export type DeleteConnectedAccountPayloadSelect = { select: ConnectedAccountEdgeSelect; }; }; -/** The output of our create `PhoneNumber` mutation. */ export interface CreatePhoneNumberPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -18905,7 +18463,6 @@ export type CreatePhoneNumberPayloadSelect = { select: PhoneNumberEdgeSelect; }; }; -/** The output of our update `PhoneNumber` mutation. */ export interface UpdatePhoneNumberPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -18926,7 +18483,6 @@ export type UpdatePhoneNumberPayloadSelect = { select: PhoneNumberEdgeSelect; }; }; -/** The output of our delete `PhoneNumber` mutation. */ export interface DeletePhoneNumberPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -18947,7 +18503,6 @@ export type DeletePhoneNumberPayloadSelect = { select: PhoneNumberEdgeSelect; }; }; -/** The output of our create `AppMembershipDefault` mutation. */ export interface CreateAppMembershipDefaultPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -18968,7 +18523,6 @@ export type CreateAppMembershipDefaultPayloadSelect = { select: AppMembershipDefaultEdgeSelect; }; }; -/** The output of our update `AppMembershipDefault` mutation. */ export interface UpdateAppMembershipDefaultPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -18989,7 +18543,6 @@ export type UpdateAppMembershipDefaultPayloadSelect = { select: AppMembershipDefaultEdgeSelect; }; }; -/** The output of our delete `AppMembershipDefault` mutation. */ export interface DeleteAppMembershipDefaultPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -19010,7 +18563,6 @@ export type DeleteAppMembershipDefaultPayloadSelect = { select: AppMembershipDefaultEdgeSelect; }; }; -/** The output of our create `NodeTypeRegistry` mutation. */ export interface CreateNodeTypeRegistryPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -19031,7 +18583,6 @@ export type CreateNodeTypeRegistryPayloadSelect = { select: NodeTypeRegistryEdgeSelect; }; }; -/** The output of our update `NodeTypeRegistry` mutation. */ export interface UpdateNodeTypeRegistryPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -19052,7 +18603,6 @@ export type UpdateNodeTypeRegistryPayloadSelect = { select: NodeTypeRegistryEdgeSelect; }; }; -/** The output of our delete `NodeTypeRegistry` mutation. */ export interface DeleteNodeTypeRegistryPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -19073,7 +18623,6 @@ export type DeleteNodeTypeRegistryPayloadSelect = { select: NodeTypeRegistryEdgeSelect; }; }; -/** The output of our create `Commit` mutation. */ export interface CreateCommitPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -19094,7 +18643,6 @@ export type CreateCommitPayloadSelect = { select: CommitEdgeSelect; }; }; -/** The output of our update `Commit` mutation. */ export interface UpdateCommitPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -19115,7 +18663,6 @@ export type UpdateCommitPayloadSelect = { select: CommitEdgeSelect; }; }; -/** The output of our delete `Commit` mutation. */ export interface DeleteCommitPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -19136,7 +18683,6 @@ export type DeleteCommitPayloadSelect = { select: CommitEdgeSelect; }; }; -/** The output of our create `OrgMembershipDefault` mutation. */ export interface CreateOrgMembershipDefaultPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -19157,7 +18703,6 @@ export type CreateOrgMembershipDefaultPayloadSelect = { select: OrgMembershipDefaultEdgeSelect; }; }; -/** The output of our update `OrgMembershipDefault` mutation. */ export interface UpdateOrgMembershipDefaultPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -19178,7 +18723,6 @@ export type UpdateOrgMembershipDefaultPayloadSelect = { select: OrgMembershipDefaultEdgeSelect; }; }; -/** The output of our delete `OrgMembershipDefault` mutation. */ export interface DeleteOrgMembershipDefaultPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -19199,7 +18743,6 @@ export type DeleteOrgMembershipDefaultPayloadSelect = { select: OrgMembershipDefaultEdgeSelect; }; }; -/** The output of our create `Email` mutation. */ export interface CreateEmailPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -19220,7 +18763,6 @@ export type CreateEmailPayloadSelect = { select: EmailEdgeSelect; }; }; -/** The output of our update `Email` mutation. */ export interface UpdateEmailPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -19241,7 +18783,6 @@ export type UpdateEmailPayloadSelect = { select: EmailEdgeSelect; }; }; -/** The output of our delete `Email` mutation. */ export interface DeleteEmailPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -19262,7 +18803,6 @@ export type DeleteEmailPayloadSelect = { select: EmailEdgeSelect; }; }; -/** The output of our create `AuditLog` mutation. */ export interface CreateAuditLogPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -19283,7 +18823,6 @@ export type CreateAuditLogPayloadSelect = { select: AuditLogEdgeSelect; }; }; -/** The output of our update `AuditLog` mutation. */ export interface UpdateAuditLogPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -19304,7 +18843,6 @@ export type UpdateAuditLogPayloadSelect = { select: AuditLogEdgeSelect; }; }; -/** The output of our delete `AuditLog` mutation. */ export interface DeleteAuditLogPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -19325,7 +18863,6 @@ export type DeleteAuditLogPayloadSelect = { select: AuditLogEdgeSelect; }; }; -/** The output of our create `AppLevel` mutation. */ export interface CreateAppLevelPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -19346,7 +18883,6 @@ export type CreateAppLevelPayloadSelect = { select: AppLevelEdgeSelect; }; }; -/** The output of our update `AppLevel` mutation. */ export interface UpdateAppLevelPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -19367,7 +18903,6 @@ export type UpdateAppLevelPayloadSelect = { select: AppLevelEdgeSelect; }; }; -/** The output of our delete `AppLevel` mutation. */ export interface DeleteAppLevelPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -19388,7 +18923,6 @@ export type DeleteAppLevelPayloadSelect = { select: AppLevelEdgeSelect; }; }; -/** The output of our create `SqlMigration` mutation. */ export interface CreateSqlMigrationPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -19404,7 +18938,6 @@ export type CreateSqlMigrationPayloadSelect = { select: SqlMigrationSelect; }; }; -/** The output of our create `AstMigration` mutation. */ export interface CreateAstMigrationPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -19420,7 +18953,6 @@ export type CreateAstMigrationPayloadSelect = { select: AstMigrationSelect; }; }; -/** The output of our create `AppMembership` mutation. */ export interface CreateAppMembershipPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -19441,7 +18973,6 @@ export type CreateAppMembershipPayloadSelect = { select: AppMembershipEdgeSelect; }; }; -/** The output of our update `AppMembership` mutation. */ export interface UpdateAppMembershipPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -19462,7 +18993,6 @@ export type UpdateAppMembershipPayloadSelect = { select: AppMembershipEdgeSelect; }; }; -/** The output of our delete `AppMembership` mutation. */ export interface DeleteAppMembershipPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -19483,7 +19013,6 @@ export type DeleteAppMembershipPayloadSelect = { select: AppMembershipEdgeSelect; }; }; -/** The output of our create `User` mutation. */ export interface CreateUserPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -19504,7 +19033,6 @@ export type CreateUserPayloadSelect = { select: UserEdgeSelect; }; }; -/** The output of our update `User` mutation. */ export interface UpdateUserPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -19525,7 +19053,6 @@ export type UpdateUserPayloadSelect = { select: UserEdgeSelect; }; }; -/** The output of our delete `User` mutation. */ export interface DeleteUserPayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -19546,7 +19073,6 @@ export type DeleteUserPayloadSelect = { select: UserEdgeSelect; }; }; -/** The output of our create `HierarchyModule` mutation. */ export interface CreateHierarchyModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -19567,7 +19093,6 @@ export type CreateHierarchyModulePayloadSelect = { select: HierarchyModuleEdgeSelect; }; }; -/** The output of our update `HierarchyModule` mutation. */ export interface UpdateHierarchyModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, @@ -19588,7 +19113,6 @@ export type UpdateHierarchyModulePayloadSelect = { select: HierarchyModuleEdgeSelect; }; }; -/** The output of our delete `HierarchyModule` mutation. */ export interface DeleteHierarchyModulePayload { /** * The exact same `clientMutationId` that was provided in the mutation input, diff --git a/sdk/constructive-sdk/src/public/orm/mutation/index.ts b/sdk/constructive-sdk/src/public/orm/mutation/index.ts index b8937ffd0..f8ef22b51 100644 --- a/sdk/constructive-sdk/src/public/orm/mutation/index.ts +++ b/sdk/constructive-sdk/src/public/orm/mutation/index.ts @@ -103,71 +103,54 @@ import type { } from '../input-types'; import { connectionFieldsMap } from '../input-types'; export interface SignOutVariables { - /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: SignOutInput; } export interface SendAccountDeletionEmailVariables { - /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: SendAccountDeletionEmailInput; } export interface CheckPasswordVariables { - /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: CheckPasswordInput; } export interface SubmitInviteCodeVariables { - /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: SubmitInviteCodeInput; } export interface SubmitOrgInviteCodeVariables { - /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: SubmitOrgInviteCodeInput; } export interface FreezeObjectsVariables { - /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: FreezeObjectsInput; } export interface InitEmptyRepoVariables { - /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: InitEmptyRepoInput; } export interface ConfirmDeleteAccountVariables { - /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: ConfirmDeleteAccountInput; } export interface SetPasswordVariables { - /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: SetPasswordInput; } export interface VerifyEmailVariables { - /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: VerifyEmailInput; } export interface ResetPasswordVariables { - /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: ResetPasswordInput; } export interface RemoveNodeAtPathVariables { - /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: RemoveNodeAtPathInput; } export interface BootstrapUserVariables { - /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: BootstrapUserInput; } export interface SetDataAtPathVariables { - /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: SetDataAtPathInput; } export interface SetPropsAndCommitVariables { - /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: SetPropsAndCommitInput; } export interface ProvisionDatabaseWithUserVariables { - /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: ProvisionDatabaseWithUserInput; } export interface SignInOneTimeTokenVariables { - /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: SignInOneTimeTokenInput; } /** @@ -190,59 +173,45 @@ Example usage: SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid, true, true); -- with invites and groups */ export interface CreateUserDatabaseVariables { - /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: CreateUserDatabaseInput; } export interface ExtendTokenExpiresVariables { - /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: ExtendTokenExpiresInput; } export interface SignInVariables { - /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: SignInInput; } export interface SignUpVariables { - /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: SignUpInput; } export interface SetFieldOrderVariables { - /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: SetFieldOrderInput; } export interface OneTimeTokenVariables { - /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: OneTimeTokenInput; } export interface InsertNodeAtPathVariables { - /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: InsertNodeAtPathInput; } export interface UpdateNodeAtPathVariables { - /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: UpdateNodeAtPathInput; } export interface SetAndCommitVariables { - /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: SetAndCommitInput; } export interface ApplyRlsVariables { - /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: ApplyRlsInput; } export interface ForgotPasswordVariables { - /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: ForgotPasswordInput; } export interface SendVerificationEmailVariables { - /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: SendVerificationEmailInput; } export interface VerifyPasswordVariables { - /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: VerifyPasswordInput; } export interface VerifyTotpVariables { - /** The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. */ input: VerifyTotpInput; } export function createMutationOperations(client: OrmClient) { From f38a887cc74f265cad4cce5b177c870cae41b37b Mon Sep 17 00:00:00 2001 From: Dan Lynch Date: Fri, 27 Feb 2026 23:21:56 +0000 Subject: [PATCH 4/8] fix(codegen): expand boilerplate filter to cover clientMutationId, cursor, edge, pagination descriptions Added additional PostGraphile boilerplate prefixes: - 'The exact same clientMutationId that was provided...' - 'A cursor for use in pagination.' - 'An edge for our...' - 'Information to aid in pagination.' - 'Reads and enables pagination through a set of...' - 'A list of edges which contains the...' - And several more generic PostGraphile descriptions Removes 2,468 additional lines of noise from the generated SDK. --- graphql/codegen/src/core/codegen/utils.ts | 12 + .../src/admin/orm/input-types.ts | 468 ----- .../src/admin/orm/query/index.ts | 12 - .../src/auth/orm/input-types.ts | 176 -- .../src/objects/orm/input-types.ts | 100 - .../src/objects/orm/query/index.ts | 8 - .../src/public/orm/input-types.ts | 1684 ----------------- .../src/public/orm/query/index.ts | 20 - 8 files changed, 12 insertions(+), 2468 deletions(-) diff --git a/graphql/codegen/src/core/codegen/utils.ts b/graphql/codegen/src/core/codegen/utils.ts index e42e35b6a..7694f20d5 100644 --- a/graphql/codegen/src/core/codegen/utils.ts +++ b/graphql/codegen/src/core/codegen/utils.ts @@ -441,8 +441,20 @@ export function getQueryKeyPrefix(table: CleanTable): string { const POSTGRAPHILE_BOILERPLATE: string[] = [ 'The exclusive input argument for this mutation.', 'An arbitrary string value with no semantic meaning.', + 'The exact same `clientMutationId` that was provided in the mutation input,', 'The output of our', 'All input for the', + 'A cursor for use in pagination.', + 'An edge for our', + 'Information to aid in pagination.', + 'Reads and enables pagination through a set of', + 'A list of edges which contains the', + 'The count of *all* `', + 'A list of `', + 'Our root query field', + 'Reads a single', + 'The root query type', + 'The root mutation type', ]; /** diff --git a/sdk/constructive-sdk/src/admin/orm/input-types.ts b/sdk/constructive-sdk/src/admin/orm/input-types.ts index 9919344e9..aca539f61 100644 --- a/sdk/constructive-sdk/src/admin/orm/input-types.ts +++ b/sdk/constructive-sdk/src/admin/orm/input-types.ts @@ -2608,13 +2608,9 @@ export interface SubmitOrgInviteCodeInput { /** A connection to a list of `AppPermission` values. */ // ============ Payload/Return Types (for custom operations) ============ export interface AppPermissionConnection { - /** A list of `AppPermission` objects. */ nodes: AppPermission[]; - /** A list of edges which contains the `AppPermission` and cursor to aid in pagination. */ edges: AppPermissionEdge[]; - /** Information to aid in pagination. */ pageInfo: PageInfo; - /** The count of *all* `AppPermission` you could get from the connection. */ totalCount: number; } export type AppPermissionConnectionSelect = { @@ -2631,13 +2627,9 @@ export type AppPermissionConnectionSelect = { }; /** A connection to a list of `OrgPermission` values. */ export interface OrgPermissionConnection { - /** A list of `OrgPermission` objects. */ nodes: OrgPermission[]; - /** A list of edges which contains the `OrgPermission` and cursor to aid in pagination. */ edges: OrgPermissionEdge[]; - /** Information to aid in pagination. */ pageInfo: PageInfo; - /** The count of *all* `OrgPermission` you could get from the connection. */ totalCount: number; } export type OrgPermissionConnectionSelect = { @@ -2654,13 +2646,9 @@ export type OrgPermissionConnectionSelect = { }; /** A connection to a list of `AppLevelRequirement` values. */ export interface AppLevelRequirementConnection { - /** A list of `AppLevelRequirement` objects. */ nodes: AppLevelRequirement[]; - /** A list of edges which contains the `AppLevelRequirement` and cursor to aid in pagination. */ edges: AppLevelRequirementEdge[]; - /** Information to aid in pagination. */ pageInfo: PageInfo; - /** The count of *all* `AppLevelRequirement` you could get from the connection. */ totalCount: number; } export type AppLevelRequirementConnectionSelect = { @@ -2676,10 +2664,6 @@ export type AppLevelRequirementConnectionSelect = { totalCount?: boolean; }; export interface SubmitInviteCodePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; result?: boolean | null; } @@ -2688,10 +2672,6 @@ export type SubmitInviteCodePayloadSelect = { result?: boolean; }; export interface SubmitOrgInviteCodePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; result?: boolean | null; } @@ -2700,14 +2680,9 @@ export type SubmitOrgInviteCodePayloadSelect = { result?: boolean; }; export interface CreateAppPermissionPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppPermission` that was created by this mutation. */ appPermission?: AppPermission | null; - /** An edge for our `AppPermission`. May be used by Relay 1. */ appPermissionEdge?: AppPermissionEdge | null; } export type CreateAppPermissionPayloadSelect = { @@ -2720,14 +2695,9 @@ export type CreateAppPermissionPayloadSelect = { }; }; export interface UpdateAppPermissionPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppPermission` that was updated by this mutation. */ appPermission?: AppPermission | null; - /** An edge for our `AppPermission`. May be used by Relay 1. */ appPermissionEdge?: AppPermissionEdge | null; } export type UpdateAppPermissionPayloadSelect = { @@ -2740,14 +2710,9 @@ export type UpdateAppPermissionPayloadSelect = { }; }; export interface DeleteAppPermissionPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppPermission` that was deleted by this mutation. */ appPermission?: AppPermission | null; - /** An edge for our `AppPermission`. May be used by Relay 1. */ appPermissionEdge?: AppPermissionEdge | null; } export type DeleteAppPermissionPayloadSelect = { @@ -2760,14 +2725,9 @@ export type DeleteAppPermissionPayloadSelect = { }; }; export interface CreateOrgPermissionPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgPermission` that was created by this mutation. */ orgPermission?: OrgPermission | null; - /** An edge for our `OrgPermission`. May be used by Relay 1. */ orgPermissionEdge?: OrgPermissionEdge | null; } export type CreateOrgPermissionPayloadSelect = { @@ -2780,14 +2740,9 @@ export type CreateOrgPermissionPayloadSelect = { }; }; export interface UpdateOrgPermissionPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgPermission` that was updated by this mutation. */ orgPermission?: OrgPermission | null; - /** An edge for our `OrgPermission`. May be used by Relay 1. */ orgPermissionEdge?: OrgPermissionEdge | null; } export type UpdateOrgPermissionPayloadSelect = { @@ -2800,14 +2755,9 @@ export type UpdateOrgPermissionPayloadSelect = { }; }; export interface DeleteOrgPermissionPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgPermission` that was deleted by this mutation. */ orgPermission?: OrgPermission | null; - /** An edge for our `OrgPermission`. May be used by Relay 1. */ orgPermissionEdge?: OrgPermissionEdge | null; } export type DeleteOrgPermissionPayloadSelect = { @@ -2820,14 +2770,9 @@ export type DeleteOrgPermissionPayloadSelect = { }; }; export interface CreateAppLevelRequirementPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppLevelRequirement` that was created by this mutation. */ appLevelRequirement?: AppLevelRequirement | null; - /** An edge for our `AppLevelRequirement`. May be used by Relay 1. */ appLevelRequirementEdge?: AppLevelRequirementEdge | null; } export type CreateAppLevelRequirementPayloadSelect = { @@ -2840,14 +2785,9 @@ export type CreateAppLevelRequirementPayloadSelect = { }; }; export interface UpdateAppLevelRequirementPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppLevelRequirement` that was updated by this mutation. */ appLevelRequirement?: AppLevelRequirement | null; - /** An edge for our `AppLevelRequirement`. May be used by Relay 1. */ appLevelRequirementEdge?: AppLevelRequirementEdge | null; } export type UpdateAppLevelRequirementPayloadSelect = { @@ -2860,14 +2800,9 @@ export type UpdateAppLevelRequirementPayloadSelect = { }; }; export interface DeleteAppLevelRequirementPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppLevelRequirement` that was deleted by this mutation. */ appLevelRequirement?: AppLevelRequirement | null; - /** An edge for our `AppLevelRequirement`. May be used by Relay 1. */ appLevelRequirementEdge?: AppLevelRequirementEdge | null; } export type DeleteAppLevelRequirementPayloadSelect = { @@ -2880,14 +2815,9 @@ export type DeleteAppLevelRequirementPayloadSelect = { }; }; export interface CreateOrgMemberPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgMember` that was created by this mutation. */ orgMember?: OrgMember | null; - /** An edge for our `OrgMember`. May be used by Relay 1. */ orgMemberEdge?: OrgMemberEdge | null; } export type CreateOrgMemberPayloadSelect = { @@ -2900,14 +2830,9 @@ export type CreateOrgMemberPayloadSelect = { }; }; export interface UpdateOrgMemberPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgMember` that was updated by this mutation. */ orgMember?: OrgMember | null; - /** An edge for our `OrgMember`. May be used by Relay 1. */ orgMemberEdge?: OrgMemberEdge | null; } export type UpdateOrgMemberPayloadSelect = { @@ -2920,14 +2845,9 @@ export type UpdateOrgMemberPayloadSelect = { }; }; export interface DeleteOrgMemberPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgMember` that was deleted by this mutation. */ orgMember?: OrgMember | null; - /** An edge for our `OrgMember`. May be used by Relay 1. */ orgMemberEdge?: OrgMemberEdge | null; } export type DeleteOrgMemberPayloadSelect = { @@ -2940,14 +2860,9 @@ export type DeleteOrgMemberPayloadSelect = { }; }; export interface CreateAppPermissionDefaultPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppPermissionDefault` that was created by this mutation. */ appPermissionDefault?: AppPermissionDefault | null; - /** An edge for our `AppPermissionDefault`. May be used by Relay 1. */ appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; } export type CreateAppPermissionDefaultPayloadSelect = { @@ -2960,14 +2875,9 @@ export type CreateAppPermissionDefaultPayloadSelect = { }; }; export interface UpdateAppPermissionDefaultPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppPermissionDefault` that was updated by this mutation. */ appPermissionDefault?: AppPermissionDefault | null; - /** An edge for our `AppPermissionDefault`. May be used by Relay 1. */ appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; } export type UpdateAppPermissionDefaultPayloadSelect = { @@ -2980,14 +2890,9 @@ export type UpdateAppPermissionDefaultPayloadSelect = { }; }; export interface DeleteAppPermissionDefaultPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppPermissionDefault` that was deleted by this mutation. */ appPermissionDefault?: AppPermissionDefault | null; - /** An edge for our `AppPermissionDefault`. May be used by Relay 1. */ appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; } export type DeleteAppPermissionDefaultPayloadSelect = { @@ -3000,14 +2905,9 @@ export type DeleteAppPermissionDefaultPayloadSelect = { }; }; export interface CreateOrgPermissionDefaultPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgPermissionDefault` that was created by this mutation. */ orgPermissionDefault?: OrgPermissionDefault | null; - /** An edge for our `OrgPermissionDefault`. May be used by Relay 1. */ orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; } export type CreateOrgPermissionDefaultPayloadSelect = { @@ -3020,14 +2920,9 @@ export type CreateOrgPermissionDefaultPayloadSelect = { }; }; export interface UpdateOrgPermissionDefaultPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgPermissionDefault` that was updated by this mutation. */ orgPermissionDefault?: OrgPermissionDefault | null; - /** An edge for our `OrgPermissionDefault`. May be used by Relay 1. */ orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; } export type UpdateOrgPermissionDefaultPayloadSelect = { @@ -3040,14 +2935,9 @@ export type UpdateOrgPermissionDefaultPayloadSelect = { }; }; export interface DeleteOrgPermissionDefaultPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgPermissionDefault` that was deleted by this mutation. */ orgPermissionDefault?: OrgPermissionDefault | null; - /** An edge for our `OrgPermissionDefault`. May be used by Relay 1. */ orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; } export type DeleteOrgPermissionDefaultPayloadSelect = { @@ -3060,14 +2950,9 @@ export type DeleteOrgPermissionDefaultPayloadSelect = { }; }; export interface CreateAppAdminGrantPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppAdminGrant` that was created by this mutation. */ appAdminGrant?: AppAdminGrant | null; - /** An edge for our `AppAdminGrant`. May be used by Relay 1. */ appAdminGrantEdge?: AppAdminGrantEdge | null; } export type CreateAppAdminGrantPayloadSelect = { @@ -3080,14 +2965,9 @@ export type CreateAppAdminGrantPayloadSelect = { }; }; export interface UpdateAppAdminGrantPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppAdminGrant` that was updated by this mutation. */ appAdminGrant?: AppAdminGrant | null; - /** An edge for our `AppAdminGrant`. May be used by Relay 1. */ appAdminGrantEdge?: AppAdminGrantEdge | null; } export type UpdateAppAdminGrantPayloadSelect = { @@ -3100,14 +2980,9 @@ export type UpdateAppAdminGrantPayloadSelect = { }; }; export interface DeleteAppAdminGrantPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppAdminGrant` that was deleted by this mutation. */ appAdminGrant?: AppAdminGrant | null; - /** An edge for our `AppAdminGrant`. May be used by Relay 1. */ appAdminGrantEdge?: AppAdminGrantEdge | null; } export type DeleteAppAdminGrantPayloadSelect = { @@ -3120,14 +2995,9 @@ export type DeleteAppAdminGrantPayloadSelect = { }; }; export interface CreateAppOwnerGrantPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppOwnerGrant` that was created by this mutation. */ appOwnerGrant?: AppOwnerGrant | null; - /** An edge for our `AppOwnerGrant`. May be used by Relay 1. */ appOwnerGrantEdge?: AppOwnerGrantEdge | null; } export type CreateAppOwnerGrantPayloadSelect = { @@ -3140,14 +3010,9 @@ export type CreateAppOwnerGrantPayloadSelect = { }; }; export interface UpdateAppOwnerGrantPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppOwnerGrant` that was updated by this mutation. */ appOwnerGrant?: AppOwnerGrant | null; - /** An edge for our `AppOwnerGrant`. May be used by Relay 1. */ appOwnerGrantEdge?: AppOwnerGrantEdge | null; } export type UpdateAppOwnerGrantPayloadSelect = { @@ -3160,14 +3025,9 @@ export type UpdateAppOwnerGrantPayloadSelect = { }; }; export interface DeleteAppOwnerGrantPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppOwnerGrant` that was deleted by this mutation. */ appOwnerGrant?: AppOwnerGrant | null; - /** An edge for our `AppOwnerGrant`. May be used by Relay 1. */ appOwnerGrantEdge?: AppOwnerGrantEdge | null; } export type DeleteAppOwnerGrantPayloadSelect = { @@ -3180,14 +3040,9 @@ export type DeleteAppOwnerGrantPayloadSelect = { }; }; export interface CreateAppLimitDefaultPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppLimitDefault` that was created by this mutation. */ appLimitDefault?: AppLimitDefault | null; - /** An edge for our `AppLimitDefault`. May be used by Relay 1. */ appLimitDefaultEdge?: AppLimitDefaultEdge | null; } export type CreateAppLimitDefaultPayloadSelect = { @@ -3200,14 +3055,9 @@ export type CreateAppLimitDefaultPayloadSelect = { }; }; export interface UpdateAppLimitDefaultPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppLimitDefault` that was updated by this mutation. */ appLimitDefault?: AppLimitDefault | null; - /** An edge for our `AppLimitDefault`. May be used by Relay 1. */ appLimitDefaultEdge?: AppLimitDefaultEdge | null; } export type UpdateAppLimitDefaultPayloadSelect = { @@ -3220,14 +3070,9 @@ export type UpdateAppLimitDefaultPayloadSelect = { }; }; export interface DeleteAppLimitDefaultPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppLimitDefault` that was deleted by this mutation. */ appLimitDefault?: AppLimitDefault | null; - /** An edge for our `AppLimitDefault`. May be used by Relay 1. */ appLimitDefaultEdge?: AppLimitDefaultEdge | null; } export type DeleteAppLimitDefaultPayloadSelect = { @@ -3240,14 +3085,9 @@ export type DeleteAppLimitDefaultPayloadSelect = { }; }; export interface CreateOrgLimitDefaultPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgLimitDefault` that was created by this mutation. */ orgLimitDefault?: OrgLimitDefault | null; - /** An edge for our `OrgLimitDefault`. May be used by Relay 1. */ orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; } export type CreateOrgLimitDefaultPayloadSelect = { @@ -3260,14 +3100,9 @@ export type CreateOrgLimitDefaultPayloadSelect = { }; }; export interface UpdateOrgLimitDefaultPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgLimitDefault` that was updated by this mutation. */ orgLimitDefault?: OrgLimitDefault | null; - /** An edge for our `OrgLimitDefault`. May be used by Relay 1. */ orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; } export type UpdateOrgLimitDefaultPayloadSelect = { @@ -3280,14 +3115,9 @@ export type UpdateOrgLimitDefaultPayloadSelect = { }; }; export interface DeleteOrgLimitDefaultPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgLimitDefault` that was deleted by this mutation. */ orgLimitDefault?: OrgLimitDefault | null; - /** An edge for our `OrgLimitDefault`. May be used by Relay 1. */ orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; } export type DeleteOrgLimitDefaultPayloadSelect = { @@ -3300,14 +3130,9 @@ export type DeleteOrgLimitDefaultPayloadSelect = { }; }; export interface CreateOrgAdminGrantPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgAdminGrant` that was created by this mutation. */ orgAdminGrant?: OrgAdminGrant | null; - /** An edge for our `OrgAdminGrant`. May be used by Relay 1. */ orgAdminGrantEdge?: OrgAdminGrantEdge | null; } export type CreateOrgAdminGrantPayloadSelect = { @@ -3320,14 +3145,9 @@ export type CreateOrgAdminGrantPayloadSelect = { }; }; export interface UpdateOrgAdminGrantPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgAdminGrant` that was updated by this mutation. */ orgAdminGrant?: OrgAdminGrant | null; - /** An edge for our `OrgAdminGrant`. May be used by Relay 1. */ orgAdminGrantEdge?: OrgAdminGrantEdge | null; } export type UpdateOrgAdminGrantPayloadSelect = { @@ -3340,14 +3160,9 @@ export type UpdateOrgAdminGrantPayloadSelect = { }; }; export interface DeleteOrgAdminGrantPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgAdminGrant` that was deleted by this mutation. */ orgAdminGrant?: OrgAdminGrant | null; - /** An edge for our `OrgAdminGrant`. May be used by Relay 1. */ orgAdminGrantEdge?: OrgAdminGrantEdge | null; } export type DeleteOrgAdminGrantPayloadSelect = { @@ -3360,14 +3175,9 @@ export type DeleteOrgAdminGrantPayloadSelect = { }; }; export interface CreateOrgOwnerGrantPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgOwnerGrant` that was created by this mutation. */ orgOwnerGrant?: OrgOwnerGrant | null; - /** An edge for our `OrgOwnerGrant`. May be used by Relay 1. */ orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } export type CreateOrgOwnerGrantPayloadSelect = { @@ -3380,14 +3190,9 @@ export type CreateOrgOwnerGrantPayloadSelect = { }; }; export interface UpdateOrgOwnerGrantPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgOwnerGrant` that was updated by this mutation. */ orgOwnerGrant?: OrgOwnerGrant | null; - /** An edge for our `OrgOwnerGrant`. May be used by Relay 1. */ orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } export type UpdateOrgOwnerGrantPayloadSelect = { @@ -3400,14 +3205,9 @@ export type UpdateOrgOwnerGrantPayloadSelect = { }; }; export interface DeleteOrgOwnerGrantPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgOwnerGrant` that was deleted by this mutation. */ orgOwnerGrant?: OrgOwnerGrant | null; - /** An edge for our `OrgOwnerGrant`. May be used by Relay 1. */ orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } export type DeleteOrgOwnerGrantPayloadSelect = { @@ -3420,14 +3220,9 @@ export type DeleteOrgOwnerGrantPayloadSelect = { }; }; export interface CreateMembershipTypePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `MembershipType` that was created by this mutation. */ membershipType?: MembershipType | null; - /** An edge for our `MembershipType`. May be used by Relay 1. */ membershipTypeEdge?: MembershipTypeEdge | null; } export type CreateMembershipTypePayloadSelect = { @@ -3440,14 +3235,9 @@ export type CreateMembershipTypePayloadSelect = { }; }; export interface UpdateMembershipTypePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `MembershipType` that was updated by this mutation. */ membershipType?: MembershipType | null; - /** An edge for our `MembershipType`. May be used by Relay 1. */ membershipTypeEdge?: MembershipTypeEdge | null; } export type UpdateMembershipTypePayloadSelect = { @@ -3460,14 +3250,9 @@ export type UpdateMembershipTypePayloadSelect = { }; }; export interface DeleteMembershipTypePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `MembershipType` that was deleted by this mutation. */ membershipType?: MembershipType | null; - /** An edge for our `MembershipType`. May be used by Relay 1. */ membershipTypeEdge?: MembershipTypeEdge | null; } export type DeleteMembershipTypePayloadSelect = { @@ -3480,14 +3265,9 @@ export type DeleteMembershipTypePayloadSelect = { }; }; export interface CreateAppLimitPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppLimit` that was created by this mutation. */ appLimit?: AppLimit | null; - /** An edge for our `AppLimit`. May be used by Relay 1. */ appLimitEdge?: AppLimitEdge | null; } export type CreateAppLimitPayloadSelect = { @@ -3500,14 +3280,9 @@ export type CreateAppLimitPayloadSelect = { }; }; export interface UpdateAppLimitPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppLimit` that was updated by this mutation. */ appLimit?: AppLimit | null; - /** An edge for our `AppLimit`. May be used by Relay 1. */ appLimitEdge?: AppLimitEdge | null; } export type UpdateAppLimitPayloadSelect = { @@ -3520,14 +3295,9 @@ export type UpdateAppLimitPayloadSelect = { }; }; export interface DeleteAppLimitPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppLimit` that was deleted by this mutation. */ appLimit?: AppLimit | null; - /** An edge for our `AppLimit`. May be used by Relay 1. */ appLimitEdge?: AppLimitEdge | null; } export type DeleteAppLimitPayloadSelect = { @@ -3540,14 +3310,9 @@ export type DeleteAppLimitPayloadSelect = { }; }; export interface CreateAppAchievementPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppAchievement` that was created by this mutation. */ appAchievement?: AppAchievement | null; - /** An edge for our `AppAchievement`. May be used by Relay 1. */ appAchievementEdge?: AppAchievementEdge | null; } export type CreateAppAchievementPayloadSelect = { @@ -3560,14 +3325,9 @@ export type CreateAppAchievementPayloadSelect = { }; }; export interface UpdateAppAchievementPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppAchievement` that was updated by this mutation. */ appAchievement?: AppAchievement | null; - /** An edge for our `AppAchievement`. May be used by Relay 1. */ appAchievementEdge?: AppAchievementEdge | null; } export type UpdateAppAchievementPayloadSelect = { @@ -3580,14 +3340,9 @@ export type UpdateAppAchievementPayloadSelect = { }; }; export interface DeleteAppAchievementPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppAchievement` that was deleted by this mutation. */ appAchievement?: AppAchievement | null; - /** An edge for our `AppAchievement`. May be used by Relay 1. */ appAchievementEdge?: AppAchievementEdge | null; } export type DeleteAppAchievementPayloadSelect = { @@ -3600,14 +3355,9 @@ export type DeleteAppAchievementPayloadSelect = { }; }; export interface CreateAppStepPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppStep` that was created by this mutation. */ appStep?: AppStep | null; - /** An edge for our `AppStep`. May be used by Relay 1. */ appStepEdge?: AppStepEdge | null; } export type CreateAppStepPayloadSelect = { @@ -3620,14 +3370,9 @@ export type CreateAppStepPayloadSelect = { }; }; export interface UpdateAppStepPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppStep` that was updated by this mutation. */ appStep?: AppStep | null; - /** An edge for our `AppStep`. May be used by Relay 1. */ appStepEdge?: AppStepEdge | null; } export type UpdateAppStepPayloadSelect = { @@ -3640,14 +3385,9 @@ export type UpdateAppStepPayloadSelect = { }; }; export interface DeleteAppStepPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppStep` that was deleted by this mutation. */ appStep?: AppStep | null; - /** An edge for our `AppStep`. May be used by Relay 1. */ appStepEdge?: AppStepEdge | null; } export type DeleteAppStepPayloadSelect = { @@ -3660,14 +3400,9 @@ export type DeleteAppStepPayloadSelect = { }; }; export interface CreateClaimedInvitePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `ClaimedInvite` that was created by this mutation. */ claimedInvite?: ClaimedInvite | null; - /** An edge for our `ClaimedInvite`. May be used by Relay 1. */ claimedInviteEdge?: ClaimedInviteEdge | null; } export type CreateClaimedInvitePayloadSelect = { @@ -3680,14 +3415,9 @@ export type CreateClaimedInvitePayloadSelect = { }; }; export interface UpdateClaimedInvitePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `ClaimedInvite` that was updated by this mutation. */ claimedInvite?: ClaimedInvite | null; - /** An edge for our `ClaimedInvite`. May be used by Relay 1. */ claimedInviteEdge?: ClaimedInviteEdge | null; } export type UpdateClaimedInvitePayloadSelect = { @@ -3700,14 +3430,9 @@ export type UpdateClaimedInvitePayloadSelect = { }; }; export interface DeleteClaimedInvitePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `ClaimedInvite` that was deleted by this mutation. */ claimedInvite?: ClaimedInvite | null; - /** An edge for our `ClaimedInvite`. May be used by Relay 1. */ claimedInviteEdge?: ClaimedInviteEdge | null; } export type DeleteClaimedInvitePayloadSelect = { @@ -3720,14 +3445,9 @@ export type DeleteClaimedInvitePayloadSelect = { }; }; export interface CreateAppGrantPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppGrant` that was created by this mutation. */ appGrant?: AppGrant | null; - /** An edge for our `AppGrant`. May be used by Relay 1. */ appGrantEdge?: AppGrantEdge | null; } export type CreateAppGrantPayloadSelect = { @@ -3740,14 +3460,9 @@ export type CreateAppGrantPayloadSelect = { }; }; export interface UpdateAppGrantPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppGrant` that was updated by this mutation. */ appGrant?: AppGrant | null; - /** An edge for our `AppGrant`. May be used by Relay 1. */ appGrantEdge?: AppGrantEdge | null; } export type UpdateAppGrantPayloadSelect = { @@ -3760,14 +3475,9 @@ export type UpdateAppGrantPayloadSelect = { }; }; export interface DeleteAppGrantPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppGrant` that was deleted by this mutation. */ appGrant?: AppGrant | null; - /** An edge for our `AppGrant`. May be used by Relay 1. */ appGrantEdge?: AppGrantEdge | null; } export type DeleteAppGrantPayloadSelect = { @@ -3780,14 +3490,9 @@ export type DeleteAppGrantPayloadSelect = { }; }; export interface CreateAppMembershipDefaultPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppMembershipDefault` that was created by this mutation. */ appMembershipDefault?: AppMembershipDefault | null; - /** An edge for our `AppMembershipDefault`. May be used by Relay 1. */ appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; } export type CreateAppMembershipDefaultPayloadSelect = { @@ -3800,14 +3505,9 @@ export type CreateAppMembershipDefaultPayloadSelect = { }; }; export interface UpdateAppMembershipDefaultPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppMembershipDefault` that was updated by this mutation. */ appMembershipDefault?: AppMembershipDefault | null; - /** An edge for our `AppMembershipDefault`. May be used by Relay 1. */ appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; } export type UpdateAppMembershipDefaultPayloadSelect = { @@ -3820,14 +3520,9 @@ export type UpdateAppMembershipDefaultPayloadSelect = { }; }; export interface DeleteAppMembershipDefaultPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppMembershipDefault` that was deleted by this mutation. */ appMembershipDefault?: AppMembershipDefault | null; - /** An edge for our `AppMembershipDefault`. May be used by Relay 1. */ appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; } export type DeleteAppMembershipDefaultPayloadSelect = { @@ -3840,14 +3535,9 @@ export type DeleteAppMembershipDefaultPayloadSelect = { }; }; export interface CreateOrgLimitPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgLimit` that was created by this mutation. */ orgLimit?: OrgLimit | null; - /** An edge for our `OrgLimit`. May be used by Relay 1. */ orgLimitEdge?: OrgLimitEdge | null; } export type CreateOrgLimitPayloadSelect = { @@ -3860,14 +3550,9 @@ export type CreateOrgLimitPayloadSelect = { }; }; export interface UpdateOrgLimitPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgLimit` that was updated by this mutation. */ orgLimit?: OrgLimit | null; - /** An edge for our `OrgLimit`. May be used by Relay 1. */ orgLimitEdge?: OrgLimitEdge | null; } export type UpdateOrgLimitPayloadSelect = { @@ -3880,14 +3565,9 @@ export type UpdateOrgLimitPayloadSelect = { }; }; export interface DeleteOrgLimitPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgLimit` that was deleted by this mutation. */ orgLimit?: OrgLimit | null; - /** An edge for our `OrgLimit`. May be used by Relay 1. */ orgLimitEdge?: OrgLimitEdge | null; } export type DeleteOrgLimitPayloadSelect = { @@ -3900,14 +3580,9 @@ export type DeleteOrgLimitPayloadSelect = { }; }; export interface CreateOrgClaimedInvitePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgClaimedInvite` that was created by this mutation. */ orgClaimedInvite?: OrgClaimedInvite | null; - /** An edge for our `OrgClaimedInvite`. May be used by Relay 1. */ orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; } export type CreateOrgClaimedInvitePayloadSelect = { @@ -3920,14 +3595,9 @@ export type CreateOrgClaimedInvitePayloadSelect = { }; }; export interface UpdateOrgClaimedInvitePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgClaimedInvite` that was updated by this mutation. */ orgClaimedInvite?: OrgClaimedInvite | null; - /** An edge for our `OrgClaimedInvite`. May be used by Relay 1. */ orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; } export type UpdateOrgClaimedInvitePayloadSelect = { @@ -3940,14 +3610,9 @@ export type UpdateOrgClaimedInvitePayloadSelect = { }; }; export interface DeleteOrgClaimedInvitePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgClaimedInvite` that was deleted by this mutation. */ orgClaimedInvite?: OrgClaimedInvite | null; - /** An edge for our `OrgClaimedInvite`. May be used by Relay 1. */ orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; } export type DeleteOrgClaimedInvitePayloadSelect = { @@ -3960,14 +3625,9 @@ export type DeleteOrgClaimedInvitePayloadSelect = { }; }; export interface CreateOrgGrantPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgGrant` that was created by this mutation. */ orgGrant?: OrgGrant | null; - /** An edge for our `OrgGrant`. May be used by Relay 1. */ orgGrantEdge?: OrgGrantEdge | null; } export type CreateOrgGrantPayloadSelect = { @@ -3980,14 +3640,9 @@ export type CreateOrgGrantPayloadSelect = { }; }; export interface UpdateOrgGrantPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgGrant` that was updated by this mutation. */ orgGrant?: OrgGrant | null; - /** An edge for our `OrgGrant`. May be used by Relay 1. */ orgGrantEdge?: OrgGrantEdge | null; } export type UpdateOrgGrantPayloadSelect = { @@ -4000,14 +3655,9 @@ export type UpdateOrgGrantPayloadSelect = { }; }; export interface DeleteOrgGrantPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgGrant` that was deleted by this mutation. */ orgGrant?: OrgGrant | null; - /** An edge for our `OrgGrant`. May be used by Relay 1. */ orgGrantEdge?: OrgGrantEdge | null; } export type DeleteOrgGrantPayloadSelect = { @@ -4020,14 +3670,9 @@ export type DeleteOrgGrantPayloadSelect = { }; }; export interface CreateOrgMembershipDefaultPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgMembershipDefault` that was created by this mutation. */ orgMembershipDefault?: OrgMembershipDefault | null; - /** An edge for our `OrgMembershipDefault`. May be used by Relay 1. */ orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; } export type CreateOrgMembershipDefaultPayloadSelect = { @@ -4040,14 +3685,9 @@ export type CreateOrgMembershipDefaultPayloadSelect = { }; }; export interface UpdateOrgMembershipDefaultPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgMembershipDefault` that was updated by this mutation. */ orgMembershipDefault?: OrgMembershipDefault | null; - /** An edge for our `OrgMembershipDefault`. May be used by Relay 1. */ orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; } export type UpdateOrgMembershipDefaultPayloadSelect = { @@ -4060,14 +3700,9 @@ export type UpdateOrgMembershipDefaultPayloadSelect = { }; }; export interface DeleteOrgMembershipDefaultPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgMembershipDefault` that was deleted by this mutation. */ orgMembershipDefault?: OrgMembershipDefault | null; - /** An edge for our `OrgMembershipDefault`. May be used by Relay 1. */ orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; } export type DeleteOrgMembershipDefaultPayloadSelect = { @@ -4080,14 +3715,9 @@ export type DeleteOrgMembershipDefaultPayloadSelect = { }; }; export interface CreateAppLevelPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppLevel` that was created by this mutation. */ appLevel?: AppLevel | null; - /** An edge for our `AppLevel`. May be used by Relay 1. */ appLevelEdge?: AppLevelEdge | null; } export type CreateAppLevelPayloadSelect = { @@ -4100,14 +3730,9 @@ export type CreateAppLevelPayloadSelect = { }; }; export interface UpdateAppLevelPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppLevel` that was updated by this mutation. */ appLevel?: AppLevel | null; - /** An edge for our `AppLevel`. May be used by Relay 1. */ appLevelEdge?: AppLevelEdge | null; } export type UpdateAppLevelPayloadSelect = { @@ -4120,14 +3745,9 @@ export type UpdateAppLevelPayloadSelect = { }; }; export interface DeleteAppLevelPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppLevel` that was deleted by this mutation. */ appLevel?: AppLevel | null; - /** An edge for our `AppLevel`. May be used by Relay 1. */ appLevelEdge?: AppLevelEdge | null; } export type DeleteAppLevelPayloadSelect = { @@ -4140,14 +3760,9 @@ export type DeleteAppLevelPayloadSelect = { }; }; export interface CreateInvitePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Invite` that was created by this mutation. */ invite?: Invite | null; - /** An edge for our `Invite`. May be used by Relay 1. */ inviteEdge?: InviteEdge | null; } export type CreateInvitePayloadSelect = { @@ -4160,14 +3775,9 @@ export type CreateInvitePayloadSelect = { }; }; export interface UpdateInvitePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Invite` that was updated by this mutation. */ invite?: Invite | null; - /** An edge for our `Invite`. May be used by Relay 1. */ inviteEdge?: InviteEdge | null; } export type UpdateInvitePayloadSelect = { @@ -4180,14 +3790,9 @@ export type UpdateInvitePayloadSelect = { }; }; export interface DeleteInvitePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Invite` that was deleted by this mutation. */ invite?: Invite | null; - /** An edge for our `Invite`. May be used by Relay 1. */ inviteEdge?: InviteEdge | null; } export type DeleteInvitePayloadSelect = { @@ -4200,14 +3805,9 @@ export type DeleteInvitePayloadSelect = { }; }; export interface CreateAppMembershipPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppMembership` that was created by this mutation. */ appMembership?: AppMembership | null; - /** An edge for our `AppMembership`. May be used by Relay 1. */ appMembershipEdge?: AppMembershipEdge | null; } export type CreateAppMembershipPayloadSelect = { @@ -4220,14 +3820,9 @@ export type CreateAppMembershipPayloadSelect = { }; }; export interface UpdateAppMembershipPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppMembership` that was updated by this mutation. */ appMembership?: AppMembership | null; - /** An edge for our `AppMembership`. May be used by Relay 1. */ appMembershipEdge?: AppMembershipEdge | null; } export type UpdateAppMembershipPayloadSelect = { @@ -4240,14 +3835,9 @@ export type UpdateAppMembershipPayloadSelect = { }; }; export interface DeleteAppMembershipPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppMembership` that was deleted by this mutation. */ appMembership?: AppMembership | null; - /** An edge for our `AppMembership`. May be used by Relay 1. */ appMembershipEdge?: AppMembershipEdge | null; } export type DeleteAppMembershipPayloadSelect = { @@ -4260,14 +3850,9 @@ export type DeleteAppMembershipPayloadSelect = { }; }; export interface CreateOrgMembershipPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgMembership` that was created by this mutation. */ orgMembership?: OrgMembership | null; - /** An edge for our `OrgMembership`. May be used by Relay 1. */ orgMembershipEdge?: OrgMembershipEdge | null; } export type CreateOrgMembershipPayloadSelect = { @@ -4280,14 +3865,9 @@ export type CreateOrgMembershipPayloadSelect = { }; }; export interface UpdateOrgMembershipPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgMembership` that was updated by this mutation. */ orgMembership?: OrgMembership | null; - /** An edge for our `OrgMembership`. May be used by Relay 1. */ orgMembershipEdge?: OrgMembershipEdge | null; } export type UpdateOrgMembershipPayloadSelect = { @@ -4300,14 +3880,9 @@ export type UpdateOrgMembershipPayloadSelect = { }; }; export interface DeleteOrgMembershipPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgMembership` that was deleted by this mutation. */ orgMembership?: OrgMembership | null; - /** An edge for our `OrgMembership`. May be used by Relay 1. */ orgMembershipEdge?: OrgMembershipEdge | null; } export type DeleteOrgMembershipPayloadSelect = { @@ -4320,14 +3895,9 @@ export type DeleteOrgMembershipPayloadSelect = { }; }; export interface CreateOrgInvitePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgInvite` that was created by this mutation. */ orgInvite?: OrgInvite | null; - /** An edge for our `OrgInvite`. May be used by Relay 1. */ orgInviteEdge?: OrgInviteEdge | null; } export type CreateOrgInvitePayloadSelect = { @@ -4340,14 +3910,9 @@ export type CreateOrgInvitePayloadSelect = { }; }; export interface UpdateOrgInvitePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgInvite` that was updated by this mutation. */ orgInvite?: OrgInvite | null; - /** An edge for our `OrgInvite`. May be used by Relay 1. */ orgInviteEdge?: OrgInviteEdge | null; } export type UpdateOrgInvitePayloadSelect = { @@ -4360,14 +3925,9 @@ export type UpdateOrgInvitePayloadSelect = { }; }; export interface DeleteOrgInvitePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgInvite` that was deleted by this mutation. */ orgInvite?: OrgInvite | null; - /** An edge for our `OrgInvite`. May be used by Relay 1. */ orgInviteEdge?: OrgInviteEdge | null; } export type DeleteOrgInvitePayloadSelect = { @@ -4381,7 +3941,6 @@ export type DeleteOrgInvitePayloadSelect = { }; /** A `AppPermission` edge in the connection. */ export interface AppPermissionEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `AppPermission` at the end of the edge. */ node?: AppPermission | null; @@ -4411,7 +3970,6 @@ export type PageInfoSelect = { }; /** A `OrgPermission` edge in the connection. */ export interface OrgPermissionEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `OrgPermission` at the end of the edge. */ node?: OrgPermission | null; @@ -4424,7 +3982,6 @@ export type OrgPermissionEdgeSelect = { }; /** A `AppLevelRequirement` edge in the connection. */ export interface AppLevelRequirementEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `AppLevelRequirement` at the end of the edge. */ node?: AppLevelRequirement | null; @@ -4437,7 +3994,6 @@ export type AppLevelRequirementEdgeSelect = { }; /** A `OrgMember` edge in the connection. */ export interface OrgMemberEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `OrgMember` at the end of the edge. */ node?: OrgMember | null; @@ -4450,7 +4006,6 @@ export type OrgMemberEdgeSelect = { }; /** A `AppPermissionDefault` edge in the connection. */ export interface AppPermissionDefaultEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `AppPermissionDefault` at the end of the edge. */ node?: AppPermissionDefault | null; @@ -4463,7 +4018,6 @@ export type AppPermissionDefaultEdgeSelect = { }; /** A `OrgPermissionDefault` edge in the connection. */ export interface OrgPermissionDefaultEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `OrgPermissionDefault` at the end of the edge. */ node?: OrgPermissionDefault | null; @@ -4476,7 +4030,6 @@ export type OrgPermissionDefaultEdgeSelect = { }; /** A `AppAdminGrant` edge in the connection. */ export interface AppAdminGrantEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `AppAdminGrant` at the end of the edge. */ node?: AppAdminGrant | null; @@ -4489,7 +4042,6 @@ export type AppAdminGrantEdgeSelect = { }; /** A `AppOwnerGrant` edge in the connection. */ export interface AppOwnerGrantEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `AppOwnerGrant` at the end of the edge. */ node?: AppOwnerGrant | null; @@ -4502,7 +4054,6 @@ export type AppOwnerGrantEdgeSelect = { }; /** A `AppLimitDefault` edge in the connection. */ export interface AppLimitDefaultEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `AppLimitDefault` at the end of the edge. */ node?: AppLimitDefault | null; @@ -4515,7 +4066,6 @@ export type AppLimitDefaultEdgeSelect = { }; /** A `OrgLimitDefault` edge in the connection. */ export interface OrgLimitDefaultEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `OrgLimitDefault` at the end of the edge. */ node?: OrgLimitDefault | null; @@ -4528,7 +4078,6 @@ export type OrgLimitDefaultEdgeSelect = { }; /** A `OrgAdminGrant` edge in the connection. */ export interface OrgAdminGrantEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `OrgAdminGrant` at the end of the edge. */ node?: OrgAdminGrant | null; @@ -4541,7 +4090,6 @@ export type OrgAdminGrantEdgeSelect = { }; /** A `OrgOwnerGrant` edge in the connection. */ export interface OrgOwnerGrantEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `OrgOwnerGrant` at the end of the edge. */ node?: OrgOwnerGrant | null; @@ -4554,7 +4102,6 @@ export type OrgOwnerGrantEdgeSelect = { }; /** A `MembershipType` edge in the connection. */ export interface MembershipTypeEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `MembershipType` at the end of the edge. */ node?: MembershipType | null; @@ -4567,7 +4114,6 @@ export type MembershipTypeEdgeSelect = { }; /** A `AppLimit` edge in the connection. */ export interface AppLimitEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `AppLimit` at the end of the edge. */ node?: AppLimit | null; @@ -4580,7 +4126,6 @@ export type AppLimitEdgeSelect = { }; /** A `AppAchievement` edge in the connection. */ export interface AppAchievementEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `AppAchievement` at the end of the edge. */ node?: AppAchievement | null; @@ -4593,7 +4138,6 @@ export type AppAchievementEdgeSelect = { }; /** A `AppStep` edge in the connection. */ export interface AppStepEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `AppStep` at the end of the edge. */ node?: AppStep | null; @@ -4606,7 +4150,6 @@ export type AppStepEdgeSelect = { }; /** A `ClaimedInvite` edge in the connection. */ export interface ClaimedInviteEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `ClaimedInvite` at the end of the edge. */ node?: ClaimedInvite | null; @@ -4619,7 +4162,6 @@ export type ClaimedInviteEdgeSelect = { }; /** A `AppGrant` edge in the connection. */ export interface AppGrantEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `AppGrant` at the end of the edge. */ node?: AppGrant | null; @@ -4632,7 +4174,6 @@ export type AppGrantEdgeSelect = { }; /** A `AppMembershipDefault` edge in the connection. */ export interface AppMembershipDefaultEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `AppMembershipDefault` at the end of the edge. */ node?: AppMembershipDefault | null; @@ -4645,7 +4186,6 @@ export type AppMembershipDefaultEdgeSelect = { }; /** A `OrgLimit` edge in the connection. */ export interface OrgLimitEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `OrgLimit` at the end of the edge. */ node?: OrgLimit | null; @@ -4658,7 +4198,6 @@ export type OrgLimitEdgeSelect = { }; /** A `OrgClaimedInvite` edge in the connection. */ export interface OrgClaimedInviteEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `OrgClaimedInvite` at the end of the edge. */ node?: OrgClaimedInvite | null; @@ -4671,7 +4210,6 @@ export type OrgClaimedInviteEdgeSelect = { }; /** A `OrgGrant` edge in the connection. */ export interface OrgGrantEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `OrgGrant` at the end of the edge. */ node?: OrgGrant | null; @@ -4684,7 +4222,6 @@ export type OrgGrantEdgeSelect = { }; /** A `OrgMembershipDefault` edge in the connection. */ export interface OrgMembershipDefaultEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `OrgMembershipDefault` at the end of the edge. */ node?: OrgMembershipDefault | null; @@ -4697,7 +4234,6 @@ export type OrgMembershipDefaultEdgeSelect = { }; /** A `AppLevel` edge in the connection. */ export interface AppLevelEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `AppLevel` at the end of the edge. */ node?: AppLevel | null; @@ -4710,7 +4246,6 @@ export type AppLevelEdgeSelect = { }; /** A `Invite` edge in the connection. */ export interface InviteEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `Invite` at the end of the edge. */ node?: Invite | null; @@ -4723,7 +4258,6 @@ export type InviteEdgeSelect = { }; /** A `AppMembership` edge in the connection. */ export interface AppMembershipEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `AppMembership` at the end of the edge. */ node?: AppMembership | null; @@ -4736,7 +4270,6 @@ export type AppMembershipEdgeSelect = { }; /** A `OrgMembership` edge in the connection. */ export interface OrgMembershipEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `OrgMembership` at the end of the edge. */ node?: OrgMembership | null; @@ -4749,7 +4282,6 @@ export type OrgMembershipEdgeSelect = { }; /** A `OrgInvite` edge in the connection. */ export interface OrgInviteEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `OrgInvite` at the end of the edge. */ node?: OrgInvite | null; diff --git a/sdk/constructive-sdk/src/admin/orm/query/index.ts b/sdk/constructive-sdk/src/admin/orm/query/index.ts index a4ae15e71..58c216770 100644 --- a/sdk/constructive-sdk/src/admin/orm/query/index.ts +++ b/sdk/constructive-sdk/src/admin/orm/query/index.ts @@ -34,10 +34,6 @@ export interface AppPermissionsGetMaskByNamesVariables { export interface OrgPermissionsGetMaskByNamesVariables { names?: string[]; } -/** - * Variables for appPermissionsGetByMask - * Reads and enables pagination through a set of `AppPermission`. - */ export interface AppPermissionsGetByMaskVariables { mask?: string; /** Only read the first `n` values of the set. */ @@ -50,10 +46,6 @@ export interface AppPermissionsGetByMaskVariables { /** Read all values in the set after (below) this cursor. */ after?: string; } -/** - * Variables for orgPermissionsGetByMask - * Reads and enables pagination through a set of `OrgPermission`. - */ export interface OrgPermissionsGetByMaskVariables { mask?: string; /** Only read the first `n` values of the set. */ @@ -66,10 +58,6 @@ export interface OrgPermissionsGetByMaskVariables { /** Read all values in the set after (below) this cursor. */ after?: string; } -/** - * Variables for stepsRequired - * Reads and enables pagination through a set of `AppLevelRequirement`. - */ export interface StepsRequiredVariables { vlevel?: string; vroleId?: string; diff --git a/sdk/constructive-sdk/src/auth/orm/input-types.ts b/sdk/constructive-sdk/src/auth/orm/input-types.ts index e7c25ebf4..eaf804378 100644 --- a/sdk/constructive-sdk/src/auth/orm/input-types.ts +++ b/sdk/constructive-sdk/src/auth/orm/input-types.ts @@ -970,20 +970,12 @@ export interface IntervalInput { } // ============ Payload/Return Types (for custom operations) ============ export interface SignOutPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; } export type SignOutPayloadSelect = { clientMutationId?: boolean; }; export interface SendAccountDeletionEmailPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; result?: boolean | null; } @@ -992,20 +984,12 @@ export type SendAccountDeletionEmailPayloadSelect = { result?: boolean; }; export interface CheckPasswordPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; } export type CheckPasswordPayloadSelect = { clientMutationId?: boolean; }; export interface ConfirmDeleteAccountPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; result?: boolean | null; } @@ -1014,10 +998,6 @@ export type ConfirmDeleteAccountPayloadSelect = { result?: boolean; }; export interface SetPasswordPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; result?: boolean | null; } @@ -1026,10 +1006,6 @@ export type SetPasswordPayloadSelect = { result?: boolean; }; export interface VerifyEmailPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; result?: boolean | null; } @@ -1038,10 +1014,6 @@ export type VerifyEmailPayloadSelect = { result?: boolean; }; export interface ResetPasswordPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; result?: boolean | null; } @@ -1050,10 +1022,6 @@ export type ResetPasswordPayloadSelect = { result?: boolean; }; export interface SignInOneTimeTokenPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; result?: SignInOneTimeTokenRecord | null; } @@ -1064,10 +1032,6 @@ export type SignInOneTimeTokenPayloadSelect = { }; }; export interface SignInPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; result?: SignInRecord | null; } @@ -1078,10 +1042,6 @@ export type SignInPayloadSelect = { }; }; export interface SignUpPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; result?: SignUpRecord | null; } @@ -1092,10 +1052,6 @@ export type SignUpPayloadSelect = { }; }; export interface OneTimeTokenPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; result?: string | null; } @@ -1104,10 +1060,6 @@ export type OneTimeTokenPayloadSelect = { result?: boolean; }; export interface ExtendTokenExpiresPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; result?: ExtendTokenExpiresRecord[] | null; } @@ -1118,20 +1070,12 @@ export type ExtendTokenExpiresPayloadSelect = { }; }; export interface ForgotPasswordPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; } export type ForgotPasswordPayloadSelect = { clientMutationId?: boolean; }; export interface SendVerificationEmailPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; result?: boolean | null; } @@ -1140,10 +1084,6 @@ export type SendVerificationEmailPayloadSelect = { result?: boolean; }; export interface VerifyPasswordPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; result?: Session | null; } @@ -1154,10 +1094,6 @@ export type VerifyPasswordPayloadSelect = { }; }; export interface VerifyTotpPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; result?: Session | null; } @@ -1168,14 +1104,9 @@ export type VerifyTotpPayloadSelect = { }; }; export interface CreateRoleTypePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `RoleType` that was created by this mutation. */ roleType?: RoleType | null; - /** An edge for our `RoleType`. May be used by Relay 1. */ roleTypeEdge?: RoleTypeEdge | null; } export type CreateRoleTypePayloadSelect = { @@ -1188,14 +1119,9 @@ export type CreateRoleTypePayloadSelect = { }; }; export interface UpdateRoleTypePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `RoleType` that was updated by this mutation. */ roleType?: RoleType | null; - /** An edge for our `RoleType`. May be used by Relay 1. */ roleTypeEdge?: RoleTypeEdge | null; } export type UpdateRoleTypePayloadSelect = { @@ -1208,14 +1134,9 @@ export type UpdateRoleTypePayloadSelect = { }; }; export interface DeleteRoleTypePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `RoleType` that was deleted by this mutation. */ roleType?: RoleType | null; - /** An edge for our `RoleType`. May be used by Relay 1. */ roleTypeEdge?: RoleTypeEdge | null; } export type DeleteRoleTypePayloadSelect = { @@ -1228,14 +1149,9 @@ export type DeleteRoleTypePayloadSelect = { }; }; export interface CreateCryptoAddressPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `CryptoAddress` that was created by this mutation. */ cryptoAddress?: CryptoAddress | null; - /** An edge for our `CryptoAddress`. May be used by Relay 1. */ cryptoAddressEdge?: CryptoAddressEdge | null; } export type CreateCryptoAddressPayloadSelect = { @@ -1248,14 +1164,9 @@ export type CreateCryptoAddressPayloadSelect = { }; }; export interface UpdateCryptoAddressPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `CryptoAddress` that was updated by this mutation. */ cryptoAddress?: CryptoAddress | null; - /** An edge for our `CryptoAddress`. May be used by Relay 1. */ cryptoAddressEdge?: CryptoAddressEdge | null; } export type UpdateCryptoAddressPayloadSelect = { @@ -1268,14 +1179,9 @@ export type UpdateCryptoAddressPayloadSelect = { }; }; export interface DeleteCryptoAddressPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `CryptoAddress` that was deleted by this mutation. */ cryptoAddress?: CryptoAddress | null; - /** An edge for our `CryptoAddress`. May be used by Relay 1. */ cryptoAddressEdge?: CryptoAddressEdge | null; } export type DeleteCryptoAddressPayloadSelect = { @@ -1288,14 +1194,9 @@ export type DeleteCryptoAddressPayloadSelect = { }; }; export interface CreatePhoneNumberPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `PhoneNumber` that was created by this mutation. */ phoneNumber?: PhoneNumber | null; - /** An edge for our `PhoneNumber`. May be used by Relay 1. */ phoneNumberEdge?: PhoneNumberEdge | null; } export type CreatePhoneNumberPayloadSelect = { @@ -1308,14 +1209,9 @@ export type CreatePhoneNumberPayloadSelect = { }; }; export interface UpdatePhoneNumberPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `PhoneNumber` that was updated by this mutation. */ phoneNumber?: PhoneNumber | null; - /** An edge for our `PhoneNumber`. May be used by Relay 1. */ phoneNumberEdge?: PhoneNumberEdge | null; } export type UpdatePhoneNumberPayloadSelect = { @@ -1328,14 +1224,9 @@ export type UpdatePhoneNumberPayloadSelect = { }; }; export interface DeletePhoneNumberPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `PhoneNumber` that was deleted by this mutation. */ phoneNumber?: PhoneNumber | null; - /** An edge for our `PhoneNumber`. May be used by Relay 1. */ phoneNumberEdge?: PhoneNumberEdge | null; } export type DeletePhoneNumberPayloadSelect = { @@ -1348,14 +1239,9 @@ export type DeletePhoneNumberPayloadSelect = { }; }; export interface CreateConnectedAccountPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `ConnectedAccount` that was created by this mutation. */ connectedAccount?: ConnectedAccount | null; - /** An edge for our `ConnectedAccount`. May be used by Relay 1. */ connectedAccountEdge?: ConnectedAccountEdge | null; } export type CreateConnectedAccountPayloadSelect = { @@ -1368,14 +1254,9 @@ export type CreateConnectedAccountPayloadSelect = { }; }; export interface UpdateConnectedAccountPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `ConnectedAccount` that was updated by this mutation. */ connectedAccount?: ConnectedAccount | null; - /** An edge for our `ConnectedAccount`. May be used by Relay 1. */ connectedAccountEdge?: ConnectedAccountEdge | null; } export type UpdateConnectedAccountPayloadSelect = { @@ -1388,14 +1269,9 @@ export type UpdateConnectedAccountPayloadSelect = { }; }; export interface DeleteConnectedAccountPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `ConnectedAccount` that was deleted by this mutation. */ connectedAccount?: ConnectedAccount | null; - /** An edge for our `ConnectedAccount`. May be used by Relay 1. */ connectedAccountEdge?: ConnectedAccountEdge | null; } export type DeleteConnectedAccountPayloadSelect = { @@ -1408,14 +1284,9 @@ export type DeleteConnectedAccountPayloadSelect = { }; }; export interface CreateEmailPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Email` that was created by this mutation. */ email?: Email | null; - /** An edge for our `Email`. May be used by Relay 1. */ emailEdge?: EmailEdge | null; } export type CreateEmailPayloadSelect = { @@ -1428,14 +1299,9 @@ export type CreateEmailPayloadSelect = { }; }; export interface UpdateEmailPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Email` that was updated by this mutation. */ email?: Email | null; - /** An edge for our `Email`. May be used by Relay 1. */ emailEdge?: EmailEdge | null; } export type UpdateEmailPayloadSelect = { @@ -1448,14 +1314,9 @@ export type UpdateEmailPayloadSelect = { }; }; export interface DeleteEmailPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Email` that was deleted by this mutation. */ email?: Email | null; - /** An edge for our `Email`. May be used by Relay 1. */ emailEdge?: EmailEdge | null; } export type DeleteEmailPayloadSelect = { @@ -1468,14 +1329,9 @@ export type DeleteEmailPayloadSelect = { }; }; export interface CreateAuditLogPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AuditLog` that was created by this mutation. */ auditLog?: AuditLog | null; - /** An edge for our `AuditLog`. May be used by Relay 1. */ auditLogEdge?: AuditLogEdge | null; } export type CreateAuditLogPayloadSelect = { @@ -1488,14 +1344,9 @@ export type CreateAuditLogPayloadSelect = { }; }; export interface UpdateAuditLogPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AuditLog` that was updated by this mutation. */ auditLog?: AuditLog | null; - /** An edge for our `AuditLog`. May be used by Relay 1. */ auditLogEdge?: AuditLogEdge | null; } export type UpdateAuditLogPayloadSelect = { @@ -1508,14 +1359,9 @@ export type UpdateAuditLogPayloadSelect = { }; }; export interface DeleteAuditLogPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AuditLog` that was deleted by this mutation. */ auditLog?: AuditLog | null; - /** An edge for our `AuditLog`. May be used by Relay 1. */ auditLogEdge?: AuditLogEdge | null; } export type DeleteAuditLogPayloadSelect = { @@ -1528,14 +1374,9 @@ export type DeleteAuditLogPayloadSelect = { }; }; export interface CreateUserPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `User` that was created by this mutation. */ user?: User | null; - /** An edge for our `User`. May be used by Relay 1. */ userEdge?: UserEdge | null; } export type CreateUserPayloadSelect = { @@ -1548,14 +1389,9 @@ export type CreateUserPayloadSelect = { }; }; export interface UpdateUserPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `User` that was updated by this mutation. */ user?: User | null; - /** An edge for our `User`. May be used by Relay 1. */ userEdge?: UserEdge | null; } export type UpdateUserPayloadSelect = { @@ -1568,14 +1404,9 @@ export type UpdateUserPayloadSelect = { }; }; export interface DeleteUserPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `User` that was deleted by this mutation. */ user?: User | null; - /** An edge for our `User`. May be used by Relay 1. */ userEdge?: UserEdge | null; } export type DeleteUserPayloadSelect = { @@ -1679,7 +1510,6 @@ export type SessionSelect = { }; /** A `RoleType` edge in the connection. */ export interface RoleTypeEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `RoleType` at the end of the edge. */ node?: RoleType | null; @@ -1692,7 +1522,6 @@ export type RoleTypeEdgeSelect = { }; /** A `CryptoAddress` edge in the connection. */ export interface CryptoAddressEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `CryptoAddress` at the end of the edge. */ node?: CryptoAddress | null; @@ -1705,7 +1534,6 @@ export type CryptoAddressEdgeSelect = { }; /** A `PhoneNumber` edge in the connection. */ export interface PhoneNumberEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `PhoneNumber` at the end of the edge. */ node?: PhoneNumber | null; @@ -1718,7 +1546,6 @@ export type PhoneNumberEdgeSelect = { }; /** A `ConnectedAccount` edge in the connection. */ export interface ConnectedAccountEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `ConnectedAccount` at the end of the edge. */ node?: ConnectedAccount | null; @@ -1731,7 +1558,6 @@ export type ConnectedAccountEdgeSelect = { }; /** A `Email` edge in the connection. */ export interface EmailEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `Email` at the end of the edge. */ node?: Email | null; @@ -1744,7 +1570,6 @@ export type EmailEdgeSelect = { }; /** A `AuditLog` edge in the connection. */ export interface AuditLogEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `AuditLog` at the end of the edge. */ node?: AuditLog | null; @@ -1757,7 +1582,6 @@ export type AuditLogEdgeSelect = { }; /** A `User` edge in the connection. */ export interface UserEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `User` at the end of the edge. */ node?: User | null; diff --git a/sdk/constructive-sdk/src/objects/orm/input-types.ts b/sdk/constructive-sdk/src/objects/orm/input-types.ts index 18a970959..d369bf16a 100644 --- a/sdk/constructive-sdk/src/objects/orm/input-types.ts +++ b/sdk/constructive-sdk/src/objects/orm/input-types.ts @@ -708,13 +708,9 @@ export interface SetAndCommitInput { /** A connection to a list of `Object` values. */ // ============ Payload/Return Types (for custom operations) ============ export interface ObjectConnection { - /** A list of `Object` objects. */ nodes: Object[]; - /** A list of edges which contains the `Object` and cursor to aid in pagination. */ edges: ObjectEdge[]; - /** Information to aid in pagination. */ pageInfo: PageInfo; - /** The count of *all* `Object` you could get from the connection. */ totalCount: number; } export type ObjectConnectionSelect = { @@ -730,30 +726,18 @@ export type ObjectConnectionSelect = { totalCount?: boolean; }; export interface FreezeObjectsPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; } export type FreezeObjectsPayloadSelect = { clientMutationId?: boolean; }; export interface InitEmptyRepoPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; } export type InitEmptyRepoPayloadSelect = { clientMutationId?: boolean; }; export interface RemoveNodeAtPathPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; result?: string | null; } @@ -762,10 +746,6 @@ export type RemoveNodeAtPathPayloadSelect = { result?: boolean; }; export interface SetDataAtPathPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; result?: string | null; } @@ -774,10 +754,6 @@ export type SetDataAtPathPayloadSelect = { result?: boolean; }; export interface SetPropsAndCommitPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; result?: string | null; } @@ -786,10 +762,6 @@ export type SetPropsAndCommitPayloadSelect = { result?: boolean; }; export interface InsertNodeAtPathPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; result?: string | null; } @@ -798,10 +770,6 @@ export type InsertNodeAtPathPayloadSelect = { result?: boolean; }; export interface UpdateNodeAtPathPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; result?: string | null; } @@ -810,10 +778,6 @@ export type UpdateNodeAtPathPayloadSelect = { result?: boolean; }; export interface SetAndCommitPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; result?: string | null; } @@ -822,14 +786,9 @@ export type SetAndCommitPayloadSelect = { result?: boolean; }; export interface CreateObjectPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Object` that was created by this mutation. */ object?: Object | null; - /** An edge for our `Object`. May be used by Relay 1. */ objectEdge?: ObjectEdge | null; } export type CreateObjectPayloadSelect = { @@ -842,14 +801,9 @@ export type CreateObjectPayloadSelect = { }; }; export interface UpdateObjectPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Object` that was updated by this mutation. */ object?: Object | null; - /** An edge for our `Object`. May be used by Relay 1. */ objectEdge?: ObjectEdge | null; } export type UpdateObjectPayloadSelect = { @@ -862,14 +816,9 @@ export type UpdateObjectPayloadSelect = { }; }; export interface DeleteObjectPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Object` that was deleted by this mutation. */ object?: Object | null; - /** An edge for our `Object`. May be used by Relay 1. */ objectEdge?: ObjectEdge | null; } export type DeleteObjectPayloadSelect = { @@ -882,14 +831,9 @@ export type DeleteObjectPayloadSelect = { }; }; export interface CreateRefPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Ref` that was created by this mutation. */ ref?: Ref | null; - /** An edge for our `Ref`. May be used by Relay 1. */ refEdge?: RefEdge | null; } export type CreateRefPayloadSelect = { @@ -902,14 +846,9 @@ export type CreateRefPayloadSelect = { }; }; export interface UpdateRefPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Ref` that was updated by this mutation. */ ref?: Ref | null; - /** An edge for our `Ref`. May be used by Relay 1. */ refEdge?: RefEdge | null; } export type UpdateRefPayloadSelect = { @@ -922,14 +861,9 @@ export type UpdateRefPayloadSelect = { }; }; export interface DeleteRefPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Ref` that was deleted by this mutation. */ ref?: Ref | null; - /** An edge for our `Ref`. May be used by Relay 1. */ refEdge?: RefEdge | null; } export type DeleteRefPayloadSelect = { @@ -942,14 +876,9 @@ export type DeleteRefPayloadSelect = { }; }; export interface CreateStorePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Store` that was created by this mutation. */ store?: Store | null; - /** An edge for our `Store`. May be used by Relay 1. */ storeEdge?: StoreEdge | null; } export type CreateStorePayloadSelect = { @@ -962,14 +891,9 @@ export type CreateStorePayloadSelect = { }; }; export interface UpdateStorePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Store` that was updated by this mutation. */ store?: Store | null; - /** An edge for our `Store`. May be used by Relay 1. */ storeEdge?: StoreEdge | null; } export type UpdateStorePayloadSelect = { @@ -982,14 +906,9 @@ export type UpdateStorePayloadSelect = { }; }; export interface DeleteStorePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Store` that was deleted by this mutation. */ store?: Store | null; - /** An edge for our `Store`. May be used by Relay 1. */ storeEdge?: StoreEdge | null; } export type DeleteStorePayloadSelect = { @@ -1002,14 +921,9 @@ export type DeleteStorePayloadSelect = { }; }; export interface CreateCommitPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Commit` that was created by this mutation. */ commit?: Commit | null; - /** An edge for our `Commit`. May be used by Relay 1. */ commitEdge?: CommitEdge | null; } export type CreateCommitPayloadSelect = { @@ -1022,14 +936,9 @@ export type CreateCommitPayloadSelect = { }; }; export interface UpdateCommitPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Commit` that was updated by this mutation. */ commit?: Commit | null; - /** An edge for our `Commit`. May be used by Relay 1. */ commitEdge?: CommitEdge | null; } export type UpdateCommitPayloadSelect = { @@ -1042,14 +951,9 @@ export type UpdateCommitPayloadSelect = { }; }; export interface DeleteCommitPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Commit` that was deleted by this mutation. */ commit?: Commit | null; - /** An edge for our `Commit`. May be used by Relay 1. */ commitEdge?: CommitEdge | null; } export type DeleteCommitPayloadSelect = { @@ -1063,7 +967,6 @@ export type DeleteCommitPayloadSelect = { }; /** A `Object` edge in the connection. */ export interface ObjectEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `Object` at the end of the edge. */ node?: Object | null; @@ -1093,7 +996,6 @@ export type PageInfoSelect = { }; /** A `Ref` edge in the connection. */ export interface RefEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `Ref` at the end of the edge. */ node?: Ref | null; @@ -1106,7 +1008,6 @@ export type RefEdgeSelect = { }; /** A `Store` edge in the connection. */ export interface StoreEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `Store` at the end of the edge. */ node?: Store | null; @@ -1119,7 +1020,6 @@ export type StoreEdgeSelect = { }; /** A `Commit` edge in the connection. */ export interface CommitEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `Commit` at the end of the edge. */ node?: Commit | null; diff --git a/sdk/constructive-sdk/src/objects/orm/query/index.ts b/sdk/constructive-sdk/src/objects/orm/query/index.ts index 5c1c91a01..ce1f8680d 100644 --- a/sdk/constructive-sdk/src/objects/orm/query/index.ts +++ b/sdk/constructive-sdk/src/objects/orm/query/index.ts @@ -13,10 +13,6 @@ export interface RevParseVariables { storeId?: string; refname?: string; } -/** - * Variables for getAllObjectsFromRoot - * Reads and enables pagination through a set of `Object`. - */ export interface GetAllObjectsFromRootVariables { databaseId?: string; id?: string; @@ -30,10 +26,6 @@ export interface GetAllObjectsFromRootVariables { /** Read all values in the set after (below) this cursor. */ after?: string; } -/** - * Variables for getPathObjectsFromRoot - * Reads and enables pagination through a set of `Object`. - */ export interface GetPathObjectsFromRootVariables { databaseId?: string; id?: string; diff --git a/sdk/constructive-sdk/src/public/orm/input-types.ts b/sdk/constructive-sdk/src/public/orm/input-types.ts index a083a522d..392f8060e 100644 --- a/sdk/constructive-sdk/src/public/orm/input-types.ts +++ b/sdk/constructive-sdk/src/public/orm/input-types.ts @@ -12879,13 +12879,9 @@ export interface IntervalInput { /** A connection to a list of `AppPermission` values. */ // ============ Payload/Return Types (for custom operations) ============ export interface AppPermissionConnection { - /** A list of `AppPermission` objects. */ nodes: AppPermission[]; - /** A list of edges which contains the `AppPermission` and cursor to aid in pagination. */ edges: AppPermissionEdge[]; - /** Information to aid in pagination. */ pageInfo: PageInfo; - /** The count of *all* `AppPermission` you could get from the connection. */ totalCount: number; } export type AppPermissionConnectionSelect = { @@ -12902,13 +12898,9 @@ export type AppPermissionConnectionSelect = { }; /** A connection to a list of `OrgPermission` values. */ export interface OrgPermissionConnection { - /** A list of `OrgPermission` objects. */ nodes: OrgPermission[]; - /** A list of edges which contains the `OrgPermission` and cursor to aid in pagination. */ edges: OrgPermissionEdge[]; - /** Information to aid in pagination. */ pageInfo: PageInfo; - /** The count of *all* `OrgPermission` you could get from the connection. */ totalCount: number; } export type OrgPermissionConnectionSelect = { @@ -12925,13 +12917,9 @@ export type OrgPermissionConnectionSelect = { }; /** A connection to a list of `Object` values. */ export interface ObjectConnection { - /** A list of `Object` objects. */ nodes: Object[]; - /** A list of edges which contains the `Object` and cursor to aid in pagination. */ edges: ObjectEdge[]; - /** Information to aid in pagination. */ pageInfo: PageInfo; - /** The count of *all* `Object` you could get from the connection. */ totalCount: number; } export type ObjectConnectionSelect = { @@ -12948,13 +12936,9 @@ export type ObjectConnectionSelect = { }; /** A connection to a list of `AppLevelRequirement` values. */ export interface AppLevelRequirementConnection { - /** A list of `AppLevelRequirement` objects. */ nodes: AppLevelRequirement[]; - /** A list of edges which contains the `AppLevelRequirement` and cursor to aid in pagination. */ edges: AppLevelRequirementEdge[]; - /** Information to aid in pagination. */ pageInfo: PageInfo; - /** The count of *all* `AppLevelRequirement` you could get from the connection. */ totalCount: number; } export type AppLevelRequirementConnectionSelect = { @@ -12970,20 +12954,12 @@ export type AppLevelRequirementConnectionSelect = { totalCount?: boolean; }; export interface SignOutPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; } export type SignOutPayloadSelect = { clientMutationId?: boolean; }; export interface SendAccountDeletionEmailPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; result?: boolean | null; } @@ -12992,20 +12968,12 @@ export type SendAccountDeletionEmailPayloadSelect = { result?: boolean; }; export interface CheckPasswordPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; } export type CheckPasswordPayloadSelect = { clientMutationId?: boolean; }; export interface SubmitInviteCodePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; result?: boolean | null; } @@ -13014,10 +12982,6 @@ export type SubmitInviteCodePayloadSelect = { result?: boolean; }; export interface SubmitOrgInviteCodePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; result?: boolean | null; } @@ -13026,30 +12990,18 @@ export type SubmitOrgInviteCodePayloadSelect = { result?: boolean; }; export interface FreezeObjectsPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; } export type FreezeObjectsPayloadSelect = { clientMutationId?: boolean; }; export interface InitEmptyRepoPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; } export type InitEmptyRepoPayloadSelect = { clientMutationId?: boolean; }; export interface ConfirmDeleteAccountPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; result?: boolean | null; } @@ -13058,10 +13010,6 @@ export type ConfirmDeleteAccountPayloadSelect = { result?: boolean; }; export interface SetPasswordPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; result?: boolean | null; } @@ -13070,10 +13018,6 @@ export type SetPasswordPayloadSelect = { result?: boolean; }; export interface VerifyEmailPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; result?: boolean | null; } @@ -13082,10 +13026,6 @@ export type VerifyEmailPayloadSelect = { result?: boolean; }; export interface ResetPasswordPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; result?: boolean | null; } @@ -13094,10 +13034,6 @@ export type ResetPasswordPayloadSelect = { result?: boolean; }; export interface RemoveNodeAtPathPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; result?: string | null; } @@ -13106,10 +13042,6 @@ export type RemoveNodeAtPathPayloadSelect = { result?: boolean; }; export interface BootstrapUserPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; result?: BootstrapUserRecord[] | null; } @@ -13120,10 +13052,6 @@ export type BootstrapUserPayloadSelect = { }; }; export interface SetDataAtPathPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; result?: string | null; } @@ -13132,10 +13060,6 @@ export type SetDataAtPathPayloadSelect = { result?: boolean; }; export interface SetPropsAndCommitPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; result?: string | null; } @@ -13144,10 +13068,6 @@ export type SetPropsAndCommitPayloadSelect = { result?: boolean; }; export interface ProvisionDatabaseWithUserPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; result?: ProvisionDatabaseWithUserRecord[] | null; } @@ -13158,10 +13078,6 @@ export type ProvisionDatabaseWithUserPayloadSelect = { }; }; export interface SignInOneTimeTokenPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; result?: SignInOneTimeTokenRecord | null; } @@ -13172,10 +13088,6 @@ export type SignInOneTimeTokenPayloadSelect = { }; }; export interface CreateUserDatabasePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; result?: string | null; } @@ -13184,10 +13096,6 @@ export type CreateUserDatabasePayloadSelect = { result?: boolean; }; export interface ExtendTokenExpiresPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; result?: ExtendTokenExpiresRecord[] | null; } @@ -13198,10 +13106,6 @@ export type ExtendTokenExpiresPayloadSelect = { }; }; export interface SignInPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; result?: SignInRecord | null; } @@ -13212,10 +13116,6 @@ export type SignInPayloadSelect = { }; }; export interface SignUpPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; result?: SignUpRecord | null; } @@ -13226,20 +13126,12 @@ export type SignUpPayloadSelect = { }; }; export interface SetFieldOrderPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; } export type SetFieldOrderPayloadSelect = { clientMutationId?: boolean; }; export interface OneTimeTokenPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; result?: string | null; } @@ -13248,10 +13140,6 @@ export type OneTimeTokenPayloadSelect = { result?: boolean; }; export interface InsertNodeAtPathPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; result?: string | null; } @@ -13260,10 +13148,6 @@ export type InsertNodeAtPathPayloadSelect = { result?: boolean; }; export interface UpdateNodeAtPathPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; result?: string | null; } @@ -13272,10 +13156,6 @@ export type UpdateNodeAtPathPayloadSelect = { result?: boolean; }; export interface SetAndCommitPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; result?: string | null; } @@ -13284,30 +13164,18 @@ export type SetAndCommitPayloadSelect = { result?: boolean; }; export interface ApplyRlsPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; } export type ApplyRlsPayloadSelect = { clientMutationId?: boolean; }; export interface ForgotPasswordPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; } export type ForgotPasswordPayloadSelect = { clientMutationId?: boolean; }; export interface SendVerificationEmailPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; result?: boolean | null; } @@ -13316,10 +13184,6 @@ export type SendVerificationEmailPayloadSelect = { result?: boolean; }; export interface VerifyPasswordPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; result?: Session | null; } @@ -13330,10 +13194,6 @@ export type VerifyPasswordPayloadSelect = { }; }; export interface VerifyTotpPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; result?: Session | null; } @@ -13344,14 +13204,9 @@ export type VerifyTotpPayloadSelect = { }; }; export interface CreateAppPermissionPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppPermission` that was created by this mutation. */ appPermission?: AppPermission | null; - /** An edge for our `AppPermission`. May be used by Relay 1. */ appPermissionEdge?: AppPermissionEdge | null; } export type CreateAppPermissionPayloadSelect = { @@ -13364,14 +13219,9 @@ export type CreateAppPermissionPayloadSelect = { }; }; export interface UpdateAppPermissionPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppPermission` that was updated by this mutation. */ appPermission?: AppPermission | null; - /** An edge for our `AppPermission`. May be used by Relay 1. */ appPermissionEdge?: AppPermissionEdge | null; } export type UpdateAppPermissionPayloadSelect = { @@ -13384,14 +13234,9 @@ export type UpdateAppPermissionPayloadSelect = { }; }; export interface DeleteAppPermissionPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppPermission` that was deleted by this mutation. */ appPermission?: AppPermission | null; - /** An edge for our `AppPermission`. May be used by Relay 1. */ appPermissionEdge?: AppPermissionEdge | null; } export type DeleteAppPermissionPayloadSelect = { @@ -13404,14 +13249,9 @@ export type DeleteAppPermissionPayloadSelect = { }; }; export interface CreateOrgPermissionPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgPermission` that was created by this mutation. */ orgPermission?: OrgPermission | null; - /** An edge for our `OrgPermission`. May be used by Relay 1. */ orgPermissionEdge?: OrgPermissionEdge | null; } export type CreateOrgPermissionPayloadSelect = { @@ -13424,14 +13264,9 @@ export type CreateOrgPermissionPayloadSelect = { }; }; export interface UpdateOrgPermissionPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgPermission` that was updated by this mutation. */ orgPermission?: OrgPermission | null; - /** An edge for our `OrgPermission`. May be used by Relay 1. */ orgPermissionEdge?: OrgPermissionEdge | null; } export type UpdateOrgPermissionPayloadSelect = { @@ -13444,14 +13279,9 @@ export type UpdateOrgPermissionPayloadSelect = { }; }; export interface DeleteOrgPermissionPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgPermission` that was deleted by this mutation. */ orgPermission?: OrgPermission | null; - /** An edge for our `OrgPermission`. May be used by Relay 1. */ orgPermissionEdge?: OrgPermissionEdge | null; } export type DeleteOrgPermissionPayloadSelect = { @@ -13464,14 +13294,9 @@ export type DeleteOrgPermissionPayloadSelect = { }; }; export interface CreateObjectPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Object` that was created by this mutation. */ object?: Object | null; - /** An edge for our `Object`. May be used by Relay 1. */ objectEdge?: ObjectEdge | null; } export type CreateObjectPayloadSelect = { @@ -13484,14 +13309,9 @@ export type CreateObjectPayloadSelect = { }; }; export interface UpdateObjectPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Object` that was updated by this mutation. */ object?: Object | null; - /** An edge for our `Object`. May be used by Relay 1. */ objectEdge?: ObjectEdge | null; } export type UpdateObjectPayloadSelect = { @@ -13504,14 +13324,9 @@ export type UpdateObjectPayloadSelect = { }; }; export interface DeleteObjectPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Object` that was deleted by this mutation. */ object?: Object | null; - /** An edge for our `Object`. May be used by Relay 1. */ objectEdge?: ObjectEdge | null; } export type DeleteObjectPayloadSelect = { @@ -13524,14 +13339,9 @@ export type DeleteObjectPayloadSelect = { }; }; export interface CreateAppLevelRequirementPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppLevelRequirement` that was created by this mutation. */ appLevelRequirement?: AppLevelRequirement | null; - /** An edge for our `AppLevelRequirement`. May be used by Relay 1. */ appLevelRequirementEdge?: AppLevelRequirementEdge | null; } export type CreateAppLevelRequirementPayloadSelect = { @@ -13544,14 +13354,9 @@ export type CreateAppLevelRequirementPayloadSelect = { }; }; export interface UpdateAppLevelRequirementPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppLevelRequirement` that was updated by this mutation. */ appLevelRequirement?: AppLevelRequirement | null; - /** An edge for our `AppLevelRequirement`. May be used by Relay 1. */ appLevelRequirementEdge?: AppLevelRequirementEdge | null; } export type UpdateAppLevelRequirementPayloadSelect = { @@ -13564,14 +13369,9 @@ export type UpdateAppLevelRequirementPayloadSelect = { }; }; export interface DeleteAppLevelRequirementPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppLevelRequirement` that was deleted by this mutation. */ appLevelRequirement?: AppLevelRequirement | null; - /** An edge for our `AppLevelRequirement`. May be used by Relay 1. */ appLevelRequirementEdge?: AppLevelRequirementEdge | null; } export type DeleteAppLevelRequirementPayloadSelect = { @@ -13584,14 +13384,9 @@ export type DeleteAppLevelRequirementPayloadSelect = { }; }; export interface CreateDatabasePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Database` that was created by this mutation. */ database?: Database | null; - /** An edge for our `Database`. May be used by Relay 1. */ databaseEdge?: DatabaseEdge | null; } export type CreateDatabasePayloadSelect = { @@ -13604,14 +13399,9 @@ export type CreateDatabasePayloadSelect = { }; }; export interface UpdateDatabasePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Database` that was updated by this mutation. */ database?: Database | null; - /** An edge for our `Database`. May be used by Relay 1. */ databaseEdge?: DatabaseEdge | null; } export type UpdateDatabasePayloadSelect = { @@ -13624,14 +13414,9 @@ export type UpdateDatabasePayloadSelect = { }; }; export interface DeleteDatabasePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Database` that was deleted by this mutation. */ database?: Database | null; - /** An edge for our `Database`. May be used by Relay 1. */ databaseEdge?: DatabaseEdge | null; } export type DeleteDatabasePayloadSelect = { @@ -13644,14 +13429,9 @@ export type DeleteDatabasePayloadSelect = { }; }; export interface CreateSchemaPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Schema` that was created by this mutation. */ schema?: Schema | null; - /** An edge for our `Schema`. May be used by Relay 1. */ schemaEdge?: SchemaEdge | null; } export type CreateSchemaPayloadSelect = { @@ -13664,14 +13444,9 @@ export type CreateSchemaPayloadSelect = { }; }; export interface UpdateSchemaPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Schema` that was updated by this mutation. */ schema?: Schema | null; - /** An edge for our `Schema`. May be used by Relay 1. */ schemaEdge?: SchemaEdge | null; } export type UpdateSchemaPayloadSelect = { @@ -13684,14 +13459,9 @@ export type UpdateSchemaPayloadSelect = { }; }; export interface DeleteSchemaPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Schema` that was deleted by this mutation. */ schema?: Schema | null; - /** An edge for our `Schema`. May be used by Relay 1. */ schemaEdge?: SchemaEdge | null; } export type DeleteSchemaPayloadSelect = { @@ -13704,14 +13474,9 @@ export type DeleteSchemaPayloadSelect = { }; }; export interface CreateTablePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Table` that was created by this mutation. */ table?: Table | null; - /** An edge for our `Table`. May be used by Relay 1. */ tableEdge?: TableEdge | null; } export type CreateTablePayloadSelect = { @@ -13724,14 +13489,9 @@ export type CreateTablePayloadSelect = { }; }; export interface UpdateTablePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Table` that was updated by this mutation. */ table?: Table | null; - /** An edge for our `Table`. May be used by Relay 1. */ tableEdge?: TableEdge | null; } export type UpdateTablePayloadSelect = { @@ -13744,14 +13504,9 @@ export type UpdateTablePayloadSelect = { }; }; export interface DeleteTablePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Table` that was deleted by this mutation. */ table?: Table | null; - /** An edge for our `Table`. May be used by Relay 1. */ tableEdge?: TableEdge | null; } export type DeleteTablePayloadSelect = { @@ -13764,14 +13519,9 @@ export type DeleteTablePayloadSelect = { }; }; export interface CreateCheckConstraintPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `CheckConstraint` that was created by this mutation. */ checkConstraint?: CheckConstraint | null; - /** An edge for our `CheckConstraint`. May be used by Relay 1. */ checkConstraintEdge?: CheckConstraintEdge | null; } export type CreateCheckConstraintPayloadSelect = { @@ -13784,14 +13534,9 @@ export type CreateCheckConstraintPayloadSelect = { }; }; export interface UpdateCheckConstraintPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `CheckConstraint` that was updated by this mutation. */ checkConstraint?: CheckConstraint | null; - /** An edge for our `CheckConstraint`. May be used by Relay 1. */ checkConstraintEdge?: CheckConstraintEdge | null; } export type UpdateCheckConstraintPayloadSelect = { @@ -13804,14 +13549,9 @@ export type UpdateCheckConstraintPayloadSelect = { }; }; export interface DeleteCheckConstraintPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `CheckConstraint` that was deleted by this mutation. */ checkConstraint?: CheckConstraint | null; - /** An edge for our `CheckConstraint`. May be used by Relay 1. */ checkConstraintEdge?: CheckConstraintEdge | null; } export type DeleteCheckConstraintPayloadSelect = { @@ -13824,14 +13564,9 @@ export type DeleteCheckConstraintPayloadSelect = { }; }; export interface CreateFieldPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Field` that was created by this mutation. */ field?: Field | null; - /** An edge for our `Field`. May be used by Relay 1. */ fieldEdge?: FieldEdge | null; } export type CreateFieldPayloadSelect = { @@ -13844,14 +13579,9 @@ export type CreateFieldPayloadSelect = { }; }; export interface UpdateFieldPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Field` that was updated by this mutation. */ field?: Field | null; - /** An edge for our `Field`. May be used by Relay 1. */ fieldEdge?: FieldEdge | null; } export type UpdateFieldPayloadSelect = { @@ -13864,14 +13594,9 @@ export type UpdateFieldPayloadSelect = { }; }; export interface DeleteFieldPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Field` that was deleted by this mutation. */ field?: Field | null; - /** An edge for our `Field`. May be used by Relay 1. */ fieldEdge?: FieldEdge | null; } export type DeleteFieldPayloadSelect = { @@ -13884,14 +13609,9 @@ export type DeleteFieldPayloadSelect = { }; }; export interface CreateForeignKeyConstraintPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `ForeignKeyConstraint` that was created by this mutation. */ foreignKeyConstraint?: ForeignKeyConstraint | null; - /** An edge for our `ForeignKeyConstraint`. May be used by Relay 1. */ foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null; } export type CreateForeignKeyConstraintPayloadSelect = { @@ -13904,14 +13624,9 @@ export type CreateForeignKeyConstraintPayloadSelect = { }; }; export interface UpdateForeignKeyConstraintPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `ForeignKeyConstraint` that was updated by this mutation. */ foreignKeyConstraint?: ForeignKeyConstraint | null; - /** An edge for our `ForeignKeyConstraint`. May be used by Relay 1. */ foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null; } export type UpdateForeignKeyConstraintPayloadSelect = { @@ -13924,14 +13639,9 @@ export type UpdateForeignKeyConstraintPayloadSelect = { }; }; export interface DeleteForeignKeyConstraintPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `ForeignKeyConstraint` that was deleted by this mutation. */ foreignKeyConstraint?: ForeignKeyConstraint | null; - /** An edge for our `ForeignKeyConstraint`. May be used by Relay 1. */ foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null; } export type DeleteForeignKeyConstraintPayloadSelect = { @@ -13944,14 +13654,9 @@ export type DeleteForeignKeyConstraintPayloadSelect = { }; }; export interface CreateFullTextSearchPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `FullTextSearch` that was created by this mutation. */ fullTextSearch?: FullTextSearch | null; - /** An edge for our `FullTextSearch`. May be used by Relay 1. */ fullTextSearchEdge?: FullTextSearchEdge | null; } export type CreateFullTextSearchPayloadSelect = { @@ -13964,14 +13669,9 @@ export type CreateFullTextSearchPayloadSelect = { }; }; export interface UpdateFullTextSearchPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `FullTextSearch` that was updated by this mutation. */ fullTextSearch?: FullTextSearch | null; - /** An edge for our `FullTextSearch`. May be used by Relay 1. */ fullTextSearchEdge?: FullTextSearchEdge | null; } export type UpdateFullTextSearchPayloadSelect = { @@ -13984,14 +13684,9 @@ export type UpdateFullTextSearchPayloadSelect = { }; }; export interface DeleteFullTextSearchPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `FullTextSearch` that was deleted by this mutation. */ fullTextSearch?: FullTextSearch | null; - /** An edge for our `FullTextSearch`. May be used by Relay 1. */ fullTextSearchEdge?: FullTextSearchEdge | null; } export type DeleteFullTextSearchPayloadSelect = { @@ -14004,14 +13699,9 @@ export type DeleteFullTextSearchPayloadSelect = { }; }; export interface CreateIndexPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Index` that was created by this mutation. */ index?: Index | null; - /** An edge for our `Index`. May be used by Relay 1. */ indexEdge?: IndexEdge | null; } export type CreateIndexPayloadSelect = { @@ -14024,14 +13714,9 @@ export type CreateIndexPayloadSelect = { }; }; export interface UpdateIndexPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Index` that was updated by this mutation. */ index?: Index | null; - /** An edge for our `Index`. May be used by Relay 1. */ indexEdge?: IndexEdge | null; } export type UpdateIndexPayloadSelect = { @@ -14044,14 +13729,9 @@ export type UpdateIndexPayloadSelect = { }; }; export interface DeleteIndexPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Index` that was deleted by this mutation. */ index?: Index | null; - /** An edge for our `Index`. May be used by Relay 1. */ indexEdge?: IndexEdge | null; } export type DeleteIndexPayloadSelect = { @@ -14064,14 +13744,9 @@ export type DeleteIndexPayloadSelect = { }; }; export interface CreateLimitFunctionPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `LimitFunction` that was created by this mutation. */ limitFunction?: LimitFunction | null; - /** An edge for our `LimitFunction`. May be used by Relay 1. */ limitFunctionEdge?: LimitFunctionEdge | null; } export type CreateLimitFunctionPayloadSelect = { @@ -14084,14 +13759,9 @@ export type CreateLimitFunctionPayloadSelect = { }; }; export interface UpdateLimitFunctionPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `LimitFunction` that was updated by this mutation. */ limitFunction?: LimitFunction | null; - /** An edge for our `LimitFunction`. May be used by Relay 1. */ limitFunctionEdge?: LimitFunctionEdge | null; } export type UpdateLimitFunctionPayloadSelect = { @@ -14104,14 +13774,9 @@ export type UpdateLimitFunctionPayloadSelect = { }; }; export interface DeleteLimitFunctionPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `LimitFunction` that was deleted by this mutation. */ limitFunction?: LimitFunction | null; - /** An edge for our `LimitFunction`. May be used by Relay 1. */ limitFunctionEdge?: LimitFunctionEdge | null; } export type DeleteLimitFunctionPayloadSelect = { @@ -14124,14 +13789,9 @@ export type DeleteLimitFunctionPayloadSelect = { }; }; export interface CreatePolicyPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Policy` that was created by this mutation. */ policy?: Policy | null; - /** An edge for our `Policy`. May be used by Relay 1. */ policyEdge?: PolicyEdge | null; } export type CreatePolicyPayloadSelect = { @@ -14144,14 +13804,9 @@ export type CreatePolicyPayloadSelect = { }; }; export interface UpdatePolicyPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Policy` that was updated by this mutation. */ policy?: Policy | null; - /** An edge for our `Policy`. May be used by Relay 1. */ policyEdge?: PolicyEdge | null; } export type UpdatePolicyPayloadSelect = { @@ -14164,14 +13819,9 @@ export type UpdatePolicyPayloadSelect = { }; }; export interface DeletePolicyPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Policy` that was deleted by this mutation. */ policy?: Policy | null; - /** An edge for our `Policy`. May be used by Relay 1. */ policyEdge?: PolicyEdge | null; } export type DeletePolicyPayloadSelect = { @@ -14184,14 +13834,9 @@ export type DeletePolicyPayloadSelect = { }; }; export interface CreatePrimaryKeyConstraintPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `PrimaryKeyConstraint` that was created by this mutation. */ primaryKeyConstraint?: PrimaryKeyConstraint | null; - /** An edge for our `PrimaryKeyConstraint`. May be used by Relay 1. */ primaryKeyConstraintEdge?: PrimaryKeyConstraintEdge | null; } export type CreatePrimaryKeyConstraintPayloadSelect = { @@ -14204,14 +13849,9 @@ export type CreatePrimaryKeyConstraintPayloadSelect = { }; }; export interface UpdatePrimaryKeyConstraintPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `PrimaryKeyConstraint` that was updated by this mutation. */ primaryKeyConstraint?: PrimaryKeyConstraint | null; - /** An edge for our `PrimaryKeyConstraint`. May be used by Relay 1. */ primaryKeyConstraintEdge?: PrimaryKeyConstraintEdge | null; } export type UpdatePrimaryKeyConstraintPayloadSelect = { @@ -14224,14 +13864,9 @@ export type UpdatePrimaryKeyConstraintPayloadSelect = { }; }; export interface DeletePrimaryKeyConstraintPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `PrimaryKeyConstraint` that was deleted by this mutation. */ primaryKeyConstraint?: PrimaryKeyConstraint | null; - /** An edge for our `PrimaryKeyConstraint`. May be used by Relay 1. */ primaryKeyConstraintEdge?: PrimaryKeyConstraintEdge | null; } export type DeletePrimaryKeyConstraintPayloadSelect = { @@ -14244,14 +13879,9 @@ export type DeletePrimaryKeyConstraintPayloadSelect = { }; }; export interface CreateTableGrantPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `TableGrant` that was created by this mutation. */ tableGrant?: TableGrant | null; - /** An edge for our `TableGrant`. May be used by Relay 1. */ tableGrantEdge?: TableGrantEdge | null; } export type CreateTableGrantPayloadSelect = { @@ -14264,14 +13894,9 @@ export type CreateTableGrantPayloadSelect = { }; }; export interface UpdateTableGrantPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `TableGrant` that was updated by this mutation. */ tableGrant?: TableGrant | null; - /** An edge for our `TableGrant`. May be used by Relay 1. */ tableGrantEdge?: TableGrantEdge | null; } export type UpdateTableGrantPayloadSelect = { @@ -14284,14 +13909,9 @@ export type UpdateTableGrantPayloadSelect = { }; }; export interface DeleteTableGrantPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `TableGrant` that was deleted by this mutation. */ tableGrant?: TableGrant | null; - /** An edge for our `TableGrant`. May be used by Relay 1. */ tableGrantEdge?: TableGrantEdge | null; } export type DeleteTableGrantPayloadSelect = { @@ -14304,14 +13924,9 @@ export type DeleteTableGrantPayloadSelect = { }; }; export interface CreateTriggerPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Trigger` that was created by this mutation. */ trigger?: Trigger | null; - /** An edge for our `Trigger`. May be used by Relay 1. */ triggerEdge?: TriggerEdge | null; } export type CreateTriggerPayloadSelect = { @@ -14324,14 +13939,9 @@ export type CreateTriggerPayloadSelect = { }; }; export interface UpdateTriggerPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Trigger` that was updated by this mutation. */ trigger?: Trigger | null; - /** An edge for our `Trigger`. May be used by Relay 1. */ triggerEdge?: TriggerEdge | null; } export type UpdateTriggerPayloadSelect = { @@ -14344,14 +13954,9 @@ export type UpdateTriggerPayloadSelect = { }; }; export interface DeleteTriggerPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Trigger` that was deleted by this mutation. */ trigger?: Trigger | null; - /** An edge for our `Trigger`. May be used by Relay 1. */ triggerEdge?: TriggerEdge | null; } export type DeleteTriggerPayloadSelect = { @@ -14364,14 +13969,9 @@ export type DeleteTriggerPayloadSelect = { }; }; export interface CreateUniqueConstraintPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `UniqueConstraint` that was created by this mutation. */ uniqueConstraint?: UniqueConstraint | null; - /** An edge for our `UniqueConstraint`. May be used by Relay 1. */ uniqueConstraintEdge?: UniqueConstraintEdge | null; } export type CreateUniqueConstraintPayloadSelect = { @@ -14384,14 +13984,9 @@ export type CreateUniqueConstraintPayloadSelect = { }; }; export interface UpdateUniqueConstraintPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `UniqueConstraint` that was updated by this mutation. */ uniqueConstraint?: UniqueConstraint | null; - /** An edge for our `UniqueConstraint`. May be used by Relay 1. */ uniqueConstraintEdge?: UniqueConstraintEdge | null; } export type UpdateUniqueConstraintPayloadSelect = { @@ -14404,14 +13999,9 @@ export type UpdateUniqueConstraintPayloadSelect = { }; }; export interface DeleteUniqueConstraintPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `UniqueConstraint` that was deleted by this mutation. */ uniqueConstraint?: UniqueConstraint | null; - /** An edge for our `UniqueConstraint`. May be used by Relay 1. */ uniqueConstraintEdge?: UniqueConstraintEdge | null; } export type DeleteUniqueConstraintPayloadSelect = { @@ -14424,14 +14014,9 @@ export type DeleteUniqueConstraintPayloadSelect = { }; }; export interface CreateViewPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `View` that was created by this mutation. */ view?: View | null; - /** An edge for our `View`. May be used by Relay 1. */ viewEdge?: ViewEdge | null; } export type CreateViewPayloadSelect = { @@ -14444,14 +14029,9 @@ export type CreateViewPayloadSelect = { }; }; export interface UpdateViewPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `View` that was updated by this mutation. */ view?: View | null; - /** An edge for our `View`. May be used by Relay 1. */ viewEdge?: ViewEdge | null; } export type UpdateViewPayloadSelect = { @@ -14464,14 +14044,9 @@ export type UpdateViewPayloadSelect = { }; }; export interface DeleteViewPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `View` that was deleted by this mutation. */ view?: View | null; - /** An edge for our `View`. May be used by Relay 1. */ viewEdge?: ViewEdge | null; } export type DeleteViewPayloadSelect = { @@ -14484,14 +14059,9 @@ export type DeleteViewPayloadSelect = { }; }; export interface CreateViewTablePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `ViewTable` that was created by this mutation. */ viewTable?: ViewTable | null; - /** An edge for our `ViewTable`. May be used by Relay 1. */ viewTableEdge?: ViewTableEdge | null; } export type CreateViewTablePayloadSelect = { @@ -14504,14 +14074,9 @@ export type CreateViewTablePayloadSelect = { }; }; export interface UpdateViewTablePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `ViewTable` that was updated by this mutation. */ viewTable?: ViewTable | null; - /** An edge for our `ViewTable`. May be used by Relay 1. */ viewTableEdge?: ViewTableEdge | null; } export type UpdateViewTablePayloadSelect = { @@ -14524,14 +14089,9 @@ export type UpdateViewTablePayloadSelect = { }; }; export interface DeleteViewTablePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `ViewTable` that was deleted by this mutation. */ viewTable?: ViewTable | null; - /** An edge for our `ViewTable`. May be used by Relay 1. */ viewTableEdge?: ViewTableEdge | null; } export type DeleteViewTablePayloadSelect = { @@ -14544,14 +14104,9 @@ export type DeleteViewTablePayloadSelect = { }; }; export interface CreateViewGrantPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `ViewGrant` that was created by this mutation. */ viewGrant?: ViewGrant | null; - /** An edge for our `ViewGrant`. May be used by Relay 1. */ viewGrantEdge?: ViewGrantEdge | null; } export type CreateViewGrantPayloadSelect = { @@ -14564,14 +14119,9 @@ export type CreateViewGrantPayloadSelect = { }; }; export interface UpdateViewGrantPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `ViewGrant` that was updated by this mutation. */ viewGrant?: ViewGrant | null; - /** An edge for our `ViewGrant`. May be used by Relay 1. */ viewGrantEdge?: ViewGrantEdge | null; } export type UpdateViewGrantPayloadSelect = { @@ -14584,14 +14134,9 @@ export type UpdateViewGrantPayloadSelect = { }; }; export interface DeleteViewGrantPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `ViewGrant` that was deleted by this mutation. */ viewGrant?: ViewGrant | null; - /** An edge for our `ViewGrant`. May be used by Relay 1. */ viewGrantEdge?: ViewGrantEdge | null; } export type DeleteViewGrantPayloadSelect = { @@ -14604,14 +14149,9 @@ export type DeleteViewGrantPayloadSelect = { }; }; export interface CreateViewRulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `ViewRule` that was created by this mutation. */ viewRule?: ViewRule | null; - /** An edge for our `ViewRule`. May be used by Relay 1. */ viewRuleEdge?: ViewRuleEdge | null; } export type CreateViewRulePayloadSelect = { @@ -14624,14 +14164,9 @@ export type CreateViewRulePayloadSelect = { }; }; export interface UpdateViewRulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `ViewRule` that was updated by this mutation. */ viewRule?: ViewRule | null; - /** An edge for our `ViewRule`. May be used by Relay 1. */ viewRuleEdge?: ViewRuleEdge | null; } export type UpdateViewRulePayloadSelect = { @@ -14644,14 +14179,9 @@ export type UpdateViewRulePayloadSelect = { }; }; export interface DeleteViewRulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `ViewRule` that was deleted by this mutation. */ viewRule?: ViewRule | null; - /** An edge for our `ViewRule`. May be used by Relay 1. */ viewRuleEdge?: ViewRuleEdge | null; } export type DeleteViewRulePayloadSelect = { @@ -14664,14 +14194,9 @@ export type DeleteViewRulePayloadSelect = { }; }; export interface CreateTableModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `TableModule` that was created by this mutation. */ tableModule?: TableModule | null; - /** An edge for our `TableModule`. May be used by Relay 1. */ tableModuleEdge?: TableModuleEdge | null; } export type CreateTableModulePayloadSelect = { @@ -14684,14 +14209,9 @@ export type CreateTableModulePayloadSelect = { }; }; export interface UpdateTableModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `TableModule` that was updated by this mutation. */ tableModule?: TableModule | null; - /** An edge for our `TableModule`. May be used by Relay 1. */ tableModuleEdge?: TableModuleEdge | null; } export type UpdateTableModulePayloadSelect = { @@ -14704,14 +14224,9 @@ export type UpdateTableModulePayloadSelect = { }; }; export interface DeleteTableModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `TableModule` that was deleted by this mutation. */ tableModule?: TableModule | null; - /** An edge for our `TableModule`. May be used by Relay 1. */ tableModuleEdge?: TableModuleEdge | null; } export type DeleteTableModulePayloadSelect = { @@ -14724,14 +14239,9 @@ export type DeleteTableModulePayloadSelect = { }; }; export interface CreateTableTemplateModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `TableTemplateModule` that was created by this mutation. */ tableTemplateModule?: TableTemplateModule | null; - /** An edge for our `TableTemplateModule`. May be used by Relay 1. */ tableTemplateModuleEdge?: TableTemplateModuleEdge | null; } export type CreateTableTemplateModulePayloadSelect = { @@ -14744,14 +14254,9 @@ export type CreateTableTemplateModulePayloadSelect = { }; }; export interface UpdateTableTemplateModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `TableTemplateModule` that was updated by this mutation. */ tableTemplateModule?: TableTemplateModule | null; - /** An edge for our `TableTemplateModule`. May be used by Relay 1. */ tableTemplateModuleEdge?: TableTemplateModuleEdge | null; } export type UpdateTableTemplateModulePayloadSelect = { @@ -14764,14 +14269,9 @@ export type UpdateTableTemplateModulePayloadSelect = { }; }; export interface DeleteTableTemplateModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `TableTemplateModule` that was deleted by this mutation. */ tableTemplateModule?: TableTemplateModule | null; - /** An edge for our `TableTemplateModule`. May be used by Relay 1. */ tableTemplateModuleEdge?: TableTemplateModuleEdge | null; } export type DeleteTableTemplateModulePayloadSelect = { @@ -14784,14 +14284,9 @@ export type DeleteTableTemplateModulePayloadSelect = { }; }; export interface CreateSchemaGrantPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `SchemaGrant` that was created by this mutation. */ schemaGrant?: SchemaGrant | null; - /** An edge for our `SchemaGrant`. May be used by Relay 1. */ schemaGrantEdge?: SchemaGrantEdge | null; } export type CreateSchemaGrantPayloadSelect = { @@ -14804,14 +14299,9 @@ export type CreateSchemaGrantPayloadSelect = { }; }; export interface UpdateSchemaGrantPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `SchemaGrant` that was updated by this mutation. */ schemaGrant?: SchemaGrant | null; - /** An edge for our `SchemaGrant`. May be used by Relay 1. */ schemaGrantEdge?: SchemaGrantEdge | null; } export type UpdateSchemaGrantPayloadSelect = { @@ -14824,14 +14314,9 @@ export type UpdateSchemaGrantPayloadSelect = { }; }; export interface DeleteSchemaGrantPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `SchemaGrant` that was deleted by this mutation. */ schemaGrant?: SchemaGrant | null; - /** An edge for our `SchemaGrant`. May be used by Relay 1. */ schemaGrantEdge?: SchemaGrantEdge | null; } export type DeleteSchemaGrantPayloadSelect = { @@ -14844,14 +14329,9 @@ export type DeleteSchemaGrantPayloadSelect = { }; }; export interface CreateApiSchemaPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `ApiSchema` that was created by this mutation. */ apiSchema?: ApiSchema | null; - /** An edge for our `ApiSchema`. May be used by Relay 1. */ apiSchemaEdge?: ApiSchemaEdge | null; } export type CreateApiSchemaPayloadSelect = { @@ -14864,14 +14344,9 @@ export type CreateApiSchemaPayloadSelect = { }; }; export interface UpdateApiSchemaPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `ApiSchema` that was updated by this mutation. */ apiSchema?: ApiSchema | null; - /** An edge for our `ApiSchema`. May be used by Relay 1. */ apiSchemaEdge?: ApiSchemaEdge | null; } export type UpdateApiSchemaPayloadSelect = { @@ -14884,14 +14359,9 @@ export type UpdateApiSchemaPayloadSelect = { }; }; export interface DeleteApiSchemaPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `ApiSchema` that was deleted by this mutation. */ apiSchema?: ApiSchema | null; - /** An edge for our `ApiSchema`. May be used by Relay 1. */ apiSchemaEdge?: ApiSchemaEdge | null; } export type DeleteApiSchemaPayloadSelect = { @@ -14904,14 +14374,9 @@ export type DeleteApiSchemaPayloadSelect = { }; }; export interface CreateApiModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `ApiModule` that was created by this mutation. */ apiModule?: ApiModule | null; - /** An edge for our `ApiModule`. May be used by Relay 1. */ apiModuleEdge?: ApiModuleEdge | null; } export type CreateApiModulePayloadSelect = { @@ -14924,14 +14389,9 @@ export type CreateApiModulePayloadSelect = { }; }; export interface UpdateApiModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `ApiModule` that was updated by this mutation. */ apiModule?: ApiModule | null; - /** An edge for our `ApiModule`. May be used by Relay 1. */ apiModuleEdge?: ApiModuleEdge | null; } export type UpdateApiModulePayloadSelect = { @@ -14944,14 +14404,9 @@ export type UpdateApiModulePayloadSelect = { }; }; export interface DeleteApiModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `ApiModule` that was deleted by this mutation. */ apiModule?: ApiModule | null; - /** An edge for our `ApiModule`. May be used by Relay 1. */ apiModuleEdge?: ApiModuleEdge | null; } export type DeleteApiModulePayloadSelect = { @@ -14964,14 +14419,9 @@ export type DeleteApiModulePayloadSelect = { }; }; export interface CreateDomainPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Domain` that was created by this mutation. */ domain?: Domain | null; - /** An edge for our `Domain`. May be used by Relay 1. */ domainEdge?: DomainEdge | null; } export type CreateDomainPayloadSelect = { @@ -14984,14 +14434,9 @@ export type CreateDomainPayloadSelect = { }; }; export interface UpdateDomainPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Domain` that was updated by this mutation. */ domain?: Domain | null; - /** An edge for our `Domain`. May be used by Relay 1. */ domainEdge?: DomainEdge | null; } export type UpdateDomainPayloadSelect = { @@ -15004,14 +14449,9 @@ export type UpdateDomainPayloadSelect = { }; }; export interface DeleteDomainPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Domain` that was deleted by this mutation. */ domain?: Domain | null; - /** An edge for our `Domain`. May be used by Relay 1. */ domainEdge?: DomainEdge | null; } export type DeleteDomainPayloadSelect = { @@ -15024,14 +14464,9 @@ export type DeleteDomainPayloadSelect = { }; }; export interface CreateSiteMetadatumPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `SiteMetadatum` that was created by this mutation. */ siteMetadatum?: SiteMetadatum | null; - /** An edge for our `SiteMetadatum`. May be used by Relay 1. */ siteMetadatumEdge?: SiteMetadatumEdge | null; } export type CreateSiteMetadatumPayloadSelect = { @@ -15044,14 +14479,9 @@ export type CreateSiteMetadatumPayloadSelect = { }; }; export interface UpdateSiteMetadatumPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `SiteMetadatum` that was updated by this mutation. */ siteMetadatum?: SiteMetadatum | null; - /** An edge for our `SiteMetadatum`. May be used by Relay 1. */ siteMetadatumEdge?: SiteMetadatumEdge | null; } export type UpdateSiteMetadatumPayloadSelect = { @@ -15064,14 +14494,9 @@ export type UpdateSiteMetadatumPayloadSelect = { }; }; export interface DeleteSiteMetadatumPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `SiteMetadatum` that was deleted by this mutation. */ siteMetadatum?: SiteMetadatum | null; - /** An edge for our `SiteMetadatum`. May be used by Relay 1. */ siteMetadatumEdge?: SiteMetadatumEdge | null; } export type DeleteSiteMetadatumPayloadSelect = { @@ -15084,14 +14509,9 @@ export type DeleteSiteMetadatumPayloadSelect = { }; }; export interface CreateSiteModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `SiteModule` that was created by this mutation. */ siteModule?: SiteModule | null; - /** An edge for our `SiteModule`. May be used by Relay 1. */ siteModuleEdge?: SiteModuleEdge | null; } export type CreateSiteModulePayloadSelect = { @@ -15104,14 +14524,9 @@ export type CreateSiteModulePayloadSelect = { }; }; export interface UpdateSiteModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `SiteModule` that was updated by this mutation. */ siteModule?: SiteModule | null; - /** An edge for our `SiteModule`. May be used by Relay 1. */ siteModuleEdge?: SiteModuleEdge | null; } export type UpdateSiteModulePayloadSelect = { @@ -15124,14 +14539,9 @@ export type UpdateSiteModulePayloadSelect = { }; }; export interface DeleteSiteModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `SiteModule` that was deleted by this mutation. */ siteModule?: SiteModule | null; - /** An edge for our `SiteModule`. May be used by Relay 1. */ siteModuleEdge?: SiteModuleEdge | null; } export type DeleteSiteModulePayloadSelect = { @@ -15144,14 +14554,9 @@ export type DeleteSiteModulePayloadSelect = { }; }; export interface CreateSiteThemePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `SiteTheme` that was created by this mutation. */ siteTheme?: SiteTheme | null; - /** An edge for our `SiteTheme`. May be used by Relay 1. */ siteThemeEdge?: SiteThemeEdge | null; } export type CreateSiteThemePayloadSelect = { @@ -15164,14 +14569,9 @@ export type CreateSiteThemePayloadSelect = { }; }; export interface UpdateSiteThemePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `SiteTheme` that was updated by this mutation. */ siteTheme?: SiteTheme | null; - /** An edge for our `SiteTheme`. May be used by Relay 1. */ siteThemeEdge?: SiteThemeEdge | null; } export type UpdateSiteThemePayloadSelect = { @@ -15184,14 +14584,9 @@ export type UpdateSiteThemePayloadSelect = { }; }; export interface DeleteSiteThemePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `SiteTheme` that was deleted by this mutation. */ siteTheme?: SiteTheme | null; - /** An edge for our `SiteTheme`. May be used by Relay 1. */ siteThemeEdge?: SiteThemeEdge | null; } export type DeleteSiteThemePayloadSelect = { @@ -15204,14 +14599,9 @@ export type DeleteSiteThemePayloadSelect = { }; }; export interface CreateProcedurePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Procedure` that was created by this mutation. */ procedure?: Procedure | null; - /** An edge for our `Procedure`. May be used by Relay 1. */ procedureEdge?: ProcedureEdge | null; } export type CreateProcedurePayloadSelect = { @@ -15224,14 +14614,9 @@ export type CreateProcedurePayloadSelect = { }; }; export interface UpdateProcedurePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Procedure` that was updated by this mutation. */ procedure?: Procedure | null; - /** An edge for our `Procedure`. May be used by Relay 1. */ procedureEdge?: ProcedureEdge | null; } export type UpdateProcedurePayloadSelect = { @@ -15244,14 +14629,9 @@ export type UpdateProcedurePayloadSelect = { }; }; export interface DeleteProcedurePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Procedure` that was deleted by this mutation. */ procedure?: Procedure | null; - /** An edge for our `Procedure`. May be used by Relay 1. */ procedureEdge?: ProcedureEdge | null; } export type DeleteProcedurePayloadSelect = { @@ -15264,14 +14644,9 @@ export type DeleteProcedurePayloadSelect = { }; }; export interface CreateTriggerFunctionPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `TriggerFunction` that was created by this mutation. */ triggerFunction?: TriggerFunction | null; - /** An edge for our `TriggerFunction`. May be used by Relay 1. */ triggerFunctionEdge?: TriggerFunctionEdge | null; } export type CreateTriggerFunctionPayloadSelect = { @@ -15284,14 +14659,9 @@ export type CreateTriggerFunctionPayloadSelect = { }; }; export interface UpdateTriggerFunctionPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `TriggerFunction` that was updated by this mutation. */ triggerFunction?: TriggerFunction | null; - /** An edge for our `TriggerFunction`. May be used by Relay 1. */ triggerFunctionEdge?: TriggerFunctionEdge | null; } export type UpdateTriggerFunctionPayloadSelect = { @@ -15304,14 +14674,9 @@ export type UpdateTriggerFunctionPayloadSelect = { }; }; export interface DeleteTriggerFunctionPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `TriggerFunction` that was deleted by this mutation. */ triggerFunction?: TriggerFunction | null; - /** An edge for our `TriggerFunction`. May be used by Relay 1. */ triggerFunctionEdge?: TriggerFunctionEdge | null; } export type DeleteTriggerFunctionPayloadSelect = { @@ -15324,14 +14689,9 @@ export type DeleteTriggerFunctionPayloadSelect = { }; }; export interface CreateApiPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Api` that was created by this mutation. */ api?: Api | null; - /** An edge for our `Api`. May be used by Relay 1. */ apiEdge?: ApiEdge | null; } export type CreateApiPayloadSelect = { @@ -15344,14 +14704,9 @@ export type CreateApiPayloadSelect = { }; }; export interface UpdateApiPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Api` that was updated by this mutation. */ api?: Api | null; - /** An edge for our `Api`. May be used by Relay 1. */ apiEdge?: ApiEdge | null; } export type UpdateApiPayloadSelect = { @@ -15364,14 +14719,9 @@ export type UpdateApiPayloadSelect = { }; }; export interface DeleteApiPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Api` that was deleted by this mutation. */ api?: Api | null; - /** An edge for our `Api`. May be used by Relay 1. */ apiEdge?: ApiEdge | null; } export type DeleteApiPayloadSelect = { @@ -15384,14 +14734,9 @@ export type DeleteApiPayloadSelect = { }; }; export interface CreateSitePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Site` that was created by this mutation. */ site?: Site | null; - /** An edge for our `Site`. May be used by Relay 1. */ siteEdge?: SiteEdge | null; } export type CreateSitePayloadSelect = { @@ -15404,14 +14749,9 @@ export type CreateSitePayloadSelect = { }; }; export interface UpdateSitePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Site` that was updated by this mutation. */ site?: Site | null; - /** An edge for our `Site`. May be used by Relay 1. */ siteEdge?: SiteEdge | null; } export type UpdateSitePayloadSelect = { @@ -15424,14 +14764,9 @@ export type UpdateSitePayloadSelect = { }; }; export interface DeleteSitePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Site` that was deleted by this mutation. */ site?: Site | null; - /** An edge for our `Site`. May be used by Relay 1. */ siteEdge?: SiteEdge | null; } export type DeleteSitePayloadSelect = { @@ -15444,14 +14779,9 @@ export type DeleteSitePayloadSelect = { }; }; export interface CreateAppPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `App` that was created by this mutation. */ app?: App | null; - /** An edge for our `App`. May be used by Relay 1. */ appEdge?: AppEdge | null; } export type CreateAppPayloadSelect = { @@ -15464,14 +14794,9 @@ export type CreateAppPayloadSelect = { }; }; export interface UpdateAppPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `App` that was updated by this mutation. */ app?: App | null; - /** An edge for our `App`. May be used by Relay 1. */ appEdge?: AppEdge | null; } export type UpdateAppPayloadSelect = { @@ -15484,14 +14809,9 @@ export type UpdateAppPayloadSelect = { }; }; export interface DeleteAppPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `App` that was deleted by this mutation. */ app?: App | null; - /** An edge for our `App`. May be used by Relay 1. */ appEdge?: AppEdge | null; } export type DeleteAppPayloadSelect = { @@ -15504,14 +14824,9 @@ export type DeleteAppPayloadSelect = { }; }; export interface CreateConnectedAccountsModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `ConnectedAccountsModule` that was created by this mutation. */ connectedAccountsModule?: ConnectedAccountsModule | null; - /** An edge for our `ConnectedAccountsModule`. May be used by Relay 1. */ connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; } export type CreateConnectedAccountsModulePayloadSelect = { @@ -15524,14 +14839,9 @@ export type CreateConnectedAccountsModulePayloadSelect = { }; }; export interface UpdateConnectedAccountsModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `ConnectedAccountsModule` that was updated by this mutation. */ connectedAccountsModule?: ConnectedAccountsModule | null; - /** An edge for our `ConnectedAccountsModule`. May be used by Relay 1. */ connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; } export type UpdateConnectedAccountsModulePayloadSelect = { @@ -15544,14 +14854,9 @@ export type UpdateConnectedAccountsModulePayloadSelect = { }; }; export interface DeleteConnectedAccountsModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `ConnectedAccountsModule` that was deleted by this mutation. */ connectedAccountsModule?: ConnectedAccountsModule | null; - /** An edge for our `ConnectedAccountsModule`. May be used by Relay 1. */ connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; } export type DeleteConnectedAccountsModulePayloadSelect = { @@ -15564,14 +14869,9 @@ export type DeleteConnectedAccountsModulePayloadSelect = { }; }; export interface CreateCryptoAddressesModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `CryptoAddressesModule` that was created by this mutation. */ cryptoAddressesModule?: CryptoAddressesModule | null; - /** An edge for our `CryptoAddressesModule`. May be used by Relay 1. */ cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; } export type CreateCryptoAddressesModulePayloadSelect = { @@ -15584,14 +14884,9 @@ export type CreateCryptoAddressesModulePayloadSelect = { }; }; export interface UpdateCryptoAddressesModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `CryptoAddressesModule` that was updated by this mutation. */ cryptoAddressesModule?: CryptoAddressesModule | null; - /** An edge for our `CryptoAddressesModule`. May be used by Relay 1. */ cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; } export type UpdateCryptoAddressesModulePayloadSelect = { @@ -15604,14 +14899,9 @@ export type UpdateCryptoAddressesModulePayloadSelect = { }; }; export interface DeleteCryptoAddressesModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `CryptoAddressesModule` that was deleted by this mutation. */ cryptoAddressesModule?: CryptoAddressesModule | null; - /** An edge for our `CryptoAddressesModule`. May be used by Relay 1. */ cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; } export type DeleteCryptoAddressesModulePayloadSelect = { @@ -15624,14 +14914,9 @@ export type DeleteCryptoAddressesModulePayloadSelect = { }; }; export interface CreateCryptoAuthModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `CryptoAuthModule` that was created by this mutation. */ cryptoAuthModule?: CryptoAuthModule | null; - /** An edge for our `CryptoAuthModule`. May be used by Relay 1. */ cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; } export type CreateCryptoAuthModulePayloadSelect = { @@ -15644,14 +14929,9 @@ export type CreateCryptoAuthModulePayloadSelect = { }; }; export interface UpdateCryptoAuthModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `CryptoAuthModule` that was updated by this mutation. */ cryptoAuthModule?: CryptoAuthModule | null; - /** An edge for our `CryptoAuthModule`. May be used by Relay 1. */ cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; } export type UpdateCryptoAuthModulePayloadSelect = { @@ -15664,14 +14944,9 @@ export type UpdateCryptoAuthModulePayloadSelect = { }; }; export interface DeleteCryptoAuthModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `CryptoAuthModule` that was deleted by this mutation. */ cryptoAuthModule?: CryptoAuthModule | null; - /** An edge for our `CryptoAuthModule`. May be used by Relay 1. */ cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; } export type DeleteCryptoAuthModulePayloadSelect = { @@ -15684,14 +14959,9 @@ export type DeleteCryptoAuthModulePayloadSelect = { }; }; export interface CreateDefaultIdsModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `DefaultIdsModule` that was created by this mutation. */ defaultIdsModule?: DefaultIdsModule | null; - /** An edge for our `DefaultIdsModule`. May be used by Relay 1. */ defaultIdsModuleEdge?: DefaultIdsModuleEdge | null; } export type CreateDefaultIdsModulePayloadSelect = { @@ -15704,14 +14974,9 @@ export type CreateDefaultIdsModulePayloadSelect = { }; }; export interface UpdateDefaultIdsModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `DefaultIdsModule` that was updated by this mutation. */ defaultIdsModule?: DefaultIdsModule | null; - /** An edge for our `DefaultIdsModule`. May be used by Relay 1. */ defaultIdsModuleEdge?: DefaultIdsModuleEdge | null; } export type UpdateDefaultIdsModulePayloadSelect = { @@ -15724,14 +14989,9 @@ export type UpdateDefaultIdsModulePayloadSelect = { }; }; export interface DeleteDefaultIdsModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `DefaultIdsModule` that was deleted by this mutation. */ defaultIdsModule?: DefaultIdsModule | null; - /** An edge for our `DefaultIdsModule`. May be used by Relay 1. */ defaultIdsModuleEdge?: DefaultIdsModuleEdge | null; } export type DeleteDefaultIdsModulePayloadSelect = { @@ -15744,14 +15004,9 @@ export type DeleteDefaultIdsModulePayloadSelect = { }; }; export interface CreateDenormalizedTableFieldPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `DenormalizedTableField` that was created by this mutation. */ denormalizedTableField?: DenormalizedTableField | null; - /** An edge for our `DenormalizedTableField`. May be used by Relay 1. */ denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; } export type CreateDenormalizedTableFieldPayloadSelect = { @@ -15764,14 +15019,9 @@ export type CreateDenormalizedTableFieldPayloadSelect = { }; }; export interface UpdateDenormalizedTableFieldPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `DenormalizedTableField` that was updated by this mutation. */ denormalizedTableField?: DenormalizedTableField | null; - /** An edge for our `DenormalizedTableField`. May be used by Relay 1. */ denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; } export type UpdateDenormalizedTableFieldPayloadSelect = { @@ -15784,14 +15034,9 @@ export type UpdateDenormalizedTableFieldPayloadSelect = { }; }; export interface DeleteDenormalizedTableFieldPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `DenormalizedTableField` that was deleted by this mutation. */ denormalizedTableField?: DenormalizedTableField | null; - /** An edge for our `DenormalizedTableField`. May be used by Relay 1. */ denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; } export type DeleteDenormalizedTableFieldPayloadSelect = { @@ -15804,14 +15049,9 @@ export type DeleteDenormalizedTableFieldPayloadSelect = { }; }; export interface CreateEmailsModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `EmailsModule` that was created by this mutation. */ emailsModule?: EmailsModule | null; - /** An edge for our `EmailsModule`. May be used by Relay 1. */ emailsModuleEdge?: EmailsModuleEdge | null; } export type CreateEmailsModulePayloadSelect = { @@ -15824,14 +15064,9 @@ export type CreateEmailsModulePayloadSelect = { }; }; export interface UpdateEmailsModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `EmailsModule` that was updated by this mutation. */ emailsModule?: EmailsModule | null; - /** An edge for our `EmailsModule`. May be used by Relay 1. */ emailsModuleEdge?: EmailsModuleEdge | null; } export type UpdateEmailsModulePayloadSelect = { @@ -15844,14 +15079,9 @@ export type UpdateEmailsModulePayloadSelect = { }; }; export interface DeleteEmailsModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `EmailsModule` that was deleted by this mutation. */ emailsModule?: EmailsModule | null; - /** An edge for our `EmailsModule`. May be used by Relay 1. */ emailsModuleEdge?: EmailsModuleEdge | null; } export type DeleteEmailsModulePayloadSelect = { @@ -15864,14 +15094,9 @@ export type DeleteEmailsModulePayloadSelect = { }; }; export interface CreateEncryptedSecretsModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `EncryptedSecretsModule` that was created by this mutation. */ encryptedSecretsModule?: EncryptedSecretsModule | null; - /** An edge for our `EncryptedSecretsModule`. May be used by Relay 1. */ encryptedSecretsModuleEdge?: EncryptedSecretsModuleEdge | null; } export type CreateEncryptedSecretsModulePayloadSelect = { @@ -15884,14 +15109,9 @@ export type CreateEncryptedSecretsModulePayloadSelect = { }; }; export interface UpdateEncryptedSecretsModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `EncryptedSecretsModule` that was updated by this mutation. */ encryptedSecretsModule?: EncryptedSecretsModule | null; - /** An edge for our `EncryptedSecretsModule`. May be used by Relay 1. */ encryptedSecretsModuleEdge?: EncryptedSecretsModuleEdge | null; } export type UpdateEncryptedSecretsModulePayloadSelect = { @@ -15904,14 +15124,9 @@ export type UpdateEncryptedSecretsModulePayloadSelect = { }; }; export interface DeleteEncryptedSecretsModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `EncryptedSecretsModule` that was deleted by this mutation. */ encryptedSecretsModule?: EncryptedSecretsModule | null; - /** An edge for our `EncryptedSecretsModule`. May be used by Relay 1. */ encryptedSecretsModuleEdge?: EncryptedSecretsModuleEdge | null; } export type DeleteEncryptedSecretsModulePayloadSelect = { @@ -15924,14 +15139,9 @@ export type DeleteEncryptedSecretsModulePayloadSelect = { }; }; export interface CreateFieldModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `FieldModule` that was created by this mutation. */ fieldModule?: FieldModule | null; - /** An edge for our `FieldModule`. May be used by Relay 1. */ fieldModuleEdge?: FieldModuleEdge | null; } export type CreateFieldModulePayloadSelect = { @@ -15944,14 +15154,9 @@ export type CreateFieldModulePayloadSelect = { }; }; export interface UpdateFieldModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `FieldModule` that was updated by this mutation. */ fieldModule?: FieldModule | null; - /** An edge for our `FieldModule`. May be used by Relay 1. */ fieldModuleEdge?: FieldModuleEdge | null; } export type UpdateFieldModulePayloadSelect = { @@ -15964,14 +15169,9 @@ export type UpdateFieldModulePayloadSelect = { }; }; export interface DeleteFieldModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `FieldModule` that was deleted by this mutation. */ fieldModule?: FieldModule | null; - /** An edge for our `FieldModule`. May be used by Relay 1. */ fieldModuleEdge?: FieldModuleEdge | null; } export type DeleteFieldModulePayloadSelect = { @@ -15984,14 +15184,9 @@ export type DeleteFieldModulePayloadSelect = { }; }; export interface CreateInvitesModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `InvitesModule` that was created by this mutation. */ invitesModule?: InvitesModule | null; - /** An edge for our `InvitesModule`. May be used by Relay 1. */ invitesModuleEdge?: InvitesModuleEdge | null; } export type CreateInvitesModulePayloadSelect = { @@ -16004,14 +15199,9 @@ export type CreateInvitesModulePayloadSelect = { }; }; export interface UpdateInvitesModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `InvitesModule` that was updated by this mutation. */ invitesModule?: InvitesModule | null; - /** An edge for our `InvitesModule`. May be used by Relay 1. */ invitesModuleEdge?: InvitesModuleEdge | null; } export type UpdateInvitesModulePayloadSelect = { @@ -16024,14 +15214,9 @@ export type UpdateInvitesModulePayloadSelect = { }; }; export interface DeleteInvitesModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `InvitesModule` that was deleted by this mutation. */ invitesModule?: InvitesModule | null; - /** An edge for our `InvitesModule`. May be used by Relay 1. */ invitesModuleEdge?: InvitesModuleEdge | null; } export type DeleteInvitesModulePayloadSelect = { @@ -16044,14 +15229,9 @@ export type DeleteInvitesModulePayloadSelect = { }; }; export interface CreateLevelsModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `LevelsModule` that was created by this mutation. */ levelsModule?: LevelsModule | null; - /** An edge for our `LevelsModule`. May be used by Relay 1. */ levelsModuleEdge?: LevelsModuleEdge | null; } export type CreateLevelsModulePayloadSelect = { @@ -16064,14 +15244,9 @@ export type CreateLevelsModulePayloadSelect = { }; }; export interface UpdateLevelsModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `LevelsModule` that was updated by this mutation. */ levelsModule?: LevelsModule | null; - /** An edge for our `LevelsModule`. May be used by Relay 1. */ levelsModuleEdge?: LevelsModuleEdge | null; } export type UpdateLevelsModulePayloadSelect = { @@ -16084,14 +15259,9 @@ export type UpdateLevelsModulePayloadSelect = { }; }; export interface DeleteLevelsModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `LevelsModule` that was deleted by this mutation. */ levelsModule?: LevelsModule | null; - /** An edge for our `LevelsModule`. May be used by Relay 1. */ levelsModuleEdge?: LevelsModuleEdge | null; } export type DeleteLevelsModulePayloadSelect = { @@ -16104,14 +15274,9 @@ export type DeleteLevelsModulePayloadSelect = { }; }; export interface CreateLimitsModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `LimitsModule` that was created by this mutation. */ limitsModule?: LimitsModule | null; - /** An edge for our `LimitsModule`. May be used by Relay 1. */ limitsModuleEdge?: LimitsModuleEdge | null; } export type CreateLimitsModulePayloadSelect = { @@ -16124,14 +15289,9 @@ export type CreateLimitsModulePayloadSelect = { }; }; export interface UpdateLimitsModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `LimitsModule` that was updated by this mutation. */ limitsModule?: LimitsModule | null; - /** An edge for our `LimitsModule`. May be used by Relay 1. */ limitsModuleEdge?: LimitsModuleEdge | null; } export type UpdateLimitsModulePayloadSelect = { @@ -16144,14 +15304,9 @@ export type UpdateLimitsModulePayloadSelect = { }; }; export interface DeleteLimitsModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `LimitsModule` that was deleted by this mutation. */ limitsModule?: LimitsModule | null; - /** An edge for our `LimitsModule`. May be used by Relay 1. */ limitsModuleEdge?: LimitsModuleEdge | null; } export type DeleteLimitsModulePayloadSelect = { @@ -16164,14 +15319,9 @@ export type DeleteLimitsModulePayloadSelect = { }; }; export interface CreateMembershipTypesModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `MembershipTypesModule` that was created by this mutation. */ membershipTypesModule?: MembershipTypesModule | null; - /** An edge for our `MembershipTypesModule`. May be used by Relay 1. */ membershipTypesModuleEdge?: MembershipTypesModuleEdge | null; } export type CreateMembershipTypesModulePayloadSelect = { @@ -16184,14 +15334,9 @@ export type CreateMembershipTypesModulePayloadSelect = { }; }; export interface UpdateMembershipTypesModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `MembershipTypesModule` that was updated by this mutation. */ membershipTypesModule?: MembershipTypesModule | null; - /** An edge for our `MembershipTypesModule`. May be used by Relay 1. */ membershipTypesModuleEdge?: MembershipTypesModuleEdge | null; } export type UpdateMembershipTypesModulePayloadSelect = { @@ -16204,14 +15349,9 @@ export type UpdateMembershipTypesModulePayloadSelect = { }; }; export interface DeleteMembershipTypesModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `MembershipTypesModule` that was deleted by this mutation. */ membershipTypesModule?: MembershipTypesModule | null; - /** An edge for our `MembershipTypesModule`. May be used by Relay 1. */ membershipTypesModuleEdge?: MembershipTypesModuleEdge | null; } export type DeleteMembershipTypesModulePayloadSelect = { @@ -16224,14 +15364,9 @@ export type DeleteMembershipTypesModulePayloadSelect = { }; }; export interface CreateMembershipsModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `MembershipsModule` that was created by this mutation. */ membershipsModule?: MembershipsModule | null; - /** An edge for our `MembershipsModule`. May be used by Relay 1. */ membershipsModuleEdge?: MembershipsModuleEdge | null; } export type CreateMembershipsModulePayloadSelect = { @@ -16244,14 +15379,9 @@ export type CreateMembershipsModulePayloadSelect = { }; }; export interface UpdateMembershipsModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `MembershipsModule` that was updated by this mutation. */ membershipsModule?: MembershipsModule | null; - /** An edge for our `MembershipsModule`. May be used by Relay 1. */ membershipsModuleEdge?: MembershipsModuleEdge | null; } export type UpdateMembershipsModulePayloadSelect = { @@ -16264,14 +15394,9 @@ export type UpdateMembershipsModulePayloadSelect = { }; }; export interface DeleteMembershipsModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `MembershipsModule` that was deleted by this mutation. */ membershipsModule?: MembershipsModule | null; - /** An edge for our `MembershipsModule`. May be used by Relay 1. */ membershipsModuleEdge?: MembershipsModuleEdge | null; } export type DeleteMembershipsModulePayloadSelect = { @@ -16284,14 +15409,9 @@ export type DeleteMembershipsModulePayloadSelect = { }; }; export interface CreatePermissionsModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `PermissionsModule` that was created by this mutation. */ permissionsModule?: PermissionsModule | null; - /** An edge for our `PermissionsModule`. May be used by Relay 1. */ permissionsModuleEdge?: PermissionsModuleEdge | null; } export type CreatePermissionsModulePayloadSelect = { @@ -16304,14 +15424,9 @@ export type CreatePermissionsModulePayloadSelect = { }; }; export interface UpdatePermissionsModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `PermissionsModule` that was updated by this mutation. */ permissionsModule?: PermissionsModule | null; - /** An edge for our `PermissionsModule`. May be used by Relay 1. */ permissionsModuleEdge?: PermissionsModuleEdge | null; } export type UpdatePermissionsModulePayloadSelect = { @@ -16324,14 +15439,9 @@ export type UpdatePermissionsModulePayloadSelect = { }; }; export interface DeletePermissionsModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `PermissionsModule` that was deleted by this mutation. */ permissionsModule?: PermissionsModule | null; - /** An edge for our `PermissionsModule`. May be used by Relay 1. */ permissionsModuleEdge?: PermissionsModuleEdge | null; } export type DeletePermissionsModulePayloadSelect = { @@ -16344,14 +15454,9 @@ export type DeletePermissionsModulePayloadSelect = { }; }; export interface CreatePhoneNumbersModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `PhoneNumbersModule` that was created by this mutation. */ phoneNumbersModule?: PhoneNumbersModule | null; - /** An edge for our `PhoneNumbersModule`. May be used by Relay 1. */ phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; } export type CreatePhoneNumbersModulePayloadSelect = { @@ -16364,14 +15469,9 @@ export type CreatePhoneNumbersModulePayloadSelect = { }; }; export interface UpdatePhoneNumbersModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `PhoneNumbersModule` that was updated by this mutation. */ phoneNumbersModule?: PhoneNumbersModule | null; - /** An edge for our `PhoneNumbersModule`. May be used by Relay 1. */ phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; } export type UpdatePhoneNumbersModulePayloadSelect = { @@ -16384,14 +15484,9 @@ export type UpdatePhoneNumbersModulePayloadSelect = { }; }; export interface DeletePhoneNumbersModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `PhoneNumbersModule` that was deleted by this mutation. */ phoneNumbersModule?: PhoneNumbersModule | null; - /** An edge for our `PhoneNumbersModule`. May be used by Relay 1. */ phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; } export type DeletePhoneNumbersModulePayloadSelect = { @@ -16404,14 +15499,9 @@ export type DeletePhoneNumbersModulePayloadSelect = { }; }; export interface CreateProfilesModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `ProfilesModule` that was created by this mutation. */ profilesModule?: ProfilesModule | null; - /** An edge for our `ProfilesModule`. May be used by Relay 1. */ profilesModuleEdge?: ProfilesModuleEdge | null; } export type CreateProfilesModulePayloadSelect = { @@ -16424,14 +15514,9 @@ export type CreateProfilesModulePayloadSelect = { }; }; export interface UpdateProfilesModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `ProfilesModule` that was updated by this mutation. */ profilesModule?: ProfilesModule | null; - /** An edge for our `ProfilesModule`. May be used by Relay 1. */ profilesModuleEdge?: ProfilesModuleEdge | null; } export type UpdateProfilesModulePayloadSelect = { @@ -16444,14 +15529,9 @@ export type UpdateProfilesModulePayloadSelect = { }; }; export interface DeleteProfilesModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `ProfilesModule` that was deleted by this mutation. */ profilesModule?: ProfilesModule | null; - /** An edge for our `ProfilesModule`. May be used by Relay 1. */ profilesModuleEdge?: ProfilesModuleEdge | null; } export type DeleteProfilesModulePayloadSelect = { @@ -16464,14 +15544,9 @@ export type DeleteProfilesModulePayloadSelect = { }; }; export interface CreateRlsModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `RlsModule` that was created by this mutation. */ rlsModule?: RlsModule | null; - /** An edge for our `RlsModule`. May be used by Relay 1. */ rlsModuleEdge?: RlsModuleEdge | null; } export type CreateRlsModulePayloadSelect = { @@ -16484,14 +15559,9 @@ export type CreateRlsModulePayloadSelect = { }; }; export interface UpdateRlsModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `RlsModule` that was updated by this mutation. */ rlsModule?: RlsModule | null; - /** An edge for our `RlsModule`. May be used by Relay 1. */ rlsModuleEdge?: RlsModuleEdge | null; } export type UpdateRlsModulePayloadSelect = { @@ -16504,14 +15574,9 @@ export type UpdateRlsModulePayloadSelect = { }; }; export interface DeleteRlsModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `RlsModule` that was deleted by this mutation. */ rlsModule?: RlsModule | null; - /** An edge for our `RlsModule`. May be used by Relay 1. */ rlsModuleEdge?: RlsModuleEdge | null; } export type DeleteRlsModulePayloadSelect = { @@ -16524,14 +15589,9 @@ export type DeleteRlsModulePayloadSelect = { }; }; export interface CreateSecretsModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `SecretsModule` that was created by this mutation. */ secretsModule?: SecretsModule | null; - /** An edge for our `SecretsModule`. May be used by Relay 1. */ secretsModuleEdge?: SecretsModuleEdge | null; } export type CreateSecretsModulePayloadSelect = { @@ -16544,14 +15604,9 @@ export type CreateSecretsModulePayloadSelect = { }; }; export interface UpdateSecretsModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `SecretsModule` that was updated by this mutation. */ secretsModule?: SecretsModule | null; - /** An edge for our `SecretsModule`. May be used by Relay 1. */ secretsModuleEdge?: SecretsModuleEdge | null; } export type UpdateSecretsModulePayloadSelect = { @@ -16564,14 +15619,9 @@ export type UpdateSecretsModulePayloadSelect = { }; }; export interface DeleteSecretsModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `SecretsModule` that was deleted by this mutation. */ secretsModule?: SecretsModule | null; - /** An edge for our `SecretsModule`. May be used by Relay 1. */ secretsModuleEdge?: SecretsModuleEdge | null; } export type DeleteSecretsModulePayloadSelect = { @@ -16584,14 +15634,9 @@ export type DeleteSecretsModulePayloadSelect = { }; }; export interface CreateSessionsModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `SessionsModule` that was created by this mutation. */ sessionsModule?: SessionsModule | null; - /** An edge for our `SessionsModule`. May be used by Relay 1. */ sessionsModuleEdge?: SessionsModuleEdge | null; } export type CreateSessionsModulePayloadSelect = { @@ -16604,14 +15649,9 @@ export type CreateSessionsModulePayloadSelect = { }; }; export interface UpdateSessionsModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `SessionsModule` that was updated by this mutation. */ sessionsModule?: SessionsModule | null; - /** An edge for our `SessionsModule`. May be used by Relay 1. */ sessionsModuleEdge?: SessionsModuleEdge | null; } export type UpdateSessionsModulePayloadSelect = { @@ -16624,14 +15664,9 @@ export type UpdateSessionsModulePayloadSelect = { }; }; export interface DeleteSessionsModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `SessionsModule` that was deleted by this mutation. */ sessionsModule?: SessionsModule | null; - /** An edge for our `SessionsModule`. May be used by Relay 1. */ sessionsModuleEdge?: SessionsModuleEdge | null; } export type DeleteSessionsModulePayloadSelect = { @@ -16644,14 +15679,9 @@ export type DeleteSessionsModulePayloadSelect = { }; }; export interface CreateUserAuthModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `UserAuthModule` that was created by this mutation. */ userAuthModule?: UserAuthModule | null; - /** An edge for our `UserAuthModule`. May be used by Relay 1. */ userAuthModuleEdge?: UserAuthModuleEdge | null; } export type CreateUserAuthModulePayloadSelect = { @@ -16664,14 +15694,9 @@ export type CreateUserAuthModulePayloadSelect = { }; }; export interface UpdateUserAuthModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `UserAuthModule` that was updated by this mutation. */ userAuthModule?: UserAuthModule | null; - /** An edge for our `UserAuthModule`. May be used by Relay 1. */ userAuthModuleEdge?: UserAuthModuleEdge | null; } export type UpdateUserAuthModulePayloadSelect = { @@ -16684,14 +15709,9 @@ export type UpdateUserAuthModulePayloadSelect = { }; }; export interface DeleteUserAuthModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `UserAuthModule` that was deleted by this mutation. */ userAuthModule?: UserAuthModule | null; - /** An edge for our `UserAuthModule`. May be used by Relay 1. */ userAuthModuleEdge?: UserAuthModuleEdge | null; } export type DeleteUserAuthModulePayloadSelect = { @@ -16704,14 +15724,9 @@ export type DeleteUserAuthModulePayloadSelect = { }; }; export interface CreateUsersModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `UsersModule` that was created by this mutation. */ usersModule?: UsersModule | null; - /** An edge for our `UsersModule`. May be used by Relay 1. */ usersModuleEdge?: UsersModuleEdge | null; } export type CreateUsersModulePayloadSelect = { @@ -16724,14 +15739,9 @@ export type CreateUsersModulePayloadSelect = { }; }; export interface UpdateUsersModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `UsersModule` that was updated by this mutation. */ usersModule?: UsersModule | null; - /** An edge for our `UsersModule`. May be used by Relay 1. */ usersModuleEdge?: UsersModuleEdge | null; } export type UpdateUsersModulePayloadSelect = { @@ -16744,14 +15754,9 @@ export type UpdateUsersModulePayloadSelect = { }; }; export interface DeleteUsersModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `UsersModule` that was deleted by this mutation. */ usersModule?: UsersModule | null; - /** An edge for our `UsersModule`. May be used by Relay 1. */ usersModuleEdge?: UsersModuleEdge | null; } export type DeleteUsersModulePayloadSelect = { @@ -16764,14 +15769,9 @@ export type DeleteUsersModulePayloadSelect = { }; }; export interface CreateUuidModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `UuidModule` that was created by this mutation. */ uuidModule?: UuidModule | null; - /** An edge for our `UuidModule`. May be used by Relay 1. */ uuidModuleEdge?: UuidModuleEdge | null; } export type CreateUuidModulePayloadSelect = { @@ -16784,14 +15784,9 @@ export type CreateUuidModulePayloadSelect = { }; }; export interface UpdateUuidModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `UuidModule` that was updated by this mutation. */ uuidModule?: UuidModule | null; - /** An edge for our `UuidModule`. May be used by Relay 1. */ uuidModuleEdge?: UuidModuleEdge | null; } export type UpdateUuidModulePayloadSelect = { @@ -16804,14 +15799,9 @@ export type UpdateUuidModulePayloadSelect = { }; }; export interface DeleteUuidModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `UuidModule` that was deleted by this mutation. */ uuidModule?: UuidModule | null; - /** An edge for our `UuidModule`. May be used by Relay 1. */ uuidModuleEdge?: UuidModuleEdge | null; } export type DeleteUuidModulePayloadSelect = { @@ -16824,14 +15814,9 @@ export type DeleteUuidModulePayloadSelect = { }; }; export interface CreateDatabaseProvisionModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `DatabaseProvisionModule` that was created by this mutation. */ databaseProvisionModule?: DatabaseProvisionModule | null; - /** An edge for our `DatabaseProvisionModule`. May be used by Relay 1. */ databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; } export type CreateDatabaseProvisionModulePayloadSelect = { @@ -16844,14 +15829,9 @@ export type CreateDatabaseProvisionModulePayloadSelect = { }; }; export interface UpdateDatabaseProvisionModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `DatabaseProvisionModule` that was updated by this mutation. */ databaseProvisionModule?: DatabaseProvisionModule | null; - /** An edge for our `DatabaseProvisionModule`. May be used by Relay 1. */ databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; } export type UpdateDatabaseProvisionModulePayloadSelect = { @@ -16864,14 +15844,9 @@ export type UpdateDatabaseProvisionModulePayloadSelect = { }; }; export interface DeleteDatabaseProvisionModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `DatabaseProvisionModule` that was deleted by this mutation. */ databaseProvisionModule?: DatabaseProvisionModule | null; - /** An edge for our `DatabaseProvisionModule`. May be used by Relay 1. */ databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; } export type DeleteDatabaseProvisionModulePayloadSelect = { @@ -16884,14 +15859,9 @@ export type DeleteDatabaseProvisionModulePayloadSelect = { }; }; export interface CreateAppAdminGrantPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppAdminGrant` that was created by this mutation. */ appAdminGrant?: AppAdminGrant | null; - /** An edge for our `AppAdminGrant`. May be used by Relay 1. */ appAdminGrantEdge?: AppAdminGrantEdge | null; } export type CreateAppAdminGrantPayloadSelect = { @@ -16904,14 +15874,9 @@ export type CreateAppAdminGrantPayloadSelect = { }; }; export interface UpdateAppAdminGrantPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppAdminGrant` that was updated by this mutation. */ appAdminGrant?: AppAdminGrant | null; - /** An edge for our `AppAdminGrant`. May be used by Relay 1. */ appAdminGrantEdge?: AppAdminGrantEdge | null; } export type UpdateAppAdminGrantPayloadSelect = { @@ -16924,14 +15889,9 @@ export type UpdateAppAdminGrantPayloadSelect = { }; }; export interface DeleteAppAdminGrantPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppAdminGrant` that was deleted by this mutation. */ appAdminGrant?: AppAdminGrant | null; - /** An edge for our `AppAdminGrant`. May be used by Relay 1. */ appAdminGrantEdge?: AppAdminGrantEdge | null; } export type DeleteAppAdminGrantPayloadSelect = { @@ -16944,14 +15904,9 @@ export type DeleteAppAdminGrantPayloadSelect = { }; }; export interface CreateAppOwnerGrantPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppOwnerGrant` that was created by this mutation. */ appOwnerGrant?: AppOwnerGrant | null; - /** An edge for our `AppOwnerGrant`. May be used by Relay 1. */ appOwnerGrantEdge?: AppOwnerGrantEdge | null; } export type CreateAppOwnerGrantPayloadSelect = { @@ -16964,14 +15919,9 @@ export type CreateAppOwnerGrantPayloadSelect = { }; }; export interface UpdateAppOwnerGrantPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppOwnerGrant` that was updated by this mutation. */ appOwnerGrant?: AppOwnerGrant | null; - /** An edge for our `AppOwnerGrant`. May be used by Relay 1. */ appOwnerGrantEdge?: AppOwnerGrantEdge | null; } export type UpdateAppOwnerGrantPayloadSelect = { @@ -16984,14 +15934,9 @@ export type UpdateAppOwnerGrantPayloadSelect = { }; }; export interface DeleteAppOwnerGrantPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppOwnerGrant` that was deleted by this mutation. */ appOwnerGrant?: AppOwnerGrant | null; - /** An edge for our `AppOwnerGrant`. May be used by Relay 1. */ appOwnerGrantEdge?: AppOwnerGrantEdge | null; } export type DeleteAppOwnerGrantPayloadSelect = { @@ -17004,14 +15949,9 @@ export type DeleteAppOwnerGrantPayloadSelect = { }; }; export interface CreateAppGrantPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppGrant` that was created by this mutation. */ appGrant?: AppGrant | null; - /** An edge for our `AppGrant`. May be used by Relay 1. */ appGrantEdge?: AppGrantEdge | null; } export type CreateAppGrantPayloadSelect = { @@ -17024,14 +15964,9 @@ export type CreateAppGrantPayloadSelect = { }; }; export interface UpdateAppGrantPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppGrant` that was updated by this mutation. */ appGrant?: AppGrant | null; - /** An edge for our `AppGrant`. May be used by Relay 1. */ appGrantEdge?: AppGrantEdge | null; } export type UpdateAppGrantPayloadSelect = { @@ -17044,14 +15979,9 @@ export type UpdateAppGrantPayloadSelect = { }; }; export interface DeleteAppGrantPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppGrant` that was deleted by this mutation. */ appGrant?: AppGrant | null; - /** An edge for our `AppGrant`. May be used by Relay 1. */ appGrantEdge?: AppGrantEdge | null; } export type DeleteAppGrantPayloadSelect = { @@ -17064,14 +15994,9 @@ export type DeleteAppGrantPayloadSelect = { }; }; export interface CreateOrgMembershipPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgMembership` that was created by this mutation. */ orgMembership?: OrgMembership | null; - /** An edge for our `OrgMembership`. May be used by Relay 1. */ orgMembershipEdge?: OrgMembershipEdge | null; } export type CreateOrgMembershipPayloadSelect = { @@ -17084,14 +16009,9 @@ export type CreateOrgMembershipPayloadSelect = { }; }; export interface UpdateOrgMembershipPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgMembership` that was updated by this mutation. */ orgMembership?: OrgMembership | null; - /** An edge for our `OrgMembership`. May be used by Relay 1. */ orgMembershipEdge?: OrgMembershipEdge | null; } export type UpdateOrgMembershipPayloadSelect = { @@ -17104,14 +16024,9 @@ export type UpdateOrgMembershipPayloadSelect = { }; }; export interface DeleteOrgMembershipPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgMembership` that was deleted by this mutation. */ orgMembership?: OrgMembership | null; - /** An edge for our `OrgMembership`. May be used by Relay 1. */ orgMembershipEdge?: OrgMembershipEdge | null; } export type DeleteOrgMembershipPayloadSelect = { @@ -17124,14 +16039,9 @@ export type DeleteOrgMembershipPayloadSelect = { }; }; export interface CreateOrgMemberPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgMember` that was created by this mutation. */ orgMember?: OrgMember | null; - /** An edge for our `OrgMember`. May be used by Relay 1. */ orgMemberEdge?: OrgMemberEdge | null; } export type CreateOrgMemberPayloadSelect = { @@ -17144,14 +16054,9 @@ export type CreateOrgMemberPayloadSelect = { }; }; export interface UpdateOrgMemberPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgMember` that was updated by this mutation. */ orgMember?: OrgMember | null; - /** An edge for our `OrgMember`. May be used by Relay 1. */ orgMemberEdge?: OrgMemberEdge | null; } export type UpdateOrgMemberPayloadSelect = { @@ -17164,14 +16069,9 @@ export type UpdateOrgMemberPayloadSelect = { }; }; export interface DeleteOrgMemberPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgMember` that was deleted by this mutation. */ orgMember?: OrgMember | null; - /** An edge for our `OrgMember`. May be used by Relay 1. */ orgMemberEdge?: OrgMemberEdge | null; } export type DeleteOrgMemberPayloadSelect = { @@ -17184,14 +16084,9 @@ export type DeleteOrgMemberPayloadSelect = { }; }; export interface CreateOrgAdminGrantPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgAdminGrant` that was created by this mutation. */ orgAdminGrant?: OrgAdminGrant | null; - /** An edge for our `OrgAdminGrant`. May be used by Relay 1. */ orgAdminGrantEdge?: OrgAdminGrantEdge | null; } export type CreateOrgAdminGrantPayloadSelect = { @@ -17204,14 +16099,9 @@ export type CreateOrgAdminGrantPayloadSelect = { }; }; export interface UpdateOrgAdminGrantPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgAdminGrant` that was updated by this mutation. */ orgAdminGrant?: OrgAdminGrant | null; - /** An edge for our `OrgAdminGrant`. May be used by Relay 1. */ orgAdminGrantEdge?: OrgAdminGrantEdge | null; } export type UpdateOrgAdminGrantPayloadSelect = { @@ -17224,14 +16114,9 @@ export type UpdateOrgAdminGrantPayloadSelect = { }; }; export interface DeleteOrgAdminGrantPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgAdminGrant` that was deleted by this mutation. */ orgAdminGrant?: OrgAdminGrant | null; - /** An edge for our `OrgAdminGrant`. May be used by Relay 1. */ orgAdminGrantEdge?: OrgAdminGrantEdge | null; } export type DeleteOrgAdminGrantPayloadSelect = { @@ -17244,14 +16129,9 @@ export type DeleteOrgAdminGrantPayloadSelect = { }; }; export interface CreateOrgOwnerGrantPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgOwnerGrant` that was created by this mutation. */ orgOwnerGrant?: OrgOwnerGrant | null; - /** An edge for our `OrgOwnerGrant`. May be used by Relay 1. */ orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } export type CreateOrgOwnerGrantPayloadSelect = { @@ -17264,14 +16144,9 @@ export type CreateOrgOwnerGrantPayloadSelect = { }; }; export interface UpdateOrgOwnerGrantPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgOwnerGrant` that was updated by this mutation. */ orgOwnerGrant?: OrgOwnerGrant | null; - /** An edge for our `OrgOwnerGrant`. May be used by Relay 1. */ orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } export type UpdateOrgOwnerGrantPayloadSelect = { @@ -17284,14 +16159,9 @@ export type UpdateOrgOwnerGrantPayloadSelect = { }; }; export interface DeleteOrgOwnerGrantPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgOwnerGrant` that was deleted by this mutation. */ orgOwnerGrant?: OrgOwnerGrant | null; - /** An edge for our `OrgOwnerGrant`. May be used by Relay 1. */ orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } export type DeleteOrgOwnerGrantPayloadSelect = { @@ -17304,14 +16174,9 @@ export type DeleteOrgOwnerGrantPayloadSelect = { }; }; export interface CreateOrgGrantPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgGrant` that was created by this mutation. */ orgGrant?: OrgGrant | null; - /** An edge for our `OrgGrant`. May be used by Relay 1. */ orgGrantEdge?: OrgGrantEdge | null; } export type CreateOrgGrantPayloadSelect = { @@ -17324,14 +16189,9 @@ export type CreateOrgGrantPayloadSelect = { }; }; export interface UpdateOrgGrantPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgGrant` that was updated by this mutation. */ orgGrant?: OrgGrant | null; - /** An edge for our `OrgGrant`. May be used by Relay 1. */ orgGrantEdge?: OrgGrantEdge | null; } export type UpdateOrgGrantPayloadSelect = { @@ -17344,14 +16204,9 @@ export type UpdateOrgGrantPayloadSelect = { }; }; export interface DeleteOrgGrantPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgGrant` that was deleted by this mutation. */ orgGrant?: OrgGrant | null; - /** An edge for our `OrgGrant`. May be used by Relay 1. */ orgGrantEdge?: OrgGrantEdge | null; } export type DeleteOrgGrantPayloadSelect = { @@ -17364,14 +16219,9 @@ export type DeleteOrgGrantPayloadSelect = { }; }; export interface CreateAppLimitPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppLimit` that was created by this mutation. */ appLimit?: AppLimit | null; - /** An edge for our `AppLimit`. May be used by Relay 1. */ appLimitEdge?: AppLimitEdge | null; } export type CreateAppLimitPayloadSelect = { @@ -17384,14 +16234,9 @@ export type CreateAppLimitPayloadSelect = { }; }; export interface UpdateAppLimitPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppLimit` that was updated by this mutation. */ appLimit?: AppLimit | null; - /** An edge for our `AppLimit`. May be used by Relay 1. */ appLimitEdge?: AppLimitEdge | null; } export type UpdateAppLimitPayloadSelect = { @@ -17404,14 +16249,9 @@ export type UpdateAppLimitPayloadSelect = { }; }; export interface DeleteAppLimitPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppLimit` that was deleted by this mutation. */ appLimit?: AppLimit | null; - /** An edge for our `AppLimit`. May be used by Relay 1. */ appLimitEdge?: AppLimitEdge | null; } export type DeleteAppLimitPayloadSelect = { @@ -17424,14 +16264,9 @@ export type DeleteAppLimitPayloadSelect = { }; }; export interface CreateOrgLimitPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgLimit` that was created by this mutation. */ orgLimit?: OrgLimit | null; - /** An edge for our `OrgLimit`. May be used by Relay 1. */ orgLimitEdge?: OrgLimitEdge | null; } export type CreateOrgLimitPayloadSelect = { @@ -17444,14 +16279,9 @@ export type CreateOrgLimitPayloadSelect = { }; }; export interface UpdateOrgLimitPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgLimit` that was updated by this mutation. */ orgLimit?: OrgLimit | null; - /** An edge for our `OrgLimit`. May be used by Relay 1. */ orgLimitEdge?: OrgLimitEdge | null; } export type UpdateOrgLimitPayloadSelect = { @@ -17464,14 +16294,9 @@ export type UpdateOrgLimitPayloadSelect = { }; }; export interface DeleteOrgLimitPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgLimit` that was deleted by this mutation. */ orgLimit?: OrgLimit | null; - /** An edge for our `OrgLimit`. May be used by Relay 1. */ orgLimitEdge?: OrgLimitEdge | null; } export type DeleteOrgLimitPayloadSelect = { @@ -17484,14 +16309,9 @@ export type DeleteOrgLimitPayloadSelect = { }; }; export interface CreateAppStepPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppStep` that was created by this mutation. */ appStep?: AppStep | null; - /** An edge for our `AppStep`. May be used by Relay 1. */ appStepEdge?: AppStepEdge | null; } export type CreateAppStepPayloadSelect = { @@ -17504,14 +16324,9 @@ export type CreateAppStepPayloadSelect = { }; }; export interface UpdateAppStepPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppStep` that was updated by this mutation. */ appStep?: AppStep | null; - /** An edge for our `AppStep`. May be used by Relay 1. */ appStepEdge?: AppStepEdge | null; } export type UpdateAppStepPayloadSelect = { @@ -17524,14 +16339,9 @@ export type UpdateAppStepPayloadSelect = { }; }; export interface DeleteAppStepPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppStep` that was deleted by this mutation. */ appStep?: AppStep | null; - /** An edge for our `AppStep`. May be used by Relay 1. */ appStepEdge?: AppStepEdge | null; } export type DeleteAppStepPayloadSelect = { @@ -17544,14 +16354,9 @@ export type DeleteAppStepPayloadSelect = { }; }; export interface CreateAppAchievementPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppAchievement` that was created by this mutation. */ appAchievement?: AppAchievement | null; - /** An edge for our `AppAchievement`. May be used by Relay 1. */ appAchievementEdge?: AppAchievementEdge | null; } export type CreateAppAchievementPayloadSelect = { @@ -17564,14 +16369,9 @@ export type CreateAppAchievementPayloadSelect = { }; }; export interface UpdateAppAchievementPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppAchievement` that was updated by this mutation. */ appAchievement?: AppAchievement | null; - /** An edge for our `AppAchievement`. May be used by Relay 1. */ appAchievementEdge?: AppAchievementEdge | null; } export type UpdateAppAchievementPayloadSelect = { @@ -17584,14 +16384,9 @@ export type UpdateAppAchievementPayloadSelect = { }; }; export interface DeleteAppAchievementPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppAchievement` that was deleted by this mutation. */ appAchievement?: AppAchievement | null; - /** An edge for our `AppAchievement`. May be used by Relay 1. */ appAchievementEdge?: AppAchievementEdge | null; } export type DeleteAppAchievementPayloadSelect = { @@ -17604,14 +16399,9 @@ export type DeleteAppAchievementPayloadSelect = { }; }; export interface CreateInvitePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Invite` that was created by this mutation. */ invite?: Invite | null; - /** An edge for our `Invite`. May be used by Relay 1. */ inviteEdge?: InviteEdge | null; } export type CreateInvitePayloadSelect = { @@ -17624,14 +16414,9 @@ export type CreateInvitePayloadSelect = { }; }; export interface UpdateInvitePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Invite` that was updated by this mutation. */ invite?: Invite | null; - /** An edge for our `Invite`. May be used by Relay 1. */ inviteEdge?: InviteEdge | null; } export type UpdateInvitePayloadSelect = { @@ -17644,14 +16429,9 @@ export type UpdateInvitePayloadSelect = { }; }; export interface DeleteInvitePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Invite` that was deleted by this mutation. */ invite?: Invite | null; - /** An edge for our `Invite`. May be used by Relay 1. */ inviteEdge?: InviteEdge | null; } export type DeleteInvitePayloadSelect = { @@ -17664,14 +16444,9 @@ export type DeleteInvitePayloadSelect = { }; }; export interface CreateClaimedInvitePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `ClaimedInvite` that was created by this mutation. */ claimedInvite?: ClaimedInvite | null; - /** An edge for our `ClaimedInvite`. May be used by Relay 1. */ claimedInviteEdge?: ClaimedInviteEdge | null; } export type CreateClaimedInvitePayloadSelect = { @@ -17684,14 +16459,9 @@ export type CreateClaimedInvitePayloadSelect = { }; }; export interface UpdateClaimedInvitePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `ClaimedInvite` that was updated by this mutation. */ claimedInvite?: ClaimedInvite | null; - /** An edge for our `ClaimedInvite`. May be used by Relay 1. */ claimedInviteEdge?: ClaimedInviteEdge | null; } export type UpdateClaimedInvitePayloadSelect = { @@ -17704,14 +16474,9 @@ export type UpdateClaimedInvitePayloadSelect = { }; }; export interface DeleteClaimedInvitePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `ClaimedInvite` that was deleted by this mutation. */ claimedInvite?: ClaimedInvite | null; - /** An edge for our `ClaimedInvite`. May be used by Relay 1. */ claimedInviteEdge?: ClaimedInviteEdge | null; } export type DeleteClaimedInvitePayloadSelect = { @@ -17724,14 +16489,9 @@ export type DeleteClaimedInvitePayloadSelect = { }; }; export interface CreateOrgInvitePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgInvite` that was created by this mutation. */ orgInvite?: OrgInvite | null; - /** An edge for our `OrgInvite`. May be used by Relay 1. */ orgInviteEdge?: OrgInviteEdge | null; } export type CreateOrgInvitePayloadSelect = { @@ -17744,14 +16504,9 @@ export type CreateOrgInvitePayloadSelect = { }; }; export interface UpdateOrgInvitePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgInvite` that was updated by this mutation. */ orgInvite?: OrgInvite | null; - /** An edge for our `OrgInvite`. May be used by Relay 1. */ orgInviteEdge?: OrgInviteEdge | null; } export type UpdateOrgInvitePayloadSelect = { @@ -17764,14 +16519,9 @@ export type UpdateOrgInvitePayloadSelect = { }; }; export interface DeleteOrgInvitePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgInvite` that was deleted by this mutation. */ orgInvite?: OrgInvite | null; - /** An edge for our `OrgInvite`. May be used by Relay 1. */ orgInviteEdge?: OrgInviteEdge | null; } export type DeleteOrgInvitePayloadSelect = { @@ -17784,14 +16534,9 @@ export type DeleteOrgInvitePayloadSelect = { }; }; export interface CreateOrgClaimedInvitePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgClaimedInvite` that was created by this mutation. */ orgClaimedInvite?: OrgClaimedInvite | null; - /** An edge for our `OrgClaimedInvite`. May be used by Relay 1. */ orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; } export type CreateOrgClaimedInvitePayloadSelect = { @@ -17804,14 +16549,9 @@ export type CreateOrgClaimedInvitePayloadSelect = { }; }; export interface UpdateOrgClaimedInvitePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgClaimedInvite` that was updated by this mutation. */ orgClaimedInvite?: OrgClaimedInvite | null; - /** An edge for our `OrgClaimedInvite`. May be used by Relay 1. */ orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; } export type UpdateOrgClaimedInvitePayloadSelect = { @@ -17824,14 +16564,9 @@ export type UpdateOrgClaimedInvitePayloadSelect = { }; }; export interface DeleteOrgClaimedInvitePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgClaimedInvite` that was deleted by this mutation. */ orgClaimedInvite?: OrgClaimedInvite | null; - /** An edge for our `OrgClaimedInvite`. May be used by Relay 1. */ orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; } export type DeleteOrgClaimedInvitePayloadSelect = { @@ -17844,14 +16579,9 @@ export type DeleteOrgClaimedInvitePayloadSelect = { }; }; export interface CreateAppPermissionDefaultPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppPermissionDefault` that was created by this mutation. */ appPermissionDefault?: AppPermissionDefault | null; - /** An edge for our `AppPermissionDefault`. May be used by Relay 1. */ appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; } export type CreateAppPermissionDefaultPayloadSelect = { @@ -17864,14 +16594,9 @@ export type CreateAppPermissionDefaultPayloadSelect = { }; }; export interface UpdateAppPermissionDefaultPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppPermissionDefault` that was updated by this mutation. */ appPermissionDefault?: AppPermissionDefault | null; - /** An edge for our `AppPermissionDefault`. May be used by Relay 1. */ appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; } export type UpdateAppPermissionDefaultPayloadSelect = { @@ -17884,14 +16609,9 @@ export type UpdateAppPermissionDefaultPayloadSelect = { }; }; export interface DeleteAppPermissionDefaultPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppPermissionDefault` that was deleted by this mutation. */ appPermissionDefault?: AppPermissionDefault | null; - /** An edge for our `AppPermissionDefault`. May be used by Relay 1. */ appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; } export type DeleteAppPermissionDefaultPayloadSelect = { @@ -17904,14 +16624,9 @@ export type DeleteAppPermissionDefaultPayloadSelect = { }; }; export interface CreateRefPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Ref` that was created by this mutation. */ ref?: Ref | null; - /** An edge for our `Ref`. May be used by Relay 1. */ refEdge?: RefEdge | null; } export type CreateRefPayloadSelect = { @@ -17924,14 +16639,9 @@ export type CreateRefPayloadSelect = { }; }; export interface UpdateRefPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Ref` that was updated by this mutation. */ ref?: Ref | null; - /** An edge for our `Ref`. May be used by Relay 1. */ refEdge?: RefEdge | null; } export type UpdateRefPayloadSelect = { @@ -17944,14 +16654,9 @@ export type UpdateRefPayloadSelect = { }; }; export interface DeleteRefPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Ref` that was deleted by this mutation. */ ref?: Ref | null; - /** An edge for our `Ref`. May be used by Relay 1. */ refEdge?: RefEdge | null; } export type DeleteRefPayloadSelect = { @@ -17964,14 +16669,9 @@ export type DeleteRefPayloadSelect = { }; }; export interface CreateStorePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Store` that was created by this mutation. */ store?: Store | null; - /** An edge for our `Store`. May be used by Relay 1. */ storeEdge?: StoreEdge | null; } export type CreateStorePayloadSelect = { @@ -17984,14 +16684,9 @@ export type CreateStorePayloadSelect = { }; }; export interface UpdateStorePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Store` that was updated by this mutation. */ store?: Store | null; - /** An edge for our `Store`. May be used by Relay 1. */ storeEdge?: StoreEdge | null; } export type UpdateStorePayloadSelect = { @@ -18004,14 +16699,9 @@ export type UpdateStorePayloadSelect = { }; }; export interface DeleteStorePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Store` that was deleted by this mutation. */ store?: Store | null; - /** An edge for our `Store`. May be used by Relay 1. */ storeEdge?: StoreEdge | null; } export type DeleteStorePayloadSelect = { @@ -18024,14 +16714,9 @@ export type DeleteStorePayloadSelect = { }; }; export interface CreateRoleTypePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `RoleType` that was created by this mutation. */ roleType?: RoleType | null; - /** An edge for our `RoleType`. May be used by Relay 1. */ roleTypeEdge?: RoleTypeEdge | null; } export type CreateRoleTypePayloadSelect = { @@ -18044,14 +16729,9 @@ export type CreateRoleTypePayloadSelect = { }; }; export interface UpdateRoleTypePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `RoleType` that was updated by this mutation. */ roleType?: RoleType | null; - /** An edge for our `RoleType`. May be used by Relay 1. */ roleTypeEdge?: RoleTypeEdge | null; } export type UpdateRoleTypePayloadSelect = { @@ -18064,14 +16744,9 @@ export type UpdateRoleTypePayloadSelect = { }; }; export interface DeleteRoleTypePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `RoleType` that was deleted by this mutation. */ roleType?: RoleType | null; - /** An edge for our `RoleType`. May be used by Relay 1. */ roleTypeEdge?: RoleTypeEdge | null; } export type DeleteRoleTypePayloadSelect = { @@ -18084,14 +16759,9 @@ export type DeleteRoleTypePayloadSelect = { }; }; export interface CreateOrgPermissionDefaultPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgPermissionDefault` that was created by this mutation. */ orgPermissionDefault?: OrgPermissionDefault | null; - /** An edge for our `OrgPermissionDefault`. May be used by Relay 1. */ orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; } export type CreateOrgPermissionDefaultPayloadSelect = { @@ -18104,14 +16774,9 @@ export type CreateOrgPermissionDefaultPayloadSelect = { }; }; export interface UpdateOrgPermissionDefaultPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgPermissionDefault` that was updated by this mutation. */ orgPermissionDefault?: OrgPermissionDefault | null; - /** An edge for our `OrgPermissionDefault`. May be used by Relay 1. */ orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; } export type UpdateOrgPermissionDefaultPayloadSelect = { @@ -18124,14 +16789,9 @@ export type UpdateOrgPermissionDefaultPayloadSelect = { }; }; export interface DeleteOrgPermissionDefaultPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgPermissionDefault` that was deleted by this mutation. */ orgPermissionDefault?: OrgPermissionDefault | null; - /** An edge for our `OrgPermissionDefault`. May be used by Relay 1. */ orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; } export type DeleteOrgPermissionDefaultPayloadSelect = { @@ -18144,14 +16804,9 @@ export type DeleteOrgPermissionDefaultPayloadSelect = { }; }; export interface CreateAppLimitDefaultPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppLimitDefault` that was created by this mutation. */ appLimitDefault?: AppLimitDefault | null; - /** An edge for our `AppLimitDefault`. May be used by Relay 1. */ appLimitDefaultEdge?: AppLimitDefaultEdge | null; } export type CreateAppLimitDefaultPayloadSelect = { @@ -18164,14 +16819,9 @@ export type CreateAppLimitDefaultPayloadSelect = { }; }; export interface UpdateAppLimitDefaultPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppLimitDefault` that was updated by this mutation. */ appLimitDefault?: AppLimitDefault | null; - /** An edge for our `AppLimitDefault`. May be used by Relay 1. */ appLimitDefaultEdge?: AppLimitDefaultEdge | null; } export type UpdateAppLimitDefaultPayloadSelect = { @@ -18184,14 +16834,9 @@ export type UpdateAppLimitDefaultPayloadSelect = { }; }; export interface DeleteAppLimitDefaultPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppLimitDefault` that was deleted by this mutation. */ appLimitDefault?: AppLimitDefault | null; - /** An edge for our `AppLimitDefault`. May be used by Relay 1. */ appLimitDefaultEdge?: AppLimitDefaultEdge | null; } export type DeleteAppLimitDefaultPayloadSelect = { @@ -18204,14 +16849,9 @@ export type DeleteAppLimitDefaultPayloadSelect = { }; }; export interface CreateOrgLimitDefaultPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgLimitDefault` that was created by this mutation. */ orgLimitDefault?: OrgLimitDefault | null; - /** An edge for our `OrgLimitDefault`. May be used by Relay 1. */ orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; } export type CreateOrgLimitDefaultPayloadSelect = { @@ -18224,14 +16864,9 @@ export type CreateOrgLimitDefaultPayloadSelect = { }; }; export interface UpdateOrgLimitDefaultPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgLimitDefault` that was updated by this mutation. */ orgLimitDefault?: OrgLimitDefault | null; - /** An edge for our `OrgLimitDefault`. May be used by Relay 1. */ orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; } export type UpdateOrgLimitDefaultPayloadSelect = { @@ -18244,14 +16879,9 @@ export type UpdateOrgLimitDefaultPayloadSelect = { }; }; export interface DeleteOrgLimitDefaultPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgLimitDefault` that was deleted by this mutation. */ orgLimitDefault?: OrgLimitDefault | null; - /** An edge for our `OrgLimitDefault`. May be used by Relay 1. */ orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; } export type DeleteOrgLimitDefaultPayloadSelect = { @@ -18264,14 +16894,9 @@ export type DeleteOrgLimitDefaultPayloadSelect = { }; }; export interface CreateCryptoAddressPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `CryptoAddress` that was created by this mutation. */ cryptoAddress?: CryptoAddress | null; - /** An edge for our `CryptoAddress`. May be used by Relay 1. */ cryptoAddressEdge?: CryptoAddressEdge | null; } export type CreateCryptoAddressPayloadSelect = { @@ -18284,14 +16909,9 @@ export type CreateCryptoAddressPayloadSelect = { }; }; export interface UpdateCryptoAddressPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `CryptoAddress` that was updated by this mutation. */ cryptoAddress?: CryptoAddress | null; - /** An edge for our `CryptoAddress`. May be used by Relay 1. */ cryptoAddressEdge?: CryptoAddressEdge | null; } export type UpdateCryptoAddressPayloadSelect = { @@ -18304,14 +16924,9 @@ export type UpdateCryptoAddressPayloadSelect = { }; }; export interface DeleteCryptoAddressPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `CryptoAddress` that was deleted by this mutation. */ cryptoAddress?: CryptoAddress | null; - /** An edge for our `CryptoAddress`. May be used by Relay 1. */ cryptoAddressEdge?: CryptoAddressEdge | null; } export type DeleteCryptoAddressPayloadSelect = { @@ -18324,14 +16939,9 @@ export type DeleteCryptoAddressPayloadSelect = { }; }; export interface CreateMembershipTypePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `MembershipType` that was created by this mutation. */ membershipType?: MembershipType | null; - /** An edge for our `MembershipType`. May be used by Relay 1. */ membershipTypeEdge?: MembershipTypeEdge | null; } export type CreateMembershipTypePayloadSelect = { @@ -18344,14 +16954,9 @@ export type CreateMembershipTypePayloadSelect = { }; }; export interface UpdateMembershipTypePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `MembershipType` that was updated by this mutation. */ membershipType?: MembershipType | null; - /** An edge for our `MembershipType`. May be used by Relay 1. */ membershipTypeEdge?: MembershipTypeEdge | null; } export type UpdateMembershipTypePayloadSelect = { @@ -18364,14 +16969,9 @@ export type UpdateMembershipTypePayloadSelect = { }; }; export interface DeleteMembershipTypePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `MembershipType` that was deleted by this mutation. */ membershipType?: MembershipType | null; - /** An edge for our `MembershipType`. May be used by Relay 1. */ membershipTypeEdge?: MembershipTypeEdge | null; } export type DeleteMembershipTypePayloadSelect = { @@ -18384,14 +16984,9 @@ export type DeleteMembershipTypePayloadSelect = { }; }; export interface CreateConnectedAccountPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `ConnectedAccount` that was created by this mutation. */ connectedAccount?: ConnectedAccount | null; - /** An edge for our `ConnectedAccount`. May be used by Relay 1. */ connectedAccountEdge?: ConnectedAccountEdge | null; } export type CreateConnectedAccountPayloadSelect = { @@ -18404,14 +16999,9 @@ export type CreateConnectedAccountPayloadSelect = { }; }; export interface UpdateConnectedAccountPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `ConnectedAccount` that was updated by this mutation. */ connectedAccount?: ConnectedAccount | null; - /** An edge for our `ConnectedAccount`. May be used by Relay 1. */ connectedAccountEdge?: ConnectedAccountEdge | null; } export type UpdateConnectedAccountPayloadSelect = { @@ -18424,14 +17014,9 @@ export type UpdateConnectedAccountPayloadSelect = { }; }; export interface DeleteConnectedAccountPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `ConnectedAccount` that was deleted by this mutation. */ connectedAccount?: ConnectedAccount | null; - /** An edge for our `ConnectedAccount`. May be used by Relay 1. */ connectedAccountEdge?: ConnectedAccountEdge | null; } export type DeleteConnectedAccountPayloadSelect = { @@ -18444,14 +17029,9 @@ export type DeleteConnectedAccountPayloadSelect = { }; }; export interface CreatePhoneNumberPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `PhoneNumber` that was created by this mutation. */ phoneNumber?: PhoneNumber | null; - /** An edge for our `PhoneNumber`. May be used by Relay 1. */ phoneNumberEdge?: PhoneNumberEdge | null; } export type CreatePhoneNumberPayloadSelect = { @@ -18464,14 +17044,9 @@ export type CreatePhoneNumberPayloadSelect = { }; }; export interface UpdatePhoneNumberPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `PhoneNumber` that was updated by this mutation. */ phoneNumber?: PhoneNumber | null; - /** An edge for our `PhoneNumber`. May be used by Relay 1. */ phoneNumberEdge?: PhoneNumberEdge | null; } export type UpdatePhoneNumberPayloadSelect = { @@ -18484,14 +17059,9 @@ export type UpdatePhoneNumberPayloadSelect = { }; }; export interface DeletePhoneNumberPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `PhoneNumber` that was deleted by this mutation. */ phoneNumber?: PhoneNumber | null; - /** An edge for our `PhoneNumber`. May be used by Relay 1. */ phoneNumberEdge?: PhoneNumberEdge | null; } export type DeletePhoneNumberPayloadSelect = { @@ -18504,14 +17074,9 @@ export type DeletePhoneNumberPayloadSelect = { }; }; export interface CreateAppMembershipDefaultPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppMembershipDefault` that was created by this mutation. */ appMembershipDefault?: AppMembershipDefault | null; - /** An edge for our `AppMembershipDefault`. May be used by Relay 1. */ appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; } export type CreateAppMembershipDefaultPayloadSelect = { @@ -18524,14 +17089,9 @@ export type CreateAppMembershipDefaultPayloadSelect = { }; }; export interface UpdateAppMembershipDefaultPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppMembershipDefault` that was updated by this mutation. */ appMembershipDefault?: AppMembershipDefault | null; - /** An edge for our `AppMembershipDefault`. May be used by Relay 1. */ appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; } export type UpdateAppMembershipDefaultPayloadSelect = { @@ -18544,14 +17104,9 @@ export type UpdateAppMembershipDefaultPayloadSelect = { }; }; export interface DeleteAppMembershipDefaultPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppMembershipDefault` that was deleted by this mutation. */ appMembershipDefault?: AppMembershipDefault | null; - /** An edge for our `AppMembershipDefault`. May be used by Relay 1. */ appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; } export type DeleteAppMembershipDefaultPayloadSelect = { @@ -18564,14 +17119,9 @@ export type DeleteAppMembershipDefaultPayloadSelect = { }; }; export interface CreateNodeTypeRegistryPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `NodeTypeRegistry` that was created by this mutation. */ nodeTypeRegistry?: NodeTypeRegistry | null; - /** An edge for our `NodeTypeRegistry`. May be used by Relay 1. */ nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; } export type CreateNodeTypeRegistryPayloadSelect = { @@ -18584,14 +17134,9 @@ export type CreateNodeTypeRegistryPayloadSelect = { }; }; export interface UpdateNodeTypeRegistryPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `NodeTypeRegistry` that was updated by this mutation. */ nodeTypeRegistry?: NodeTypeRegistry | null; - /** An edge for our `NodeTypeRegistry`. May be used by Relay 1. */ nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; } export type UpdateNodeTypeRegistryPayloadSelect = { @@ -18604,14 +17149,9 @@ export type UpdateNodeTypeRegistryPayloadSelect = { }; }; export interface DeleteNodeTypeRegistryPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `NodeTypeRegistry` that was deleted by this mutation. */ nodeTypeRegistry?: NodeTypeRegistry | null; - /** An edge for our `NodeTypeRegistry`. May be used by Relay 1. */ nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; } export type DeleteNodeTypeRegistryPayloadSelect = { @@ -18624,14 +17164,9 @@ export type DeleteNodeTypeRegistryPayloadSelect = { }; }; export interface CreateCommitPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Commit` that was created by this mutation. */ commit?: Commit | null; - /** An edge for our `Commit`. May be used by Relay 1. */ commitEdge?: CommitEdge | null; } export type CreateCommitPayloadSelect = { @@ -18644,14 +17179,9 @@ export type CreateCommitPayloadSelect = { }; }; export interface UpdateCommitPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Commit` that was updated by this mutation. */ commit?: Commit | null; - /** An edge for our `Commit`. May be used by Relay 1. */ commitEdge?: CommitEdge | null; } export type UpdateCommitPayloadSelect = { @@ -18664,14 +17194,9 @@ export type UpdateCommitPayloadSelect = { }; }; export interface DeleteCommitPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Commit` that was deleted by this mutation. */ commit?: Commit | null; - /** An edge for our `Commit`. May be used by Relay 1. */ commitEdge?: CommitEdge | null; } export type DeleteCommitPayloadSelect = { @@ -18684,14 +17209,9 @@ export type DeleteCommitPayloadSelect = { }; }; export interface CreateOrgMembershipDefaultPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgMembershipDefault` that was created by this mutation. */ orgMembershipDefault?: OrgMembershipDefault | null; - /** An edge for our `OrgMembershipDefault`. May be used by Relay 1. */ orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; } export type CreateOrgMembershipDefaultPayloadSelect = { @@ -18704,14 +17224,9 @@ export type CreateOrgMembershipDefaultPayloadSelect = { }; }; export interface UpdateOrgMembershipDefaultPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgMembershipDefault` that was updated by this mutation. */ orgMembershipDefault?: OrgMembershipDefault | null; - /** An edge for our `OrgMembershipDefault`. May be used by Relay 1. */ orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; } export type UpdateOrgMembershipDefaultPayloadSelect = { @@ -18724,14 +17239,9 @@ export type UpdateOrgMembershipDefaultPayloadSelect = { }; }; export interface DeleteOrgMembershipDefaultPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `OrgMembershipDefault` that was deleted by this mutation. */ orgMembershipDefault?: OrgMembershipDefault | null; - /** An edge for our `OrgMembershipDefault`. May be used by Relay 1. */ orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; } export type DeleteOrgMembershipDefaultPayloadSelect = { @@ -18744,14 +17254,9 @@ export type DeleteOrgMembershipDefaultPayloadSelect = { }; }; export interface CreateEmailPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Email` that was created by this mutation. */ email?: Email | null; - /** An edge for our `Email`. May be used by Relay 1. */ emailEdge?: EmailEdge | null; } export type CreateEmailPayloadSelect = { @@ -18764,14 +17269,9 @@ export type CreateEmailPayloadSelect = { }; }; export interface UpdateEmailPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Email` that was updated by this mutation. */ email?: Email | null; - /** An edge for our `Email`. May be used by Relay 1. */ emailEdge?: EmailEdge | null; } export type UpdateEmailPayloadSelect = { @@ -18784,14 +17284,9 @@ export type UpdateEmailPayloadSelect = { }; }; export interface DeleteEmailPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `Email` that was deleted by this mutation. */ email?: Email | null; - /** An edge for our `Email`. May be used by Relay 1. */ emailEdge?: EmailEdge | null; } export type DeleteEmailPayloadSelect = { @@ -18804,14 +17299,9 @@ export type DeleteEmailPayloadSelect = { }; }; export interface CreateAuditLogPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AuditLog` that was created by this mutation. */ auditLog?: AuditLog | null; - /** An edge for our `AuditLog`. May be used by Relay 1. */ auditLogEdge?: AuditLogEdge | null; } export type CreateAuditLogPayloadSelect = { @@ -18824,14 +17314,9 @@ export type CreateAuditLogPayloadSelect = { }; }; export interface UpdateAuditLogPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AuditLog` that was updated by this mutation. */ auditLog?: AuditLog | null; - /** An edge for our `AuditLog`. May be used by Relay 1. */ auditLogEdge?: AuditLogEdge | null; } export type UpdateAuditLogPayloadSelect = { @@ -18844,14 +17329,9 @@ export type UpdateAuditLogPayloadSelect = { }; }; export interface DeleteAuditLogPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AuditLog` that was deleted by this mutation. */ auditLog?: AuditLog | null; - /** An edge for our `AuditLog`. May be used by Relay 1. */ auditLogEdge?: AuditLogEdge | null; } export type DeleteAuditLogPayloadSelect = { @@ -18864,14 +17344,9 @@ export type DeleteAuditLogPayloadSelect = { }; }; export interface CreateAppLevelPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppLevel` that was created by this mutation. */ appLevel?: AppLevel | null; - /** An edge for our `AppLevel`. May be used by Relay 1. */ appLevelEdge?: AppLevelEdge | null; } export type CreateAppLevelPayloadSelect = { @@ -18884,14 +17359,9 @@ export type CreateAppLevelPayloadSelect = { }; }; export interface UpdateAppLevelPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppLevel` that was updated by this mutation. */ appLevel?: AppLevel | null; - /** An edge for our `AppLevel`. May be used by Relay 1. */ appLevelEdge?: AppLevelEdge | null; } export type UpdateAppLevelPayloadSelect = { @@ -18904,14 +17374,9 @@ export type UpdateAppLevelPayloadSelect = { }; }; export interface DeleteAppLevelPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppLevel` that was deleted by this mutation. */ appLevel?: AppLevel | null; - /** An edge for our `AppLevel`. May be used by Relay 1. */ appLevelEdge?: AppLevelEdge | null; } export type DeleteAppLevelPayloadSelect = { @@ -18924,10 +17389,6 @@ export type DeleteAppLevelPayloadSelect = { }; }; export interface CreateSqlMigrationPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `SqlMigration` that was created by this mutation. */ sqlMigration?: SqlMigration | null; @@ -18939,10 +17400,6 @@ export type CreateSqlMigrationPayloadSelect = { }; }; export interface CreateAstMigrationPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AstMigration` that was created by this mutation. */ astMigration?: AstMigration | null; @@ -18954,14 +17411,9 @@ export type CreateAstMigrationPayloadSelect = { }; }; export interface CreateAppMembershipPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppMembership` that was created by this mutation. */ appMembership?: AppMembership | null; - /** An edge for our `AppMembership`. May be used by Relay 1. */ appMembershipEdge?: AppMembershipEdge | null; } export type CreateAppMembershipPayloadSelect = { @@ -18974,14 +17426,9 @@ export type CreateAppMembershipPayloadSelect = { }; }; export interface UpdateAppMembershipPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppMembership` that was updated by this mutation. */ appMembership?: AppMembership | null; - /** An edge for our `AppMembership`. May be used by Relay 1. */ appMembershipEdge?: AppMembershipEdge | null; } export type UpdateAppMembershipPayloadSelect = { @@ -18994,14 +17441,9 @@ export type UpdateAppMembershipPayloadSelect = { }; }; export interface DeleteAppMembershipPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `AppMembership` that was deleted by this mutation. */ appMembership?: AppMembership | null; - /** An edge for our `AppMembership`. May be used by Relay 1. */ appMembershipEdge?: AppMembershipEdge | null; } export type DeleteAppMembershipPayloadSelect = { @@ -19014,14 +17456,9 @@ export type DeleteAppMembershipPayloadSelect = { }; }; export interface CreateUserPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `User` that was created by this mutation. */ user?: User | null; - /** An edge for our `User`. May be used by Relay 1. */ userEdge?: UserEdge | null; } export type CreateUserPayloadSelect = { @@ -19034,14 +17471,9 @@ export type CreateUserPayloadSelect = { }; }; export interface UpdateUserPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `User` that was updated by this mutation. */ user?: User | null; - /** An edge for our `User`. May be used by Relay 1. */ userEdge?: UserEdge | null; } export type UpdateUserPayloadSelect = { @@ -19054,14 +17486,9 @@ export type UpdateUserPayloadSelect = { }; }; export interface DeleteUserPayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `User` that was deleted by this mutation. */ user?: User | null; - /** An edge for our `User`. May be used by Relay 1. */ userEdge?: UserEdge | null; } export type DeleteUserPayloadSelect = { @@ -19074,14 +17501,9 @@ export type DeleteUserPayloadSelect = { }; }; export interface CreateHierarchyModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `HierarchyModule` that was created by this mutation. */ hierarchyModule?: HierarchyModule | null; - /** An edge for our `HierarchyModule`. May be used by Relay 1. */ hierarchyModuleEdge?: HierarchyModuleEdge | null; } export type CreateHierarchyModulePayloadSelect = { @@ -19094,14 +17516,9 @@ export type CreateHierarchyModulePayloadSelect = { }; }; export interface UpdateHierarchyModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `HierarchyModule` that was updated by this mutation. */ hierarchyModule?: HierarchyModule | null; - /** An edge for our `HierarchyModule`. May be used by Relay 1. */ hierarchyModuleEdge?: HierarchyModuleEdge | null; } export type UpdateHierarchyModulePayloadSelect = { @@ -19114,14 +17531,9 @@ export type UpdateHierarchyModulePayloadSelect = { }; }; export interface DeleteHierarchyModulePayload { - /** - * The exact same `clientMutationId` that was provided in the mutation input, - * unchanged and unused. May be used by a client to track mutations. - */ clientMutationId?: string | null; /** The `HierarchyModule` that was deleted by this mutation. */ hierarchyModule?: HierarchyModule | null; - /** An edge for our `HierarchyModule`. May be used by Relay 1. */ hierarchyModuleEdge?: HierarchyModuleEdge | null; } export type DeleteHierarchyModulePayloadSelect = { @@ -19135,7 +17547,6 @@ export type DeleteHierarchyModulePayloadSelect = { }; /** A `AppPermission` edge in the connection. */ export interface AppPermissionEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `AppPermission` at the end of the edge. */ node?: AppPermission | null; @@ -19165,7 +17576,6 @@ export type PageInfoSelect = { }; /** A `OrgPermission` edge in the connection. */ export interface OrgPermissionEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `OrgPermission` at the end of the edge. */ node?: OrgPermission | null; @@ -19178,7 +17588,6 @@ export type OrgPermissionEdgeSelect = { }; /** A `Object` edge in the connection. */ export interface ObjectEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `Object` at the end of the edge. */ node?: Object | null; @@ -19191,7 +17600,6 @@ export type ObjectEdgeSelect = { }; /** A `AppLevelRequirement` edge in the connection. */ export interface AppLevelRequirementEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `AppLevelRequirement` at the end of the edge. */ node?: AppLevelRequirement | null; @@ -19322,7 +17730,6 @@ export type SessionSelect = { }; /** A `Database` edge in the connection. */ export interface DatabaseEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `Database` at the end of the edge. */ node?: Database | null; @@ -19335,7 +17742,6 @@ export type DatabaseEdgeSelect = { }; /** A `Schema` edge in the connection. */ export interface SchemaEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `Schema` at the end of the edge. */ node?: Schema | null; @@ -19348,7 +17754,6 @@ export type SchemaEdgeSelect = { }; /** A `Table` edge in the connection. */ export interface TableEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `Table` at the end of the edge. */ node?: Table | null; @@ -19361,7 +17766,6 @@ export type TableEdgeSelect = { }; /** A `CheckConstraint` edge in the connection. */ export interface CheckConstraintEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `CheckConstraint` at the end of the edge. */ node?: CheckConstraint | null; @@ -19374,7 +17778,6 @@ export type CheckConstraintEdgeSelect = { }; /** A `Field` edge in the connection. */ export interface FieldEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `Field` at the end of the edge. */ node?: Field | null; @@ -19387,7 +17790,6 @@ export type FieldEdgeSelect = { }; /** A `ForeignKeyConstraint` edge in the connection. */ export interface ForeignKeyConstraintEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `ForeignKeyConstraint` at the end of the edge. */ node?: ForeignKeyConstraint | null; @@ -19400,7 +17802,6 @@ export type ForeignKeyConstraintEdgeSelect = { }; /** A `FullTextSearch` edge in the connection. */ export interface FullTextSearchEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `FullTextSearch` at the end of the edge. */ node?: FullTextSearch | null; @@ -19413,7 +17814,6 @@ export type FullTextSearchEdgeSelect = { }; /** A `Index` edge in the connection. */ export interface IndexEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `Index` at the end of the edge. */ node?: Index | null; @@ -19426,7 +17826,6 @@ export type IndexEdgeSelect = { }; /** A `LimitFunction` edge in the connection. */ export interface LimitFunctionEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `LimitFunction` at the end of the edge. */ node?: LimitFunction | null; @@ -19439,7 +17838,6 @@ export type LimitFunctionEdgeSelect = { }; /** A `Policy` edge in the connection. */ export interface PolicyEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `Policy` at the end of the edge. */ node?: Policy | null; @@ -19452,7 +17850,6 @@ export type PolicyEdgeSelect = { }; /** A `PrimaryKeyConstraint` edge in the connection. */ export interface PrimaryKeyConstraintEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `PrimaryKeyConstraint` at the end of the edge. */ node?: PrimaryKeyConstraint | null; @@ -19465,7 +17862,6 @@ export type PrimaryKeyConstraintEdgeSelect = { }; /** A `TableGrant` edge in the connection. */ export interface TableGrantEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `TableGrant` at the end of the edge. */ node?: TableGrant | null; @@ -19478,7 +17874,6 @@ export type TableGrantEdgeSelect = { }; /** A `Trigger` edge in the connection. */ export interface TriggerEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `Trigger` at the end of the edge. */ node?: Trigger | null; @@ -19491,7 +17886,6 @@ export type TriggerEdgeSelect = { }; /** A `UniqueConstraint` edge in the connection. */ export interface UniqueConstraintEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `UniqueConstraint` at the end of the edge. */ node?: UniqueConstraint | null; @@ -19504,7 +17898,6 @@ export type UniqueConstraintEdgeSelect = { }; /** A `View` edge in the connection. */ export interface ViewEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `View` at the end of the edge. */ node?: View | null; @@ -19517,7 +17910,6 @@ export type ViewEdgeSelect = { }; /** A `ViewTable` edge in the connection. */ export interface ViewTableEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `ViewTable` at the end of the edge. */ node?: ViewTable | null; @@ -19530,7 +17922,6 @@ export type ViewTableEdgeSelect = { }; /** A `ViewGrant` edge in the connection. */ export interface ViewGrantEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `ViewGrant` at the end of the edge. */ node?: ViewGrant | null; @@ -19543,7 +17934,6 @@ export type ViewGrantEdgeSelect = { }; /** A `ViewRule` edge in the connection. */ export interface ViewRuleEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `ViewRule` at the end of the edge. */ node?: ViewRule | null; @@ -19556,7 +17946,6 @@ export type ViewRuleEdgeSelect = { }; /** A `TableModule` edge in the connection. */ export interface TableModuleEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `TableModule` at the end of the edge. */ node?: TableModule | null; @@ -19569,7 +17958,6 @@ export type TableModuleEdgeSelect = { }; /** A `TableTemplateModule` edge in the connection. */ export interface TableTemplateModuleEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `TableTemplateModule` at the end of the edge. */ node?: TableTemplateModule | null; @@ -19582,7 +17970,6 @@ export type TableTemplateModuleEdgeSelect = { }; /** A `SchemaGrant` edge in the connection. */ export interface SchemaGrantEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `SchemaGrant` at the end of the edge. */ node?: SchemaGrant | null; @@ -19595,7 +17982,6 @@ export type SchemaGrantEdgeSelect = { }; /** A `ApiSchema` edge in the connection. */ export interface ApiSchemaEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `ApiSchema` at the end of the edge. */ node?: ApiSchema | null; @@ -19608,7 +17994,6 @@ export type ApiSchemaEdgeSelect = { }; /** A `ApiModule` edge in the connection. */ export interface ApiModuleEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `ApiModule` at the end of the edge. */ node?: ApiModule | null; @@ -19621,7 +18006,6 @@ export type ApiModuleEdgeSelect = { }; /** A `Domain` edge in the connection. */ export interface DomainEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `Domain` at the end of the edge. */ node?: Domain | null; @@ -19634,7 +18018,6 @@ export type DomainEdgeSelect = { }; /** A `SiteMetadatum` edge in the connection. */ export interface SiteMetadatumEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `SiteMetadatum` at the end of the edge. */ node?: SiteMetadatum | null; @@ -19647,7 +18030,6 @@ export type SiteMetadatumEdgeSelect = { }; /** A `SiteModule` edge in the connection. */ export interface SiteModuleEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `SiteModule` at the end of the edge. */ node?: SiteModule | null; @@ -19660,7 +18042,6 @@ export type SiteModuleEdgeSelect = { }; /** A `SiteTheme` edge in the connection. */ export interface SiteThemeEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `SiteTheme` at the end of the edge. */ node?: SiteTheme | null; @@ -19673,7 +18054,6 @@ export type SiteThemeEdgeSelect = { }; /** A `Procedure` edge in the connection. */ export interface ProcedureEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `Procedure` at the end of the edge. */ node?: Procedure | null; @@ -19686,7 +18066,6 @@ export type ProcedureEdgeSelect = { }; /** A `TriggerFunction` edge in the connection. */ export interface TriggerFunctionEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `TriggerFunction` at the end of the edge. */ node?: TriggerFunction | null; @@ -19699,7 +18078,6 @@ export type TriggerFunctionEdgeSelect = { }; /** A `Api` edge in the connection. */ export interface ApiEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `Api` at the end of the edge. */ node?: Api | null; @@ -19712,7 +18090,6 @@ export type ApiEdgeSelect = { }; /** A `Site` edge in the connection. */ export interface SiteEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `Site` at the end of the edge. */ node?: Site | null; @@ -19725,7 +18102,6 @@ export type SiteEdgeSelect = { }; /** A `App` edge in the connection. */ export interface AppEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `App` at the end of the edge. */ node?: App | null; @@ -19738,7 +18114,6 @@ export type AppEdgeSelect = { }; /** A `ConnectedAccountsModule` edge in the connection. */ export interface ConnectedAccountsModuleEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `ConnectedAccountsModule` at the end of the edge. */ node?: ConnectedAccountsModule | null; @@ -19751,7 +18126,6 @@ export type ConnectedAccountsModuleEdgeSelect = { }; /** A `CryptoAddressesModule` edge in the connection. */ export interface CryptoAddressesModuleEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `CryptoAddressesModule` at the end of the edge. */ node?: CryptoAddressesModule | null; @@ -19764,7 +18138,6 @@ export type CryptoAddressesModuleEdgeSelect = { }; /** A `CryptoAuthModule` edge in the connection. */ export interface CryptoAuthModuleEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `CryptoAuthModule` at the end of the edge. */ node?: CryptoAuthModule | null; @@ -19777,7 +18150,6 @@ export type CryptoAuthModuleEdgeSelect = { }; /** A `DefaultIdsModule` edge in the connection. */ export interface DefaultIdsModuleEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `DefaultIdsModule` at the end of the edge. */ node?: DefaultIdsModule | null; @@ -19790,7 +18162,6 @@ export type DefaultIdsModuleEdgeSelect = { }; /** A `DenormalizedTableField` edge in the connection. */ export interface DenormalizedTableFieldEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `DenormalizedTableField` at the end of the edge. */ node?: DenormalizedTableField | null; @@ -19803,7 +18174,6 @@ export type DenormalizedTableFieldEdgeSelect = { }; /** A `EmailsModule` edge in the connection. */ export interface EmailsModuleEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `EmailsModule` at the end of the edge. */ node?: EmailsModule | null; @@ -19816,7 +18186,6 @@ export type EmailsModuleEdgeSelect = { }; /** A `EncryptedSecretsModule` edge in the connection. */ export interface EncryptedSecretsModuleEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `EncryptedSecretsModule` at the end of the edge. */ node?: EncryptedSecretsModule | null; @@ -19829,7 +18198,6 @@ export type EncryptedSecretsModuleEdgeSelect = { }; /** A `FieldModule` edge in the connection. */ export interface FieldModuleEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `FieldModule` at the end of the edge. */ node?: FieldModule | null; @@ -19842,7 +18210,6 @@ export type FieldModuleEdgeSelect = { }; /** A `InvitesModule` edge in the connection. */ export interface InvitesModuleEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `InvitesModule` at the end of the edge. */ node?: InvitesModule | null; @@ -19855,7 +18222,6 @@ export type InvitesModuleEdgeSelect = { }; /** A `LevelsModule` edge in the connection. */ export interface LevelsModuleEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `LevelsModule` at the end of the edge. */ node?: LevelsModule | null; @@ -19868,7 +18234,6 @@ export type LevelsModuleEdgeSelect = { }; /** A `LimitsModule` edge in the connection. */ export interface LimitsModuleEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `LimitsModule` at the end of the edge. */ node?: LimitsModule | null; @@ -19881,7 +18246,6 @@ export type LimitsModuleEdgeSelect = { }; /** A `MembershipTypesModule` edge in the connection. */ export interface MembershipTypesModuleEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `MembershipTypesModule` at the end of the edge. */ node?: MembershipTypesModule | null; @@ -19894,7 +18258,6 @@ export type MembershipTypesModuleEdgeSelect = { }; /** A `MembershipsModule` edge in the connection. */ export interface MembershipsModuleEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `MembershipsModule` at the end of the edge. */ node?: MembershipsModule | null; @@ -19907,7 +18270,6 @@ export type MembershipsModuleEdgeSelect = { }; /** A `PermissionsModule` edge in the connection. */ export interface PermissionsModuleEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `PermissionsModule` at the end of the edge. */ node?: PermissionsModule | null; @@ -19920,7 +18282,6 @@ export type PermissionsModuleEdgeSelect = { }; /** A `PhoneNumbersModule` edge in the connection. */ export interface PhoneNumbersModuleEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `PhoneNumbersModule` at the end of the edge. */ node?: PhoneNumbersModule | null; @@ -19933,7 +18294,6 @@ export type PhoneNumbersModuleEdgeSelect = { }; /** A `ProfilesModule` edge in the connection. */ export interface ProfilesModuleEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `ProfilesModule` at the end of the edge. */ node?: ProfilesModule | null; @@ -19946,7 +18306,6 @@ export type ProfilesModuleEdgeSelect = { }; /** A `RlsModule` edge in the connection. */ export interface RlsModuleEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `RlsModule` at the end of the edge. */ node?: RlsModule | null; @@ -19959,7 +18318,6 @@ export type RlsModuleEdgeSelect = { }; /** A `SecretsModule` edge in the connection. */ export interface SecretsModuleEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `SecretsModule` at the end of the edge. */ node?: SecretsModule | null; @@ -19972,7 +18330,6 @@ export type SecretsModuleEdgeSelect = { }; /** A `SessionsModule` edge in the connection. */ export interface SessionsModuleEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `SessionsModule` at the end of the edge. */ node?: SessionsModule | null; @@ -19985,7 +18342,6 @@ export type SessionsModuleEdgeSelect = { }; /** A `UserAuthModule` edge in the connection. */ export interface UserAuthModuleEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `UserAuthModule` at the end of the edge. */ node?: UserAuthModule | null; @@ -19998,7 +18354,6 @@ export type UserAuthModuleEdgeSelect = { }; /** A `UsersModule` edge in the connection. */ export interface UsersModuleEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `UsersModule` at the end of the edge. */ node?: UsersModule | null; @@ -20011,7 +18366,6 @@ export type UsersModuleEdgeSelect = { }; /** A `UuidModule` edge in the connection. */ export interface UuidModuleEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `UuidModule` at the end of the edge. */ node?: UuidModule | null; @@ -20024,7 +18378,6 @@ export type UuidModuleEdgeSelect = { }; /** A `DatabaseProvisionModule` edge in the connection. */ export interface DatabaseProvisionModuleEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `DatabaseProvisionModule` at the end of the edge. */ node?: DatabaseProvisionModule | null; @@ -20037,7 +18390,6 @@ export type DatabaseProvisionModuleEdgeSelect = { }; /** A `AppAdminGrant` edge in the connection. */ export interface AppAdminGrantEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `AppAdminGrant` at the end of the edge. */ node?: AppAdminGrant | null; @@ -20050,7 +18402,6 @@ export type AppAdminGrantEdgeSelect = { }; /** A `AppOwnerGrant` edge in the connection. */ export interface AppOwnerGrantEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `AppOwnerGrant` at the end of the edge. */ node?: AppOwnerGrant | null; @@ -20063,7 +18414,6 @@ export type AppOwnerGrantEdgeSelect = { }; /** A `AppGrant` edge in the connection. */ export interface AppGrantEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `AppGrant` at the end of the edge. */ node?: AppGrant | null; @@ -20076,7 +18426,6 @@ export type AppGrantEdgeSelect = { }; /** A `OrgMembership` edge in the connection. */ export interface OrgMembershipEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `OrgMembership` at the end of the edge. */ node?: OrgMembership | null; @@ -20089,7 +18438,6 @@ export type OrgMembershipEdgeSelect = { }; /** A `OrgMember` edge in the connection. */ export interface OrgMemberEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `OrgMember` at the end of the edge. */ node?: OrgMember | null; @@ -20102,7 +18450,6 @@ export type OrgMemberEdgeSelect = { }; /** A `OrgAdminGrant` edge in the connection. */ export interface OrgAdminGrantEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `OrgAdminGrant` at the end of the edge. */ node?: OrgAdminGrant | null; @@ -20115,7 +18462,6 @@ export type OrgAdminGrantEdgeSelect = { }; /** A `OrgOwnerGrant` edge in the connection. */ export interface OrgOwnerGrantEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `OrgOwnerGrant` at the end of the edge. */ node?: OrgOwnerGrant | null; @@ -20128,7 +18474,6 @@ export type OrgOwnerGrantEdgeSelect = { }; /** A `OrgGrant` edge in the connection. */ export interface OrgGrantEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `OrgGrant` at the end of the edge. */ node?: OrgGrant | null; @@ -20141,7 +18486,6 @@ export type OrgGrantEdgeSelect = { }; /** A `AppLimit` edge in the connection. */ export interface AppLimitEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `AppLimit` at the end of the edge. */ node?: AppLimit | null; @@ -20154,7 +18498,6 @@ export type AppLimitEdgeSelect = { }; /** A `OrgLimit` edge in the connection. */ export interface OrgLimitEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `OrgLimit` at the end of the edge. */ node?: OrgLimit | null; @@ -20167,7 +18510,6 @@ export type OrgLimitEdgeSelect = { }; /** A `AppStep` edge in the connection. */ export interface AppStepEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `AppStep` at the end of the edge. */ node?: AppStep | null; @@ -20180,7 +18522,6 @@ export type AppStepEdgeSelect = { }; /** A `AppAchievement` edge in the connection. */ export interface AppAchievementEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `AppAchievement` at the end of the edge. */ node?: AppAchievement | null; @@ -20193,7 +18534,6 @@ export type AppAchievementEdgeSelect = { }; /** A `Invite` edge in the connection. */ export interface InviteEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `Invite` at the end of the edge. */ node?: Invite | null; @@ -20206,7 +18546,6 @@ export type InviteEdgeSelect = { }; /** A `ClaimedInvite` edge in the connection. */ export interface ClaimedInviteEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `ClaimedInvite` at the end of the edge. */ node?: ClaimedInvite | null; @@ -20219,7 +18558,6 @@ export type ClaimedInviteEdgeSelect = { }; /** A `OrgInvite` edge in the connection. */ export interface OrgInviteEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `OrgInvite` at the end of the edge. */ node?: OrgInvite | null; @@ -20232,7 +18570,6 @@ export type OrgInviteEdgeSelect = { }; /** A `OrgClaimedInvite` edge in the connection. */ export interface OrgClaimedInviteEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `OrgClaimedInvite` at the end of the edge. */ node?: OrgClaimedInvite | null; @@ -20245,7 +18582,6 @@ export type OrgClaimedInviteEdgeSelect = { }; /** A `AppPermissionDefault` edge in the connection. */ export interface AppPermissionDefaultEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `AppPermissionDefault` at the end of the edge. */ node?: AppPermissionDefault | null; @@ -20258,7 +18594,6 @@ export type AppPermissionDefaultEdgeSelect = { }; /** A `Ref` edge in the connection. */ export interface RefEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `Ref` at the end of the edge. */ node?: Ref | null; @@ -20271,7 +18606,6 @@ export type RefEdgeSelect = { }; /** A `Store` edge in the connection. */ export interface StoreEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `Store` at the end of the edge. */ node?: Store | null; @@ -20284,7 +18618,6 @@ export type StoreEdgeSelect = { }; /** A `RoleType` edge in the connection. */ export interface RoleTypeEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `RoleType` at the end of the edge. */ node?: RoleType | null; @@ -20297,7 +18630,6 @@ export type RoleTypeEdgeSelect = { }; /** A `OrgPermissionDefault` edge in the connection. */ export interface OrgPermissionDefaultEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `OrgPermissionDefault` at the end of the edge. */ node?: OrgPermissionDefault | null; @@ -20310,7 +18642,6 @@ export type OrgPermissionDefaultEdgeSelect = { }; /** A `AppLimitDefault` edge in the connection. */ export interface AppLimitDefaultEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `AppLimitDefault` at the end of the edge. */ node?: AppLimitDefault | null; @@ -20323,7 +18654,6 @@ export type AppLimitDefaultEdgeSelect = { }; /** A `OrgLimitDefault` edge in the connection. */ export interface OrgLimitDefaultEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `OrgLimitDefault` at the end of the edge. */ node?: OrgLimitDefault | null; @@ -20336,7 +18666,6 @@ export type OrgLimitDefaultEdgeSelect = { }; /** A `CryptoAddress` edge in the connection. */ export interface CryptoAddressEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `CryptoAddress` at the end of the edge. */ node?: CryptoAddress | null; @@ -20349,7 +18678,6 @@ export type CryptoAddressEdgeSelect = { }; /** A `MembershipType` edge in the connection. */ export interface MembershipTypeEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `MembershipType` at the end of the edge. */ node?: MembershipType | null; @@ -20362,7 +18690,6 @@ export type MembershipTypeEdgeSelect = { }; /** A `ConnectedAccount` edge in the connection. */ export interface ConnectedAccountEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `ConnectedAccount` at the end of the edge. */ node?: ConnectedAccount | null; @@ -20375,7 +18702,6 @@ export type ConnectedAccountEdgeSelect = { }; /** A `PhoneNumber` edge in the connection. */ export interface PhoneNumberEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `PhoneNumber` at the end of the edge. */ node?: PhoneNumber | null; @@ -20388,7 +18714,6 @@ export type PhoneNumberEdgeSelect = { }; /** A `AppMembershipDefault` edge in the connection. */ export interface AppMembershipDefaultEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `AppMembershipDefault` at the end of the edge. */ node?: AppMembershipDefault | null; @@ -20401,7 +18726,6 @@ export type AppMembershipDefaultEdgeSelect = { }; /** A `NodeTypeRegistry` edge in the connection. */ export interface NodeTypeRegistryEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `NodeTypeRegistry` at the end of the edge. */ node?: NodeTypeRegistry | null; @@ -20414,7 +18738,6 @@ export type NodeTypeRegistryEdgeSelect = { }; /** A `Commit` edge in the connection. */ export interface CommitEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `Commit` at the end of the edge. */ node?: Commit | null; @@ -20427,7 +18750,6 @@ export type CommitEdgeSelect = { }; /** A `OrgMembershipDefault` edge in the connection. */ export interface OrgMembershipDefaultEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `OrgMembershipDefault` at the end of the edge. */ node?: OrgMembershipDefault | null; @@ -20440,7 +18762,6 @@ export type OrgMembershipDefaultEdgeSelect = { }; /** A `Email` edge in the connection. */ export interface EmailEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `Email` at the end of the edge. */ node?: Email | null; @@ -20453,7 +18774,6 @@ export type EmailEdgeSelect = { }; /** A `AuditLog` edge in the connection. */ export interface AuditLogEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `AuditLog` at the end of the edge. */ node?: AuditLog | null; @@ -20466,7 +18786,6 @@ export type AuditLogEdgeSelect = { }; /** A `AppLevel` edge in the connection. */ export interface AppLevelEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `AppLevel` at the end of the edge. */ node?: AppLevel | null; @@ -20479,7 +18798,6 @@ export type AppLevelEdgeSelect = { }; /** A `AppMembership` edge in the connection. */ export interface AppMembershipEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `AppMembership` at the end of the edge. */ node?: AppMembership | null; @@ -20492,7 +18810,6 @@ export type AppMembershipEdgeSelect = { }; /** A `User` edge in the connection. */ export interface UserEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `User` at the end of the edge. */ node?: User | null; @@ -20505,7 +18822,6 @@ export type UserEdgeSelect = { }; /** A `HierarchyModule` edge in the connection. */ export interface HierarchyModuleEdge { - /** A cursor for use in pagination. */ cursor?: string | null; /** The `HierarchyModule` at the end of the edge. */ node?: HierarchyModule | null; diff --git a/sdk/constructive-sdk/src/public/orm/query/index.ts b/sdk/constructive-sdk/src/public/orm/query/index.ts index 3da90dee7..468211e98 100644 --- a/sdk/constructive-sdk/src/public/orm/query/index.ts +++ b/sdk/constructive-sdk/src/public/orm/query/index.ts @@ -44,10 +44,6 @@ export interface AppPermissionsGetMaskByNamesVariables { export interface OrgPermissionsGetMaskByNamesVariables { names?: string[]; } -/** - * Variables for appPermissionsGetByMask - * Reads and enables pagination through a set of `AppPermission`. - */ export interface AppPermissionsGetByMaskVariables { mask?: string; /** Only read the first `n` values of the set. */ @@ -60,10 +56,6 @@ export interface AppPermissionsGetByMaskVariables { /** Read all values in the set after (below) this cursor. */ after?: string; } -/** - * Variables for orgPermissionsGetByMask - * Reads and enables pagination through a set of `OrgPermission`. - */ export interface OrgPermissionsGetByMaskVariables { mask?: string; /** Only read the first `n` values of the set. */ @@ -76,10 +68,6 @@ export interface OrgPermissionsGetByMaskVariables { /** Read all values in the set after (below) this cursor. */ after?: string; } -/** - * Variables for getAllObjectsFromRoot - * Reads and enables pagination through a set of `Object`. - */ export interface GetAllObjectsFromRootVariables { databaseId?: string; id?: string; @@ -93,10 +81,6 @@ export interface GetAllObjectsFromRootVariables { /** Read all values in the set after (below) this cursor. */ after?: string; } -/** - * Variables for getPathObjectsFromRoot - * Reads and enables pagination through a set of `Object`. - */ export interface GetPathObjectsFromRootVariables { databaseId?: string; id?: string; @@ -117,10 +101,6 @@ export interface GetObjectAtPathVariables { path?: string[]; refname?: string; } -/** - * Variables for stepsRequired - * Reads and enables pagination through a set of `AppLevelRequirement`. - */ export interface StepsRequiredVariables { vlevel?: string; vroleId?: string; From 46879adcb795da72f26fac64ea8bf2335e902bc8 Mon Sep 17 00:00:00 2001 From: Dan Lynch Date: Fri, 27 Feb 2026 23:35:04 +0000 Subject: [PATCH 5/8] feat(codegen): make JSDoc comments optional via config (default: true) --- .../core/codegen/orm/custom-ops-generator.ts | 11 +++++---- graphql/codegen/src/core/codegen/orm/index.ts | 5 +++- .../core/codegen/orm/input-types-generator.ts | 21 +++++++++------- .../core/codegen/schema-types-generator.ts | 24 +++++++++++++------ .../codegen/src/core/codegen/shared/index.ts | 2 ++ graphql/codegen/src/core/codegen/utils.ts | 2 ++ .../src/core/introspect/infer-tables.ts | 15 +++++++++--- graphql/codegen/src/core/pipeline/index.ts | 3 ++- graphql/codegen/src/types/config.ts | 7 ++++++ 9 files changed, 66 insertions(+), 24 deletions(-) diff --git a/graphql/codegen/src/core/codegen/orm/custom-ops-generator.ts b/graphql/codegen/src/core/codegen/orm/custom-ops-generator.ts index 912cc758e..3e5ed45e0 100644 --- a/graphql/codegen/src/core/codegen/orm/custom-ops-generator.ts +++ b/graphql/codegen/src/core/codegen/orm/custom-ops-generator.ts @@ -109,6 +109,7 @@ function createImportDeclaration( function createVariablesInterface( op: CleanOperation, + comments: boolean = true, ): t.ExportNamedDeclaration | null { if (op.args.length === 0) return null; @@ -120,7 +121,7 @@ function createVariablesInterface( t.tsTypeAnnotation(parseTypeAnnotation(typeRefToTsType(arg.type))), ); prop.optional = optional; - const argDescription = stripSmartComments(arg.description); + const argDescription = stripSmartComments(arg.description, comments); if (argDescription) { addJSDocComment(prop, argDescription.split('\n')); } @@ -134,7 +135,7 @@ function createVariablesInterface( t.tsInterfaceBody(props), ); const exportDecl = t.exportNamedDeclaration(interfaceDecl); - const opDescription = stripSmartComments(op.description); + const opDescription = stripSmartComments(op.description, comments); if (opDescription) { addJSDocComment(exportDecl, [`Variables for ${op.name}`, opDescription]); } @@ -409,6 +410,7 @@ function buildOperationMethod( */ export function generateCustomQueryOpsFile( operations: CleanOperation[], + comments: boolean = true, ): GeneratedCustomOpsFile { const statements: t.Statement[] = []; @@ -453,7 +455,7 @@ export function generateCustomQueryOpsFile( // Generate variable interfaces for (const op of operations) { - const varInterface = createVariablesInterface(op); + const varInterface = createVariablesInterface(op, comments); if (varInterface) statements.push(varInterface); } @@ -491,6 +493,7 @@ export function generateCustomQueryOpsFile( */ export function generateCustomMutationOpsFile( operations: CleanOperation[], + comments: boolean = true, ): GeneratedCustomOpsFile { const statements: t.Statement[] = []; @@ -535,7 +538,7 @@ export function generateCustomMutationOpsFile( // Generate variable interfaces for (const op of operations) { - const varInterface = createVariablesInterface(op); + const varInterface = createVariablesInterface(op, comments); if (varInterface) statements.push(varInterface); } diff --git a/graphql/codegen/src/core/codegen/orm/index.ts b/graphql/codegen/src/core/codegen/orm/index.ts index 91db97a23..5b1234d50 100644 --- a/graphql/codegen/src/core/codegen/orm/index.ts +++ b/graphql/codegen/src/core/codegen/orm/index.ts @@ -65,6 +65,7 @@ export interface GenerateOrmResult { */ export function generateOrm(options: GenerateOrmOptions): GenerateOrmResult { const { tables, customOperations, sharedTypesPath } = options; + const commentsEnabled = options.config.codegen?.comments !== false; const files: GeneratedFile[] = []; // Use shared types when a sharedTypesPath is provided (unified output mode) @@ -138,6 +139,7 @@ export function generateOrm(options: GenerateOrmOptions): GenerateOrmResult { usedInputTypes, tables, usedPayloadTypes, + commentsEnabled, ); files.push({ path: inputTypesFile.fileName, @@ -147,13 +149,14 @@ export function generateOrm(options: GenerateOrmOptions): GenerateOrmResult { // 5. Generate custom operations (if any) if (hasCustomQueries && customOperations?.queries) { - const queryOpsFile = generateCustomQueryOpsFile(customOperations.queries); + const queryOpsFile = generateCustomQueryOpsFile(customOperations.queries, commentsEnabled); files.push({ path: queryOpsFile.fileName, content: queryOpsFile.content }); } if (hasCustomMutations && customOperations?.mutations) { const mutationOpsFile = generateCustomMutationOpsFile( customOperations.mutations, + commentsEnabled, ); files.push({ path: mutationOpsFile.fileName, diff --git a/graphql/codegen/src/core/codegen/orm/input-types-generator.ts b/graphql/codegen/src/core/codegen/orm/input-types-generator.ts index acd680006..6d19a7977 100644 --- a/graphql/codegen/src/core/codegen/orm/input-types-generator.ts +++ b/graphql/codegen/src/core/codegen/orm/input-types-generator.ts @@ -513,6 +513,7 @@ function collectEnumTypesFromTables( function generateEnumTypes( typeRegistry: TypeRegistry, enumTypeNames: Set, + comments: boolean = true, ): t.Statement[] { if (enumTypeNames.size === 0) return []; @@ -529,7 +530,7 @@ function generateEnumTypes( unionType, ); const exportDecl = t.exportNamedDeclaration(typeAlias); - const enumDescription = stripSmartComments(typeInfo.description); + const enumDescription = stripSmartComments(typeInfo.description, comments); if (enumDescription) { addJSDocComment(exportDecl, enumDescription.split('\n')); } @@ -1505,6 +1506,7 @@ function generateCustomInputTypes( typeRegistry: TypeRegistry, usedInputTypes: Set, tableCrudTypes?: Set, + comments: boolean = true, ): t.Statement[] { const statements: t.Statement[] = []; const generatedTypes = new Set(); @@ -1551,7 +1553,7 @@ function generateCustomInputTypes( name: field.name, type: tsType, optional, - description: stripSmartComments(field.description), + description: stripSmartComments(field.description, comments), }); // Follow nested Input types @@ -1569,7 +1571,7 @@ function generateCustomInputTypes( createExportedInterface( typeName, properties, - stripSmartComments(typeInfo.description), + stripSmartComments(typeInfo.description, comments), ), ); } else if (typeInfo.kind === 'ENUM' && typeInfo.enumValues) { @@ -1580,7 +1582,7 @@ function generateCustomInputTypes( unionType, ); const enumExportDecl = t.exportNamedDeclaration(typeAlias); - const enumDescription = stripSmartComments(typeInfo.description); + const enumDescription = stripSmartComments(typeInfo.description, comments); if (enumDescription) { addJSDocComment(enumExportDecl, enumDescription.split('\n')); } @@ -1629,6 +1631,7 @@ function generatePayloadTypes( typeRegistry: TypeRegistry, usedPayloadTypes: Set, alreadyGeneratedTypes: Set, + comments: boolean = true, ): t.Statement[] { const statements: t.Statement[] = []; const generatedTypes = new Set(alreadyGeneratedTypes); @@ -1680,7 +1683,7 @@ function generatePayloadTypes( name: field.name, type: isNullable ? `${tsType} | null` : tsType, optional: isNullable, - description: stripSmartComments(field.description), + description: stripSmartComments(field.description, comments), }); // Follow nested OBJECT types @@ -1700,7 +1703,7 @@ function generatePayloadTypes( createExportedInterface( typeName, interfaceProps, - stripSmartComments(typeInfo.description), + stripSmartComments(typeInfo.description, comments), ), ); @@ -1850,6 +1853,7 @@ export function generateInputTypesFile( usedInputTypes: Set, tables?: CleanTable[], usedPayloadTypes?: Set, + comments: boolean = true, ): GeneratedInputTypesFile { const statements: t.Statement[] = []; const tablesList = tables ?? []; @@ -1868,7 +1872,7 @@ export function generateInputTypesFile( statements.push(...generateScalarFilterTypes()); // 2. Enum types used by table fields - statements.push(...generateEnumTypes(typeRegistry, enumTypes)); + statements.push(...generateEnumTypes(typeRegistry, enumTypes, comments)); // 2b. Unknown/custom scalar aliases for schema-specific scalars statements.push(...generateCustomScalarTypes(customScalarTypes)); @@ -1901,7 +1905,7 @@ export function generateInputTypesFile( // 7. Custom input types from TypeRegistry const tableCrudTypes = tables ? buildTableCrudTypeNames(tables) : undefined; statements.push( - ...generateCustomInputTypes(typeRegistry, usedInputTypes, tableCrudTypes), + ...generateCustomInputTypes(typeRegistry, usedInputTypes, tableCrudTypes, comments), ); // 8. Payload/return types for custom operations @@ -1918,6 +1922,7 @@ export function generateInputTypesFile( typeRegistry, usedPayloadTypes, alreadyGeneratedTypes, + comments, ), ); } diff --git a/graphql/codegen/src/core/codegen/schema-types-generator.ts b/graphql/codegen/src/core/codegen/schema-types-generator.ts index f5c51e24b..1bb372e7a 100644 --- a/graphql/codegen/src/core/codegen/schema-types-generator.ts +++ b/graphql/codegen/src/core/codegen/schema-types-generator.ts @@ -37,6 +37,8 @@ export interface GeneratedSchemaTypesFile { export interface GenerateSchemaTypesOptions { typeRegistry: TypeRegistry; tableTypeNames: Set; + /** Include descriptions as JSDoc comments. @default true */ + comments?: boolean; } const SKIP_TYPES = new Set([ @@ -122,6 +124,7 @@ function generateCustomScalarTypes(customScalarTypes: string[]): t.Statement[] { function generateEnumTypes( typeRegistry: TypeRegistry, tableTypeNames: Set, + comments: boolean = true, ): { statements: t.Statement[]; generatedTypes: Set } { const statements: t.Statement[] = []; const generatedTypes = new Set(); @@ -140,7 +143,7 @@ function generateEnumTypes( unionType, ); const exportDecl = t.exportNamedDeclaration(typeAlias); - const enumDescription = stripSmartComments(typeInfo.description); + const enumDescription = stripSmartComments(typeInfo.description, comments); if (enumDescription) { addJSDocComment(exportDecl, enumDescription.split('\n')); } @@ -155,6 +158,7 @@ function generateInputObjectTypes( typeRegistry: TypeRegistry, tableTypeNames: Set, alreadyGenerated: Set, + comments: boolean = true, ): { statements: t.Statement[]; generatedTypes: Set } { const statements: t.Statement[] = []; const generatedTypes = new Set(alreadyGenerated); @@ -192,7 +196,7 @@ function generateInputObjectTypes( t.tsTypeAnnotation(t.tsTypeReference(t.identifier(tsType))), ); prop.optional = optional; - const fieldDescription = stripSmartComments(field.description); + const fieldDescription = stripSmartComments(field.description, comments); if (fieldDescription) { addJSDocComment(prop, fieldDescription.split('\n')); } @@ -219,7 +223,7 @@ function generateInputObjectTypes( t.tsInterfaceBody(properties), ); const exportDecl = t.exportNamedDeclaration(interfaceDecl); - const inputDescription = stripSmartComments(typeInfo.description); + const inputDescription = stripSmartComments(typeInfo.description, comments); if (inputDescription) { addJSDocComment(exportDecl, inputDescription.split('\n')); } @@ -233,6 +237,7 @@ function generateUnionTypes( typeRegistry: TypeRegistry, tableTypeNames: Set, alreadyGenerated: Set, + comments: boolean = true, ): { statements: t.Statement[]; generatedTypes: Set } { const statements: t.Statement[] = []; const generatedTypes = new Set(alreadyGenerated); @@ -253,7 +258,7 @@ function generateUnionTypes( unionType, ); const exportDecl = t.exportNamedDeclaration(typeAlias); - const unionDescription = stripSmartComments(typeInfo.description); + const unionDescription = stripSmartComments(typeInfo.description, comments); if (unionDescription) { addJSDocComment(exportDecl, unionDescription.split('\n')); } @@ -302,6 +307,7 @@ function generatePayloadObjectTypes( typeRegistry: TypeRegistry, tableTypeNames: Set, alreadyGenerated: Set, + comments: boolean = true, ): PayloadTypesResult { const statements: t.Statement[] = []; const generatedTypes = new Set(alreadyGenerated); @@ -349,7 +355,7 @@ function generatePayloadObjectTypes( t.tsTypeAnnotation(t.tsTypeReference(t.identifier(finalType))), ); prop.optional = isNullable; - const fieldDescription = stripSmartComments(field.description); + const fieldDescription = stripSmartComments(field.description, comments); if (fieldDescription) { addJSDocComment(prop, fieldDescription.split('\n')); } @@ -379,7 +385,7 @@ function generatePayloadObjectTypes( t.tsInterfaceBody(properties), ); const exportDecl = t.exportNamedDeclaration(interfaceDecl); - const payloadDescription = stripSmartComments(typeInfo.description); + const payloadDescription = stripSmartComments(typeInfo.description, comments); if (payloadDescription) { addJSDocComment(exportDecl, payloadDescription.split('\n')); } @@ -393,18 +399,20 @@ export function generateSchemaTypesFile( options: GenerateSchemaTypesOptions, ): GeneratedSchemaTypesFile { const { typeRegistry, tableTypeNames } = options; + const comments = options.comments !== false; const allStatements: t.Statement[] = []; let generatedTypes = new Set(); const customScalarTypes = collectCustomScalarTypes(typeRegistry); - const enumResult = generateEnumTypes(typeRegistry, tableTypeNames); + const enumResult = generateEnumTypes(typeRegistry, tableTypeNames, comments); generatedTypes = new Set([...generatedTypes, ...enumResult.generatedTypes]); const unionResult = generateUnionTypes( typeRegistry, tableTypeNames, generatedTypes, + comments, ); generatedTypes = new Set([...generatedTypes, ...unionResult.generatedTypes]); @@ -412,6 +420,7 @@ export function generateSchemaTypesFile( typeRegistry, tableTypeNames, generatedTypes, + comments, ); generatedTypes = new Set([...generatedTypes, ...inputResult.generatedTypes]); @@ -419,6 +428,7 @@ export function generateSchemaTypesFile( typeRegistry, tableTypeNames, generatedTypes, + comments, ); const referencedTableTypes = Array.from( diff --git a/graphql/codegen/src/core/codegen/shared/index.ts b/graphql/codegen/src/core/codegen/shared/index.ts index c30b705b6..588a4ad18 100644 --- a/graphql/codegen/src/core/codegen/shared/index.ts +++ b/graphql/codegen/src/core/codegen/shared/index.ts @@ -59,6 +59,7 @@ export function generateSharedTypes( options: GenerateSharedOptions, ): GenerateSharedResult { const { tables, customOperations } = options; + const commentsEnabled = options.config.codegen?.comments !== false; const files: GeneratedFile[] = []; // Collect table type names for import path resolution @@ -72,6 +73,7 @@ export function generateSharedTypes( const schemaTypesResult = generateSchemaTypesFile({ typeRegistry: customOperations.typeRegistry, tableTypeNames, + comments: commentsEnabled, }); // Only include if there's meaningful content diff --git a/graphql/codegen/src/core/codegen/utils.ts b/graphql/codegen/src/core/codegen/utils.ts index 7694f20d5..8f87baf4c 100644 --- a/graphql/codegen/src/core/codegen/utils.ts +++ b/graphql/codegen/src/core/codegen/utils.ts @@ -480,7 +480,9 @@ function isBoilerplateDescription(description: string): boolean { */ export function stripSmartComments( description: string | null | undefined, + enabled: boolean = true, ): string | undefined { + if (!enabled) return undefined; if (!description) return undefined; // Check if entire description is boilerplate diff --git a/graphql/codegen/src/core/introspect/infer-tables.ts b/graphql/codegen/src/core/introspect/infer-tables.ts index 38611027f..e479a2035 100644 --- a/graphql/codegen/src/core/introspect/infer-tables.ts +++ b/graphql/codegen/src/core/introspect/infer-tables.ts @@ -111,6 +111,11 @@ export interface InferTablesOptions { * Custom pattern overrides (for non-standard PostGraphile configurations) */ patterns?: Partial; + /** + * Include PostgreSQL COMMENT descriptions on tables and fields. + * @default true + */ + comments?: boolean; } /** @@ -126,6 +131,7 @@ export function inferTablesFromIntrospection( ): CleanTable[] { const { __schema: schema } = introspection; const { types, queryType, mutationType } = schema; + const commentsEnabled = options.comments !== false; // Build lookup maps for efficient access const typeMap = buildTypeMap(types); @@ -152,6 +158,7 @@ export function inferTablesFromIntrospection( mutationFields, entityToConnection, connectionToEntity, + commentsEnabled, ); // Only include tables that have at least one real operation @@ -267,9 +274,10 @@ function buildCleanTable( mutationFields: IntrospectionField[], entityToConnection: Map, connectionToEntity: Map, + commentsEnabled: boolean, ): BuildCleanTableResult { // Extract scalar fields from entity type - const fields = extractEntityFields(entityType, typeMap, entityToConnection); + const fields = extractEntityFields(entityType, typeMap, entityToConnection, commentsEnabled); // Infer relations from entity fields const relations = inferRelations( @@ -312,7 +320,7 @@ function buildCleanTable( }; // Extract description from entity type (PostgreSQL COMMENT), strip smart comments - const description = stripSmartComments(entityType.description); + const description = commentsEnabled ? stripSmartComments(entityType.description) : undefined; return { table: { @@ -340,6 +348,7 @@ function extractEntityFields( entityType: IntrospectionType, typeMap: Map, entityToConnection: Map, + commentsEnabled: boolean, ): CleanField[] { const fields: CleanField[] = []; @@ -362,7 +371,7 @@ function extractEntityFields( } // Include scalar, enum, and other non-relation fields - const fieldDescription = stripSmartComments(field.description); + const fieldDescription = commentsEnabled ? stripSmartComments(field.description) : undefined; fields.push({ name: field.name, ...(fieldDescription ? { description: fieldDescription } : {}), diff --git a/graphql/codegen/src/core/pipeline/index.ts b/graphql/codegen/src/core/pipeline/index.ts index 55ba15cee..d81a7e5b8 100644 --- a/graphql/codegen/src/core/pipeline/index.ts +++ b/graphql/codegen/src/core/pipeline/index.ts @@ -116,7 +116,8 @@ export async function runCodegenPipeline( // 2. Infer tables from introspection (replaces _meta) log('Inferring table metadata from schema...'); - let tables = inferTablesFromIntrospection(introspection); + const commentsEnabled = config.codegen?.comments !== false; + let tables = inferTablesFromIntrospection(introspection, { comments: commentsEnabled }); const totalTables = tables.length; log(` Found ${totalTables} tables`); diff --git a/graphql/codegen/src/types/config.ts b/graphql/codegen/src/types/config.ts index aadc50bb8..0f2a3a16c 100644 --- a/graphql/codegen/src/types/config.ts +++ b/graphql/codegen/src/types/config.ts @@ -323,6 +323,12 @@ export interface GraphQLSDKConfigTarget { codegen?: { /** Skip 'query' field on mutation payloads (default: true) */ skipQueryField?: boolean; + /** + * Include PostgreSQL COMMENT descriptions as JSDoc comments in generated code. + * PostGraphile smart comments and boilerplate descriptions are automatically stripped. + * @default true + */ + comments?: boolean; }; /** @@ -508,6 +514,7 @@ export const DEFAULT_CONFIG: GraphQLSDKConfigTarget = { }, codegen: { skipQueryField: true, + comments: true, }, orm: false, reactQuery: false, From aabe85ed41f0f6eae4daef5ae28da58856b9483f Mon Sep 17 00:00:00 2001 From: Dan Lynch Date: Sat, 28 Feb 2026 00:19:51 +0000 Subject: [PATCH 6/8] feat: add @constructive-io/react package with React Query hooks and JSDoc comments --- pnpm-lock.yaml | 10405 +++------ sdk/constructive-react/README.md | 26 + sdk/constructive-react/package.json | 61 + .../scripts/generate-react.ts | 74 + sdk/constructive-react/src/admin/README.md | 54 + .../src/admin/hooks/README.md | 931 + .../src/admin/hooks/client.ts | 42 + .../src/admin/hooks/index.ts | 39 + .../src/admin/hooks/invalidation.ts | 732 + .../src/admin/hooks/mutation-keys.ts | 331 + .../src/admin/hooks/mutations/index.ts | 91 + .../useCreateAppAchievementMutation.ts | 91 + .../useCreateAppAdminGrantMutation.ts | 88 + .../mutations/useCreateAppGrantMutation.ts | 88 + .../mutations/useCreateAppLevelMutation.ts | 88 + .../useCreateAppLevelRequirementMutation.ts | 91 + .../useCreateAppLimitDefaultMutation.ts | 91 + .../mutations/useCreateAppLimitMutation.ts | 88 + .../useCreateAppMembershipDefaultMutation.ts | 91 + .../useCreateAppMembershipMutation.ts | 88 + .../useCreateAppOwnerGrantMutation.ts | 88 + .../useCreateAppPermissionDefaultMutation.ts | 91 + .../useCreateAppPermissionMutation.ts | 88 + .../mutations/useCreateAppStepMutation.ts | 88 + .../useCreateClaimedInviteMutation.ts | 88 + .../mutations/useCreateInviteMutation.ts | 80 + .../useCreateMembershipTypeMutation.ts | 91 + .../useCreateOrgAdminGrantMutation.ts | 88 + .../useCreateOrgClaimedInviteMutation.ts | 91 + .../mutations/useCreateOrgGrantMutation.ts | 88 + .../mutations/useCreateOrgInviteMutation.ts | 88 + .../useCreateOrgLimitDefaultMutation.ts | 91 + .../mutations/useCreateOrgLimitMutation.ts | 88 + .../mutations/useCreateOrgMemberMutation.ts | 88 + .../useCreateOrgMembershipDefaultMutation.ts | 91 + .../useCreateOrgMembershipMutation.ts | 88 + .../useCreateOrgOwnerGrantMutation.ts | 88 + .../useCreateOrgPermissionDefaultMutation.ts | 91 + .../useCreateOrgPermissionMutation.ts | 88 + .../useDeleteAppAchievementMutation.ts | 98 + .../useDeleteAppAdminGrantMutation.ts | 98 + .../mutations/useDeleteAppGrantMutation.ts | 98 + .../mutations/useDeleteAppLevelMutation.ts | 98 + .../useDeleteAppLevelRequirementMutation.ts | 104 + .../useDeleteAppLimitDefaultMutation.ts | 98 + .../mutations/useDeleteAppLimitMutation.ts | 98 + .../useDeleteAppMembershipDefaultMutation.ts | 104 + .../useDeleteAppMembershipMutation.ts | 98 + .../useDeleteAppOwnerGrantMutation.ts | 98 + .../useDeleteAppPermissionDefaultMutation.ts | 104 + .../useDeleteAppPermissionMutation.ts | 98 + .../mutations/useDeleteAppStepMutation.ts | 98 + .../useDeleteClaimedInviteMutation.ts | 98 + .../mutations/useDeleteInviteMutation.ts | 98 + .../useDeleteMembershipTypeMutation.ts | 98 + .../useDeleteOrgAdminGrantMutation.ts | 98 + .../useDeleteOrgClaimedInviteMutation.ts | 98 + .../mutations/useDeleteOrgGrantMutation.ts | 98 + .../mutations/useDeleteOrgInviteMutation.ts | 98 + .../useDeleteOrgLimitDefaultMutation.ts | 98 + .../mutations/useDeleteOrgLimitMutation.ts | 98 + .../mutations/useDeleteOrgMemberMutation.ts | 98 + .../useDeleteOrgMembershipDefaultMutation.ts | 104 + .../useDeleteOrgMembershipMutation.ts | 98 + .../useDeleteOrgOwnerGrantMutation.ts | 98 + .../useDeleteOrgPermissionDefaultMutation.ts | 104 + .../useDeleteOrgPermissionMutation.ts | 98 + .../mutations/useSubmitInviteCodeMutation.ts | 55 + .../useSubmitOrgInviteCodeMutation.ts | 58 + .../useUpdateAppAchievementMutation.ts | 116 + .../useUpdateAppAdminGrantMutation.ts | 116 + .../mutations/useUpdateAppGrantMutation.ts | 102 + .../mutations/useUpdateAppLevelMutation.ts | 102 + .../useUpdateAppLevelRequirementMutation.ts | 116 + .../useUpdateAppLimitDefaultMutation.ts | 116 + .../mutations/useUpdateAppLimitMutation.ts | 102 + .../useUpdateAppMembershipDefaultMutation.ts | 116 + .../useUpdateAppMembershipMutation.ts | 116 + .../useUpdateAppOwnerGrantMutation.ts | 116 + .../useUpdateAppPermissionDefaultMutation.ts | 116 + .../useUpdateAppPermissionMutation.ts | 116 + .../mutations/useUpdateAppStepMutation.ts | 102 + .../useUpdateClaimedInviteMutation.ts | 116 + .../mutations/useUpdateInviteMutation.ts | 102 + .../useUpdateMembershipTypeMutation.ts | 116 + .../useUpdateOrgAdminGrantMutation.ts | 116 + .../useUpdateOrgClaimedInviteMutation.ts | 116 + .../mutations/useUpdateOrgGrantMutation.ts | 102 + .../mutations/useUpdateOrgInviteMutation.ts | 110 + .../useUpdateOrgLimitDefaultMutation.ts | 116 + .../mutations/useUpdateOrgLimitMutation.ts | 102 + .../mutations/useUpdateOrgMemberMutation.ts | 110 + .../useUpdateOrgMembershipDefaultMutation.ts | 116 + .../useUpdateOrgMembershipMutation.ts | 116 + .../useUpdateOrgOwnerGrantMutation.ts | 116 + .../useUpdateOrgPermissionDefaultMutation.ts | 116 + .../useUpdateOrgPermissionMutation.ts | 116 + .../src/admin/hooks/queries/index.ts | 71 + .../hooks/queries/useAppAchievementQuery.ts | 138 + .../hooks/queries/useAppAchievementsQuery.ts | 159 + .../hooks/queries/useAppAdminGrantQuery.ts | 138 + .../hooks/queries/useAppAdminGrantsQuery.ts | 151 + .../admin/hooks/queries/useAppGrantQuery.ts | 138 + .../admin/hooks/queries/useAppGrantsQuery.ts | 145 + .../admin/hooks/queries/useAppLevelQuery.ts | 138 + .../queries/useAppLevelRequirementQuery.ts | 144 + .../queries/useAppLevelRequirementsQuery.ts | 174 + .../admin/hooks/queries/useAppLevelsQuery.ts | 145 + .../hooks/queries/useAppLimitDefaultQuery.ts | 138 + .../hooks/queries/useAppLimitDefaultsQuery.ts | 163 + .../admin/hooks/queries/useAppLimitQuery.ts | 138 + .../admin/hooks/queries/useAppLimitsQuery.ts | 145 + .../queries/useAppMembershipDefaultQuery.ts | 144 + .../queries/useAppMembershipDefaultsQuery.ts | 178 + .../hooks/queries/useAppMembershipQuery.ts | 138 + .../hooks/queries/useAppMembershipsQuery.ts | 151 + .../hooks/queries/useAppOwnerGrantQuery.ts | 138 + .../hooks/queries/useAppOwnerGrantsQuery.ts | 151 + .../queries/useAppPermissionDefaultQuery.ts | 144 + .../queries/useAppPermissionDefaultsQuery.ts | 178 + .../hooks/queries/useAppPermissionQuery.ts | 138 + .../useAppPermissionsGetByMaskQuery.ts | 108 + .../useAppPermissionsGetMaskByNamesQuery.ts | 107 + .../queries/useAppPermissionsGetMaskQuery.ts | 107 + .../useAppPermissionsGetPaddedMaskQuery.ts | 107 + .../hooks/queries/useAppPermissionsQuery.ts | 151 + .../admin/hooks/queries/useAppStepQuery.ts | 138 + .../admin/hooks/queries/useAppStepsQuery.ts | 145 + .../hooks/queries/useClaimedInviteQuery.ts | 138 + .../hooks/queries/useClaimedInvitesQuery.ts | 151 + .../src/admin/hooks/queries/useInviteQuery.ts | 138 + .../admin/hooks/queries/useInvitesQuery.ts | 139 + .../hooks/queries/useMembershipTypeQuery.ts | 138 + .../hooks/queries/useMembershipTypesQuery.ts | 159 + .../hooks/queries/useOrgAdminGrantQuery.ts | 138 + .../hooks/queries/useOrgAdminGrantsQuery.ts | 151 + .../hooks/queries/useOrgClaimedInviteQuery.ts | 138 + .../queries/useOrgClaimedInvitesQuery.ts | 163 + .../admin/hooks/queries/useOrgGrantQuery.ts | 138 + .../admin/hooks/queries/useOrgGrantsQuery.ts | 145 + .../admin/hooks/queries/useOrgInviteQuery.ts | 138 + .../admin/hooks/queries/useOrgInvitesQuery.ts | 145 + .../hooks/queries/useOrgLimitDefaultQuery.ts | 138 + .../hooks/queries/useOrgLimitDefaultsQuery.ts | 163 + .../admin/hooks/queries/useOrgLimitQuery.ts | 138 + .../admin/hooks/queries/useOrgLimitsQuery.ts | 145 + .../admin/hooks/queries/useOrgMemberQuery.ts | 138 + .../admin/hooks/queries/useOrgMembersQuery.ts | 145 + .../queries/useOrgMembershipDefaultQuery.ts | 144 + .../queries/useOrgMembershipDefaultsQuery.ts | 178 + .../hooks/queries/useOrgMembershipQuery.ts | 138 + .../hooks/queries/useOrgMembershipsQuery.ts | 151 + .../hooks/queries/useOrgOwnerGrantQuery.ts | 138 + .../hooks/queries/useOrgOwnerGrantsQuery.ts | 151 + .../queries/useOrgPermissionDefaultQuery.ts | 144 + .../queries/useOrgPermissionDefaultsQuery.ts | 178 + .../hooks/queries/useOrgPermissionQuery.ts | 138 + .../useOrgPermissionsGetByMaskQuery.ts | 108 + .../useOrgPermissionsGetMaskByNamesQuery.ts | 107 + .../queries/useOrgPermissionsGetMaskQuery.ts | 107 + .../useOrgPermissionsGetPaddedMaskQuery.ts | 107 + .../hooks/queries/useOrgPermissionsQuery.ts | 151 + .../hooks/queries/useStepsAchievedQuery.ts | 105 + .../hooks/queries/useStepsRequiredQuery.ts | 106 + .../src/admin/hooks/query-keys.ts | 359 + .../src/admin/hooks/selection.ts | 60 + .../src/admin/hooks/skills/appAchievement.md | 34 + .../src/admin/hooks/skills/appAdminGrant.md | 34 + .../src/admin/hooks/skills/appGrant.md | 34 + .../src/admin/hooks/skills/appLevel.md | 34 + .../admin/hooks/skills/appLevelRequirement.md | 34 + .../src/admin/hooks/skills/appLimit.md | 34 + .../src/admin/hooks/skills/appLimitDefault.md | 34 + .../src/admin/hooks/skills/appMembership.md | 34 + .../hooks/skills/appMembershipDefault.md | 34 + .../src/admin/hooks/skills/appOwnerGrant.md | 34 + .../src/admin/hooks/skills/appPermission.md | 34 + .../hooks/skills/appPermissionDefault.md | 34 + .../hooks/skills/appPermissionsGetByMask.md | 19 + .../hooks/skills/appPermissionsGetMask.md | 19 + .../skills/appPermissionsGetMaskByNames.md | 19 + .../skills/appPermissionsGetPaddedMask.md | 19 + .../src/admin/hooks/skills/appStep.md | 34 + .../src/admin/hooks/skills/claimedInvite.md | 34 + .../src/admin/hooks/skills/invite.md | 34 + .../src/admin/hooks/skills/membershipType.md | 34 + .../src/admin/hooks/skills/orgAdminGrant.md | 34 + .../admin/hooks/skills/orgClaimedInvite.md | 34 + .../src/admin/hooks/skills/orgGrant.md | 34 + .../src/admin/hooks/skills/orgInvite.md | 34 + .../src/admin/hooks/skills/orgLimit.md | 34 + .../src/admin/hooks/skills/orgLimitDefault.md | 34 + .../src/admin/hooks/skills/orgMember.md | 34 + .../src/admin/hooks/skills/orgMembership.md | 34 + .../hooks/skills/orgMembershipDefault.md | 34 + .../src/admin/hooks/skills/orgOwnerGrant.md | 34 + .../src/admin/hooks/skills/orgPermission.md | 34 + .../hooks/skills/orgPermissionDefault.md | 34 + .../hooks/skills/orgPermissionsGetByMask.md | 19 + .../hooks/skills/orgPermissionsGetMask.md | 19 + .../skills/orgPermissionsGetMaskByNames.md | 19 + .../skills/orgPermissionsGetPaddedMask.md | 19 + .../src/admin/hooks/skills/stepsAchieved.md | 19 + .../src/admin/hooks/skills/stepsRequired.md | 19 + .../admin/hooks/skills/submitInviteCode.md | 20 + .../admin/hooks/skills/submitOrgInviteCode.md | 20 + sdk/constructive-react/src/admin/index.ts | 7 + .../src/admin/orm/README.md | 1233 + .../src/admin/orm/client.ts | 137 + sdk/constructive-react/src/admin/orm/index.ts | 102 + .../src/admin/orm/input-types.ts | 4294 ++++ .../src/admin/orm/models/appAchievement.ts | 236 + .../src/admin/orm/models/appAdminGrant.ts | 236 + .../src/admin/orm/models/appGrant.ts | 236 + .../src/admin/orm/models/appLevel.ts | 236 + .../admin/orm/models/appLevelRequirement.ts | 236 + .../src/admin/orm/models/appLimit.ts | 236 + .../src/admin/orm/models/appLimitDefault.ts | 236 + .../src/admin/orm/models/appMembership.ts | 236 + .../admin/orm/models/appMembershipDefault.ts | 238 + .../src/admin/orm/models/appOwnerGrant.ts | 236 + .../src/admin/orm/models/appPermission.ts | 236 + .../admin/orm/models/appPermissionDefault.ts | 238 + .../src/admin/orm/models/appStep.ts | 236 + .../src/admin/orm/models/claimedInvite.ts | 236 + .../src/admin/orm/models/index.ts | 33 + .../src/admin/orm/models/invite.ts | 236 + .../src/admin/orm/models/membershipType.ts | 236 + .../src/admin/orm/models/orgAdminGrant.ts | 236 + .../src/admin/orm/models/orgClaimedInvite.ts | 236 + .../src/admin/orm/models/orgGrant.ts | 236 + .../src/admin/orm/models/orgInvite.ts | 236 + .../src/admin/orm/models/orgLimit.ts | 236 + .../src/admin/orm/models/orgLimitDefault.ts | 236 + .../src/admin/orm/models/orgMember.ts | 236 + .../src/admin/orm/models/orgMembership.ts | 236 + .../admin/orm/models/orgMembershipDefault.ts | 238 + .../src/admin/orm/models/orgOwnerGrant.ts | 236 + .../src/admin/orm/models/orgPermission.ts | 236 + .../admin/orm/models/orgPermissionDefault.ts | 238 + .../src/admin/orm/mutation/index.ts | 85 + .../src/admin/orm/query-builder.ts | 847 + .../src/admin/orm/query/index.ts | 411 + .../src/admin/orm/select-types.ts | 140 + .../src/admin/orm/skills/appAchievement.md | 34 + .../src/admin/orm/skills/appAdminGrant.md | 34 + .../src/admin/orm/skills/appGrant.md | 34 + .../src/admin/orm/skills/appLevel.md | 34 + .../admin/orm/skills/appLevelRequirement.md | 34 + .../src/admin/orm/skills/appLimit.md | 34 + .../src/admin/orm/skills/appLimitDefault.md | 34 + .../src/admin/orm/skills/appMembership.md | 34 + .../admin/orm/skills/appMembershipDefault.md | 34 + .../src/admin/orm/skills/appOwnerGrant.md | 34 + .../src/admin/orm/skills/appPermission.md | 34 + .../admin/orm/skills/appPermissionDefault.md | 34 + .../orm/skills/appPermissionsGetByMask.md | 19 + .../admin/orm/skills/appPermissionsGetMask.md | 19 + .../skills/appPermissionsGetMaskByNames.md | 19 + .../orm/skills/appPermissionsGetPaddedMask.md | 19 + .../src/admin/orm/skills/appStep.md | 34 + .../src/admin/orm/skills/claimedInvite.md | 34 + .../src/admin/orm/skills/invite.md | 34 + .../src/admin/orm/skills/membershipType.md | 34 + .../src/admin/orm/skills/orgAdminGrant.md | 34 + .../src/admin/orm/skills/orgClaimedInvite.md | 34 + .../src/admin/orm/skills/orgGrant.md | 34 + .../src/admin/orm/skills/orgInvite.md | 34 + .../src/admin/orm/skills/orgLimit.md | 34 + .../src/admin/orm/skills/orgLimitDefault.md | 34 + .../src/admin/orm/skills/orgMember.md | 34 + .../src/admin/orm/skills/orgMembership.md | 34 + .../admin/orm/skills/orgMembershipDefault.md | 34 + .../src/admin/orm/skills/orgOwnerGrant.md | 34 + .../src/admin/orm/skills/orgPermission.md | 34 + .../admin/orm/skills/orgPermissionDefault.md | 34 + .../orm/skills/orgPermissionsGetByMask.md | 19 + .../admin/orm/skills/orgPermissionsGetMask.md | 19 + .../skills/orgPermissionsGetMaskByNames.md | 19 + .../orm/skills/orgPermissionsGetPaddedMask.md | 19 + .../src/admin/orm/skills/stepsAchieved.md | 19 + .../src/admin/orm/skills/stepsRequired.md | 19 + .../src/admin/orm/skills/submitInviteCode.md | 19 + .../admin/orm/skills/submitOrgInviteCode.md | 19 + sdk/constructive-react/src/admin/orm/types.ts | 8 + .../src/admin/schema-types.ts | 3737 +++ sdk/constructive-react/src/admin/types.ts | 473 + sdk/constructive-react/src/auth/README.md | 54 + .../src/auth/hooks/README.md | 454 + .../src/auth/hooks/client.ts | 42 + .../src/auth/hooks/index.ts | 39 + .../src/auth/hooks/invalidation.ts | 210 + .../src/auth/hooks/mutation-keys.ts | 180 + .../src/auth/hooks/mutations/index.ts | 42 + .../mutations/useCheckPasswordMutation.ts | 55 + .../useConfirmDeleteAccountMutation.ts | 58 + .../mutations/useCreateAuditLogMutation.ts | 88 + .../useCreateConnectedAccountMutation.ts | 91 + .../useCreateCryptoAddressMutation.ts | 88 + .../hooks/mutations/useCreateEmailMutation.ts | 80 + .../mutations/useCreatePhoneNumberMutation.ts | 88 + .../mutations/useCreateRoleTypeMutation.ts | 88 + .../hooks/mutations/useCreateUserMutation.ts | 80 + .../mutations/useDeleteAuditLogMutation.ts | 98 + .../useDeleteConnectedAccountMutation.ts | 98 + .../useDeleteCryptoAddressMutation.ts | 98 + .../hooks/mutations/useDeleteEmailMutation.ts | 98 + .../mutations/useDeletePhoneNumberMutation.ts | 98 + .../mutations/useDeleteRoleTypeMutation.ts | 98 + .../hooks/mutations/useDeleteUserMutation.ts | 98 + .../useExtendTokenExpiresMutation.ts | 58 + .../mutations/useForgotPasswordMutation.ts | 55 + .../mutations/useOneTimeTokenMutation.ts | 55 + .../mutations/useResetPasswordMutation.ts | 55 + .../useSendAccountDeletionEmailMutation.ts | 60 + .../useSendVerificationEmailMutation.ts | 58 + .../hooks/mutations/useSetPasswordMutation.ts | 55 + .../auth/hooks/mutations/useSignInMutation.ts | 55 + .../useSignInOneTimeTokenMutation.ts | 58 + .../hooks/mutations/useSignOutMutation.ts | 55 + .../auth/hooks/mutations/useSignUpMutation.ts | 55 + .../mutations/useUpdateAuditLogMutation.ts | 102 + .../useUpdateConnectedAccountMutation.ts | 116 + .../useUpdateCryptoAddressMutation.ts | 116 + .../hooks/mutations/useUpdateEmailMutation.ts | 102 + .../mutations/useUpdatePhoneNumberMutation.ts | 110 + .../mutations/useUpdateRoleTypeMutation.ts | 102 + .../hooks/mutations/useUpdateUserMutation.ts | 102 + .../hooks/mutations/useVerifyEmailMutation.ts | 55 + .../mutations/useVerifyPasswordMutation.ts | 55 + .../hooks/mutations/useVerifyTotpMutation.ts | 55 + .../src/auth/hooks/queries/index.ts | 23 + .../auth/hooks/queries/useAuditLogQuery.ts | 138 + .../auth/hooks/queries/useAuditLogsQuery.ts | 145 + .../hooks/queries/useConnectedAccountQuery.ts | 138 + .../queries/useConnectedAccountsQuery.ts | 163 + .../hooks/queries/useCryptoAddressQuery.ts | 138 + .../hooks/queries/useCryptoAddressesQuery.ts | 151 + .../hooks/queries/useCurrentIpAddressQuery.ts | 90 + .../hooks/queries/useCurrentUserAgentQuery.ts | 90 + .../hooks/queries/useCurrentUserIdQuery.ts | 90 + .../auth/hooks/queries/useCurrentUserQuery.ts | 125 + .../src/auth/hooks/queries/useEmailQuery.ts | 138 + .../src/auth/hooks/queries/useEmailsQuery.ts | 139 + .../auth/hooks/queries/usePhoneNumberQuery.ts | 138 + .../hooks/queries/usePhoneNumbersQuery.ts | 145 + .../auth/hooks/queries/useRoleTypeQuery.ts | 138 + .../auth/hooks/queries/useRoleTypesQuery.ts | 145 + .../src/auth/hooks/queries/useUserQuery.ts | 138 + .../src/auth/hooks/queries/useUsersQuery.ts | 129 + .../src/auth/hooks/query-keys.ts | 129 + .../src/auth/hooks/selection.ts | 60 + .../src/auth/hooks/skills/auditLog.md | 34 + .../src/auth/hooks/skills/checkPassword.md | 20 + .../auth/hooks/skills/confirmDeleteAccount.md | 20 + .../src/auth/hooks/skills/connectedAccount.md | 34 + .../src/auth/hooks/skills/cryptoAddress.md | 34 + .../src/auth/hooks/skills/currentIpAddress.md | 19 + .../src/auth/hooks/skills/currentUser.md | 19 + .../src/auth/hooks/skills/currentUserAgent.md | 19 + .../src/auth/hooks/skills/currentUserId.md | 19 + .../src/auth/hooks/skills/email.md | 34 + .../auth/hooks/skills/extendTokenExpires.md | 20 + .../src/auth/hooks/skills/forgotPassword.md | 20 + .../src/auth/hooks/skills/oneTimeToken.md | 20 + .../src/auth/hooks/skills/phoneNumber.md | 34 + .../src/auth/hooks/skills/resetPassword.md | 20 + .../src/auth/hooks/skills/roleType.md | 34 + .../hooks/skills/sendAccountDeletionEmail.md | 20 + .../hooks/skills/sendVerificationEmail.md | 20 + .../src/auth/hooks/skills/setPassword.md | 20 + .../src/auth/hooks/skills/signIn.md | 20 + .../auth/hooks/skills/signInOneTimeToken.md | 20 + .../src/auth/hooks/skills/signOut.md | 20 + .../src/auth/hooks/skills/signUp.md | 20 + .../src/auth/hooks/skills/user.md | 34 + .../src/auth/hooks/skills/verifyEmail.md | 20 + .../src/auth/hooks/skills/verifyPassword.md | 20 + .../src/auth/hooks/skills/verifyTotp.md | 20 + sdk/constructive-react/src/auth/index.ts | 7 + sdk/constructive-react/src/auth/orm/README.md | 573 + sdk/constructive-react/src/auth/orm/client.ts | 137 + sdk/constructive-react/src/auth/orm/index.ts | 60 + .../src/auth/orm/input-types.ts | 1594 ++ .../src/auth/orm/models/auditLog.ts | 236 + .../src/auth/orm/models/connectedAccount.ts | 236 + .../src/auth/orm/models/cryptoAddress.ts | 236 + .../src/auth/orm/models/email.ts | 236 + .../src/auth/orm/models/index.ts | 12 + .../src/auth/orm/models/phoneNumber.ts | 236 + .../src/auth/orm/models/roleType.ts | 236 + .../src/auth/orm/models/user.ts | 236 + .../src/auth/orm/mutation/index.ts | 575 + .../src/auth/orm/query-builder.ts | 847 + .../src/auth/orm/query/index.ts | 94 + .../src/auth/orm/select-types.ts | 140 + .../src/auth/orm/skills/auditLog.md | 34 + .../src/auth/orm/skills/checkPassword.md | 19 + .../auth/orm/skills/confirmDeleteAccount.md | 19 + .../src/auth/orm/skills/connectedAccount.md | 34 + .../src/auth/orm/skills/cryptoAddress.md | 34 + .../src/auth/orm/skills/currentIpAddress.md | 19 + .../src/auth/orm/skills/currentUser.md | 19 + .../src/auth/orm/skills/currentUserAgent.md | 19 + .../src/auth/orm/skills/currentUserId.md | 19 + .../src/auth/orm/skills/email.md | 34 + .../src/auth/orm/skills/extendTokenExpires.md | 19 + .../src/auth/orm/skills/forgotPassword.md | 19 + .../src/auth/orm/skills/oneTimeToken.md | 19 + .../src/auth/orm/skills/phoneNumber.md | 34 + .../src/auth/orm/skills/resetPassword.md | 19 + .../src/auth/orm/skills/roleType.md | 34 + .../orm/skills/sendAccountDeletionEmail.md | 19 + .../auth/orm/skills/sendVerificationEmail.md | 19 + .../src/auth/orm/skills/setPassword.md | 19 + .../src/auth/orm/skills/signIn.md | 19 + .../src/auth/orm/skills/signInOneTimeToken.md | 19 + .../src/auth/orm/skills/signOut.md | 19 + .../src/auth/orm/skills/signUp.md | 19 + .../src/auth/orm/skills/user.md | 34 + .../src/auth/orm/skills/verifyEmail.md | 19 + .../src/auth/orm/skills/verifyPassword.md | 19 + .../src/auth/orm/skills/verifyTotp.md | 19 + sdk/constructive-react/src/auth/orm/types.ts | 8 + .../src/auth/schema-types.ts | 1416 ++ sdk/constructive-react/src/auth/types.ts | 288 + sdk/constructive-react/src/index.ts | 8 + sdk/constructive-react/src/objects/README.md | 54 + .../src/objects/hooks/README.md | 327 + .../src/objects/hooks/client.ts | 42 + .../src/objects/hooks/index.ts | 39 + .../src/objects/hooks/invalidation.ts | 152 + .../src/objects/hooks/mutation-keys.ts | 130 + .../src/objects/hooks/mutations/index.ts | 26 + .../mutations/useCreateCommitMutation.ts | 80 + .../useCreateGetAllRecordMutation.ts | 88 + .../mutations/useCreateObjectMutation.ts | 80 + .../hooks/mutations/useCreateRefMutation.ts | 80 + .../hooks/mutations/useCreateStoreMutation.ts | 80 + .../mutations/useDeleteCommitMutation.ts | 98 + .../mutations/useDeleteObjectMutation.ts | 98 + .../hooks/mutations/useDeleteRefMutation.ts | 98 + .../hooks/mutations/useDeleteStoreMutation.ts | 98 + .../mutations/useFreezeObjectsMutation.ts | 55 + .../mutations/useInitEmptyRepoMutation.ts | 55 + .../mutations/useInsertNodeAtPathMutation.ts | 55 + .../mutations/useRemoveNodeAtPathMutation.ts | 55 + .../mutations/useSetAndCommitMutation.ts | 55 + .../mutations/useSetDataAtPathMutation.ts | 55 + .../mutations/useSetPropsAndCommitMutation.ts | 58 + .../mutations/useUpdateCommitMutation.ts | 102 + .../mutations/useUpdateNodeAtPathMutation.ts | 55 + .../mutations/useUpdateObjectMutation.ts | 102 + .../hooks/mutations/useUpdateRefMutation.ts | 102 + .../hooks/mutations/useUpdateStoreMutation.ts | 102 + .../src/objects/hooks/queries/index.ts | 18 + .../objects/hooks/queries/useCommitQuery.ts | 138 + .../objects/hooks/queries/useCommitsQuery.ts | 139 + .../queries/useGetAllObjectsFromRootQuery.ts | 108 + .../objects/hooks/queries/useGetAllQuery.ts | 145 + .../hooks/queries/useGetObjectAtPathQuery.ts | 139 + .../queries/useGetPathObjectsFromRootQuery.ts | 108 + .../objects/hooks/queries/useObjectQuery.ts | 138 + .../objects/hooks/queries/useObjectsQuery.ts | 139 + .../src/objects/hooks/queries/useRefQuery.ts | 135 + .../src/objects/hooks/queries/useRefsQuery.ts | 129 + .../objects/hooks/queries/useRevParseQuery.ts | 105 + .../objects/hooks/queries/useStoreQuery.ts | 138 + .../objects/hooks/queries/useStoresQuery.ts | 139 + .../src/objects/hooks/query-keys.ts | 112 + .../src/objects/hooks/selection.ts | 60 + .../src/objects/hooks/skills/commit.md | 34 + .../src/objects/hooks/skills/freezeObjects.md | 20 + .../hooks/skills/getAllObjectsFromRoot.md | 19 + .../src/objects/hooks/skills/getAllRecord.md | 31 + .../objects/hooks/skills/getObjectAtPath.md | 19 + .../hooks/skills/getPathObjectsFromRoot.md | 19 + .../src/objects/hooks/skills/initEmptyRepo.md | 20 + .../objects/hooks/skills/insertNodeAtPath.md | 20 + .../src/objects/hooks/skills/object.md | 34 + .../src/objects/hooks/skills/ref.md | 34 + .../objects/hooks/skills/removeNodeAtPath.md | 20 + .../src/objects/hooks/skills/revParse.md | 19 + .../src/objects/hooks/skills/setAndCommit.md | 20 + .../src/objects/hooks/skills/setDataAtPath.md | 20 + .../objects/hooks/skills/setPropsAndCommit.md | 20 + .../src/objects/hooks/skills/store.md | 34 + .../objects/hooks/skills/updateNodeAtPath.md | 20 + sdk/constructive-react/src/objects/index.ts | 7 + .../src/objects/orm/README.md | 405 + .../src/objects/orm/client.ts | 137 + .../src/objects/orm/index.ts | 56 + .../src/objects/orm/input-types.ts | 1032 + .../src/objects/orm/models/commit.ts | 236 + .../src/objects/orm/models/getAllRecord.ts | 127 + .../src/objects/orm/models/index.ts | 10 + .../src/objects/orm/models/object.ts | 222 + .../src/objects/orm/models/ref.ts | 236 + .../src/objects/orm/models/store.ts | 236 + .../src/objects/orm/mutation/index.ts | 295 + .../src/objects/orm/query-builder.ts | 847 + .../src/objects/orm/query/index.ts | 224 + .../src/objects/orm/select-types.ts | 140 + .../src/objects/orm/skills/commit.md | 34 + .../src/objects/orm/skills/freezeObjects.md | 19 + .../orm/skills/getAllObjectsFromRoot.md | 19 + .../src/objects/orm/skills/getAllRecord.md | 34 + .../src/objects/orm/skills/getObjectAtPath.md | 19 + .../orm/skills/getPathObjectsFromRoot.md | 19 + .../src/objects/orm/skills/initEmptyRepo.md | 19 + .../objects/orm/skills/insertNodeAtPath.md | 19 + .../src/objects/orm/skills/object.md | 34 + .../src/objects/orm/skills/ref.md | 34 + .../objects/orm/skills/removeNodeAtPath.md | 19 + .../src/objects/orm/skills/revParse.md | 19 + .../src/objects/orm/skills/setAndCommit.md | 19 + .../src/objects/orm/skills/setDataAtPath.md | 19 + .../objects/orm/skills/setPropsAndCommit.md | 19 + .../src/objects/orm/skills/store.md | 34 + .../objects/orm/skills/updateNodeAtPath.md | 19 + .../src/objects/orm/types.ts | 8 + .../src/objects/schema-types.ts | 764 + sdk/constructive-react/src/objects/types.ts | 261 + sdk/constructive-react/src/public/README.md | 54 + .../src/public/hooks/README.md | 3242 +++ .../src/public/hooks/client.ts | 42 + .../src/public/hooks/index.ts | 39 + .../src/public/hooks/invalidation.ts | 2431 ++ .../src/public/hooks/mutation-keys.ts | 1144 + .../src/public/hooks/mutations/index.ts | 327 + .../hooks/mutations/useApplyRlsMutation.ts | 55 + .../mutations/useBootstrapUserMutation.ts | 55 + .../mutations/useCheckPasswordMutation.ts | 55 + .../useConfirmDeleteAccountMutation.ts | 58 + .../mutations/useCreateApiModuleMutation.ts | 88 + .../hooks/mutations/useCreateApiMutation.ts | 80 + .../mutations/useCreateApiSchemaMutation.ts | 88 + .../useCreateAppAchievementMutation.ts | 91 + .../useCreateAppAdminGrantMutation.ts | 88 + .../mutations/useCreateAppGrantMutation.ts | 88 + .../mutations/useCreateAppLevelMutation.ts | 88 + .../useCreateAppLevelRequirementMutation.ts | 91 + .../useCreateAppLimitDefaultMutation.ts | 91 + .../mutations/useCreateAppLimitMutation.ts | 88 + .../useCreateAppMembershipDefaultMutation.ts | 91 + .../useCreateAppMembershipMutation.ts | 88 + .../hooks/mutations/useCreateAppMutation.ts | 80 + .../useCreateAppOwnerGrantMutation.ts | 88 + .../useCreateAppPermissionDefaultMutation.ts | 91 + .../useCreateAppPermissionMutation.ts | 88 + .../mutations/useCreateAppStepMutation.ts | 88 + .../useCreateAstMigrationMutation.ts | 88 + .../mutations/useCreateAuditLogMutation.ts | 88 + .../useCreateCheckConstraintMutation.ts | 91 + .../useCreateClaimedInviteMutation.ts | 88 + .../mutations/useCreateCommitMutation.ts | 80 + .../useCreateConnectedAccountMutation.ts | 91 + ...seCreateConnectedAccountsModuleMutation.ts | 91 + .../useCreateCryptoAddressMutation.ts | 88 + .../useCreateCryptoAddressesModuleMutation.ts | 91 + .../useCreateCryptoAuthModuleMutation.ts | 91 + .../mutations/useCreateDatabaseMutation.ts | 88 + ...seCreateDatabaseProvisionModuleMutation.ts | 91 + .../useCreateDefaultIdsModuleMutation.ts | 91 + ...useCreateDenormalizedTableFieldMutation.ts | 91 + .../mutations/useCreateDomainMutation.ts | 80 + .../hooks/mutations/useCreateEmailMutation.ts | 80 + .../useCreateEmailsModuleMutation.ts | 88 + ...useCreateEncryptedSecretsModuleMutation.ts | 91 + .../mutations/useCreateFieldModuleMutation.ts | 88 + .../hooks/mutations/useCreateFieldMutation.ts | 80 + .../useCreateForeignKeyConstraintMutation.ts | 91 + .../useCreateFullTextSearchMutation.ts | 91 + .../useCreateGetAllRecordMutation.ts | 88 + .../useCreateHierarchyModuleMutation.ts | 91 + .../hooks/mutations/useCreateIndexMutation.ts | 80 + .../mutations/useCreateInviteMutation.ts | 80 + .../useCreateInvitesModuleMutation.ts | 88 + .../useCreateLevelsModuleMutation.ts | 88 + .../useCreateLimitFunctionMutation.ts | 88 + .../useCreateLimitsModuleMutation.ts | 88 + .../useCreateMembershipTypeMutation.ts | 91 + .../useCreateMembershipTypesModuleMutation.ts | 91 + .../useCreateMembershipsModuleMutation.ts | 91 + .../useCreateNodeTypeRegistryMutation.ts | 91 + .../mutations/useCreateObjectMutation.ts | 80 + .../useCreateOrgAdminGrantMutation.ts | 88 + .../useCreateOrgClaimedInviteMutation.ts | 91 + .../mutations/useCreateOrgGrantMutation.ts | 88 + .../mutations/useCreateOrgInviteMutation.ts | 88 + .../useCreateOrgLimitDefaultMutation.ts | 91 + .../mutations/useCreateOrgLimitMutation.ts | 88 + .../mutations/useCreateOrgMemberMutation.ts | 88 + .../useCreateOrgMembershipDefaultMutation.ts | 91 + .../useCreateOrgMembershipMutation.ts | 88 + .../useCreateOrgOwnerGrantMutation.ts | 88 + .../useCreateOrgPermissionDefaultMutation.ts | 91 + .../useCreateOrgPermissionMutation.ts | 88 + .../useCreatePermissionsModuleMutation.ts | 91 + .../mutations/useCreatePhoneNumberMutation.ts | 88 + .../useCreatePhoneNumbersModuleMutation.ts | 91 + .../mutations/useCreatePolicyMutation.ts | 80 + .../useCreatePrimaryKeyConstraintMutation.ts | 91 + .../mutations/useCreateProcedureMutation.ts | 88 + .../useCreateProfilesModuleMutation.ts | 91 + .../hooks/mutations/useCreateRefMutation.ts | 80 + .../mutations/useCreateRlsModuleMutation.ts | 88 + .../mutations/useCreateRoleTypeMutation.ts | 88 + .../mutations/useCreateSchemaGrantMutation.ts | 88 + .../mutations/useCreateSchemaMutation.ts | 80 + .../useCreateSecretsModuleMutation.ts | 88 + .../useCreateSessionsModuleMutation.ts | 91 + .../useCreateSiteMetadatumMutation.ts | 88 + .../mutations/useCreateSiteModuleMutation.ts | 88 + .../hooks/mutations/useCreateSiteMutation.ts | 80 + .../mutations/useCreateSiteThemeMutation.ts | 88 + .../useCreateSqlMigrationMutation.ts | 88 + .../hooks/mutations/useCreateStoreMutation.ts | 80 + .../mutations/useCreateTableGrantMutation.ts | 88 + .../mutations/useCreateTableModuleMutation.ts | 88 + .../hooks/mutations/useCreateTableMutation.ts | 80 + .../useCreateTableTemplateModuleMutation.ts | 91 + .../useCreateTriggerFunctionMutation.ts | 91 + .../mutations/useCreateTriggerMutation.ts | 88 + .../useCreateUniqueConstraintMutation.ts | 91 + .../useCreateUserAuthModuleMutation.ts | 91 + .../useCreateUserDatabaseMutation.ts | 58 + .../hooks/mutations/useCreateUserMutation.ts | 80 + .../mutations/useCreateUsersModuleMutation.ts | 88 + .../mutations/useCreateUuidModuleMutation.ts | 88 + .../mutations/useCreateViewGrantMutation.ts | 88 + .../hooks/mutations/useCreateViewMutation.ts | 80 + .../mutations/useCreateViewRuleMutation.ts | 88 + .../mutations/useCreateViewTableMutation.ts | 88 + .../mutations/useDeleteApiModuleMutation.ts | 98 + .../hooks/mutations/useDeleteApiMutation.ts | 98 + .../mutations/useDeleteApiSchemaMutation.ts | 98 + .../useDeleteAppAchievementMutation.ts | 98 + .../useDeleteAppAdminGrantMutation.ts | 98 + .../mutations/useDeleteAppGrantMutation.ts | 98 + .../mutations/useDeleteAppLevelMutation.ts | 98 + .../useDeleteAppLevelRequirementMutation.ts | 104 + .../useDeleteAppLimitDefaultMutation.ts | 98 + .../mutations/useDeleteAppLimitMutation.ts | 98 + .../useDeleteAppMembershipDefaultMutation.ts | 104 + .../useDeleteAppMembershipMutation.ts | 98 + .../hooks/mutations/useDeleteAppMutation.ts | 98 + .../useDeleteAppOwnerGrantMutation.ts | 98 + .../useDeleteAppPermissionDefaultMutation.ts | 104 + .../useDeleteAppPermissionMutation.ts | 98 + .../mutations/useDeleteAppStepMutation.ts | 98 + .../mutations/useDeleteAuditLogMutation.ts | 98 + .../useDeleteCheckConstraintMutation.ts | 98 + .../useDeleteClaimedInviteMutation.ts | 98 + .../mutations/useDeleteCommitMutation.ts | 98 + .../useDeleteConnectedAccountMutation.ts | 98 + ...seDeleteConnectedAccountsModuleMutation.ts | 104 + .../useDeleteCryptoAddressMutation.ts | 98 + .../useDeleteCryptoAddressesModuleMutation.ts | 104 + .../useDeleteCryptoAuthModuleMutation.ts | 98 + .../mutations/useDeleteDatabaseMutation.ts | 98 + ...seDeleteDatabaseProvisionModuleMutation.ts | 104 + .../useDeleteDefaultIdsModuleMutation.ts | 98 + ...useDeleteDenormalizedTableFieldMutation.ts | 104 + .../mutations/useDeleteDomainMutation.ts | 98 + .../hooks/mutations/useDeleteEmailMutation.ts | 98 + .../useDeleteEmailsModuleMutation.ts | 98 + ...useDeleteEncryptedSecretsModuleMutation.ts | 104 + .../mutations/useDeleteFieldModuleMutation.ts | 98 + .../hooks/mutations/useDeleteFieldMutation.ts | 98 + .../useDeleteForeignKeyConstraintMutation.ts | 104 + .../useDeleteFullTextSearchMutation.ts | 98 + .../useDeleteHierarchyModuleMutation.ts | 98 + .../hooks/mutations/useDeleteIndexMutation.ts | 98 + .../mutations/useDeleteInviteMutation.ts | 98 + .../useDeleteInvitesModuleMutation.ts | 98 + .../useDeleteLevelsModuleMutation.ts | 98 + .../useDeleteLimitFunctionMutation.ts | 98 + .../useDeleteLimitsModuleMutation.ts | 98 + .../useDeleteMembershipTypeMutation.ts | 98 + .../useDeleteMembershipTypesModuleMutation.ts | 104 + .../useDeleteMembershipsModuleMutation.ts | 104 + .../useDeleteNodeTypeRegistryMutation.ts | 98 + .../mutations/useDeleteObjectMutation.ts | 98 + .../useDeleteOrgAdminGrantMutation.ts | 98 + .../useDeleteOrgClaimedInviteMutation.ts | 98 + .../mutations/useDeleteOrgGrantMutation.ts | 98 + .../mutations/useDeleteOrgInviteMutation.ts | 98 + .../useDeleteOrgLimitDefaultMutation.ts | 98 + .../mutations/useDeleteOrgLimitMutation.ts | 98 + .../mutations/useDeleteOrgMemberMutation.ts | 98 + .../useDeleteOrgMembershipDefaultMutation.ts | 104 + .../useDeleteOrgMembershipMutation.ts | 98 + .../useDeleteOrgOwnerGrantMutation.ts | 98 + .../useDeleteOrgPermissionDefaultMutation.ts | 104 + .../useDeleteOrgPermissionMutation.ts | 98 + .../useDeletePermissionsModuleMutation.ts | 104 + .../mutations/useDeletePhoneNumberMutation.ts | 98 + .../useDeletePhoneNumbersModuleMutation.ts | 104 + .../mutations/useDeletePolicyMutation.ts | 98 + .../useDeletePrimaryKeyConstraintMutation.ts | 104 + .../mutations/useDeleteProcedureMutation.ts | 98 + .../useDeleteProfilesModuleMutation.ts | 98 + .../hooks/mutations/useDeleteRefMutation.ts | 98 + .../mutations/useDeleteRlsModuleMutation.ts | 98 + .../mutations/useDeleteRoleTypeMutation.ts | 98 + .../mutations/useDeleteSchemaGrantMutation.ts | 98 + .../mutations/useDeleteSchemaMutation.ts | 98 + .../useDeleteSecretsModuleMutation.ts | 98 + .../useDeleteSessionsModuleMutation.ts | 98 + .../useDeleteSiteMetadatumMutation.ts | 98 + .../mutations/useDeleteSiteModuleMutation.ts | 98 + .../hooks/mutations/useDeleteSiteMutation.ts | 98 + .../mutations/useDeleteSiteThemeMutation.ts | 98 + .../hooks/mutations/useDeleteStoreMutation.ts | 98 + .../mutations/useDeleteTableGrantMutation.ts | 98 + .../mutations/useDeleteTableModuleMutation.ts | 98 + .../hooks/mutations/useDeleteTableMutation.ts | 98 + .../useDeleteTableTemplateModuleMutation.ts | 104 + .../useDeleteTriggerFunctionMutation.ts | 98 + .../mutations/useDeleteTriggerMutation.ts | 98 + .../useDeleteUniqueConstraintMutation.ts | 98 + .../useDeleteUserAuthModuleMutation.ts | 98 + .../hooks/mutations/useDeleteUserMutation.ts | 98 + .../mutations/useDeleteUsersModuleMutation.ts | 98 + .../mutations/useDeleteUuidModuleMutation.ts | 98 + .../mutations/useDeleteViewGrantMutation.ts | 98 + .../hooks/mutations/useDeleteViewMutation.ts | 98 + .../mutations/useDeleteViewRuleMutation.ts | 98 + .../mutations/useDeleteViewTableMutation.ts | 98 + .../useExtendTokenExpiresMutation.ts | 58 + .../mutations/useForgotPasswordMutation.ts | 55 + .../mutations/useFreezeObjectsMutation.ts | 55 + .../mutations/useInitEmptyRepoMutation.ts | 55 + .../mutations/useInsertNodeAtPathMutation.ts | 55 + .../mutations/useOneTimeTokenMutation.ts | 55 + .../useProvisionDatabaseWithUserMutation.ts | 60 + .../mutations/useRemoveNodeAtPathMutation.ts | 55 + .../mutations/useResetPasswordMutation.ts | 55 + .../useSendAccountDeletionEmailMutation.ts | 60 + .../useSendVerificationEmailMutation.ts | 58 + .../mutations/useSetAndCommitMutation.ts | 55 + .../mutations/useSetDataAtPathMutation.ts | 55 + .../mutations/useSetFieldOrderMutation.ts | 55 + .../hooks/mutations/useSetPasswordMutation.ts | 55 + .../mutations/useSetPropsAndCommitMutation.ts | 58 + .../hooks/mutations/useSignInMutation.ts | 55 + .../useSignInOneTimeTokenMutation.ts | 58 + .../hooks/mutations/useSignOutMutation.ts | 55 + .../hooks/mutations/useSignUpMutation.ts | 55 + .../mutations/useSubmitInviteCodeMutation.ts | 55 + .../useSubmitOrgInviteCodeMutation.ts | 58 + .../mutations/useUpdateApiModuleMutation.ts | 110 + .../hooks/mutations/useUpdateApiMutation.ts | 102 + .../mutations/useUpdateApiSchemaMutation.ts | 110 + .../useUpdateAppAchievementMutation.ts | 116 + .../useUpdateAppAdminGrantMutation.ts | 116 + .../mutations/useUpdateAppGrantMutation.ts | 102 + .../mutations/useUpdateAppLevelMutation.ts | 102 + .../useUpdateAppLevelRequirementMutation.ts | 116 + .../useUpdateAppLimitDefaultMutation.ts | 116 + .../mutations/useUpdateAppLimitMutation.ts | 102 + .../useUpdateAppMembershipDefaultMutation.ts | 116 + .../useUpdateAppMembershipMutation.ts | 116 + .../hooks/mutations/useUpdateAppMutation.ts | 102 + .../useUpdateAppOwnerGrantMutation.ts | 116 + .../useUpdateAppPermissionDefaultMutation.ts | 116 + .../useUpdateAppPermissionMutation.ts | 116 + .../mutations/useUpdateAppStepMutation.ts | 102 + .../mutations/useUpdateAuditLogMutation.ts | 102 + .../useUpdateCheckConstraintMutation.ts | 116 + .../useUpdateClaimedInviteMutation.ts | 116 + .../mutations/useUpdateCommitMutation.ts | 102 + .../useUpdateConnectedAccountMutation.ts | 116 + ...seUpdateConnectedAccountsModuleMutation.ts | 116 + .../useUpdateCryptoAddressMutation.ts | 116 + .../useUpdateCryptoAddressesModuleMutation.ts | 116 + .../useUpdateCryptoAuthModuleMutation.ts | 116 + .../mutations/useUpdateDatabaseMutation.ts | 102 + ...seUpdateDatabaseProvisionModuleMutation.ts | 116 + .../useUpdateDefaultIdsModuleMutation.ts | 116 + ...useUpdateDenormalizedTableFieldMutation.ts | 116 + .../mutations/useUpdateDomainMutation.ts | 102 + .../hooks/mutations/useUpdateEmailMutation.ts | 102 + .../useUpdateEmailsModuleMutation.ts | 110 + ...useUpdateEncryptedSecretsModuleMutation.ts | 116 + .../mutations/useUpdateFieldModuleMutation.ts | 110 + .../hooks/mutations/useUpdateFieldMutation.ts | 102 + .../useUpdateForeignKeyConstraintMutation.ts | 116 + .../useUpdateFullTextSearchMutation.ts | 116 + .../useUpdateHierarchyModuleMutation.ts | 116 + .../hooks/mutations/useUpdateIndexMutation.ts | 102 + .../mutations/useUpdateInviteMutation.ts | 102 + .../useUpdateInvitesModuleMutation.ts | 116 + .../useUpdateLevelsModuleMutation.ts | 110 + .../useUpdateLimitFunctionMutation.ts | 116 + .../useUpdateLimitsModuleMutation.ts | 110 + .../useUpdateMembershipTypeMutation.ts | 116 + .../useUpdateMembershipTypesModuleMutation.ts | 116 + .../useUpdateMembershipsModuleMutation.ts | 116 + .../mutations/useUpdateNodeAtPathMutation.ts | 55 + .../useUpdateNodeTypeRegistryMutation.ts | 116 + .../mutations/useUpdateObjectMutation.ts | 102 + .../useUpdateOrgAdminGrantMutation.ts | 116 + .../useUpdateOrgClaimedInviteMutation.ts | 116 + .../mutations/useUpdateOrgGrantMutation.ts | 102 + .../mutations/useUpdateOrgInviteMutation.ts | 110 + .../useUpdateOrgLimitDefaultMutation.ts | 116 + .../mutations/useUpdateOrgLimitMutation.ts | 102 + .../mutations/useUpdateOrgMemberMutation.ts | 110 + .../useUpdateOrgMembershipDefaultMutation.ts | 116 + .../useUpdateOrgMembershipMutation.ts | 116 + .../useUpdateOrgOwnerGrantMutation.ts | 116 + .../useUpdateOrgPermissionDefaultMutation.ts | 116 + .../useUpdateOrgPermissionMutation.ts | 116 + .../useUpdatePermissionsModuleMutation.ts | 116 + .../mutations/useUpdatePhoneNumberMutation.ts | 110 + .../useUpdatePhoneNumbersModuleMutation.ts | 116 + .../mutations/useUpdatePolicyMutation.ts | 102 + .../useUpdatePrimaryKeyConstraintMutation.ts | 116 + .../mutations/useUpdateProcedureMutation.ts | 110 + .../useUpdateProfilesModuleMutation.ts | 116 + .../hooks/mutations/useUpdateRefMutation.ts | 102 + .../mutations/useUpdateRlsModuleMutation.ts | 110 + .../mutations/useUpdateRoleTypeMutation.ts | 102 + .../mutations/useUpdateSchemaGrantMutation.ts | 110 + .../mutations/useUpdateSchemaMutation.ts | 102 + .../useUpdateSecretsModuleMutation.ts | 116 + .../useUpdateSessionsModuleMutation.ts | 116 + .../useUpdateSiteMetadatumMutation.ts | 116 + .../mutations/useUpdateSiteModuleMutation.ts | 110 + .../hooks/mutations/useUpdateSiteMutation.ts | 102 + .../mutations/useUpdateSiteThemeMutation.ts | 110 + .../hooks/mutations/useUpdateStoreMutation.ts | 102 + .../mutations/useUpdateTableGrantMutation.ts | 110 + .../mutations/useUpdateTableModuleMutation.ts | 110 + .../hooks/mutations/useUpdateTableMutation.ts | 102 + .../useUpdateTableTemplateModuleMutation.ts | 116 + .../useUpdateTriggerFunctionMutation.ts | 116 + .../mutations/useUpdateTriggerMutation.ts | 102 + .../useUpdateUniqueConstraintMutation.ts | 116 + .../useUpdateUserAuthModuleMutation.ts | 116 + .../hooks/mutations/useUpdateUserMutation.ts | 102 + .../mutations/useUpdateUsersModuleMutation.ts | 110 + .../mutations/useUpdateUuidModuleMutation.ts | 110 + .../mutations/useUpdateViewGrantMutation.ts | 110 + .../hooks/mutations/useUpdateViewMutation.ts | 102 + .../mutations/useUpdateViewRuleMutation.ts | 102 + .../mutations/useUpdateViewTableMutation.ts | 110 + .../hooks/mutations/useVerifyEmailMutation.ts | 55 + .../mutations/useVerifyPasswordMutation.ts | 55 + .../hooks/mutations/useVerifyTotpMutation.ts | 55 + .../src/public/hooks/queries/index.ts | 220 + .../public/hooks/queries/useApiModuleQuery.ts | 138 + .../hooks/queries/useApiModulesQuery.ts | 145 + .../src/public/hooks/queries/useApiQuery.ts | 135 + .../public/hooks/queries/useApiSchemaQuery.ts | 138 + .../hooks/queries/useApiSchemasQuery.ts | 145 + .../src/public/hooks/queries/useApisQuery.ts | 129 + .../hooks/queries/useAppAchievementQuery.ts | 138 + .../hooks/queries/useAppAchievementsQuery.ts | 159 + .../hooks/queries/useAppAdminGrantQuery.ts | 138 + .../hooks/queries/useAppAdminGrantsQuery.ts | 151 + .../public/hooks/queries/useAppGrantQuery.ts | 138 + .../public/hooks/queries/useAppGrantsQuery.ts | 145 + .../public/hooks/queries/useAppLevelQuery.ts | 138 + .../queries/useAppLevelRequirementQuery.ts | 144 + .../queries/useAppLevelRequirementsQuery.ts | 174 + .../public/hooks/queries/useAppLevelsQuery.ts | 145 + .../hooks/queries/useAppLimitDefaultQuery.ts | 138 + .../hooks/queries/useAppLimitDefaultsQuery.ts | 163 + .../public/hooks/queries/useAppLimitQuery.ts | 138 + .../public/hooks/queries/useAppLimitsQuery.ts | 145 + .../queries/useAppMembershipDefaultQuery.ts | 144 + .../queries/useAppMembershipDefaultsQuery.ts | 178 + .../hooks/queries/useAppMembershipQuery.ts | 138 + .../hooks/queries/useAppMembershipsQuery.ts | 151 + .../hooks/queries/useAppOwnerGrantQuery.ts | 138 + .../hooks/queries/useAppOwnerGrantsQuery.ts | 151 + .../queries/useAppPermissionDefaultQuery.ts | 144 + .../queries/useAppPermissionDefaultsQuery.ts | 178 + .../hooks/queries/useAppPermissionQuery.ts | 138 + .../useAppPermissionsGetByMaskQuery.ts | 108 + .../useAppPermissionsGetMaskByNamesQuery.ts | 107 + .../queries/useAppPermissionsGetMaskQuery.ts | 107 + .../useAppPermissionsGetPaddedMaskQuery.ts | 107 + .../hooks/queries/useAppPermissionsQuery.ts | 151 + .../src/public/hooks/queries/useAppQuery.ts | 135 + .../public/hooks/queries/useAppStepQuery.ts | 138 + .../public/hooks/queries/useAppStepsQuery.ts | 145 + .../src/public/hooks/queries/useAppsQuery.ts | 129 + .../hooks/queries/useAstMigrationQuery.ts | 138 + .../hooks/queries/useAstMigrationsQuery.ts | 145 + .../public/hooks/queries/useAuditLogQuery.ts | 138 + .../public/hooks/queries/useAuditLogsQuery.ts | 145 + .../hooks/queries/useCheckConstraintQuery.ts | 138 + .../hooks/queries/useCheckConstraintsQuery.ts | 163 + .../hooks/queries/useClaimedInviteQuery.ts | 138 + .../hooks/queries/useClaimedInvitesQuery.ts | 151 + .../public/hooks/queries/useCommitQuery.ts | 138 + .../public/hooks/queries/useCommitsQuery.ts | 139 + .../hooks/queries/useConnectedAccountQuery.ts | 138 + .../useConnectedAccountsModuleQuery.ts | 146 + .../useConnectedAccountsModulesQuery.ts | 182 + .../queries/useConnectedAccountsQuery.ts | 163 + .../hooks/queries/useCryptoAddressQuery.ts | 138 + .../queries/useCryptoAddressesModuleQuery.ts | 146 + .../queries/useCryptoAddressesModulesQuery.ts | 180 + .../hooks/queries/useCryptoAddressesQuery.ts | 151 + .../hooks/queries/useCryptoAuthModuleQuery.ts | 138 + .../queries/useCryptoAuthModulesQuery.ts | 163 + .../hooks/queries/useCurrentIpAddressQuery.ts | 90 + .../hooks/queries/useCurrentUserAgentQuery.ts | 90 + .../hooks/queries/useCurrentUserIdQuery.ts | 90 + .../hooks/queries/useCurrentUserQuery.ts | 125 + .../useDatabaseProvisionModuleQuery.ts | 146 + .../useDatabaseProvisionModulesQuery.ts | 182 + .../public/hooks/queries/useDatabaseQuery.ts | 138 + .../public/hooks/queries/useDatabasesQuery.ts | 145 + .../hooks/queries/useDefaultIdsModuleQuery.ts | 138 + .../queries/useDefaultIdsModulesQuery.ts | 163 + .../queries/useDenormalizedTableFieldQuery.ts | 146 + .../useDenormalizedTableFieldsQuery.ts | 180 + .../public/hooks/queries/useDomainQuery.ts | 138 + .../public/hooks/queries/useDomainsQuery.ts | 139 + .../src/public/hooks/queries/useEmailQuery.ts | 138 + .../hooks/queries/useEmailsModuleQuery.ts | 138 + .../hooks/queries/useEmailsModulesQuery.ts | 145 + .../public/hooks/queries/useEmailsQuery.ts | 139 + .../queries/useEncryptedSecretsModuleQuery.ts | 146 + .../useEncryptedSecretsModulesQuery.ts | 180 + .../hooks/queries/useFieldModuleQuery.ts | 138 + .../hooks/queries/useFieldModulesQuery.ts | 145 + .../src/public/hooks/queries/useFieldQuery.ts | 138 + .../public/hooks/queries/useFieldsQuery.ts | 139 + .../queries/useForeignKeyConstraintQuery.ts | 144 + .../queries/useForeignKeyConstraintsQuery.ts | 178 + .../hooks/queries/useFullTextSearchQuery.ts | 138 + .../hooks/queries/useFullTextSearchesQuery.ts | 159 + .../queries/useGetAllObjectsFromRootQuery.ts | 108 + .../public/hooks/queries/useGetAllQuery.ts | 145 + .../hooks/queries/useGetObjectAtPathQuery.ts | 139 + .../queries/useGetPathObjectsFromRootQuery.ts | 108 + .../hooks/queries/useHierarchyModuleQuery.ts | 138 + .../hooks/queries/useHierarchyModulesQuery.ts | 163 + .../src/public/hooks/queries/useIndexQuery.ts | 138 + .../public/hooks/queries/useIndicesQuery.ts | 139 + .../public/hooks/queries/useInviteQuery.ts | 138 + .../hooks/queries/useInvitesModuleQuery.ts | 138 + .../hooks/queries/useInvitesModulesQuery.ts | 151 + .../public/hooks/queries/useInvitesQuery.ts | 139 + .../hooks/queries/useLevelsModuleQuery.ts | 138 + .../hooks/queries/useLevelsModulesQuery.ts | 145 + .../hooks/queries/useLimitFunctionQuery.ts | 138 + .../hooks/queries/useLimitFunctionsQuery.ts | 151 + .../hooks/queries/useLimitsModuleQuery.ts | 138 + .../hooks/queries/useLimitsModulesQuery.ts | 145 + .../hooks/queries/useMembershipTypeQuery.ts | 138 + .../queries/useMembershipTypesModuleQuery.ts | 146 + .../queries/useMembershipTypesModulesQuery.ts | 180 + .../hooks/queries/useMembershipTypesQuery.ts | 159 + .../queries/useMembershipsModuleQuery.ts | 144 + .../queries/useMembershipsModulesQuery.ts | 163 + .../queries/useNodeTypeRegistriesQuery.ts | 163 + .../hooks/queries/useNodeTypeRegistryQuery.ts | 138 + .../public/hooks/queries/useObjectQuery.ts | 138 + .../public/hooks/queries/useObjectsQuery.ts | 139 + .../hooks/queries/useOrgAdminGrantQuery.ts | 138 + .../hooks/queries/useOrgAdminGrantsQuery.ts | 151 + .../hooks/queries/useOrgClaimedInviteQuery.ts | 138 + .../queries/useOrgClaimedInvitesQuery.ts | 163 + .../public/hooks/queries/useOrgGrantQuery.ts | 138 + .../public/hooks/queries/useOrgGrantsQuery.ts | 145 + .../public/hooks/queries/useOrgInviteQuery.ts | 138 + .../hooks/queries/useOrgInvitesQuery.ts | 145 + .../hooks/queries/useOrgLimitDefaultQuery.ts | 138 + .../hooks/queries/useOrgLimitDefaultsQuery.ts | 163 + .../public/hooks/queries/useOrgLimitQuery.ts | 138 + .../public/hooks/queries/useOrgLimitsQuery.ts | 145 + .../public/hooks/queries/useOrgMemberQuery.ts | 138 + .../hooks/queries/useOrgMembersQuery.ts | 145 + .../queries/useOrgMembershipDefaultQuery.ts | 144 + .../queries/useOrgMembershipDefaultsQuery.ts | 178 + .../hooks/queries/useOrgMembershipQuery.ts | 138 + .../hooks/queries/useOrgMembershipsQuery.ts | 151 + .../hooks/queries/useOrgOwnerGrantQuery.ts | 138 + .../hooks/queries/useOrgOwnerGrantsQuery.ts | 151 + .../queries/useOrgPermissionDefaultQuery.ts | 144 + .../queries/useOrgPermissionDefaultsQuery.ts | 178 + .../hooks/queries/useOrgPermissionQuery.ts | 138 + .../useOrgPermissionsGetByMaskQuery.ts | 108 + .../useOrgPermissionsGetMaskByNamesQuery.ts | 107 + .../queries/useOrgPermissionsGetMaskQuery.ts | 107 + .../useOrgPermissionsGetPaddedMaskQuery.ts | 107 + .../hooks/queries/useOrgPermissionsQuery.ts | 151 + .../queries/usePermissionsModuleQuery.ts | 144 + .../queries/usePermissionsModulesQuery.ts | 163 + .../hooks/queries/usePhoneNumberQuery.ts | 138 + .../queries/usePhoneNumbersModuleQuery.ts | 144 + .../queries/usePhoneNumbersModulesQuery.ts | 171 + .../hooks/queries/usePhoneNumbersQuery.ts | 145 + .../public/hooks/queries/usePoliciesQuery.ts | 139 + .../public/hooks/queries/usePolicyQuery.ts | 138 + .../queries/usePrimaryKeyConstraintQuery.ts | 144 + .../queries/usePrimaryKeyConstraintsQuery.ts | 178 + .../public/hooks/queries/useProcedureQuery.ts | 138 + .../hooks/queries/useProceduresQuery.ts | 145 + .../hooks/queries/useProfilesModuleQuery.ts | 138 + .../hooks/queries/useProfilesModulesQuery.ts | 159 + .../src/public/hooks/queries/useRefQuery.ts | 135 + .../src/public/hooks/queries/useRefsQuery.ts | 129 + .../public/hooks/queries/useRevParseQuery.ts | 105 + .../public/hooks/queries/useRlsModuleQuery.ts | 138 + .../hooks/queries/useRlsModulesQuery.ts | 145 + .../public/hooks/queries/useRoleTypeQuery.ts | 138 + .../public/hooks/queries/useRoleTypesQuery.ts | 145 + .../hooks/queries/useSchemaGrantQuery.ts | 138 + .../hooks/queries/useSchemaGrantsQuery.ts | 145 + .../public/hooks/queries/useSchemaQuery.ts | 138 + .../public/hooks/queries/useSchemasQuery.ts | 139 + .../hooks/queries/useSecretsModuleQuery.ts | 138 + .../hooks/queries/useSecretsModulesQuery.ts | 151 + .../hooks/queries/useSessionsModuleQuery.ts | 138 + .../hooks/queries/useSessionsModulesQuery.ts | 159 + .../hooks/queries/useSiteMetadataQuery.ts | 151 + .../hooks/queries/useSiteMetadatumQuery.ts | 138 + .../hooks/queries/useSiteModuleQuery.ts | 138 + .../hooks/queries/useSiteModulesQuery.ts | 145 + .../src/public/hooks/queries/useSiteQuery.ts | 138 + .../public/hooks/queries/useSiteThemeQuery.ts | 138 + .../hooks/queries/useSiteThemesQuery.ts | 145 + .../src/public/hooks/queries/useSitesQuery.ts | 129 + .../hooks/queries/useSqlMigrationQuery.ts | 138 + .../hooks/queries/useSqlMigrationsQuery.ts | 145 + .../hooks/queries/useStepsAchievedQuery.ts | 105 + .../hooks/queries/useStepsRequiredQuery.ts | 106 + .../src/public/hooks/queries/useStoreQuery.ts | 138 + .../public/hooks/queries/useStoresQuery.ts | 139 + .../hooks/queries/useTableGrantQuery.ts | 138 + .../hooks/queries/useTableGrantsQuery.ts | 145 + .../hooks/queries/useTableModuleQuery.ts | 138 + .../hooks/queries/useTableModulesQuery.ts | 145 + .../src/public/hooks/queries/useTableQuery.ts | 138 + .../queries/useTableTemplateModuleQuery.ts | 144 + .../queries/useTableTemplateModulesQuery.ts | 174 + .../public/hooks/queries/useTablesQuery.ts | 139 + .../hooks/queries/useTriggerFunctionQuery.ts | 138 + .../hooks/queries/useTriggerFunctionsQuery.ts | 163 + .../public/hooks/queries/useTriggerQuery.ts | 138 + .../public/hooks/queries/useTriggersQuery.ts | 145 + .../hooks/queries/useUniqueConstraintQuery.ts | 138 + .../queries/useUniqueConstraintsQuery.ts | 163 + .../hooks/queries/useUserAuthModuleQuery.ts | 138 + .../hooks/queries/useUserAuthModulesQuery.ts | 159 + .../src/public/hooks/queries/useUserQuery.ts | 138 + .../hooks/queries/useUsersModuleQuery.ts | 138 + .../hooks/queries/useUsersModulesQuery.ts | 145 + .../src/public/hooks/queries/useUsersQuery.ts | 129 + .../hooks/queries/useUuidModuleQuery.ts | 138 + .../hooks/queries/useUuidModulesQuery.ts | 145 + .../public/hooks/queries/useViewGrantQuery.ts | 138 + .../hooks/queries/useViewGrantsQuery.ts | 145 + .../src/public/hooks/queries/useViewQuery.ts | 138 + .../public/hooks/queries/useViewRuleQuery.ts | 138 + .../public/hooks/queries/useViewRulesQuery.ts | 145 + .../public/hooks/queries/useViewTableQuery.ts | 138 + .../hooks/queries/useViewTablesQuery.ts | 145 + .../src/public/hooks/queries/useViewsQuery.ts | 129 + .../src/public/hooks/query-keys.ts | 1080 + .../src/public/hooks/selection.ts | 60 + .../src/public/hooks/skills/api.md | 34 + .../src/public/hooks/skills/apiModule.md | 34 + .../src/public/hooks/skills/apiSchema.md | 34 + .../src/public/hooks/skills/app.md | 34 + .../src/public/hooks/skills/appAchievement.md | 34 + .../src/public/hooks/skills/appAdminGrant.md | 34 + .../src/public/hooks/skills/appGrant.md | 34 + .../src/public/hooks/skills/appLevel.md | 34 + .../hooks/skills/appLevelRequirement.md | 34 + .../src/public/hooks/skills/appLimit.md | 34 + .../public/hooks/skills/appLimitDefault.md | 34 + .../src/public/hooks/skills/appMembership.md | 34 + .../hooks/skills/appMembershipDefault.md | 34 + .../src/public/hooks/skills/appOwnerGrant.md | 34 + .../src/public/hooks/skills/appPermission.md | 34 + .../hooks/skills/appPermissionDefault.md | 34 + .../hooks/skills/appPermissionsGetByMask.md | 19 + .../hooks/skills/appPermissionsGetMask.md | 19 + .../skills/appPermissionsGetMaskByNames.md | 19 + .../skills/appPermissionsGetPaddedMask.md | 19 + .../src/public/hooks/skills/appStep.md | 34 + .../src/public/hooks/skills/applyRls.md | 20 + .../src/public/hooks/skills/astMigration.md | 34 + .../src/public/hooks/skills/auditLog.md | 34 + .../src/public/hooks/skills/bootstrapUser.md | 20 + .../public/hooks/skills/checkConstraint.md | 34 + .../src/public/hooks/skills/checkPassword.md | 20 + .../src/public/hooks/skills/claimedInvite.md | 34 + .../src/public/hooks/skills/commit.md | 34 + .../hooks/skills/confirmDeleteAccount.md | 20 + .../public/hooks/skills/connectedAccount.md | 34 + .../hooks/skills/connectedAccountsModule.md | 34 + .../public/hooks/skills/createUserDatabase.md | 36 + .../src/public/hooks/skills/cryptoAddress.md | 34 + .../hooks/skills/cryptoAddressesModule.md | 34 + .../public/hooks/skills/cryptoAuthModule.md | 34 + .../public/hooks/skills/currentIpAddress.md | 19 + .../src/public/hooks/skills/currentUser.md | 19 + .../public/hooks/skills/currentUserAgent.md | 19 + .../src/public/hooks/skills/currentUserId.md | 19 + .../src/public/hooks/skills/database.md | 34 + .../hooks/skills/databaseProvisionModule.md | 34 + .../public/hooks/skills/defaultIdsModule.md | 34 + .../hooks/skills/denormalizedTableField.md | 34 + .../src/public/hooks/skills/domain.md | 34 + .../src/public/hooks/skills/email.md | 34 + .../src/public/hooks/skills/emailsModule.md | 34 + .../hooks/skills/encryptedSecretsModule.md | 34 + .../public/hooks/skills/extendTokenExpires.md | 20 + .../src/public/hooks/skills/field.md | 34 + .../src/public/hooks/skills/fieldModule.md | 34 + .../hooks/skills/foreignKeyConstraint.md | 34 + .../src/public/hooks/skills/forgotPassword.md | 20 + .../src/public/hooks/skills/freezeObjects.md | 20 + .../src/public/hooks/skills/fullTextSearch.md | 34 + .../hooks/skills/getAllObjectsFromRoot.md | 19 + .../src/public/hooks/skills/getAllRecord.md | 31 + .../public/hooks/skills/getObjectAtPath.md | 19 + .../hooks/skills/getPathObjectsFromRoot.md | 19 + .../public/hooks/skills/hierarchyModule.md | 34 + .../src/public/hooks/skills/index.md | 34 + .../src/public/hooks/skills/initEmptyRepo.md | 20 + .../public/hooks/skills/insertNodeAtPath.md | 20 + .../src/public/hooks/skills/invite.md | 34 + .../src/public/hooks/skills/invitesModule.md | 34 + .../src/public/hooks/skills/levelsModule.md | 34 + .../src/public/hooks/skills/limitFunction.md | 34 + .../src/public/hooks/skills/limitsModule.md | 34 + .../src/public/hooks/skills/membershipType.md | 34 + .../hooks/skills/membershipTypesModule.md | 34 + .../public/hooks/skills/membershipsModule.md | 34 + .../public/hooks/skills/nodeTypeRegistry.md | 34 + .../src/public/hooks/skills/object.md | 34 + .../src/public/hooks/skills/oneTimeToken.md | 20 + .../src/public/hooks/skills/orgAdminGrant.md | 34 + .../public/hooks/skills/orgClaimedInvite.md | 34 + .../src/public/hooks/skills/orgGrant.md | 34 + .../src/public/hooks/skills/orgInvite.md | 34 + .../src/public/hooks/skills/orgLimit.md | 34 + .../public/hooks/skills/orgLimitDefault.md | 34 + .../src/public/hooks/skills/orgMember.md | 34 + .../src/public/hooks/skills/orgMembership.md | 34 + .../hooks/skills/orgMembershipDefault.md | 34 + .../src/public/hooks/skills/orgOwnerGrant.md | 34 + .../src/public/hooks/skills/orgPermission.md | 34 + .../hooks/skills/orgPermissionDefault.md | 34 + .../hooks/skills/orgPermissionsGetByMask.md | 19 + .../hooks/skills/orgPermissionsGetMask.md | 19 + .../skills/orgPermissionsGetMaskByNames.md | 19 + .../skills/orgPermissionsGetPaddedMask.md | 19 + .../public/hooks/skills/permissionsModule.md | 34 + .../src/public/hooks/skills/phoneNumber.md | 34 + .../public/hooks/skills/phoneNumbersModule.md | 34 + .../src/public/hooks/skills/policy.md | 34 + .../hooks/skills/primaryKeyConstraint.md | 34 + .../src/public/hooks/skills/procedure.md | 34 + .../src/public/hooks/skills/profilesModule.md | 34 + .../hooks/skills/provisionDatabaseWithUser.md | 20 + .../src/public/hooks/skills/ref.md | 34 + .../public/hooks/skills/removeNodeAtPath.md | 20 + .../src/public/hooks/skills/resetPassword.md | 20 + .../src/public/hooks/skills/revParse.md | 19 + .../src/public/hooks/skills/rlsModule.md | 34 + .../src/public/hooks/skills/roleType.md | 34 + .../src/public/hooks/skills/schema.md | 34 + .../src/public/hooks/skills/schemaGrant.md | 34 + .../src/public/hooks/skills/secretsModule.md | 34 + .../hooks/skills/sendAccountDeletionEmail.md | 20 + .../hooks/skills/sendVerificationEmail.md | 20 + .../src/public/hooks/skills/sessionsModule.md | 34 + .../src/public/hooks/skills/setAndCommit.md | 20 + .../src/public/hooks/skills/setDataAtPath.md | 20 + .../src/public/hooks/skills/setFieldOrder.md | 20 + .../src/public/hooks/skills/setPassword.md | 20 + .../public/hooks/skills/setPropsAndCommit.md | 20 + .../src/public/hooks/skills/signIn.md | 20 + .../public/hooks/skills/signInOneTimeToken.md | 20 + .../src/public/hooks/skills/signOut.md | 20 + .../src/public/hooks/skills/signUp.md | 20 + .../src/public/hooks/skills/site.md | 34 + .../src/public/hooks/skills/siteMetadatum.md | 34 + .../src/public/hooks/skills/siteModule.md | 34 + .../src/public/hooks/skills/siteTheme.md | 34 + .../src/public/hooks/skills/sqlMigration.md | 34 + .../src/public/hooks/skills/stepsAchieved.md | 19 + .../src/public/hooks/skills/stepsRequired.md | 19 + .../src/public/hooks/skills/store.md | 34 + .../public/hooks/skills/submitInviteCode.md | 20 + .../hooks/skills/submitOrgInviteCode.md | 20 + .../src/public/hooks/skills/table.md | 34 + .../src/public/hooks/skills/tableGrant.md | 34 + .../src/public/hooks/skills/tableModule.md | 34 + .../hooks/skills/tableTemplateModule.md | 34 + .../src/public/hooks/skills/trigger.md | 34 + .../public/hooks/skills/triggerFunction.md | 34 + .../public/hooks/skills/uniqueConstraint.md | 34 + .../public/hooks/skills/updateNodeAtPath.md | 20 + .../src/public/hooks/skills/user.md | 34 + .../src/public/hooks/skills/userAuthModule.md | 34 + .../src/public/hooks/skills/usersModule.md | 34 + .../src/public/hooks/skills/uuidModule.md | 34 + .../src/public/hooks/skills/verifyEmail.md | 20 + .../src/public/hooks/skills/verifyPassword.md | 20 + .../src/public/hooks/skills/verifyTotp.md | 20 + .../src/public/hooks/skills/view.md | 34 + .../src/public/hooks/skills/viewGrant.md | 34 + .../src/public/hooks/skills/viewRule.md | 34 + .../src/public/hooks/skills/viewTable.md | 34 + sdk/constructive-react/src/public/index.ts | 7 + .../src/public/orm/README.md | 4601 ++++ .../src/public/orm/client.ts | 137 + .../src/public/orm/index.ts | 244 + .../src/public/orm/input-types.ts | 18834 ++++++++++++++++ .../src/public/orm/models/api.ts | 236 + .../src/public/orm/models/apiModule.ts | 236 + .../src/public/orm/models/apiSchema.ts | 236 + .../src/public/orm/models/app.ts | 236 + .../src/public/orm/models/appAchievement.ts | 236 + .../src/public/orm/models/appAdminGrant.ts | 236 + .../src/public/orm/models/appGrant.ts | 236 + .../src/public/orm/models/appLevel.ts | 236 + .../public/orm/models/appLevelRequirement.ts | 236 + .../src/public/orm/models/appLimit.ts | 236 + .../src/public/orm/models/appLimitDefault.ts | 236 + .../src/public/orm/models/appMembership.ts | 236 + .../public/orm/models/appMembershipDefault.ts | 238 + .../src/public/orm/models/appOwnerGrant.ts | 236 + .../src/public/orm/models/appPermission.ts | 236 + .../public/orm/models/appPermissionDefault.ts | 238 + .../src/public/orm/models/appStep.ts | 236 + .../src/public/orm/models/astMigration.ts | 167 + .../src/public/orm/models/auditLog.ts | 236 + .../src/public/orm/models/checkConstraint.ts | 236 + .../src/public/orm/models/claimedInvite.ts | 236 + .../src/public/orm/models/commit.ts | 236 + .../src/public/orm/models/connectedAccount.ts | 236 + .../orm/models/connectedAccountsModule.ts | 238 + .../src/public/orm/models/cryptoAddress.ts | 236 + .../orm/models/cryptoAddressesModule.ts | 238 + .../src/public/orm/models/cryptoAuthModule.ts | 236 + .../src/public/orm/models/database.ts | 236 + .../orm/models/databaseProvisionModule.ts | 238 + .../src/public/orm/models/defaultIdsModule.ts | 236 + .../orm/models/denormalizedTableField.ts | 238 + .../src/public/orm/models/domain.ts | 236 + .../src/public/orm/models/email.ts | 236 + .../src/public/orm/models/emailsModule.ts | 236 + .../orm/models/encryptedSecretsModule.ts | 238 + .../src/public/orm/models/field.ts | 236 + .../src/public/orm/models/fieldModule.ts | 236 + .../public/orm/models/foreignKeyConstraint.ts | 238 + .../src/public/orm/models/fullTextSearch.ts | 236 + .../src/public/orm/models/getAllRecord.ts | 127 + .../src/public/orm/models/hierarchyModule.ts | 236 + .../src/public/orm/models/index.ts | 104 + .../src/public/orm/models/indexModel.ts | 236 + .../src/public/orm/models/invite.ts | 236 + .../src/public/orm/models/invitesModule.ts | 236 + .../src/public/orm/models/levelsModule.ts | 236 + .../src/public/orm/models/limitFunction.ts | 236 + .../src/public/orm/models/limitsModule.ts | 236 + .../src/public/orm/models/membershipType.ts | 236 + .../orm/models/membershipTypesModule.ts | 238 + .../public/orm/models/membershipsModule.ts | 236 + .../src/public/orm/models/nodeTypeRegistry.ts | 236 + .../src/public/orm/models/object.ts | 222 + .../src/public/orm/models/orgAdminGrant.ts | 236 + .../src/public/orm/models/orgClaimedInvite.ts | 236 + .../src/public/orm/models/orgGrant.ts | 236 + .../src/public/orm/models/orgInvite.ts | 236 + .../src/public/orm/models/orgLimit.ts | 236 + .../src/public/orm/models/orgLimitDefault.ts | 236 + .../src/public/orm/models/orgMember.ts | 236 + .../src/public/orm/models/orgMembership.ts | 236 + .../public/orm/models/orgMembershipDefault.ts | 238 + .../src/public/orm/models/orgOwnerGrant.ts | 236 + .../src/public/orm/models/orgPermission.ts | 236 + .../public/orm/models/orgPermissionDefault.ts | 238 + .../public/orm/models/permissionsModule.ts | 236 + .../src/public/orm/models/phoneNumber.ts | 236 + .../public/orm/models/phoneNumbersModule.ts | 236 + .../src/public/orm/models/policy.ts | 236 + .../public/orm/models/primaryKeyConstraint.ts | 238 + .../src/public/orm/models/procedure.ts | 236 + .../src/public/orm/models/profilesModule.ts | 236 + .../src/public/orm/models/ref.ts | 236 + .../src/public/orm/models/rlsModule.ts | 236 + .../src/public/orm/models/roleType.ts | 236 + .../src/public/orm/models/schema.ts | 236 + .../src/public/orm/models/schemaGrant.ts | 236 + .../src/public/orm/models/secretsModule.ts | 236 + .../src/public/orm/models/sessionsModule.ts | 236 + .../src/public/orm/models/site.ts | 236 + .../src/public/orm/models/siteMetadatum.ts | 236 + .../src/public/orm/models/siteModule.ts | 236 + .../src/public/orm/models/siteTheme.ts | 236 + .../src/public/orm/models/sqlMigration.ts | 167 + .../src/public/orm/models/store.ts | 236 + .../src/public/orm/models/table.ts | 236 + .../src/public/orm/models/tableGrant.ts | 236 + .../src/public/orm/models/tableModule.ts | 236 + .../public/orm/models/tableTemplateModule.ts | 236 + .../src/public/orm/models/trigger.ts | 236 + .../src/public/orm/models/triggerFunction.ts | 236 + .../src/public/orm/models/uniqueConstraint.ts | 236 + .../src/public/orm/models/user.ts | 236 + .../src/public/orm/models/userAuthModule.ts | 236 + .../src/public/orm/models/usersModule.ts | 236 + .../src/public/orm/models/uuidModule.ts | 236 + .../src/public/orm/models/view.ts | 236 + .../src/public/orm/models/viewGrant.ts | 236 + .../src/public/orm/models/viewRule.ts | 236 + .../src/public/orm/models/viewTable.ts | 236 + .../src/public/orm/mutation/index.ts | 1119 + .../src/public/orm/query-builder.ts | 847 + .../src/public/orm/query/index.ts | 706 + .../src/public/orm/select-types.ts | 140 + .../src/public/orm/skills/api.md | 34 + .../src/public/orm/skills/apiModule.md | 34 + .../src/public/orm/skills/apiSchema.md | 34 + .../src/public/orm/skills/app.md | 34 + .../src/public/orm/skills/appAchievement.md | 34 + .../src/public/orm/skills/appAdminGrant.md | 34 + .../src/public/orm/skills/appGrant.md | 34 + .../src/public/orm/skills/appLevel.md | 34 + .../public/orm/skills/appLevelRequirement.md | 34 + .../src/public/orm/skills/appLimit.md | 34 + .../src/public/orm/skills/appLimitDefault.md | 34 + .../src/public/orm/skills/appMembership.md | 34 + .../public/orm/skills/appMembershipDefault.md | 34 + .../src/public/orm/skills/appOwnerGrant.md | 34 + .../src/public/orm/skills/appPermission.md | 34 + .../public/orm/skills/appPermissionDefault.md | 34 + .../orm/skills/appPermissionsGetByMask.md | 19 + .../orm/skills/appPermissionsGetMask.md | 19 + .../skills/appPermissionsGetMaskByNames.md | 19 + .../orm/skills/appPermissionsGetPaddedMask.md | 19 + .../src/public/orm/skills/appStep.md | 34 + .../src/public/orm/skills/applyRls.md | 19 + .../src/public/orm/skills/astMigration.md | 34 + .../src/public/orm/skills/auditLog.md | 34 + .../src/public/orm/skills/bootstrapUser.md | 19 + .../src/public/orm/skills/checkConstraint.md | 34 + .../src/public/orm/skills/checkPassword.md | 19 + .../src/public/orm/skills/claimedInvite.md | 34 + .../src/public/orm/skills/commit.md | 34 + .../public/orm/skills/confirmDeleteAccount.md | 19 + .../src/public/orm/skills/connectedAccount.md | 34 + .../orm/skills/connectedAccountsModule.md | 34 + .../public/orm/skills/createUserDatabase.md | 35 + .../src/public/orm/skills/cryptoAddress.md | 34 + .../orm/skills/cryptoAddressesModule.md | 34 + .../src/public/orm/skills/cryptoAuthModule.md | 34 + .../src/public/orm/skills/currentIpAddress.md | 19 + .../src/public/orm/skills/currentUser.md | 19 + .../src/public/orm/skills/currentUserAgent.md | 19 + .../src/public/orm/skills/currentUserId.md | 19 + .../src/public/orm/skills/database.md | 34 + .../orm/skills/databaseProvisionModule.md | 34 + .../src/public/orm/skills/defaultIdsModule.md | 34 + .../orm/skills/denormalizedTableField.md | 34 + .../src/public/orm/skills/domain.md | 34 + .../src/public/orm/skills/email.md | 34 + .../src/public/orm/skills/emailsModule.md | 34 + .../orm/skills/encryptedSecretsModule.md | 34 + .../public/orm/skills/extendTokenExpires.md | 19 + .../src/public/orm/skills/field.md | 34 + .../src/public/orm/skills/fieldModule.md | 34 + .../public/orm/skills/foreignKeyConstraint.md | 34 + .../src/public/orm/skills/forgotPassword.md | 19 + .../src/public/orm/skills/freezeObjects.md | 19 + .../src/public/orm/skills/fullTextSearch.md | 34 + .../orm/skills/getAllObjectsFromRoot.md | 19 + .../src/public/orm/skills/getAllRecord.md | 34 + .../src/public/orm/skills/getObjectAtPath.md | 19 + .../orm/skills/getPathObjectsFromRoot.md | 19 + .../src/public/orm/skills/hierarchyModule.md | 34 + .../src/public/orm/skills/index.md | 34 + .../src/public/orm/skills/initEmptyRepo.md | 19 + .../src/public/orm/skills/insertNodeAtPath.md | 19 + .../src/public/orm/skills/invite.md | 34 + .../src/public/orm/skills/invitesModule.md | 34 + .../src/public/orm/skills/levelsModule.md | 34 + .../src/public/orm/skills/limitFunction.md | 34 + .../src/public/orm/skills/limitsModule.md | 34 + .../src/public/orm/skills/membershipType.md | 34 + .../orm/skills/membershipTypesModule.md | 34 + .../public/orm/skills/membershipsModule.md | 34 + .../src/public/orm/skills/nodeTypeRegistry.md | 34 + .../src/public/orm/skills/object.md | 34 + .../src/public/orm/skills/oneTimeToken.md | 19 + .../src/public/orm/skills/orgAdminGrant.md | 34 + .../src/public/orm/skills/orgClaimedInvite.md | 34 + .../src/public/orm/skills/orgGrant.md | 34 + .../src/public/orm/skills/orgInvite.md | 34 + .../src/public/orm/skills/orgLimit.md | 34 + .../src/public/orm/skills/orgLimitDefault.md | 34 + .../src/public/orm/skills/orgMember.md | 34 + .../src/public/orm/skills/orgMembership.md | 34 + .../public/orm/skills/orgMembershipDefault.md | 34 + .../src/public/orm/skills/orgOwnerGrant.md | 34 + .../src/public/orm/skills/orgPermission.md | 34 + .../public/orm/skills/orgPermissionDefault.md | 34 + .../orm/skills/orgPermissionsGetByMask.md | 19 + .../orm/skills/orgPermissionsGetMask.md | 19 + .../skills/orgPermissionsGetMaskByNames.md | 19 + .../orm/skills/orgPermissionsGetPaddedMask.md | 19 + .../public/orm/skills/permissionsModule.md | 34 + .../src/public/orm/skills/phoneNumber.md | 34 + .../public/orm/skills/phoneNumbersModule.md | 34 + .../src/public/orm/skills/policy.md | 34 + .../public/orm/skills/primaryKeyConstraint.md | 34 + .../src/public/orm/skills/procedure.md | 34 + .../src/public/orm/skills/profilesModule.md | 34 + .../orm/skills/provisionDatabaseWithUser.md | 19 + .../src/public/orm/skills/ref.md | 34 + .../src/public/orm/skills/removeNodeAtPath.md | 19 + .../src/public/orm/skills/resetPassword.md | 19 + .../src/public/orm/skills/revParse.md | 19 + .../src/public/orm/skills/rlsModule.md | 34 + .../src/public/orm/skills/roleType.md | 34 + .../src/public/orm/skills/schema.md | 34 + .../src/public/orm/skills/schemaGrant.md | 34 + .../src/public/orm/skills/secretsModule.md | 34 + .../orm/skills/sendAccountDeletionEmail.md | 19 + .../orm/skills/sendVerificationEmail.md | 19 + .../src/public/orm/skills/sessionsModule.md | 34 + .../src/public/orm/skills/setAndCommit.md | 19 + .../src/public/orm/skills/setDataAtPath.md | 19 + .../src/public/orm/skills/setFieldOrder.md | 19 + .../src/public/orm/skills/setPassword.md | 19 + .../public/orm/skills/setPropsAndCommit.md | 19 + .../src/public/orm/skills/signIn.md | 19 + .../public/orm/skills/signInOneTimeToken.md | 19 + .../src/public/orm/skills/signOut.md | 19 + .../src/public/orm/skills/signUp.md | 19 + .../src/public/orm/skills/site.md | 34 + .../src/public/orm/skills/siteMetadatum.md | 34 + .../src/public/orm/skills/siteModule.md | 34 + .../src/public/orm/skills/siteTheme.md | 34 + .../src/public/orm/skills/sqlMigration.md | 34 + .../src/public/orm/skills/stepsAchieved.md | 19 + .../src/public/orm/skills/stepsRequired.md | 19 + .../src/public/orm/skills/store.md | 34 + .../src/public/orm/skills/submitInviteCode.md | 19 + .../public/orm/skills/submitOrgInviteCode.md | 19 + .../src/public/orm/skills/table.md | 34 + .../src/public/orm/skills/tableGrant.md | 34 + .../src/public/orm/skills/tableModule.md | 34 + .../public/orm/skills/tableTemplateModule.md | 34 + .../src/public/orm/skills/trigger.md | 34 + .../src/public/orm/skills/triggerFunction.md | 34 + .../src/public/orm/skills/uniqueConstraint.md | 34 + .../src/public/orm/skills/updateNodeAtPath.md | 19 + .../src/public/orm/skills/user.md | 34 + .../src/public/orm/skills/userAuthModule.md | 34 + .../src/public/orm/skills/usersModule.md | 34 + .../src/public/orm/skills/uuidModule.md | 34 + .../src/public/orm/skills/verifyEmail.md | 19 + .../src/public/orm/skills/verifyPassword.md | 19 + .../src/public/orm/skills/verifyTotp.md | 19 + .../src/public/orm/skills/view.md | 34 + .../src/public/orm/skills/viewGrant.md | 34 + .../src/public/orm/skills/viewRule.md | 34 + .../src/public/orm/skills/viewTable.md | 34 + .../src/public/orm/types.ts | 8 + .../src/public/schema-types.ts | 14482 ++++++++++++ sdk/constructive-react/src/public/types.ts | 1360 ++ sdk/constructive-react/tsconfig.esm.json | 7 + sdk/constructive-react/tsconfig.json | 8 + 1480 files changed, 213809 insertions(+), 7558 deletions(-) create mode 100644 sdk/constructive-react/README.md create mode 100644 sdk/constructive-react/package.json create mode 100644 sdk/constructive-react/scripts/generate-react.ts create mode 100644 sdk/constructive-react/src/admin/README.md create mode 100644 sdk/constructive-react/src/admin/hooks/README.md create mode 100644 sdk/constructive-react/src/admin/hooks/client.ts create mode 100644 sdk/constructive-react/src/admin/hooks/index.ts create mode 100644 sdk/constructive-react/src/admin/hooks/invalidation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutation-keys.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/index.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useCreateAppAchievementMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useCreateAppAdminGrantMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useCreateAppGrantMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLevelMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLevelRequirementMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLimitDefaultMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLimitMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useCreateAppMembershipDefaultMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useCreateAppMembershipMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useCreateAppOwnerGrantMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useCreateAppPermissionDefaultMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useCreateAppPermissionMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useCreateAppStepMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useCreateClaimedInviteMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useCreateInviteMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useCreateMembershipTypeMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgAdminGrantMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgClaimedInviteMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgGrantMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgInviteMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgLimitDefaultMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgLimitMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgMemberMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgMembershipDefaultMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgMembershipMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgOwnerGrantMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgPermissionDefaultMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgPermissionMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppAchievementMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppAdminGrantMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppGrantMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLevelMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLevelRequirementMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLimitDefaultMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLimitMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppMembershipDefaultMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppMembershipMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppOwnerGrantMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppPermissionDefaultMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppPermissionMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppStepMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useDeleteClaimedInviteMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useDeleteInviteMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useDeleteMembershipTypeMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgAdminGrantMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgClaimedInviteMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgGrantMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgInviteMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgLimitDefaultMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgLimitMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgMemberMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgMembershipDefaultMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgMembershipMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgOwnerGrantMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgPermissionDefaultMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgPermissionMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useSubmitInviteCodeMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useSubmitOrgInviteCodeMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppAchievementMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppAdminGrantMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppGrantMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLevelMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLevelRequirementMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLimitDefaultMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLimitMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppMembershipDefaultMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppMembershipMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppOwnerGrantMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppPermissionDefaultMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppPermissionMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppStepMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useUpdateClaimedInviteMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useUpdateInviteMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useUpdateMembershipTypeMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgAdminGrantMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgClaimedInviteMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgGrantMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgInviteMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgLimitDefaultMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgLimitMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgMemberMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgMembershipDefaultMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgMembershipMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgOwnerGrantMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgPermissionDefaultMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgPermissionMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/index.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useAppAchievementQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useAppAchievementsQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useAppAdminGrantQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useAppAdminGrantsQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useAppGrantQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useAppGrantsQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useAppLevelQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useAppLevelRequirementQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useAppLevelRequirementsQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useAppLevelsQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useAppLimitDefaultQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useAppLimitDefaultsQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useAppLimitQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useAppLimitsQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useAppMembershipDefaultQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useAppMembershipDefaultsQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useAppMembershipQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useAppMembershipsQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useAppOwnerGrantQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useAppOwnerGrantsQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useAppPermissionDefaultQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useAppPermissionDefaultsQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useAppPermissionQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useAppPermissionsGetByMaskQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useAppPermissionsGetMaskByNamesQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useAppPermissionsGetMaskQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useAppPermissionsGetPaddedMaskQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useAppPermissionsQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useAppStepQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useAppStepsQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useClaimedInviteQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useClaimedInvitesQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useInviteQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useInvitesQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useMembershipTypeQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useMembershipTypesQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useOrgAdminGrantQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useOrgAdminGrantsQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useOrgClaimedInviteQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useOrgClaimedInvitesQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useOrgGrantQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useOrgGrantsQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useOrgInviteQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useOrgInvitesQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useOrgLimitDefaultQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useOrgLimitDefaultsQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useOrgLimitQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useOrgLimitsQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useOrgMemberQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useOrgMembersQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipDefaultQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipDefaultsQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipsQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useOrgOwnerGrantQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useOrgOwnerGrantsQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionDefaultQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionDefaultsQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionsGetByMaskQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionsGetMaskByNamesQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionsGetMaskQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionsGetPaddedMaskQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionsQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useStepsAchievedQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useStepsRequiredQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/query-keys.ts create mode 100644 sdk/constructive-react/src/admin/hooks/selection.ts create mode 100644 sdk/constructive-react/src/admin/hooks/skills/appAchievement.md create mode 100644 sdk/constructive-react/src/admin/hooks/skills/appAdminGrant.md create mode 100644 sdk/constructive-react/src/admin/hooks/skills/appGrant.md create mode 100644 sdk/constructive-react/src/admin/hooks/skills/appLevel.md create mode 100644 sdk/constructive-react/src/admin/hooks/skills/appLevelRequirement.md create mode 100644 sdk/constructive-react/src/admin/hooks/skills/appLimit.md create mode 100644 sdk/constructive-react/src/admin/hooks/skills/appLimitDefault.md create mode 100644 sdk/constructive-react/src/admin/hooks/skills/appMembership.md create mode 100644 sdk/constructive-react/src/admin/hooks/skills/appMembershipDefault.md create mode 100644 sdk/constructive-react/src/admin/hooks/skills/appOwnerGrant.md create mode 100644 sdk/constructive-react/src/admin/hooks/skills/appPermission.md create mode 100644 sdk/constructive-react/src/admin/hooks/skills/appPermissionDefault.md create mode 100644 sdk/constructive-react/src/admin/hooks/skills/appPermissionsGetByMask.md create mode 100644 sdk/constructive-react/src/admin/hooks/skills/appPermissionsGetMask.md create mode 100644 sdk/constructive-react/src/admin/hooks/skills/appPermissionsGetMaskByNames.md create mode 100644 sdk/constructive-react/src/admin/hooks/skills/appPermissionsGetPaddedMask.md create mode 100644 sdk/constructive-react/src/admin/hooks/skills/appStep.md create mode 100644 sdk/constructive-react/src/admin/hooks/skills/claimedInvite.md create mode 100644 sdk/constructive-react/src/admin/hooks/skills/invite.md create mode 100644 sdk/constructive-react/src/admin/hooks/skills/membershipType.md create mode 100644 sdk/constructive-react/src/admin/hooks/skills/orgAdminGrant.md create mode 100644 sdk/constructive-react/src/admin/hooks/skills/orgClaimedInvite.md create mode 100644 sdk/constructive-react/src/admin/hooks/skills/orgGrant.md create mode 100644 sdk/constructive-react/src/admin/hooks/skills/orgInvite.md create mode 100644 sdk/constructive-react/src/admin/hooks/skills/orgLimit.md create mode 100644 sdk/constructive-react/src/admin/hooks/skills/orgLimitDefault.md create mode 100644 sdk/constructive-react/src/admin/hooks/skills/orgMember.md create mode 100644 sdk/constructive-react/src/admin/hooks/skills/orgMembership.md create mode 100644 sdk/constructive-react/src/admin/hooks/skills/orgMembershipDefault.md create mode 100644 sdk/constructive-react/src/admin/hooks/skills/orgOwnerGrant.md create mode 100644 sdk/constructive-react/src/admin/hooks/skills/orgPermission.md create mode 100644 sdk/constructive-react/src/admin/hooks/skills/orgPermissionDefault.md create mode 100644 sdk/constructive-react/src/admin/hooks/skills/orgPermissionsGetByMask.md create mode 100644 sdk/constructive-react/src/admin/hooks/skills/orgPermissionsGetMask.md create mode 100644 sdk/constructive-react/src/admin/hooks/skills/orgPermissionsGetMaskByNames.md create mode 100644 sdk/constructive-react/src/admin/hooks/skills/orgPermissionsGetPaddedMask.md create mode 100644 sdk/constructive-react/src/admin/hooks/skills/stepsAchieved.md create mode 100644 sdk/constructive-react/src/admin/hooks/skills/stepsRequired.md create mode 100644 sdk/constructive-react/src/admin/hooks/skills/submitInviteCode.md create mode 100644 sdk/constructive-react/src/admin/hooks/skills/submitOrgInviteCode.md create mode 100644 sdk/constructive-react/src/admin/index.ts create mode 100644 sdk/constructive-react/src/admin/orm/README.md create mode 100644 sdk/constructive-react/src/admin/orm/client.ts create mode 100644 sdk/constructive-react/src/admin/orm/index.ts create mode 100644 sdk/constructive-react/src/admin/orm/input-types.ts create mode 100644 sdk/constructive-react/src/admin/orm/models/appAchievement.ts create mode 100644 sdk/constructive-react/src/admin/orm/models/appAdminGrant.ts create mode 100644 sdk/constructive-react/src/admin/orm/models/appGrant.ts create mode 100644 sdk/constructive-react/src/admin/orm/models/appLevel.ts create mode 100644 sdk/constructive-react/src/admin/orm/models/appLevelRequirement.ts create mode 100644 sdk/constructive-react/src/admin/orm/models/appLimit.ts create mode 100644 sdk/constructive-react/src/admin/orm/models/appLimitDefault.ts create mode 100644 sdk/constructive-react/src/admin/orm/models/appMembership.ts create mode 100644 sdk/constructive-react/src/admin/orm/models/appMembershipDefault.ts create mode 100644 sdk/constructive-react/src/admin/orm/models/appOwnerGrant.ts create mode 100644 sdk/constructive-react/src/admin/orm/models/appPermission.ts create mode 100644 sdk/constructive-react/src/admin/orm/models/appPermissionDefault.ts create mode 100644 sdk/constructive-react/src/admin/orm/models/appStep.ts create mode 100644 sdk/constructive-react/src/admin/orm/models/claimedInvite.ts create mode 100644 sdk/constructive-react/src/admin/orm/models/index.ts create mode 100644 sdk/constructive-react/src/admin/orm/models/invite.ts create mode 100644 sdk/constructive-react/src/admin/orm/models/membershipType.ts create mode 100644 sdk/constructive-react/src/admin/orm/models/orgAdminGrant.ts create mode 100644 sdk/constructive-react/src/admin/orm/models/orgClaimedInvite.ts create mode 100644 sdk/constructive-react/src/admin/orm/models/orgGrant.ts create mode 100644 sdk/constructive-react/src/admin/orm/models/orgInvite.ts create mode 100644 sdk/constructive-react/src/admin/orm/models/orgLimit.ts create mode 100644 sdk/constructive-react/src/admin/orm/models/orgLimitDefault.ts create mode 100644 sdk/constructive-react/src/admin/orm/models/orgMember.ts create mode 100644 sdk/constructive-react/src/admin/orm/models/orgMembership.ts create mode 100644 sdk/constructive-react/src/admin/orm/models/orgMembershipDefault.ts create mode 100644 sdk/constructive-react/src/admin/orm/models/orgOwnerGrant.ts create mode 100644 sdk/constructive-react/src/admin/orm/models/orgPermission.ts create mode 100644 sdk/constructive-react/src/admin/orm/models/orgPermissionDefault.ts create mode 100644 sdk/constructive-react/src/admin/orm/mutation/index.ts create mode 100644 sdk/constructive-react/src/admin/orm/query-builder.ts create mode 100644 sdk/constructive-react/src/admin/orm/query/index.ts create mode 100644 sdk/constructive-react/src/admin/orm/select-types.ts create mode 100644 sdk/constructive-react/src/admin/orm/skills/appAchievement.md create mode 100644 sdk/constructive-react/src/admin/orm/skills/appAdminGrant.md create mode 100644 sdk/constructive-react/src/admin/orm/skills/appGrant.md create mode 100644 sdk/constructive-react/src/admin/orm/skills/appLevel.md create mode 100644 sdk/constructive-react/src/admin/orm/skills/appLevelRequirement.md create mode 100644 sdk/constructive-react/src/admin/orm/skills/appLimit.md create mode 100644 sdk/constructive-react/src/admin/orm/skills/appLimitDefault.md create mode 100644 sdk/constructive-react/src/admin/orm/skills/appMembership.md create mode 100644 sdk/constructive-react/src/admin/orm/skills/appMembershipDefault.md create mode 100644 sdk/constructive-react/src/admin/orm/skills/appOwnerGrant.md create mode 100644 sdk/constructive-react/src/admin/orm/skills/appPermission.md create mode 100644 sdk/constructive-react/src/admin/orm/skills/appPermissionDefault.md create mode 100644 sdk/constructive-react/src/admin/orm/skills/appPermissionsGetByMask.md create mode 100644 sdk/constructive-react/src/admin/orm/skills/appPermissionsGetMask.md create mode 100644 sdk/constructive-react/src/admin/orm/skills/appPermissionsGetMaskByNames.md create mode 100644 sdk/constructive-react/src/admin/orm/skills/appPermissionsGetPaddedMask.md create mode 100644 sdk/constructive-react/src/admin/orm/skills/appStep.md create mode 100644 sdk/constructive-react/src/admin/orm/skills/claimedInvite.md create mode 100644 sdk/constructive-react/src/admin/orm/skills/invite.md create mode 100644 sdk/constructive-react/src/admin/orm/skills/membershipType.md create mode 100644 sdk/constructive-react/src/admin/orm/skills/orgAdminGrant.md create mode 100644 sdk/constructive-react/src/admin/orm/skills/orgClaimedInvite.md create mode 100644 sdk/constructive-react/src/admin/orm/skills/orgGrant.md create mode 100644 sdk/constructive-react/src/admin/orm/skills/orgInvite.md create mode 100644 sdk/constructive-react/src/admin/orm/skills/orgLimit.md create mode 100644 sdk/constructive-react/src/admin/orm/skills/orgLimitDefault.md create mode 100644 sdk/constructive-react/src/admin/orm/skills/orgMember.md create mode 100644 sdk/constructive-react/src/admin/orm/skills/orgMembership.md create mode 100644 sdk/constructive-react/src/admin/orm/skills/orgMembershipDefault.md create mode 100644 sdk/constructive-react/src/admin/orm/skills/orgOwnerGrant.md create mode 100644 sdk/constructive-react/src/admin/orm/skills/orgPermission.md create mode 100644 sdk/constructive-react/src/admin/orm/skills/orgPermissionDefault.md create mode 100644 sdk/constructive-react/src/admin/orm/skills/orgPermissionsGetByMask.md create mode 100644 sdk/constructive-react/src/admin/orm/skills/orgPermissionsGetMask.md create mode 100644 sdk/constructive-react/src/admin/orm/skills/orgPermissionsGetMaskByNames.md create mode 100644 sdk/constructive-react/src/admin/orm/skills/orgPermissionsGetPaddedMask.md create mode 100644 sdk/constructive-react/src/admin/orm/skills/stepsAchieved.md create mode 100644 sdk/constructive-react/src/admin/orm/skills/stepsRequired.md create mode 100644 sdk/constructive-react/src/admin/orm/skills/submitInviteCode.md create mode 100644 sdk/constructive-react/src/admin/orm/skills/submitOrgInviteCode.md create mode 100644 sdk/constructive-react/src/admin/orm/types.ts create mode 100644 sdk/constructive-react/src/admin/schema-types.ts create mode 100644 sdk/constructive-react/src/admin/types.ts create mode 100644 sdk/constructive-react/src/auth/README.md create mode 100644 sdk/constructive-react/src/auth/hooks/README.md create mode 100644 sdk/constructive-react/src/auth/hooks/client.ts create mode 100644 sdk/constructive-react/src/auth/hooks/index.ts create mode 100644 sdk/constructive-react/src/auth/hooks/invalidation.ts create mode 100644 sdk/constructive-react/src/auth/hooks/mutation-keys.ts create mode 100644 sdk/constructive-react/src/auth/hooks/mutations/index.ts create mode 100644 sdk/constructive-react/src/auth/hooks/mutations/useCheckPasswordMutation.ts create mode 100644 sdk/constructive-react/src/auth/hooks/mutations/useConfirmDeleteAccountMutation.ts create mode 100644 sdk/constructive-react/src/auth/hooks/mutations/useCreateAuditLogMutation.ts create mode 100644 sdk/constructive-react/src/auth/hooks/mutations/useCreateConnectedAccountMutation.ts create mode 100644 sdk/constructive-react/src/auth/hooks/mutations/useCreateCryptoAddressMutation.ts create mode 100644 sdk/constructive-react/src/auth/hooks/mutations/useCreateEmailMutation.ts create mode 100644 sdk/constructive-react/src/auth/hooks/mutations/useCreatePhoneNumberMutation.ts create mode 100644 sdk/constructive-react/src/auth/hooks/mutations/useCreateRoleTypeMutation.ts create mode 100644 sdk/constructive-react/src/auth/hooks/mutations/useCreateUserMutation.ts create mode 100644 sdk/constructive-react/src/auth/hooks/mutations/useDeleteAuditLogMutation.ts create mode 100644 sdk/constructive-react/src/auth/hooks/mutations/useDeleteConnectedAccountMutation.ts create mode 100644 sdk/constructive-react/src/auth/hooks/mutations/useDeleteCryptoAddressMutation.ts create mode 100644 sdk/constructive-react/src/auth/hooks/mutations/useDeleteEmailMutation.ts create mode 100644 sdk/constructive-react/src/auth/hooks/mutations/useDeletePhoneNumberMutation.ts create mode 100644 sdk/constructive-react/src/auth/hooks/mutations/useDeleteRoleTypeMutation.ts create mode 100644 sdk/constructive-react/src/auth/hooks/mutations/useDeleteUserMutation.ts create mode 100644 sdk/constructive-react/src/auth/hooks/mutations/useExtendTokenExpiresMutation.ts create mode 100644 sdk/constructive-react/src/auth/hooks/mutations/useForgotPasswordMutation.ts create mode 100644 sdk/constructive-react/src/auth/hooks/mutations/useOneTimeTokenMutation.ts create mode 100644 sdk/constructive-react/src/auth/hooks/mutations/useResetPasswordMutation.ts create mode 100644 sdk/constructive-react/src/auth/hooks/mutations/useSendAccountDeletionEmailMutation.ts create mode 100644 sdk/constructive-react/src/auth/hooks/mutations/useSendVerificationEmailMutation.ts create mode 100644 sdk/constructive-react/src/auth/hooks/mutations/useSetPasswordMutation.ts create mode 100644 sdk/constructive-react/src/auth/hooks/mutations/useSignInMutation.ts create mode 100644 sdk/constructive-react/src/auth/hooks/mutations/useSignInOneTimeTokenMutation.ts create mode 100644 sdk/constructive-react/src/auth/hooks/mutations/useSignOutMutation.ts create mode 100644 sdk/constructive-react/src/auth/hooks/mutations/useSignUpMutation.ts create mode 100644 sdk/constructive-react/src/auth/hooks/mutations/useUpdateAuditLogMutation.ts create mode 100644 sdk/constructive-react/src/auth/hooks/mutations/useUpdateConnectedAccountMutation.ts create mode 100644 sdk/constructive-react/src/auth/hooks/mutations/useUpdateCryptoAddressMutation.ts create mode 100644 sdk/constructive-react/src/auth/hooks/mutations/useUpdateEmailMutation.ts create mode 100644 sdk/constructive-react/src/auth/hooks/mutations/useUpdatePhoneNumberMutation.ts create mode 100644 sdk/constructive-react/src/auth/hooks/mutations/useUpdateRoleTypeMutation.ts create mode 100644 sdk/constructive-react/src/auth/hooks/mutations/useUpdateUserMutation.ts create mode 100644 sdk/constructive-react/src/auth/hooks/mutations/useVerifyEmailMutation.ts create mode 100644 sdk/constructive-react/src/auth/hooks/mutations/useVerifyPasswordMutation.ts create mode 100644 sdk/constructive-react/src/auth/hooks/mutations/useVerifyTotpMutation.ts create mode 100644 sdk/constructive-react/src/auth/hooks/queries/index.ts create mode 100644 sdk/constructive-react/src/auth/hooks/queries/useAuditLogQuery.ts create mode 100644 sdk/constructive-react/src/auth/hooks/queries/useAuditLogsQuery.ts create mode 100644 sdk/constructive-react/src/auth/hooks/queries/useConnectedAccountQuery.ts create mode 100644 sdk/constructive-react/src/auth/hooks/queries/useConnectedAccountsQuery.ts create mode 100644 sdk/constructive-react/src/auth/hooks/queries/useCryptoAddressQuery.ts create mode 100644 sdk/constructive-react/src/auth/hooks/queries/useCryptoAddressesQuery.ts create mode 100644 sdk/constructive-react/src/auth/hooks/queries/useCurrentIpAddressQuery.ts create mode 100644 sdk/constructive-react/src/auth/hooks/queries/useCurrentUserAgentQuery.ts create mode 100644 sdk/constructive-react/src/auth/hooks/queries/useCurrentUserIdQuery.ts create mode 100644 sdk/constructive-react/src/auth/hooks/queries/useCurrentUserQuery.ts create mode 100644 sdk/constructive-react/src/auth/hooks/queries/useEmailQuery.ts create mode 100644 sdk/constructive-react/src/auth/hooks/queries/useEmailsQuery.ts create mode 100644 sdk/constructive-react/src/auth/hooks/queries/usePhoneNumberQuery.ts create mode 100644 sdk/constructive-react/src/auth/hooks/queries/usePhoneNumbersQuery.ts create mode 100644 sdk/constructive-react/src/auth/hooks/queries/useRoleTypeQuery.ts create mode 100644 sdk/constructive-react/src/auth/hooks/queries/useRoleTypesQuery.ts create mode 100644 sdk/constructive-react/src/auth/hooks/queries/useUserQuery.ts create mode 100644 sdk/constructive-react/src/auth/hooks/queries/useUsersQuery.ts create mode 100644 sdk/constructive-react/src/auth/hooks/query-keys.ts create mode 100644 sdk/constructive-react/src/auth/hooks/selection.ts create mode 100644 sdk/constructive-react/src/auth/hooks/skills/auditLog.md create mode 100644 sdk/constructive-react/src/auth/hooks/skills/checkPassword.md create mode 100644 sdk/constructive-react/src/auth/hooks/skills/confirmDeleteAccount.md create mode 100644 sdk/constructive-react/src/auth/hooks/skills/connectedAccount.md create mode 100644 sdk/constructive-react/src/auth/hooks/skills/cryptoAddress.md create mode 100644 sdk/constructive-react/src/auth/hooks/skills/currentIpAddress.md create mode 100644 sdk/constructive-react/src/auth/hooks/skills/currentUser.md create mode 100644 sdk/constructive-react/src/auth/hooks/skills/currentUserAgent.md create mode 100644 sdk/constructive-react/src/auth/hooks/skills/currentUserId.md create mode 100644 sdk/constructive-react/src/auth/hooks/skills/email.md create mode 100644 sdk/constructive-react/src/auth/hooks/skills/extendTokenExpires.md create mode 100644 sdk/constructive-react/src/auth/hooks/skills/forgotPassword.md create mode 100644 sdk/constructive-react/src/auth/hooks/skills/oneTimeToken.md create mode 100644 sdk/constructive-react/src/auth/hooks/skills/phoneNumber.md create mode 100644 sdk/constructive-react/src/auth/hooks/skills/resetPassword.md create mode 100644 sdk/constructive-react/src/auth/hooks/skills/roleType.md create mode 100644 sdk/constructive-react/src/auth/hooks/skills/sendAccountDeletionEmail.md create mode 100644 sdk/constructive-react/src/auth/hooks/skills/sendVerificationEmail.md create mode 100644 sdk/constructive-react/src/auth/hooks/skills/setPassword.md create mode 100644 sdk/constructive-react/src/auth/hooks/skills/signIn.md create mode 100644 sdk/constructive-react/src/auth/hooks/skills/signInOneTimeToken.md create mode 100644 sdk/constructive-react/src/auth/hooks/skills/signOut.md create mode 100644 sdk/constructive-react/src/auth/hooks/skills/signUp.md create mode 100644 sdk/constructive-react/src/auth/hooks/skills/user.md create mode 100644 sdk/constructive-react/src/auth/hooks/skills/verifyEmail.md create mode 100644 sdk/constructive-react/src/auth/hooks/skills/verifyPassword.md create mode 100644 sdk/constructive-react/src/auth/hooks/skills/verifyTotp.md create mode 100644 sdk/constructive-react/src/auth/index.ts create mode 100644 sdk/constructive-react/src/auth/orm/README.md create mode 100644 sdk/constructive-react/src/auth/orm/client.ts create mode 100644 sdk/constructive-react/src/auth/orm/index.ts create mode 100644 sdk/constructive-react/src/auth/orm/input-types.ts create mode 100644 sdk/constructive-react/src/auth/orm/models/auditLog.ts create mode 100644 sdk/constructive-react/src/auth/orm/models/connectedAccount.ts create mode 100644 sdk/constructive-react/src/auth/orm/models/cryptoAddress.ts create mode 100644 sdk/constructive-react/src/auth/orm/models/email.ts create mode 100644 sdk/constructive-react/src/auth/orm/models/index.ts create mode 100644 sdk/constructive-react/src/auth/orm/models/phoneNumber.ts create mode 100644 sdk/constructive-react/src/auth/orm/models/roleType.ts create mode 100644 sdk/constructive-react/src/auth/orm/models/user.ts create mode 100644 sdk/constructive-react/src/auth/orm/mutation/index.ts create mode 100644 sdk/constructive-react/src/auth/orm/query-builder.ts create mode 100644 sdk/constructive-react/src/auth/orm/query/index.ts create mode 100644 sdk/constructive-react/src/auth/orm/select-types.ts create mode 100644 sdk/constructive-react/src/auth/orm/skills/auditLog.md create mode 100644 sdk/constructive-react/src/auth/orm/skills/checkPassword.md create mode 100644 sdk/constructive-react/src/auth/orm/skills/confirmDeleteAccount.md create mode 100644 sdk/constructive-react/src/auth/orm/skills/connectedAccount.md create mode 100644 sdk/constructive-react/src/auth/orm/skills/cryptoAddress.md create mode 100644 sdk/constructive-react/src/auth/orm/skills/currentIpAddress.md create mode 100644 sdk/constructive-react/src/auth/orm/skills/currentUser.md create mode 100644 sdk/constructive-react/src/auth/orm/skills/currentUserAgent.md create mode 100644 sdk/constructive-react/src/auth/orm/skills/currentUserId.md create mode 100644 sdk/constructive-react/src/auth/orm/skills/email.md create mode 100644 sdk/constructive-react/src/auth/orm/skills/extendTokenExpires.md create mode 100644 sdk/constructive-react/src/auth/orm/skills/forgotPassword.md create mode 100644 sdk/constructive-react/src/auth/orm/skills/oneTimeToken.md create mode 100644 sdk/constructive-react/src/auth/orm/skills/phoneNumber.md create mode 100644 sdk/constructive-react/src/auth/orm/skills/resetPassword.md create mode 100644 sdk/constructive-react/src/auth/orm/skills/roleType.md create mode 100644 sdk/constructive-react/src/auth/orm/skills/sendAccountDeletionEmail.md create mode 100644 sdk/constructive-react/src/auth/orm/skills/sendVerificationEmail.md create mode 100644 sdk/constructive-react/src/auth/orm/skills/setPassword.md create mode 100644 sdk/constructive-react/src/auth/orm/skills/signIn.md create mode 100644 sdk/constructive-react/src/auth/orm/skills/signInOneTimeToken.md create mode 100644 sdk/constructive-react/src/auth/orm/skills/signOut.md create mode 100644 sdk/constructive-react/src/auth/orm/skills/signUp.md create mode 100644 sdk/constructive-react/src/auth/orm/skills/user.md create mode 100644 sdk/constructive-react/src/auth/orm/skills/verifyEmail.md create mode 100644 sdk/constructive-react/src/auth/orm/skills/verifyPassword.md create mode 100644 sdk/constructive-react/src/auth/orm/skills/verifyTotp.md create mode 100644 sdk/constructive-react/src/auth/orm/types.ts create mode 100644 sdk/constructive-react/src/auth/schema-types.ts create mode 100644 sdk/constructive-react/src/auth/types.ts create mode 100644 sdk/constructive-react/src/index.ts create mode 100644 sdk/constructive-react/src/objects/README.md create mode 100644 sdk/constructive-react/src/objects/hooks/README.md create mode 100644 sdk/constructive-react/src/objects/hooks/client.ts create mode 100644 sdk/constructive-react/src/objects/hooks/index.ts create mode 100644 sdk/constructive-react/src/objects/hooks/invalidation.ts create mode 100644 sdk/constructive-react/src/objects/hooks/mutation-keys.ts create mode 100644 sdk/constructive-react/src/objects/hooks/mutations/index.ts create mode 100644 sdk/constructive-react/src/objects/hooks/mutations/useCreateCommitMutation.ts create mode 100644 sdk/constructive-react/src/objects/hooks/mutations/useCreateGetAllRecordMutation.ts create mode 100644 sdk/constructive-react/src/objects/hooks/mutations/useCreateObjectMutation.ts create mode 100644 sdk/constructive-react/src/objects/hooks/mutations/useCreateRefMutation.ts create mode 100644 sdk/constructive-react/src/objects/hooks/mutations/useCreateStoreMutation.ts create mode 100644 sdk/constructive-react/src/objects/hooks/mutations/useDeleteCommitMutation.ts create mode 100644 sdk/constructive-react/src/objects/hooks/mutations/useDeleteObjectMutation.ts create mode 100644 sdk/constructive-react/src/objects/hooks/mutations/useDeleteRefMutation.ts create mode 100644 sdk/constructive-react/src/objects/hooks/mutations/useDeleteStoreMutation.ts create mode 100644 sdk/constructive-react/src/objects/hooks/mutations/useFreezeObjectsMutation.ts create mode 100644 sdk/constructive-react/src/objects/hooks/mutations/useInitEmptyRepoMutation.ts create mode 100644 sdk/constructive-react/src/objects/hooks/mutations/useInsertNodeAtPathMutation.ts create mode 100644 sdk/constructive-react/src/objects/hooks/mutations/useRemoveNodeAtPathMutation.ts create mode 100644 sdk/constructive-react/src/objects/hooks/mutations/useSetAndCommitMutation.ts create mode 100644 sdk/constructive-react/src/objects/hooks/mutations/useSetDataAtPathMutation.ts create mode 100644 sdk/constructive-react/src/objects/hooks/mutations/useSetPropsAndCommitMutation.ts create mode 100644 sdk/constructive-react/src/objects/hooks/mutations/useUpdateCommitMutation.ts create mode 100644 sdk/constructive-react/src/objects/hooks/mutations/useUpdateNodeAtPathMutation.ts create mode 100644 sdk/constructive-react/src/objects/hooks/mutations/useUpdateObjectMutation.ts create mode 100644 sdk/constructive-react/src/objects/hooks/mutations/useUpdateRefMutation.ts create mode 100644 sdk/constructive-react/src/objects/hooks/mutations/useUpdateStoreMutation.ts create mode 100644 sdk/constructive-react/src/objects/hooks/queries/index.ts create mode 100644 sdk/constructive-react/src/objects/hooks/queries/useCommitQuery.ts create mode 100644 sdk/constructive-react/src/objects/hooks/queries/useCommitsQuery.ts create mode 100644 sdk/constructive-react/src/objects/hooks/queries/useGetAllObjectsFromRootQuery.ts create mode 100644 sdk/constructive-react/src/objects/hooks/queries/useGetAllQuery.ts create mode 100644 sdk/constructive-react/src/objects/hooks/queries/useGetObjectAtPathQuery.ts create mode 100644 sdk/constructive-react/src/objects/hooks/queries/useGetPathObjectsFromRootQuery.ts create mode 100644 sdk/constructive-react/src/objects/hooks/queries/useObjectQuery.ts create mode 100644 sdk/constructive-react/src/objects/hooks/queries/useObjectsQuery.ts create mode 100644 sdk/constructive-react/src/objects/hooks/queries/useRefQuery.ts create mode 100644 sdk/constructive-react/src/objects/hooks/queries/useRefsQuery.ts create mode 100644 sdk/constructive-react/src/objects/hooks/queries/useRevParseQuery.ts create mode 100644 sdk/constructive-react/src/objects/hooks/queries/useStoreQuery.ts create mode 100644 sdk/constructive-react/src/objects/hooks/queries/useStoresQuery.ts create mode 100644 sdk/constructive-react/src/objects/hooks/query-keys.ts create mode 100644 sdk/constructive-react/src/objects/hooks/selection.ts create mode 100644 sdk/constructive-react/src/objects/hooks/skills/commit.md create mode 100644 sdk/constructive-react/src/objects/hooks/skills/freezeObjects.md create mode 100644 sdk/constructive-react/src/objects/hooks/skills/getAllObjectsFromRoot.md create mode 100644 sdk/constructive-react/src/objects/hooks/skills/getAllRecord.md create mode 100644 sdk/constructive-react/src/objects/hooks/skills/getObjectAtPath.md create mode 100644 sdk/constructive-react/src/objects/hooks/skills/getPathObjectsFromRoot.md create mode 100644 sdk/constructive-react/src/objects/hooks/skills/initEmptyRepo.md create mode 100644 sdk/constructive-react/src/objects/hooks/skills/insertNodeAtPath.md create mode 100644 sdk/constructive-react/src/objects/hooks/skills/object.md create mode 100644 sdk/constructive-react/src/objects/hooks/skills/ref.md create mode 100644 sdk/constructive-react/src/objects/hooks/skills/removeNodeAtPath.md create mode 100644 sdk/constructive-react/src/objects/hooks/skills/revParse.md create mode 100644 sdk/constructive-react/src/objects/hooks/skills/setAndCommit.md create mode 100644 sdk/constructive-react/src/objects/hooks/skills/setDataAtPath.md create mode 100644 sdk/constructive-react/src/objects/hooks/skills/setPropsAndCommit.md create mode 100644 sdk/constructive-react/src/objects/hooks/skills/store.md create mode 100644 sdk/constructive-react/src/objects/hooks/skills/updateNodeAtPath.md create mode 100644 sdk/constructive-react/src/objects/index.ts create mode 100644 sdk/constructive-react/src/objects/orm/README.md create mode 100644 sdk/constructive-react/src/objects/orm/client.ts create mode 100644 sdk/constructive-react/src/objects/orm/index.ts create mode 100644 sdk/constructive-react/src/objects/orm/input-types.ts create mode 100644 sdk/constructive-react/src/objects/orm/models/commit.ts create mode 100644 sdk/constructive-react/src/objects/orm/models/getAllRecord.ts create mode 100644 sdk/constructive-react/src/objects/orm/models/index.ts create mode 100644 sdk/constructive-react/src/objects/orm/models/object.ts create mode 100644 sdk/constructive-react/src/objects/orm/models/ref.ts create mode 100644 sdk/constructive-react/src/objects/orm/models/store.ts create mode 100644 sdk/constructive-react/src/objects/orm/mutation/index.ts create mode 100644 sdk/constructive-react/src/objects/orm/query-builder.ts create mode 100644 sdk/constructive-react/src/objects/orm/query/index.ts create mode 100644 sdk/constructive-react/src/objects/orm/select-types.ts create mode 100644 sdk/constructive-react/src/objects/orm/skills/commit.md create mode 100644 sdk/constructive-react/src/objects/orm/skills/freezeObjects.md create mode 100644 sdk/constructive-react/src/objects/orm/skills/getAllObjectsFromRoot.md create mode 100644 sdk/constructive-react/src/objects/orm/skills/getAllRecord.md create mode 100644 sdk/constructive-react/src/objects/orm/skills/getObjectAtPath.md create mode 100644 sdk/constructive-react/src/objects/orm/skills/getPathObjectsFromRoot.md create mode 100644 sdk/constructive-react/src/objects/orm/skills/initEmptyRepo.md create mode 100644 sdk/constructive-react/src/objects/orm/skills/insertNodeAtPath.md create mode 100644 sdk/constructive-react/src/objects/orm/skills/object.md create mode 100644 sdk/constructive-react/src/objects/orm/skills/ref.md create mode 100644 sdk/constructive-react/src/objects/orm/skills/removeNodeAtPath.md create mode 100644 sdk/constructive-react/src/objects/orm/skills/revParse.md create mode 100644 sdk/constructive-react/src/objects/orm/skills/setAndCommit.md create mode 100644 sdk/constructive-react/src/objects/orm/skills/setDataAtPath.md create mode 100644 sdk/constructive-react/src/objects/orm/skills/setPropsAndCommit.md create mode 100644 sdk/constructive-react/src/objects/orm/skills/store.md create mode 100644 sdk/constructive-react/src/objects/orm/skills/updateNodeAtPath.md create mode 100644 sdk/constructive-react/src/objects/orm/types.ts create mode 100644 sdk/constructive-react/src/objects/schema-types.ts create mode 100644 sdk/constructive-react/src/objects/types.ts create mode 100644 sdk/constructive-react/src/public/README.md create mode 100644 sdk/constructive-react/src/public/hooks/README.md create mode 100644 sdk/constructive-react/src/public/hooks/client.ts create mode 100644 sdk/constructive-react/src/public/hooks/index.ts create mode 100644 sdk/constructive-react/src/public/hooks/invalidation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutation-keys.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/index.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useApplyRlsMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useBootstrapUserMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCheckPasswordMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useConfirmDeleteAccountMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateApiModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateApiMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateApiSchemaMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateAppAchievementMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateAppAdminGrantMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateAppGrantMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateAppLevelMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateAppLevelRequirementMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateAppLimitDefaultMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateAppLimitMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateAppMembershipDefaultMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateAppMembershipMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateAppMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateAppOwnerGrantMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateAppPermissionDefaultMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateAppPermissionMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateAppStepMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateAstMigrationMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateAuditLogMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateCheckConstraintMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateClaimedInviteMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateCommitMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateConnectedAccountMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateConnectedAccountsModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateCryptoAddressMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateCryptoAddressesModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateCryptoAuthModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateDatabaseMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateDatabaseProvisionModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateDefaultIdsModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateDenormalizedTableFieldMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateDomainMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateEmailMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateEmailsModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateEncryptedSecretsModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateFieldModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateFieldMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateForeignKeyConstraintMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateFullTextSearchMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateGetAllRecordMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateHierarchyModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateIndexMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateInviteMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateInvitesModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateLevelsModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateLimitFunctionMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateLimitsModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateMembershipTypeMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateMembershipTypesModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateMembershipsModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateNodeTypeRegistryMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateObjectMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateOrgAdminGrantMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateOrgClaimedInviteMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateOrgGrantMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateOrgInviteMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateOrgLimitDefaultMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateOrgLimitMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateOrgMemberMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateOrgMembershipDefaultMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateOrgMembershipMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateOrgOwnerGrantMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateOrgPermissionDefaultMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateOrgPermissionMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreatePermissionsModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreatePhoneNumberMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreatePhoneNumbersModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreatePolicyMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreatePrimaryKeyConstraintMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateProcedureMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateProfilesModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateRefMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateRlsModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateRoleTypeMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateSchemaGrantMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateSchemaMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateSecretsModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateSessionsModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateSiteMetadatumMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateSiteModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateSiteMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateSiteThemeMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateSqlMigrationMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateStoreMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateTableGrantMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateTableModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateTableMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateTableTemplateModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateTriggerFunctionMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateTriggerMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateUniqueConstraintMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateUserAuthModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateUserDatabaseMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateUserMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateUsersModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateUuidModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateViewGrantMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateViewMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateViewRuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateViewTableMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteApiModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteApiMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteApiSchemaMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteAppAchievementMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteAppAdminGrantMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteAppGrantMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLevelMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLevelRequirementMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLimitDefaultMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLimitMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteAppMembershipDefaultMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteAppMembershipMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteAppMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteAppOwnerGrantMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteAppPermissionDefaultMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteAppPermissionMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteAppStepMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteAuditLogMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteCheckConstraintMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteClaimedInviteMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteCommitMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteConnectedAccountMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteConnectedAccountsModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteCryptoAddressMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteCryptoAddressesModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteCryptoAuthModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteDatabaseMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteDatabaseProvisionModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteDefaultIdsModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteDenormalizedTableFieldMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteDomainMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteEmailMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteEmailsModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteEncryptedSecretsModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteFieldModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteFieldMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteForeignKeyConstraintMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteFullTextSearchMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteHierarchyModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteIndexMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteInviteMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteInvitesModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteLevelsModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteLimitFunctionMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteLimitsModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteMembershipTypeMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteMembershipTypesModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteMembershipsModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteNodeTypeRegistryMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteObjectMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgAdminGrantMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgClaimedInviteMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgGrantMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgInviteMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgLimitDefaultMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgLimitMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgMemberMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgMembershipDefaultMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgMembershipMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgOwnerGrantMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgPermissionDefaultMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgPermissionMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeletePermissionsModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeletePhoneNumberMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeletePhoneNumbersModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeletePolicyMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeletePrimaryKeyConstraintMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteProcedureMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteProfilesModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteRefMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteRlsModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteRoleTypeMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteSchemaGrantMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteSchemaMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteSecretsModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteSessionsModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteSiteMetadatumMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteSiteModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteSiteMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteSiteThemeMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteStoreMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteTableGrantMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteTableModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteTableMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteTableTemplateModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteTriggerFunctionMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteTriggerMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteUniqueConstraintMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteUserAuthModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteUserMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteUsersModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteUuidModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteViewGrantMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteViewMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteViewRuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteViewTableMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useExtendTokenExpiresMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useForgotPasswordMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useFreezeObjectsMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useInitEmptyRepoMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useInsertNodeAtPathMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useOneTimeTokenMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useProvisionDatabaseWithUserMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useRemoveNodeAtPathMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useResetPasswordMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useSendAccountDeletionEmailMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useSendVerificationEmailMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useSetAndCommitMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useSetDataAtPathMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useSetFieldOrderMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useSetPasswordMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useSetPropsAndCommitMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useSignInMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useSignInOneTimeTokenMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useSignOutMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useSignUpMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useSubmitInviteCodeMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useSubmitOrgInviteCodeMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateApiModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateApiMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateApiSchemaMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateAppAchievementMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateAppAdminGrantMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateAppGrantMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLevelMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLevelRequirementMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLimitDefaultMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLimitMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateAppMembershipDefaultMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateAppMembershipMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateAppMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateAppOwnerGrantMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateAppPermissionDefaultMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateAppPermissionMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateAppStepMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateAuditLogMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateCheckConstraintMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateClaimedInviteMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateCommitMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateConnectedAccountMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateConnectedAccountsModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateCryptoAddressMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateCryptoAddressesModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateCryptoAuthModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateDatabaseMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateDatabaseProvisionModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateDefaultIdsModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateDenormalizedTableFieldMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateDomainMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateEmailMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateEmailsModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateEncryptedSecretsModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateFieldModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateFieldMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateForeignKeyConstraintMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateFullTextSearchMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateHierarchyModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateIndexMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateInviteMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateInvitesModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateLevelsModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateLimitFunctionMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateLimitsModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateMembershipTypeMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateMembershipTypesModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateMembershipsModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateNodeAtPathMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateNodeTypeRegistryMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateObjectMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgAdminGrantMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgClaimedInviteMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgGrantMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgInviteMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgLimitDefaultMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgLimitMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgMemberMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgMembershipDefaultMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgMembershipMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgOwnerGrantMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgPermissionDefaultMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgPermissionMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdatePermissionsModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdatePhoneNumberMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdatePhoneNumbersModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdatePolicyMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdatePrimaryKeyConstraintMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateProcedureMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateProfilesModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateRefMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateRlsModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateRoleTypeMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateSchemaGrantMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateSchemaMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateSecretsModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateSessionsModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateSiteMetadatumMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateSiteModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateSiteMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateSiteThemeMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateStoreMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateTableGrantMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateTableModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateTableMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateTableTemplateModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateTriggerFunctionMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateTriggerMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateUniqueConstraintMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateUserAuthModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateUserMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateUsersModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateUuidModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateViewGrantMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateViewMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateViewRuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateViewTableMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useVerifyEmailMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useVerifyPasswordMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useVerifyTotpMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/index.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useApiModuleQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useApiModulesQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useApiQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useApiSchemaQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useApiSchemasQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useApisQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useAppAchievementQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useAppAchievementsQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useAppAdminGrantQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useAppAdminGrantsQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useAppGrantQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useAppGrantsQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useAppLevelQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useAppLevelRequirementQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useAppLevelRequirementsQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useAppLevelsQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useAppLimitDefaultQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useAppLimitDefaultsQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useAppLimitQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useAppLimitsQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useAppMembershipDefaultQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useAppMembershipDefaultsQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useAppMembershipQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useAppMembershipsQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useAppOwnerGrantQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useAppOwnerGrantsQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useAppPermissionDefaultQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useAppPermissionDefaultsQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useAppPermissionQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useAppPermissionsGetByMaskQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useAppPermissionsGetMaskByNamesQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useAppPermissionsGetMaskQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useAppPermissionsGetPaddedMaskQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useAppPermissionsQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useAppQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useAppStepQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useAppStepsQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useAppsQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useAstMigrationQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useAstMigrationsQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useAuditLogQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useAuditLogsQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useCheckConstraintQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useCheckConstraintsQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useClaimedInviteQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useClaimedInvitesQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useCommitQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useCommitsQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useConnectedAccountQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useConnectedAccountsModuleQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useConnectedAccountsModulesQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useConnectedAccountsQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useCryptoAddressQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useCryptoAddressesModuleQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useCryptoAddressesModulesQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useCryptoAddressesQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useCryptoAuthModuleQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useCryptoAuthModulesQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useCurrentIpAddressQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useCurrentUserAgentQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useCurrentUserIdQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useCurrentUserQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useDatabaseProvisionModuleQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useDatabaseProvisionModulesQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useDatabaseQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useDatabasesQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useDefaultIdsModuleQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useDefaultIdsModulesQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useDenormalizedTableFieldQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useDenormalizedTableFieldsQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useDomainQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useDomainsQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useEmailQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useEmailsModuleQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useEmailsModulesQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useEmailsQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useEncryptedSecretsModuleQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useEncryptedSecretsModulesQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useFieldModuleQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useFieldModulesQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useFieldQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useFieldsQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useForeignKeyConstraintQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useForeignKeyConstraintsQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useFullTextSearchQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useFullTextSearchesQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useGetAllObjectsFromRootQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useGetAllQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useGetObjectAtPathQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useGetPathObjectsFromRootQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useHierarchyModuleQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useHierarchyModulesQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useIndexQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useIndicesQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useInviteQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useInvitesModuleQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useInvitesModulesQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useInvitesQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useLevelsModuleQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useLevelsModulesQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useLimitFunctionQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useLimitFunctionsQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useLimitsModuleQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useLimitsModulesQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useMembershipTypeQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useMembershipTypesModuleQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useMembershipTypesModulesQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useMembershipTypesQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useMembershipsModuleQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useMembershipsModulesQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useNodeTypeRegistriesQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useNodeTypeRegistryQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useObjectQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useObjectsQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useOrgAdminGrantQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useOrgAdminGrantsQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useOrgClaimedInviteQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useOrgClaimedInvitesQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useOrgGrantQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useOrgGrantsQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useOrgInviteQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useOrgInvitesQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useOrgLimitDefaultQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useOrgLimitDefaultsQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useOrgLimitQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useOrgLimitsQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useOrgMemberQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useOrgMembersQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useOrgMembershipDefaultQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useOrgMembershipDefaultsQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useOrgMembershipQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useOrgMembershipsQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useOrgOwnerGrantQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useOrgOwnerGrantsQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useOrgPermissionDefaultQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useOrgPermissionDefaultsQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useOrgPermissionQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useOrgPermissionsGetByMaskQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useOrgPermissionsGetMaskByNamesQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useOrgPermissionsGetMaskQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useOrgPermissionsGetPaddedMaskQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useOrgPermissionsQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/usePermissionsModuleQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/usePermissionsModulesQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/usePhoneNumberQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/usePhoneNumbersModuleQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/usePhoneNumbersModulesQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/usePhoneNumbersQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/usePoliciesQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/usePolicyQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/usePrimaryKeyConstraintQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/usePrimaryKeyConstraintsQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useProcedureQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useProceduresQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useProfilesModuleQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useProfilesModulesQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useRefQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useRefsQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useRevParseQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useRlsModuleQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useRlsModulesQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useRoleTypeQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useRoleTypesQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useSchemaGrantQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useSchemaGrantsQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useSchemaQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useSchemasQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useSecretsModuleQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useSecretsModulesQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useSessionsModuleQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useSessionsModulesQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useSiteMetadataQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useSiteMetadatumQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useSiteModuleQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useSiteModulesQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useSiteQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useSiteThemeQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useSiteThemesQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useSitesQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useSqlMigrationQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useSqlMigrationsQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useStepsAchievedQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useStepsRequiredQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useStoreQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useStoresQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useTableGrantQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useTableGrantsQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useTableModuleQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useTableModulesQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useTableQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useTableTemplateModuleQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useTableTemplateModulesQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useTablesQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useTriggerFunctionQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useTriggerFunctionsQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useTriggerQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useTriggersQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useUniqueConstraintQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useUniqueConstraintsQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useUserAuthModuleQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useUserAuthModulesQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useUserQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useUsersModuleQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useUsersModulesQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useUsersQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useUuidModuleQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useUuidModulesQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useViewGrantQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useViewGrantsQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useViewQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useViewRuleQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useViewRulesQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useViewTableQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useViewTablesQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useViewsQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/query-keys.ts create mode 100644 sdk/constructive-react/src/public/hooks/selection.ts create mode 100644 sdk/constructive-react/src/public/hooks/skills/api.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/apiModule.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/apiSchema.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/app.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/appAchievement.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/appAdminGrant.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/appGrant.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/appLevel.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/appLevelRequirement.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/appLimit.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/appLimitDefault.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/appMembership.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/appMembershipDefault.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/appOwnerGrant.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/appPermission.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/appPermissionDefault.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/appPermissionsGetByMask.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/appPermissionsGetMask.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/appPermissionsGetMaskByNames.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/appPermissionsGetPaddedMask.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/appStep.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/applyRls.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/astMigration.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/auditLog.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/bootstrapUser.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/checkConstraint.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/checkPassword.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/claimedInvite.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/commit.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/confirmDeleteAccount.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/connectedAccount.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/connectedAccountsModule.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/createUserDatabase.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/cryptoAddress.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/cryptoAddressesModule.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/cryptoAuthModule.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/currentIpAddress.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/currentUser.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/currentUserAgent.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/currentUserId.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/database.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/databaseProvisionModule.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/defaultIdsModule.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/denormalizedTableField.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/domain.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/email.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/emailsModule.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/encryptedSecretsModule.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/extendTokenExpires.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/field.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/fieldModule.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/foreignKeyConstraint.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/forgotPassword.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/freezeObjects.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/fullTextSearch.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/getAllObjectsFromRoot.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/getAllRecord.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/getObjectAtPath.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/getPathObjectsFromRoot.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/hierarchyModule.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/index.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/initEmptyRepo.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/insertNodeAtPath.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/invite.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/invitesModule.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/levelsModule.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/limitFunction.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/limitsModule.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/membershipType.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/membershipTypesModule.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/membershipsModule.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/nodeTypeRegistry.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/object.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/oneTimeToken.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/orgAdminGrant.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/orgClaimedInvite.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/orgGrant.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/orgInvite.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/orgLimit.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/orgLimitDefault.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/orgMember.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/orgMembership.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/orgMembershipDefault.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/orgOwnerGrant.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/orgPermission.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/orgPermissionDefault.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/orgPermissionsGetByMask.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/orgPermissionsGetMask.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/orgPermissionsGetMaskByNames.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/orgPermissionsGetPaddedMask.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/permissionsModule.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/phoneNumber.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/phoneNumbersModule.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/policy.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/primaryKeyConstraint.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/procedure.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/profilesModule.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/provisionDatabaseWithUser.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/ref.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/removeNodeAtPath.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/resetPassword.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/revParse.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/rlsModule.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/roleType.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/schema.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/schemaGrant.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/secretsModule.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/sendAccountDeletionEmail.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/sendVerificationEmail.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/sessionsModule.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/setAndCommit.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/setDataAtPath.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/setFieldOrder.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/setPassword.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/setPropsAndCommit.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/signIn.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/signInOneTimeToken.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/signOut.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/signUp.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/site.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/siteMetadatum.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/siteModule.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/siteTheme.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/sqlMigration.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/stepsAchieved.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/stepsRequired.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/store.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/submitInviteCode.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/submitOrgInviteCode.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/table.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/tableGrant.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/tableModule.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/tableTemplateModule.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/trigger.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/triggerFunction.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/uniqueConstraint.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/updateNodeAtPath.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/user.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/userAuthModule.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/usersModule.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/uuidModule.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/verifyEmail.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/verifyPassword.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/verifyTotp.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/view.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/viewGrant.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/viewRule.md create mode 100644 sdk/constructive-react/src/public/hooks/skills/viewTable.md create mode 100644 sdk/constructive-react/src/public/index.ts create mode 100644 sdk/constructive-react/src/public/orm/README.md create mode 100644 sdk/constructive-react/src/public/orm/client.ts create mode 100644 sdk/constructive-react/src/public/orm/index.ts create mode 100644 sdk/constructive-react/src/public/orm/input-types.ts create mode 100644 sdk/constructive-react/src/public/orm/models/api.ts create mode 100644 sdk/constructive-react/src/public/orm/models/apiModule.ts create mode 100644 sdk/constructive-react/src/public/orm/models/apiSchema.ts create mode 100644 sdk/constructive-react/src/public/orm/models/app.ts create mode 100644 sdk/constructive-react/src/public/orm/models/appAchievement.ts create mode 100644 sdk/constructive-react/src/public/orm/models/appAdminGrant.ts create mode 100644 sdk/constructive-react/src/public/orm/models/appGrant.ts create mode 100644 sdk/constructive-react/src/public/orm/models/appLevel.ts create mode 100644 sdk/constructive-react/src/public/orm/models/appLevelRequirement.ts create mode 100644 sdk/constructive-react/src/public/orm/models/appLimit.ts create mode 100644 sdk/constructive-react/src/public/orm/models/appLimitDefault.ts create mode 100644 sdk/constructive-react/src/public/orm/models/appMembership.ts create mode 100644 sdk/constructive-react/src/public/orm/models/appMembershipDefault.ts create mode 100644 sdk/constructive-react/src/public/orm/models/appOwnerGrant.ts create mode 100644 sdk/constructive-react/src/public/orm/models/appPermission.ts create mode 100644 sdk/constructive-react/src/public/orm/models/appPermissionDefault.ts create mode 100644 sdk/constructive-react/src/public/orm/models/appStep.ts create mode 100644 sdk/constructive-react/src/public/orm/models/astMigration.ts create mode 100644 sdk/constructive-react/src/public/orm/models/auditLog.ts create mode 100644 sdk/constructive-react/src/public/orm/models/checkConstraint.ts create mode 100644 sdk/constructive-react/src/public/orm/models/claimedInvite.ts create mode 100644 sdk/constructive-react/src/public/orm/models/commit.ts create mode 100644 sdk/constructive-react/src/public/orm/models/connectedAccount.ts create mode 100644 sdk/constructive-react/src/public/orm/models/connectedAccountsModule.ts create mode 100644 sdk/constructive-react/src/public/orm/models/cryptoAddress.ts create mode 100644 sdk/constructive-react/src/public/orm/models/cryptoAddressesModule.ts create mode 100644 sdk/constructive-react/src/public/orm/models/cryptoAuthModule.ts create mode 100644 sdk/constructive-react/src/public/orm/models/database.ts create mode 100644 sdk/constructive-react/src/public/orm/models/databaseProvisionModule.ts create mode 100644 sdk/constructive-react/src/public/orm/models/defaultIdsModule.ts create mode 100644 sdk/constructive-react/src/public/orm/models/denormalizedTableField.ts create mode 100644 sdk/constructive-react/src/public/orm/models/domain.ts create mode 100644 sdk/constructive-react/src/public/orm/models/email.ts create mode 100644 sdk/constructive-react/src/public/orm/models/emailsModule.ts create mode 100644 sdk/constructive-react/src/public/orm/models/encryptedSecretsModule.ts create mode 100644 sdk/constructive-react/src/public/orm/models/field.ts create mode 100644 sdk/constructive-react/src/public/orm/models/fieldModule.ts create mode 100644 sdk/constructive-react/src/public/orm/models/foreignKeyConstraint.ts create mode 100644 sdk/constructive-react/src/public/orm/models/fullTextSearch.ts create mode 100644 sdk/constructive-react/src/public/orm/models/getAllRecord.ts create mode 100644 sdk/constructive-react/src/public/orm/models/hierarchyModule.ts create mode 100644 sdk/constructive-react/src/public/orm/models/index.ts create mode 100644 sdk/constructive-react/src/public/orm/models/indexModel.ts create mode 100644 sdk/constructive-react/src/public/orm/models/invite.ts create mode 100644 sdk/constructive-react/src/public/orm/models/invitesModule.ts create mode 100644 sdk/constructive-react/src/public/orm/models/levelsModule.ts create mode 100644 sdk/constructive-react/src/public/orm/models/limitFunction.ts create mode 100644 sdk/constructive-react/src/public/orm/models/limitsModule.ts create mode 100644 sdk/constructive-react/src/public/orm/models/membershipType.ts create mode 100644 sdk/constructive-react/src/public/orm/models/membershipTypesModule.ts create mode 100644 sdk/constructive-react/src/public/orm/models/membershipsModule.ts create mode 100644 sdk/constructive-react/src/public/orm/models/nodeTypeRegistry.ts create mode 100644 sdk/constructive-react/src/public/orm/models/object.ts create mode 100644 sdk/constructive-react/src/public/orm/models/orgAdminGrant.ts create mode 100644 sdk/constructive-react/src/public/orm/models/orgClaimedInvite.ts create mode 100644 sdk/constructive-react/src/public/orm/models/orgGrant.ts create mode 100644 sdk/constructive-react/src/public/orm/models/orgInvite.ts create mode 100644 sdk/constructive-react/src/public/orm/models/orgLimit.ts create mode 100644 sdk/constructive-react/src/public/orm/models/orgLimitDefault.ts create mode 100644 sdk/constructive-react/src/public/orm/models/orgMember.ts create mode 100644 sdk/constructive-react/src/public/orm/models/orgMembership.ts create mode 100644 sdk/constructive-react/src/public/orm/models/orgMembershipDefault.ts create mode 100644 sdk/constructive-react/src/public/orm/models/orgOwnerGrant.ts create mode 100644 sdk/constructive-react/src/public/orm/models/orgPermission.ts create mode 100644 sdk/constructive-react/src/public/orm/models/orgPermissionDefault.ts create mode 100644 sdk/constructive-react/src/public/orm/models/permissionsModule.ts create mode 100644 sdk/constructive-react/src/public/orm/models/phoneNumber.ts create mode 100644 sdk/constructive-react/src/public/orm/models/phoneNumbersModule.ts create mode 100644 sdk/constructive-react/src/public/orm/models/policy.ts create mode 100644 sdk/constructive-react/src/public/orm/models/primaryKeyConstraint.ts create mode 100644 sdk/constructive-react/src/public/orm/models/procedure.ts create mode 100644 sdk/constructive-react/src/public/orm/models/profilesModule.ts create mode 100644 sdk/constructive-react/src/public/orm/models/ref.ts create mode 100644 sdk/constructive-react/src/public/orm/models/rlsModule.ts create mode 100644 sdk/constructive-react/src/public/orm/models/roleType.ts create mode 100644 sdk/constructive-react/src/public/orm/models/schema.ts create mode 100644 sdk/constructive-react/src/public/orm/models/schemaGrant.ts create mode 100644 sdk/constructive-react/src/public/orm/models/secretsModule.ts create mode 100644 sdk/constructive-react/src/public/orm/models/sessionsModule.ts create mode 100644 sdk/constructive-react/src/public/orm/models/site.ts create mode 100644 sdk/constructive-react/src/public/orm/models/siteMetadatum.ts create mode 100644 sdk/constructive-react/src/public/orm/models/siteModule.ts create mode 100644 sdk/constructive-react/src/public/orm/models/siteTheme.ts create mode 100644 sdk/constructive-react/src/public/orm/models/sqlMigration.ts create mode 100644 sdk/constructive-react/src/public/orm/models/store.ts create mode 100644 sdk/constructive-react/src/public/orm/models/table.ts create mode 100644 sdk/constructive-react/src/public/orm/models/tableGrant.ts create mode 100644 sdk/constructive-react/src/public/orm/models/tableModule.ts create mode 100644 sdk/constructive-react/src/public/orm/models/tableTemplateModule.ts create mode 100644 sdk/constructive-react/src/public/orm/models/trigger.ts create mode 100644 sdk/constructive-react/src/public/orm/models/triggerFunction.ts create mode 100644 sdk/constructive-react/src/public/orm/models/uniqueConstraint.ts create mode 100644 sdk/constructive-react/src/public/orm/models/user.ts create mode 100644 sdk/constructive-react/src/public/orm/models/userAuthModule.ts create mode 100644 sdk/constructive-react/src/public/orm/models/usersModule.ts create mode 100644 sdk/constructive-react/src/public/orm/models/uuidModule.ts create mode 100644 sdk/constructive-react/src/public/orm/models/view.ts create mode 100644 sdk/constructive-react/src/public/orm/models/viewGrant.ts create mode 100644 sdk/constructive-react/src/public/orm/models/viewRule.ts create mode 100644 sdk/constructive-react/src/public/orm/models/viewTable.ts create mode 100644 sdk/constructive-react/src/public/orm/mutation/index.ts create mode 100644 sdk/constructive-react/src/public/orm/query-builder.ts create mode 100644 sdk/constructive-react/src/public/orm/query/index.ts create mode 100644 sdk/constructive-react/src/public/orm/select-types.ts create mode 100644 sdk/constructive-react/src/public/orm/skills/api.md create mode 100644 sdk/constructive-react/src/public/orm/skills/apiModule.md create mode 100644 sdk/constructive-react/src/public/orm/skills/apiSchema.md create mode 100644 sdk/constructive-react/src/public/orm/skills/app.md create mode 100644 sdk/constructive-react/src/public/orm/skills/appAchievement.md create mode 100644 sdk/constructive-react/src/public/orm/skills/appAdminGrant.md create mode 100644 sdk/constructive-react/src/public/orm/skills/appGrant.md create mode 100644 sdk/constructive-react/src/public/orm/skills/appLevel.md create mode 100644 sdk/constructive-react/src/public/orm/skills/appLevelRequirement.md create mode 100644 sdk/constructive-react/src/public/orm/skills/appLimit.md create mode 100644 sdk/constructive-react/src/public/orm/skills/appLimitDefault.md create mode 100644 sdk/constructive-react/src/public/orm/skills/appMembership.md create mode 100644 sdk/constructive-react/src/public/orm/skills/appMembershipDefault.md create mode 100644 sdk/constructive-react/src/public/orm/skills/appOwnerGrant.md create mode 100644 sdk/constructive-react/src/public/orm/skills/appPermission.md create mode 100644 sdk/constructive-react/src/public/orm/skills/appPermissionDefault.md create mode 100644 sdk/constructive-react/src/public/orm/skills/appPermissionsGetByMask.md create mode 100644 sdk/constructive-react/src/public/orm/skills/appPermissionsGetMask.md create mode 100644 sdk/constructive-react/src/public/orm/skills/appPermissionsGetMaskByNames.md create mode 100644 sdk/constructive-react/src/public/orm/skills/appPermissionsGetPaddedMask.md create mode 100644 sdk/constructive-react/src/public/orm/skills/appStep.md create mode 100644 sdk/constructive-react/src/public/orm/skills/applyRls.md create mode 100644 sdk/constructive-react/src/public/orm/skills/astMigration.md create mode 100644 sdk/constructive-react/src/public/orm/skills/auditLog.md create mode 100644 sdk/constructive-react/src/public/orm/skills/bootstrapUser.md create mode 100644 sdk/constructive-react/src/public/orm/skills/checkConstraint.md create mode 100644 sdk/constructive-react/src/public/orm/skills/checkPassword.md create mode 100644 sdk/constructive-react/src/public/orm/skills/claimedInvite.md create mode 100644 sdk/constructive-react/src/public/orm/skills/commit.md create mode 100644 sdk/constructive-react/src/public/orm/skills/confirmDeleteAccount.md create mode 100644 sdk/constructive-react/src/public/orm/skills/connectedAccount.md create mode 100644 sdk/constructive-react/src/public/orm/skills/connectedAccountsModule.md create mode 100644 sdk/constructive-react/src/public/orm/skills/createUserDatabase.md create mode 100644 sdk/constructive-react/src/public/orm/skills/cryptoAddress.md create mode 100644 sdk/constructive-react/src/public/orm/skills/cryptoAddressesModule.md create mode 100644 sdk/constructive-react/src/public/orm/skills/cryptoAuthModule.md create mode 100644 sdk/constructive-react/src/public/orm/skills/currentIpAddress.md create mode 100644 sdk/constructive-react/src/public/orm/skills/currentUser.md create mode 100644 sdk/constructive-react/src/public/orm/skills/currentUserAgent.md create mode 100644 sdk/constructive-react/src/public/orm/skills/currentUserId.md create mode 100644 sdk/constructive-react/src/public/orm/skills/database.md create mode 100644 sdk/constructive-react/src/public/orm/skills/databaseProvisionModule.md create mode 100644 sdk/constructive-react/src/public/orm/skills/defaultIdsModule.md create mode 100644 sdk/constructive-react/src/public/orm/skills/denormalizedTableField.md create mode 100644 sdk/constructive-react/src/public/orm/skills/domain.md create mode 100644 sdk/constructive-react/src/public/orm/skills/email.md create mode 100644 sdk/constructive-react/src/public/orm/skills/emailsModule.md create mode 100644 sdk/constructive-react/src/public/orm/skills/encryptedSecretsModule.md create mode 100644 sdk/constructive-react/src/public/orm/skills/extendTokenExpires.md create mode 100644 sdk/constructive-react/src/public/orm/skills/field.md create mode 100644 sdk/constructive-react/src/public/orm/skills/fieldModule.md create mode 100644 sdk/constructive-react/src/public/orm/skills/foreignKeyConstraint.md create mode 100644 sdk/constructive-react/src/public/orm/skills/forgotPassword.md create mode 100644 sdk/constructive-react/src/public/orm/skills/freezeObjects.md create mode 100644 sdk/constructive-react/src/public/orm/skills/fullTextSearch.md create mode 100644 sdk/constructive-react/src/public/orm/skills/getAllObjectsFromRoot.md create mode 100644 sdk/constructive-react/src/public/orm/skills/getAllRecord.md create mode 100644 sdk/constructive-react/src/public/orm/skills/getObjectAtPath.md create mode 100644 sdk/constructive-react/src/public/orm/skills/getPathObjectsFromRoot.md create mode 100644 sdk/constructive-react/src/public/orm/skills/hierarchyModule.md create mode 100644 sdk/constructive-react/src/public/orm/skills/index.md create mode 100644 sdk/constructive-react/src/public/orm/skills/initEmptyRepo.md create mode 100644 sdk/constructive-react/src/public/orm/skills/insertNodeAtPath.md create mode 100644 sdk/constructive-react/src/public/orm/skills/invite.md create mode 100644 sdk/constructive-react/src/public/orm/skills/invitesModule.md create mode 100644 sdk/constructive-react/src/public/orm/skills/levelsModule.md create mode 100644 sdk/constructive-react/src/public/orm/skills/limitFunction.md create mode 100644 sdk/constructive-react/src/public/orm/skills/limitsModule.md create mode 100644 sdk/constructive-react/src/public/orm/skills/membershipType.md create mode 100644 sdk/constructive-react/src/public/orm/skills/membershipTypesModule.md create mode 100644 sdk/constructive-react/src/public/orm/skills/membershipsModule.md create mode 100644 sdk/constructive-react/src/public/orm/skills/nodeTypeRegistry.md create mode 100644 sdk/constructive-react/src/public/orm/skills/object.md create mode 100644 sdk/constructive-react/src/public/orm/skills/oneTimeToken.md create mode 100644 sdk/constructive-react/src/public/orm/skills/orgAdminGrant.md create mode 100644 sdk/constructive-react/src/public/orm/skills/orgClaimedInvite.md create mode 100644 sdk/constructive-react/src/public/orm/skills/orgGrant.md create mode 100644 sdk/constructive-react/src/public/orm/skills/orgInvite.md create mode 100644 sdk/constructive-react/src/public/orm/skills/orgLimit.md create mode 100644 sdk/constructive-react/src/public/orm/skills/orgLimitDefault.md create mode 100644 sdk/constructive-react/src/public/orm/skills/orgMember.md create mode 100644 sdk/constructive-react/src/public/orm/skills/orgMembership.md create mode 100644 sdk/constructive-react/src/public/orm/skills/orgMembershipDefault.md create mode 100644 sdk/constructive-react/src/public/orm/skills/orgOwnerGrant.md create mode 100644 sdk/constructive-react/src/public/orm/skills/orgPermission.md create mode 100644 sdk/constructive-react/src/public/orm/skills/orgPermissionDefault.md create mode 100644 sdk/constructive-react/src/public/orm/skills/orgPermissionsGetByMask.md create mode 100644 sdk/constructive-react/src/public/orm/skills/orgPermissionsGetMask.md create mode 100644 sdk/constructive-react/src/public/orm/skills/orgPermissionsGetMaskByNames.md create mode 100644 sdk/constructive-react/src/public/orm/skills/orgPermissionsGetPaddedMask.md create mode 100644 sdk/constructive-react/src/public/orm/skills/permissionsModule.md create mode 100644 sdk/constructive-react/src/public/orm/skills/phoneNumber.md create mode 100644 sdk/constructive-react/src/public/orm/skills/phoneNumbersModule.md create mode 100644 sdk/constructive-react/src/public/orm/skills/policy.md create mode 100644 sdk/constructive-react/src/public/orm/skills/primaryKeyConstraint.md create mode 100644 sdk/constructive-react/src/public/orm/skills/procedure.md create mode 100644 sdk/constructive-react/src/public/orm/skills/profilesModule.md create mode 100644 sdk/constructive-react/src/public/orm/skills/provisionDatabaseWithUser.md create mode 100644 sdk/constructive-react/src/public/orm/skills/ref.md create mode 100644 sdk/constructive-react/src/public/orm/skills/removeNodeAtPath.md create mode 100644 sdk/constructive-react/src/public/orm/skills/resetPassword.md create mode 100644 sdk/constructive-react/src/public/orm/skills/revParse.md create mode 100644 sdk/constructive-react/src/public/orm/skills/rlsModule.md create mode 100644 sdk/constructive-react/src/public/orm/skills/roleType.md create mode 100644 sdk/constructive-react/src/public/orm/skills/schema.md create mode 100644 sdk/constructive-react/src/public/orm/skills/schemaGrant.md create mode 100644 sdk/constructive-react/src/public/orm/skills/secretsModule.md create mode 100644 sdk/constructive-react/src/public/orm/skills/sendAccountDeletionEmail.md create mode 100644 sdk/constructive-react/src/public/orm/skills/sendVerificationEmail.md create mode 100644 sdk/constructive-react/src/public/orm/skills/sessionsModule.md create mode 100644 sdk/constructive-react/src/public/orm/skills/setAndCommit.md create mode 100644 sdk/constructive-react/src/public/orm/skills/setDataAtPath.md create mode 100644 sdk/constructive-react/src/public/orm/skills/setFieldOrder.md create mode 100644 sdk/constructive-react/src/public/orm/skills/setPassword.md create mode 100644 sdk/constructive-react/src/public/orm/skills/setPropsAndCommit.md create mode 100644 sdk/constructive-react/src/public/orm/skills/signIn.md create mode 100644 sdk/constructive-react/src/public/orm/skills/signInOneTimeToken.md create mode 100644 sdk/constructive-react/src/public/orm/skills/signOut.md create mode 100644 sdk/constructive-react/src/public/orm/skills/signUp.md create mode 100644 sdk/constructive-react/src/public/orm/skills/site.md create mode 100644 sdk/constructive-react/src/public/orm/skills/siteMetadatum.md create mode 100644 sdk/constructive-react/src/public/orm/skills/siteModule.md create mode 100644 sdk/constructive-react/src/public/orm/skills/siteTheme.md create mode 100644 sdk/constructive-react/src/public/orm/skills/sqlMigration.md create mode 100644 sdk/constructive-react/src/public/orm/skills/stepsAchieved.md create mode 100644 sdk/constructive-react/src/public/orm/skills/stepsRequired.md create mode 100644 sdk/constructive-react/src/public/orm/skills/store.md create mode 100644 sdk/constructive-react/src/public/orm/skills/submitInviteCode.md create mode 100644 sdk/constructive-react/src/public/orm/skills/submitOrgInviteCode.md create mode 100644 sdk/constructive-react/src/public/orm/skills/table.md create mode 100644 sdk/constructive-react/src/public/orm/skills/tableGrant.md create mode 100644 sdk/constructive-react/src/public/orm/skills/tableModule.md create mode 100644 sdk/constructive-react/src/public/orm/skills/tableTemplateModule.md create mode 100644 sdk/constructive-react/src/public/orm/skills/trigger.md create mode 100644 sdk/constructive-react/src/public/orm/skills/triggerFunction.md create mode 100644 sdk/constructive-react/src/public/orm/skills/uniqueConstraint.md create mode 100644 sdk/constructive-react/src/public/orm/skills/updateNodeAtPath.md create mode 100644 sdk/constructive-react/src/public/orm/skills/user.md create mode 100644 sdk/constructive-react/src/public/orm/skills/userAuthModule.md create mode 100644 sdk/constructive-react/src/public/orm/skills/usersModule.md create mode 100644 sdk/constructive-react/src/public/orm/skills/uuidModule.md create mode 100644 sdk/constructive-react/src/public/orm/skills/verifyEmail.md create mode 100644 sdk/constructive-react/src/public/orm/skills/verifyPassword.md create mode 100644 sdk/constructive-react/src/public/orm/skills/verifyTotp.md create mode 100644 sdk/constructive-react/src/public/orm/skills/view.md create mode 100644 sdk/constructive-react/src/public/orm/skills/viewGrant.md create mode 100644 sdk/constructive-react/src/public/orm/skills/viewRule.md create mode 100644 sdk/constructive-react/src/public/orm/skills/viewTable.md create mode 100644 sdk/constructive-react/src/public/orm/types.ts create mode 100644 sdk/constructive-react/src/public/schema-types.ts create mode 100644 sdk/constructive-react/src/public/types.ts create mode 100644 sdk/constructive-react/tsconfig.esm.json create mode 100644 sdk/constructive-react/tsconfig.json diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2e32c034a..77365da10 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -10,6 +10,7 @@ overrides: packageExtensionsChecksum: sha256-x8B4zkJ4KLRX+yspUWxuggXWlz6zrBLSIh72pNhpPiE= importers: + .: devDependencies: '@jest/test-sequencer': @@ -192,7 +193,7 @@ importers: version: 5.2.1 grafserv: specifier: 1.0.0-rc.6 - version: 1.0.0-rc.6(@types/node@22.19.11)(@types/react-dom@19.2.3(@types/react@19.2.13))(@types/react@19.2.13)(grafast@1.0.0-rc.7(graphql@16.12.0))(graphile-config@1.0.0-rc.5)(graphql@16.12.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(use-sync-external-store@1.6.0(react@19.2.3))(ws@8.19.0) + version: 1.0.0-rc.6(@types/node@20.19.27)(@types/react-dom@19.2.3(@types/react@19.2.13))(@types/react@19.2.13)(grafast@1.0.0-rc.7(graphql@16.12.0))(graphile-config@1.0.0-rc.5)(graphql@16.12.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(use-sync-external-store@1.6.0(react@19.2.3))(ws@8.19.0) lru-cache: specifier: ^11.2.4 version: 11.2.4 @@ -201,7 +202,7 @@ importers: version: link:../../postgres/pg-cache/dist postgraphile: specifier: 5.0.0-rc.7 - version: 5.0.0-rc.7(31cdc8d134b08730595d424ed57d41b2) + version: 5.0.0-rc.7(4bdfc5e575b176d9ea8f7de07e7e5c7a) devDependencies: '@types/express': specifier: ^5.0.6 @@ -214,7 +215,7 @@ importers: version: 3.1.11 ts-node: specifier: ^10.9.2 - version: 10.9.2(@types/node@22.19.11)(typescript@5.9.3) + version: 10.9.2(@types/node@20.19.27)(typescript@5.9.3) publishDirectory: dist graphile/graphile-misc-plugins: @@ -407,7 +408,7 @@ importers: version: 0.1.12 ts-node: specifier: ^10.9.2 - version: 10.9.2(@types/node@22.19.11)(typescript@5.9.3) + version: 10.9.2(@types/node@20.19.27)(typescript@5.9.3) publishDirectory: dist graphile/graphile-search-plugin: @@ -491,7 +492,7 @@ importers: version: 1.0.0-rc.7(graphql@16.12.0) grafserv: specifier: 1.0.0-rc.6 - version: 1.0.0-rc.6(@types/node@22.19.11)(@types/react-dom@19.2.3(@types/react@19.2.13))(@types/react@19.2.13)(grafast@1.0.0-rc.7(graphql@16.12.0))(graphile-config@1.0.0-rc.5)(graphql@16.12.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(use-sync-external-store@1.6.0(react@19.2.3))(ws@8.19.0) + version: 1.0.0-rc.6(@types/node@20.19.27)(@types/react-dom@19.2.3(@types/react@19.2.13))(@types/react@19.2.13)(grafast@1.0.0-rc.7(graphql@16.12.0))(graphile-config@1.0.0-rc.5)(graphql@16.12.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(use-sync-external-store@1.6.0(react@19.2.3))(ws@8.19.0) graphile-build: specifier: 5.0.0-rc.4 version: 5.0.0-rc.4(grafast@1.0.0-rc.7(graphql@16.12.0))(graphile-config@1.0.0-rc.5)(graphql@16.12.0) @@ -536,7 +537,7 @@ importers: version: 5.0.0-rc.4 postgraphile: specifier: 5.0.0-rc.7 - version: 5.0.0-rc.7(31cdc8d134b08730595d424ed57d41b2) + version: 5.0.0-rc.7(4bdfc5e575b176d9ea8f7de07e7e5c7a) postgraphile-plugin-connection-filter: specifier: 3.0.0-rc.1 version: 3.0.0-rc.1 @@ -567,7 +568,7 @@ importers: version: 3.1.11 ts-node: specifier: ^10.9.2 - version: 10.9.2(@types/node@22.19.11)(typescript@5.9.3) + version: 10.9.2(@types/node@20.19.27)(typescript@5.9.3) publishDirectory: dist graphile/graphile-sql-expression-validator: @@ -862,7 +863,7 @@ importers: version: 5.2.1 grafserv: specifier: 1.0.0-rc.6 - version: 1.0.0-rc.6(@types/node@22.19.11)(@types/react-dom@19.2.3(@types/react@19.2.13))(@types/react@19.2.13)(grafast@1.0.0-rc.7(graphql@16.12.0))(graphile-config@1.0.0-rc.5)(graphql@16.12.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(use-sync-external-store@1.6.0(react@19.2.3))(ws@8.19.0) + version: 1.0.0-rc.6(@types/node@20.19.27)(@types/react-dom@19.2.3(@types/react@19.2.13))(@types/react@19.2.13)(grafast@1.0.0-rc.7(graphql@16.12.0))(graphile-config@1.0.0-rc.5)(graphql@16.12.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(use-sync-external-store@1.6.0(react@19.2.3))(ws@8.19.0) graphile-cache: specifier: workspace:^ version: link:../../graphile/graphile-cache/dist @@ -883,7 +884,7 @@ importers: version: link:../../postgres/pg-env/dist postgraphile: specifier: 5.0.0-rc.7 - version: 5.0.0-rc.7(31cdc8d134b08730595d424ed57d41b2) + version: 5.0.0-rc.7(4bdfc5e575b176d9ea8f7de07e7e5c7a) devDependencies: '@types/express': specifier: ^5.0.6 @@ -896,7 +897,7 @@ importers: version: 3.1.11 ts-node: specifier: ^10.9.2 - version: 10.9.2(@types/node@22.19.11)(typescript@5.9.3) + version: 10.9.2(@types/node@20.19.27)(typescript@5.9.3) publishDirectory: dist graphql/gql-ast: @@ -1079,7 +1080,7 @@ importers: version: 1.0.0-rc.7(graphql@16.12.0) grafserv: specifier: 1.0.0-rc.6 - version: 1.0.0-rc.6(@types/node@22.19.11)(@types/react-dom@19.2.3(@types/react@19.2.13))(@types/react@19.2.13)(grafast@1.0.0-rc.7(graphql@16.12.0))(graphile-config@1.0.0-rc.5)(graphql@16.12.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(use-sync-external-store@1.6.0(react@19.2.3))(ws@8.19.0) + version: 1.0.0-rc.6(@types/node@20.19.27)(@types/react-dom@19.2.3(@types/react@19.2.13))(@types/react@19.2.13)(grafast@1.0.0-rc.7(graphql@16.12.0))(graphile-config@1.0.0-rc.5)(graphql@16.12.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(use-sync-external-store@1.6.0(react@19.2.3))(ws@8.19.0) graphile-build: specifier: 5.0.0-rc.4 version: 5.0.0-rc.4(grafast@1.0.0-rc.7(graphql@16.12.0))(graphile-config@1.0.0-rc.5)(graphql@16.12.0) @@ -1127,7 +1128,7 @@ importers: version: 5.0.0-rc.4 postgraphile: specifier: 5.0.0-rc.7 - version: 5.0.0-rc.7(31cdc8d134b08730595d424ed57d41b2) + version: 5.0.0-rc.7(4bdfc5e575b176d9ea8f7de07e7e5c7a) postgraphile-plugin-connection-filter: specifier: 3.0.0-rc.1 version: 3.0.0-rc.1 @@ -1167,7 +1168,7 @@ importers: version: 3.1.11 ts-node: specifier: ^10.9.2 - version: 10.9.2(@types/node@22.19.11)(typescript@5.9.3) + version: 10.9.2(@types/node@20.19.27)(typescript@5.9.3) publishDirectory: dist graphql/server-test: @@ -1559,7 +1560,7 @@ importers: version: 7.2.2 ts-node: specifier: ^10.9.2 - version: 10.9.2(@types/node@22.19.11)(typescript@5.9.3) + version: 10.9.2(@types/node@20.19.27)(typescript@5.9.3) publishDirectory: dist jobs/knative-job-worker: @@ -1846,7 +1847,7 @@ importers: version: 0.1.12 ts-node: specifier: ^10.9.2 - version: 10.9.2(@types/node@22.19.11)(typescript@5.9.3) + version: 10.9.2(@types/node@20.19.27)(typescript@5.9.3) publishDirectory: dist packages/smtppostmaster: @@ -1875,7 +1876,7 @@ importers: version: 3.18.0 ts-node: specifier: ^10.9.2 - version: 10.9.2(@types/node@22.19.11)(typescript@5.9.3) + version: 10.9.2(@types/node@20.19.27)(typescript@5.9.3) publishDirectory: dist packages/url-domains: @@ -2375,6 +2376,47 @@ importers: version: 0.1.12 publishDirectory: dist + sdk/constructive-react: + dependencies: + '@0no-co/graphql.web': + specifier: ^1.1.2 + version: 1.2.0(graphql@16.12.0) + '@constructive-io/graphql-types': + specifier: workspace:^ + version: link:../../graphql/types/dist + '@tanstack/react-query': + specifier: ^5.90.19 + version: 5.90.20(react@19.2.3) + gql-ast: + specifier: workspace:^ + version: link:../../graphql/gql-ast/dist + graphql: + specifier: ^16.12.0 + version: 16.12.0 + devDependencies: + '@constructive-io/graphql-codegen': + specifier: workspace:^ + version: link:../../graphql/codegen/dist + '@types/node': + specifier: ^20.12.7 + version: 20.19.27 + '@types/react': + specifier: ^19.2.8 + version: 19.2.13 + makage: + specifier: ^0.1.12 + version: 0.1.12 + react: + specifier: ^19.2.3 + version: 19.2.3 + tsx: + specifier: ^4.19.0 + version: 4.21.0 + typescript: + specifier: ^5.9.3 + version: 5.9.3 + publishDirectory: dist + sdk/constructive-sdk: dependencies: '@0no-co/graphql.web': @@ -2544,11 +2586,9 @@ importers: publishDirectory: dist packages: + '@0no-co/graphql.web@1.2.0': - resolution: - { - integrity: sha512-/1iHy9TTr63gE1YcR5idjx8UREz1s0kFhydf3bBLCXyqjhkIc6igAzTOx3zPifCwFR87tsh/4Pa9cNts6d2otw==, - } + resolution: {integrity: sha512-/1iHy9TTr63gE1YcR5idjx8UREz1s0kFhydf3bBLCXyqjhkIc6igAzTOx3zPifCwFR87tsh/4Pa9cNts6d2otw==} peerDependencies: graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 peerDependenciesMeta: @@ -2556,399 +2596,228 @@ packages: optional: true '@aws-crypto/crc32@5.2.0': - resolution: - { - integrity: sha512-nLbCWqQNgUiwwtFsen1AdzAtvuLRsQS8rYgMuxCrdKf9kOssamGLuPwyTY9wyYblNr9+1XM8v6zoDTPPSIeANg==, - } - engines: { node: '>=16.0.0' } + resolution: {integrity: sha512-nLbCWqQNgUiwwtFsen1AdzAtvuLRsQS8rYgMuxCrdKf9kOssamGLuPwyTY9wyYblNr9+1XM8v6zoDTPPSIeANg==} + engines: {node: '>=16.0.0'} '@aws-crypto/crc32c@5.2.0': - resolution: - { - integrity: sha512-+iWb8qaHLYKrNvGRbiYRHSdKRWhto5XlZUEBwDjYNf+ly5SVYG6zEoYIdxvf5R3zyeP16w4PLBn3rH1xc74Rag==, - } + resolution: {integrity: sha512-+iWb8qaHLYKrNvGRbiYRHSdKRWhto5XlZUEBwDjYNf+ly5SVYG6zEoYIdxvf5R3zyeP16w4PLBn3rH1xc74Rag==} '@aws-crypto/sha1-browser@5.2.0': - resolution: - { - integrity: sha512-OH6lveCFfcDjX4dbAvCFSYUjJZjDr/3XJ3xHtjn3Oj5b9RjojQo8npoLeA/bNwkOkrSQ0wgrHzXk4tDRxGKJeg==, - } + resolution: {integrity: sha512-OH6lveCFfcDjX4dbAvCFSYUjJZjDr/3XJ3xHtjn3Oj5b9RjojQo8npoLeA/bNwkOkrSQ0wgrHzXk4tDRxGKJeg==} '@aws-crypto/sha256-browser@5.2.0': - resolution: - { - integrity: sha512-AXfN/lGotSQwu6HNcEsIASo7kWXZ5HYWvfOmSNKDsEqC4OashTp8alTmaz+F7TC2L083SFv5RdB+qU3Vs1kZqw==, - } + resolution: {integrity: sha512-AXfN/lGotSQwu6HNcEsIASo7kWXZ5HYWvfOmSNKDsEqC4OashTp8alTmaz+F7TC2L083SFv5RdB+qU3Vs1kZqw==} '@aws-crypto/sha256-js@5.2.0': - resolution: - { - integrity: sha512-FFQQyu7edu4ufvIZ+OadFpHHOt+eSTBaYaki44c+akjg7qZg9oOQeLlk77F6tSYqjDAFClrHJk9tMf0HdVyOvA==, - } - engines: { node: '>=16.0.0' } + resolution: {integrity: sha512-FFQQyu7edu4ufvIZ+OadFpHHOt+eSTBaYaki44c+akjg7qZg9oOQeLlk77F6tSYqjDAFClrHJk9tMf0HdVyOvA==} + engines: {node: '>=16.0.0'} '@aws-crypto/supports-web-crypto@5.2.0': - resolution: - { - integrity: sha512-iAvUotm021kM33eCdNfwIN//F77/IADDSs58i+MDaOqFrVjZo9bAal0NK7HurRuWLLpF1iLX7gbWrjHjeo+YFg==, - } + resolution: {integrity: sha512-iAvUotm021kM33eCdNfwIN//F77/IADDSs58i+MDaOqFrVjZo9bAal0NK7HurRuWLLpF1iLX7gbWrjHjeo+YFg==} '@aws-crypto/util@5.2.0': - resolution: - { - integrity: sha512-4RkU9EsI6ZpBve5fseQlGNUWKMa1RLPQ1dnjnQoe07ldfIzcsGb5hC5W0Dm7u423KWzawlrpbjXBrXCEv9zazQ==, - } + resolution: {integrity: sha512-4RkU9EsI6ZpBve5fseQlGNUWKMa1RLPQ1dnjnQoe07ldfIzcsGb5hC5W0Dm7u423KWzawlrpbjXBrXCEv9zazQ==} '@aws-sdk/client-s3@3.971.0': - resolution: - { - integrity: sha512-BBUne390fKa4C4QvZlUZ5gKcu+Uyid4IyQ20N4jl0vS7SK2xpfXlJcgKqPW5ts6kx6hWTQBk6sH5Lf12RvuJxg==, - } - engines: { node: '>=20.0.0' } + resolution: {integrity: sha512-BBUne390fKa4C4QvZlUZ5gKcu+Uyid4IyQ20N4jl0vS7SK2xpfXlJcgKqPW5ts6kx6hWTQBk6sH5Lf12RvuJxg==} + engines: {node: '>=20.0.0'} '@aws-sdk/client-sesv2@3.969.0': - resolution: - { - integrity: sha512-YnBJRtueyNAeKJvRNBVAeH9fh5X8KmMa4fp1Zn1Hex0G5bRKm0aUdS4i+p5cOIpCyBV9hyLGGkaCBDC4Han7aw==, - } - engines: { node: '>=20.0.0' } + resolution: {integrity: sha512-YnBJRtueyNAeKJvRNBVAeH9fh5X8KmMa4fp1Zn1Hex0G5bRKm0aUdS4i+p5cOIpCyBV9hyLGGkaCBDC4Han7aw==} + engines: {node: '>=20.0.0'} '@aws-sdk/client-sso@3.969.0': - resolution: - { - integrity: sha512-Qn0Uz6o15q2S+1E6OpwRKmaAMoT4LktEn+Oibk28qb2Mne+emaDawhZXahOJb/wFw5lN2FEH7XoiSNenNNUmCw==, - } - engines: { node: '>=20.0.0' } + resolution: {integrity: sha512-Qn0Uz6o15q2S+1E6OpwRKmaAMoT4LktEn+Oibk28qb2Mne+emaDawhZXahOJb/wFw5lN2FEH7XoiSNenNNUmCw==} + engines: {node: '>=20.0.0'} '@aws-sdk/client-sso@3.971.0': - resolution: - { - integrity: sha512-Xx+w6DQqJxDdymYyIxyKJnRzPvVJ4e/Aw0czO7aC9L/iraaV7AG8QtRe93OGW6aoHSh72CIiinnpJJfLsQqP4g==, - } - engines: { node: '>=20.0.0' } + resolution: {integrity: sha512-Xx+w6DQqJxDdymYyIxyKJnRzPvVJ4e/Aw0czO7aC9L/iraaV7AG8QtRe93OGW6aoHSh72CIiinnpJJfLsQqP4g==} + engines: {node: '>=20.0.0'} '@aws-sdk/core@3.969.0': - resolution: - { - integrity: sha512-qqmQt4z5rEK1OYVkVkboWgy/58CC5QaQ7oy0tvLe3iri/mfZbgJkA+pkwQyRP827DfCBZ3W7Ki9iwSa+B2U7uQ==, - } - engines: { node: '>=20.0.0' } + resolution: {integrity: sha512-qqmQt4z5rEK1OYVkVkboWgy/58CC5QaQ7oy0tvLe3iri/mfZbgJkA+pkwQyRP827DfCBZ3W7Ki9iwSa+B2U7uQ==} + engines: {node: '>=20.0.0'} '@aws-sdk/core@3.970.0': - resolution: - { - integrity: sha512-klpzObldOq8HXzDjDlY6K8rMhYZU6mXRz6P9F9N+tWnjoYFfeBMra8wYApydElTUYQKP1O7RLHwH1OKFfKcqIA==, - } - engines: { node: '>=20.0.0' } + resolution: {integrity: sha512-klpzObldOq8HXzDjDlY6K8rMhYZU6mXRz6P9F9N+tWnjoYFfeBMra8wYApydElTUYQKP1O7RLHwH1OKFfKcqIA==} + engines: {node: '>=20.0.0'} '@aws-sdk/crc64-nvme@3.969.0': - resolution: - { - integrity: sha512-IGNkP54HD3uuLnrPCYsv3ZD478UYq+9WwKrIVJ9Pdi3hxPg8562CH3ZHf8hEgfePN31P9Kj+Zu9kq2Qcjjt61A==, - } - engines: { node: '>=20.0.0' } + resolution: {integrity: sha512-IGNkP54HD3uuLnrPCYsv3ZD478UYq+9WwKrIVJ9Pdi3hxPg8562CH3ZHf8hEgfePN31P9Kj+Zu9kq2Qcjjt61A==} + engines: {node: '>=20.0.0'} '@aws-sdk/credential-provider-env@3.969.0': - resolution: - { - integrity: sha512-yS96heH5XDUqS3qQNcdObKKMOqZaivuNInMVRpRli48aXW8fX1M3fY67K/Onlqa3Wxu6WfDc3ZGF52SywdLvbg==, - } - engines: { node: '>=20.0.0' } + resolution: {integrity: sha512-yS96heH5XDUqS3qQNcdObKKMOqZaivuNInMVRpRli48aXW8fX1M3fY67K/Onlqa3Wxu6WfDc3ZGF52SywdLvbg==} + engines: {node: '>=20.0.0'} '@aws-sdk/credential-provider-env@3.970.0': - resolution: - { - integrity: sha512-rtVzXzEtAfZBfh+lq3DAvRar4c3jyptweOAJR2DweyXx71QSMY+O879hjpMwES7jl07a3O1zlnFIDo4KP/96kQ==, - } - engines: { node: '>=20.0.0' } + resolution: {integrity: sha512-rtVzXzEtAfZBfh+lq3DAvRar4c3jyptweOAJR2DweyXx71QSMY+O879hjpMwES7jl07a3O1zlnFIDo4KP/96kQ==} + engines: {node: '>=20.0.0'} '@aws-sdk/credential-provider-http@3.969.0': - resolution: - { - integrity: sha512-QCEFxBiUYFUW5VG6k8jKhT4luZndpC7uUY4u1olwt+OnJrl3N2yC7oS34isVBa3ioXZ4A0YagbXTa/3mXUhlAA==, - } - engines: { node: '>=20.0.0' } + resolution: {integrity: sha512-QCEFxBiUYFUW5VG6k8jKhT4luZndpC7uUY4u1olwt+OnJrl3N2yC7oS34isVBa3ioXZ4A0YagbXTa/3mXUhlAA==} + engines: {node: '>=20.0.0'} '@aws-sdk/credential-provider-http@3.970.0': - resolution: - { - integrity: sha512-CjDbWL7JxjLc9ZxQilMusWSw05yRvUJKRpz59IxDpWUnSMHC9JMMUUkOy5Izk8UAtzi6gupRWArp4NG4labt9Q==, - } - engines: { node: '>=20.0.0' } + resolution: {integrity: sha512-CjDbWL7JxjLc9ZxQilMusWSw05yRvUJKRpz59IxDpWUnSMHC9JMMUUkOy5Izk8UAtzi6gupRWArp4NG4labt9Q==} + engines: {node: '>=20.0.0'} '@aws-sdk/credential-provider-ini@3.969.0': - resolution: - { - integrity: sha512-lsXyTDkUrZPxjr0XruZrqdcHY9zHcIuoY3TOCQEm23VTc8Np2BenTtjGAIexkL3ar69K4u3FVLQroLpmFxeXqA==, - } - engines: { node: '>=20.0.0' } + resolution: {integrity: sha512-lsXyTDkUrZPxjr0XruZrqdcHY9zHcIuoY3TOCQEm23VTc8Np2BenTtjGAIexkL3ar69K4u3FVLQroLpmFxeXqA==} + engines: {node: '>=20.0.0'} '@aws-sdk/credential-provider-ini@3.971.0': - resolution: - { - integrity: sha512-c0TGJG4xyfTZz3SInXfGU8i5iOFRrLmy4Bo7lMyH+IpngohYMYGYl61omXqf2zdwMbDv+YJ9AviQTcCaEUKi8w==, - } - engines: { node: '>=20.0.0' } + resolution: {integrity: sha512-c0TGJG4xyfTZz3SInXfGU8i5iOFRrLmy4Bo7lMyH+IpngohYMYGYl61omXqf2zdwMbDv+YJ9AviQTcCaEUKi8w==} + engines: {node: '>=20.0.0'} '@aws-sdk/credential-provider-login@3.969.0': - resolution: - { - integrity: sha512-bIRFDf54qIUFFLTZNYt40d6EseNeK9w80dHEs7BVEAWoS23c9+MSqkdg/LJBBK9Kgy01vRmjiedfBZN+jGypLw==, - } - engines: { node: '>=20.0.0' } + resolution: {integrity: sha512-bIRFDf54qIUFFLTZNYt40d6EseNeK9w80dHEs7BVEAWoS23c9+MSqkdg/LJBBK9Kgy01vRmjiedfBZN+jGypLw==} + engines: {node: '>=20.0.0'} '@aws-sdk/credential-provider-login@3.971.0': - resolution: - { - integrity: sha512-yhbzmDOsk0RXD3rTPhZra4AWVnVAC4nFWbTp+sUty1hrOPurUmhuz8bjpLqYTHGnlMbJp+UqkQONhS2+2LzW2g==, - } - engines: { node: '>=20.0.0' } + resolution: {integrity: sha512-yhbzmDOsk0RXD3rTPhZra4AWVnVAC4nFWbTp+sUty1hrOPurUmhuz8bjpLqYTHGnlMbJp+UqkQONhS2+2LzW2g==} + engines: {node: '>=20.0.0'} '@aws-sdk/credential-provider-node@3.969.0': - resolution: - { - integrity: sha512-lImMjcy/5SGDIBk7PFJCqFO4rFuapKCvo1z2PidD3Cbz2D7wsJnyqUNQIp5Ix0Xc3/uAYG9zXI9kgaMf1dspIQ==, - } - engines: { node: '>=20.0.0' } + resolution: {integrity: sha512-lImMjcy/5SGDIBk7PFJCqFO4rFuapKCvo1z2PidD3Cbz2D7wsJnyqUNQIp5Ix0Xc3/uAYG9zXI9kgaMf1dspIQ==} + engines: {node: '>=20.0.0'} '@aws-sdk/credential-provider-node@3.971.0': - resolution: - { - integrity: sha512-epUJBAKivtJqalnEBRsYIULKYV063o/5mXNJshZfyvkAgNIzc27CmmKRXTN4zaNOZg8g/UprFp25BGsi19x3nQ==, - } - engines: { node: '>=20.0.0' } + resolution: {integrity: sha512-epUJBAKivtJqalnEBRsYIULKYV063o/5mXNJshZfyvkAgNIzc27CmmKRXTN4zaNOZg8g/UprFp25BGsi19x3nQ==} + engines: {node: '>=20.0.0'} '@aws-sdk/credential-provider-process@3.969.0': - resolution: - { - integrity: sha512-2qQkM0rwd8Hl9nIHtUaqT8Z/djrulovqx/wBHsbRKaISwc2fiT3De1Lk1jx34Jzrz/dTHAMJJi+cML1N4Lk3kw==, - } - engines: { node: '>=20.0.0' } + resolution: {integrity: sha512-2qQkM0rwd8Hl9nIHtUaqT8Z/djrulovqx/wBHsbRKaISwc2fiT3De1Lk1jx34Jzrz/dTHAMJJi+cML1N4Lk3kw==} + engines: {node: '>=20.0.0'} '@aws-sdk/credential-provider-process@3.970.0': - resolution: - { - integrity: sha512-0XeT8OaT9iMA62DFV9+m6mZfJhrD0WNKf4IvsIpj2Z7XbaYfz3CoDDvNoALf3rPY9NzyMHgDxOspmqdvXP00mw==, - } - engines: { node: '>=20.0.0' } + resolution: {integrity: sha512-0XeT8OaT9iMA62DFV9+m6mZfJhrD0WNKf4IvsIpj2Z7XbaYfz3CoDDvNoALf3rPY9NzyMHgDxOspmqdvXP00mw==} + engines: {node: '>=20.0.0'} '@aws-sdk/credential-provider-sso@3.969.0': - resolution: - { - integrity: sha512-JHqXw9Ct3dtZB86/zGFJYWyodr961GyIrqTBhV0brrZFPvcinM9abDSK58jt6GNBM2lqfMCvXL6I4ahNsMdkrg==, - } - engines: { node: '>=20.0.0' } + resolution: {integrity: sha512-JHqXw9Ct3dtZB86/zGFJYWyodr961GyIrqTBhV0brrZFPvcinM9abDSK58jt6GNBM2lqfMCvXL6I4ahNsMdkrg==} + engines: {node: '>=20.0.0'} '@aws-sdk/credential-provider-sso@3.971.0': - resolution: - { - integrity: sha512-dY0hMQ7dLVPQNJ8GyqXADxa9w5wNfmukgQniLxGVn+dMRx3YLViMp5ZpTSQpFhCWNF0oKQrYAI5cHhUJU1hETw==, - } - engines: { node: '>=20.0.0' } + resolution: {integrity: sha512-dY0hMQ7dLVPQNJ8GyqXADxa9w5wNfmukgQniLxGVn+dMRx3YLViMp5ZpTSQpFhCWNF0oKQrYAI5cHhUJU1hETw==} + engines: {node: '>=20.0.0'} '@aws-sdk/credential-provider-web-identity@3.969.0': - resolution: - { - integrity: sha512-mKCZtqrs3ts3YmIjT4NFlYgT2Oe6syW0nX5m2l7iyrFrLXw26Zo3rx29DjGzycPdJHZZvsIy5y6yqChDuF65ng==, - } - engines: { node: '>=20.0.0' } + resolution: {integrity: sha512-mKCZtqrs3ts3YmIjT4NFlYgT2Oe6syW0nX5m2l7iyrFrLXw26Zo3rx29DjGzycPdJHZZvsIy5y6yqChDuF65ng==} + engines: {node: '>=20.0.0'} '@aws-sdk/credential-provider-web-identity@3.971.0': - resolution: - { - integrity: sha512-F1AwfNLr7H52T640LNON/h34YDiMuIqW/ZreGzhRR6vnFGaSPtNSKAKB2ssAMkLM8EVg8MjEAYD3NCUiEo+t/w==, - } - engines: { node: '>=20.0.0' } + resolution: {integrity: sha512-F1AwfNLr7H52T640LNON/h34YDiMuIqW/ZreGzhRR6vnFGaSPtNSKAKB2ssAMkLM8EVg8MjEAYD3NCUiEo+t/w==} + engines: {node: '>=20.0.0'} '@aws-sdk/lib-storage@3.958.0': - resolution: - { - integrity: sha512-cd8CTiJ165ep2DKTc2PHHhVCxDn3byv10BXMGn+lkDY3KwMoatcgZ1uhFWCBuJvsCUnSExqGouJN/Q0qgjkWtg==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-cd8CTiJ165ep2DKTc2PHHhVCxDn3byv10BXMGn+lkDY3KwMoatcgZ1uhFWCBuJvsCUnSExqGouJN/Q0qgjkWtg==} + engines: {node: '>=18.0.0'} peerDependencies: '@aws-sdk/client-s3': ^3.958.0 '@aws-sdk/middleware-bucket-endpoint@3.969.0': - resolution: - { - integrity: sha512-MlbrlixtkTVhYhoasblKOkr7n2yydvUZjjxTnBhIuHmkyBS1619oGnTfq/uLeGYb4NYXdeQ5OYcqsRGvmWSuTw==, - } - engines: { node: '>=20.0.0' } + resolution: {integrity: sha512-MlbrlixtkTVhYhoasblKOkr7n2yydvUZjjxTnBhIuHmkyBS1619oGnTfq/uLeGYb4NYXdeQ5OYcqsRGvmWSuTw==} + engines: {node: '>=20.0.0'} '@aws-sdk/middleware-expect-continue@3.969.0': - resolution: - { - integrity: sha512-qXygzSi8osok7tH9oeuS3HoKw6jRfbvg5Me/X5RlHOvSSqQz8c5O9f3MjUApaCUSwbAU92KrbZWasw2PKiaVHg==, - } - engines: { node: '>=20.0.0' } + resolution: {integrity: sha512-qXygzSi8osok7tH9oeuS3HoKw6jRfbvg5Me/X5RlHOvSSqQz8c5O9f3MjUApaCUSwbAU92KrbZWasw2PKiaVHg==} + engines: {node: '>=20.0.0'} '@aws-sdk/middleware-flexible-checksums@3.971.0': - resolution: - { - integrity: sha512-+hGUDUxeIw8s2kkjfeXym0XZxdh0cqkHkDpEanWYdS1gnWkIR+gf9u/DKbKqGHXILPaqHXhWpLTQTVlaB4sI7Q==, - } - engines: { node: '>=20.0.0' } + resolution: {integrity: sha512-+hGUDUxeIw8s2kkjfeXym0XZxdh0cqkHkDpEanWYdS1gnWkIR+gf9u/DKbKqGHXILPaqHXhWpLTQTVlaB4sI7Q==} + engines: {node: '>=20.0.0'} '@aws-sdk/middleware-host-header@3.969.0': - resolution: - { - integrity: sha512-AWa4rVsAfBR4xqm7pybQ8sUNJYnjyP/bJjfAw34qPuh3M9XrfGbAHG0aiAfQGrBnmS28jlO6Kz69o+c6PRw1dw==, - } - engines: { node: '>=20.0.0' } + resolution: {integrity: sha512-AWa4rVsAfBR4xqm7pybQ8sUNJYnjyP/bJjfAw34qPuh3M9XrfGbAHG0aiAfQGrBnmS28jlO6Kz69o+c6PRw1dw==} + engines: {node: '>=20.0.0'} '@aws-sdk/middleware-location-constraint@3.969.0': - resolution: - { - integrity: sha512-zH7pDfMLG/C4GWMOpvJEoYcSpj7XsNP9+irlgqwi667sUQ6doHQJ3yyDut3yiTk0maq1VgmriPFELyI9lrvH/g==, - } - engines: { node: '>=20.0.0' } + resolution: {integrity: sha512-zH7pDfMLG/C4GWMOpvJEoYcSpj7XsNP9+irlgqwi667sUQ6doHQJ3yyDut3yiTk0maq1VgmriPFELyI9lrvH/g==} + engines: {node: '>=20.0.0'} '@aws-sdk/middleware-logger@3.969.0': - resolution: - { - integrity: sha512-xwrxfip7Y2iTtCMJ+iifN1E1XMOuhxIHY9DreMCvgdl4r7+48x2S1bCYPWH3eNY85/7CapBWdJ8cerpEl12sQQ==, - } - engines: { node: '>=20.0.0' } + resolution: {integrity: sha512-xwrxfip7Y2iTtCMJ+iifN1E1XMOuhxIHY9DreMCvgdl4r7+48x2S1bCYPWH3eNY85/7CapBWdJ8cerpEl12sQQ==} + engines: {node: '>=20.0.0'} '@aws-sdk/middleware-recursion-detection@3.969.0': - resolution: - { - integrity: sha512-2r3PuNquU3CcS1Am4vn/KHFwLi8QFjMdA/R+CRDXT4AFO/0qxevF/YStW3gAKntQIgWgQV8ZdEtKAoJvLI4UWg==, - } - engines: { node: '>=20.0.0' } + resolution: {integrity: sha512-2r3PuNquU3CcS1Am4vn/KHFwLi8QFjMdA/R+CRDXT4AFO/0qxevF/YStW3gAKntQIgWgQV8ZdEtKAoJvLI4UWg==} + engines: {node: '>=20.0.0'} '@aws-sdk/middleware-sdk-s3@3.969.0': - resolution: - { - integrity: sha512-xjcyZrbtvVaqkmjkhmqX+16Wf7zFVS/cYnNFu/JyG6ekkIxSXEAjptNwSEDzlAiLzf0Hf6dYj5erLZYGa40eWg==, - } - engines: { node: '>=20.0.0' } + resolution: {integrity: sha512-xjcyZrbtvVaqkmjkhmqX+16Wf7zFVS/cYnNFu/JyG6ekkIxSXEAjptNwSEDzlAiLzf0Hf6dYj5erLZYGa40eWg==} + engines: {node: '>=20.0.0'} '@aws-sdk/middleware-sdk-s3@3.970.0': - resolution: - { - integrity: sha512-v/Y5F1lbFFY7vMeG5yYxuhnn0CAshz6KMxkz1pDyPxejNE9HtA0w8R6OTBh/bVdIm44QpjhbI7qeLdOE/PLzXQ==, - } - engines: { node: '>=20.0.0' } + resolution: {integrity: sha512-v/Y5F1lbFFY7vMeG5yYxuhnn0CAshz6KMxkz1pDyPxejNE9HtA0w8R6OTBh/bVdIm44QpjhbI7qeLdOE/PLzXQ==} + engines: {node: '>=20.0.0'} '@aws-sdk/middleware-ssec@3.971.0': - resolution: - { - integrity: sha512-QGVhvRveYG64ZhnS/b971PxXM6N2NU79Fxck4EfQ7am8v1Br0ctoeDDAn9nXNblLGw87we9Z65F7hMxxiFHd3w==, - } - engines: { node: '>=20.0.0' } + resolution: {integrity: sha512-QGVhvRveYG64ZhnS/b971PxXM6N2NU79Fxck4EfQ7am8v1Br0ctoeDDAn9nXNblLGw87we9Z65F7hMxxiFHd3w==} + engines: {node: '>=20.0.0'} '@aws-sdk/middleware-user-agent@3.969.0': - resolution: - { - integrity: sha512-Y6WkW8QQ2X9jG9HNBWyzp5KlJOCtLqX8VIvGLoGc2wXdZH7dgOy62uFhkfnHbgfiel6fkNYaycjGx/yyxi0JLQ==, - } - engines: { node: '>=20.0.0' } + resolution: {integrity: sha512-Y6WkW8QQ2X9jG9HNBWyzp5KlJOCtLqX8VIvGLoGc2wXdZH7dgOy62uFhkfnHbgfiel6fkNYaycjGx/yyxi0JLQ==} + engines: {node: '>=20.0.0'} '@aws-sdk/middleware-user-agent@3.970.0': - resolution: - { - integrity: sha512-dnSJGGUGSFGEX2NzvjwSefH+hmZQ347AwbLhAsi0cdnISSge+pcGfOFrJt2XfBIypwFe27chQhlfuf/gWdzpZg==, - } - engines: { node: '>=20.0.0' } + resolution: {integrity: sha512-dnSJGGUGSFGEX2NzvjwSefH+hmZQ347AwbLhAsi0cdnISSge+pcGfOFrJt2XfBIypwFe27chQhlfuf/gWdzpZg==} + engines: {node: '>=20.0.0'} '@aws-sdk/nested-clients@3.969.0': - resolution: - { - integrity: sha512-MJrejgODxVYZjQjSpPLJkVuxnbrue1x1R8+as3anT5V/wk9Qc/Pf5B1IFjM3Ak6uOtzuRYNY4auOvcg4U8twDA==, - } - engines: { node: '>=20.0.0' } + resolution: {integrity: sha512-MJrejgODxVYZjQjSpPLJkVuxnbrue1x1R8+as3anT5V/wk9Qc/Pf5B1IFjM3Ak6uOtzuRYNY4auOvcg4U8twDA==} + engines: {node: '>=20.0.0'} '@aws-sdk/nested-clients@3.971.0': - resolution: - { - integrity: sha512-TWaILL8GyYlhGrxxnmbkazM4QsXatwQgoWUvo251FXmUOsiXDFDVX3hoGIfB3CaJhV2pJPfebHUNJtY6TjZ11g==, - } - engines: { node: '>=20.0.0' } + resolution: {integrity: sha512-TWaILL8GyYlhGrxxnmbkazM4QsXatwQgoWUvo251FXmUOsiXDFDVX3hoGIfB3CaJhV2pJPfebHUNJtY6TjZ11g==} + engines: {node: '>=20.0.0'} '@aws-sdk/region-config-resolver@3.969.0': - resolution: - { - integrity: sha512-scj9OXqKpcjJ4jsFLtqYWz3IaNvNOQTFFvEY8XMJXTv+3qF5I7/x9SJtKzTRJEBF3spjzBUYPtGFbs9sj4fisQ==, - } - engines: { node: '>=20.0.0' } + resolution: {integrity: sha512-scj9OXqKpcjJ4jsFLtqYWz3IaNvNOQTFFvEY8XMJXTv+3qF5I7/x9SJtKzTRJEBF3spjzBUYPtGFbs9sj4fisQ==} + engines: {node: '>=20.0.0'} '@aws-sdk/signature-v4-multi-region@3.969.0': - resolution: - { - integrity: sha512-pv8BEQOlUzK+ww8ZfXZOnDzLfPO5+O7puBFtU1fE8CdCAQ/RP/B1XY3hxzW9Xs0dax7graYKnY8wd8ooYy7vBw==, - } - engines: { node: '>=20.0.0' } + resolution: {integrity: sha512-pv8BEQOlUzK+ww8ZfXZOnDzLfPO5+O7puBFtU1fE8CdCAQ/RP/B1XY3hxzW9Xs0dax7graYKnY8wd8ooYy7vBw==} + engines: {node: '>=20.0.0'} '@aws-sdk/signature-v4-multi-region@3.970.0': - resolution: - { - integrity: sha512-z3syXfuK/x/IsKf/AeYmgc2NT7fcJ+3fHaGO+fkghkV9WEba3fPyOwtTBX4KpFMNb2t50zDGZwbzW1/5ighcUQ==, - } - engines: { node: '>=20.0.0' } + resolution: {integrity: sha512-z3syXfuK/x/IsKf/AeYmgc2NT7fcJ+3fHaGO+fkghkV9WEba3fPyOwtTBX4KpFMNb2t50zDGZwbzW1/5ighcUQ==} + engines: {node: '>=20.0.0'} '@aws-sdk/token-providers@3.969.0': - resolution: - { - integrity: sha512-ucs6QczPkvGinbGmhMlPCQnagGJ+xsM6itsSWlJzxo9YsP6jR75cBU8pRdaM7nEbtCDnrUHf8W9g3D2Hd9mgVA==, - } - engines: { node: '>=20.0.0' } + resolution: {integrity: sha512-ucs6QczPkvGinbGmhMlPCQnagGJ+xsM6itsSWlJzxo9YsP6jR75cBU8pRdaM7nEbtCDnrUHf8W9g3D2Hd9mgVA==} + engines: {node: '>=20.0.0'} '@aws-sdk/token-providers@3.971.0': - resolution: - { - integrity: sha512-4hKGWZbmuDdONMJV0HJ+9jwTDb0zLfKxcCLx2GEnBY31Gt9GeyIQ+DZ97Bb++0voawj6pnZToFikXTyrEq2x+w==, - } - engines: { node: '>=20.0.0' } + resolution: {integrity: sha512-4hKGWZbmuDdONMJV0HJ+9jwTDb0zLfKxcCLx2GEnBY31Gt9GeyIQ+DZ97Bb++0voawj6pnZToFikXTyrEq2x+w==} + engines: {node: '>=20.0.0'} '@aws-sdk/types@3.969.0': - resolution: - { - integrity: sha512-7IIzM5TdiXn+VtgPdVLjmE6uUBUtnga0f4RiSEI1WW10RPuNvZ9U+pL3SwDiRDAdoGrOF9tSLJOFZmfuwYuVYQ==, - } - engines: { node: '>=20.0.0' } + resolution: {integrity: sha512-7IIzM5TdiXn+VtgPdVLjmE6uUBUtnga0f4RiSEI1WW10RPuNvZ9U+pL3SwDiRDAdoGrOF9tSLJOFZmfuwYuVYQ==} + engines: {node: '>=20.0.0'} '@aws-sdk/util-arn-parser@3.968.0': - resolution: - { - integrity: sha512-gqqvYcitIIM2K4lrDX9de9YvOfXBcVdxfT/iLnvHJd4YHvSXlt+gs+AsL4FfPCxG4IG9A+FyulP9Sb1MEA75vw==, - } - engines: { node: '>=20.0.0' } + resolution: {integrity: sha512-gqqvYcitIIM2K4lrDX9de9YvOfXBcVdxfT/iLnvHJd4YHvSXlt+gs+AsL4FfPCxG4IG9A+FyulP9Sb1MEA75vw==} + engines: {node: '>=20.0.0'} '@aws-sdk/util-endpoints@3.969.0': - resolution: - { - integrity: sha512-H2x2UwYiA1pHg40jE+OCSc668W9GXRShTiCWy1UPKtZKREbQ63Mgd7NAj+bEMsZUSCdHywqmSsLqKM9IcqQ3Bg==, - } - engines: { node: '>=20.0.0' } + resolution: {integrity: sha512-H2x2UwYiA1pHg40jE+OCSc668W9GXRShTiCWy1UPKtZKREbQ63Mgd7NAj+bEMsZUSCdHywqmSsLqKM9IcqQ3Bg==} + engines: {node: '>=20.0.0'} '@aws-sdk/util-endpoints@3.970.0': - resolution: - { - integrity: sha512-TZNZqFcMUtjvhZoZRtpEGQAdULYiy6rcGiXAbLU7e9LSpIYlRqpLa207oMNfgbzlL2PnHko+eVg8rajDiSOYCg==, - } - engines: { node: '>=20.0.0' } + resolution: {integrity: sha512-TZNZqFcMUtjvhZoZRtpEGQAdULYiy6rcGiXAbLU7e9LSpIYlRqpLa207oMNfgbzlL2PnHko+eVg8rajDiSOYCg==} + engines: {node: '>=20.0.0'} '@aws-sdk/util-locate-window@3.965.2': - resolution: - { - integrity: sha512-qKgO7wAYsXzhwCHhdbaKFyxd83Fgs8/1Ka+jjSPrv2Ll7mB55Wbwlo0kkfMLh993/yEc8aoDIAc1Fz9h4Spi4Q==, - } - engines: { node: '>=20.0.0' } + resolution: {integrity: sha512-qKgO7wAYsXzhwCHhdbaKFyxd83Fgs8/1Ka+jjSPrv2Ll7mB55Wbwlo0kkfMLh993/yEc8aoDIAc1Fz9h4Spi4Q==} + engines: {node: '>=20.0.0'} '@aws-sdk/util-user-agent-browser@3.969.0': - resolution: - { - integrity: sha512-bpJGjuKmFr0rA6UKUCmN8D19HQFMLXMx5hKBXqBlPFdalMhxJSjcxzX9DbQh0Fn6bJtxCguFmRGOBdQqNOt49g==, - } + resolution: {integrity: sha512-bpJGjuKmFr0rA6UKUCmN8D19HQFMLXMx5hKBXqBlPFdalMhxJSjcxzX9DbQh0Fn6bJtxCguFmRGOBdQqNOt49g==} '@aws-sdk/util-user-agent-node@3.969.0': - resolution: - { - integrity: sha512-D11ZuXNXdUMv8XTthMx+LPzkYNQAeQ68FnCTGnFLgLpnR8hVTeZMBBKjQ77wYGzWDk/csHKdCy697gU1On5KjA==, - } - engines: { node: '>=20.0.0' } + resolution: {integrity: sha512-D11ZuXNXdUMv8XTthMx+LPzkYNQAeQ68FnCTGnFLgLpnR8hVTeZMBBKjQ77wYGzWDk/csHKdCy697gU1On5KjA==} + engines: {node: '>=20.0.0'} peerDependencies: aws-crt: '>=1.0.0' peerDependenciesMeta: @@ -2956,11 +2825,8 @@ packages: optional: true '@aws-sdk/util-user-agent-node@3.971.0': - resolution: - { - integrity: sha512-Eygjo9mFzQYjbGY3MYO6CsIhnTwAMd3WmuFalCykqEmj2r5zf0leWrhPaqvA5P68V5JdGfPYgj7vhNOd6CtRBQ==, - } - engines: { node: '>=20.0.0' } + resolution: {integrity: sha512-Eygjo9mFzQYjbGY3MYO6CsIhnTwAMd3WmuFalCykqEmj2r5zf0leWrhPaqvA5P68V5JdGfPYgj7vhNOd6CtRBQ==} + engines: {node: '>=20.0.0'} peerDependencies: aws-crt: '>=1.0.0' peerDependenciesMeta: @@ -2968,401 +2834,245 @@ packages: optional: true '@aws-sdk/xml-builder@3.969.0': - resolution: - { - integrity: sha512-BSe4Lx/qdRQQdX8cSSI7Et20vqBspzAjBy8ZmXVoyLkol3y4sXBXzn+BiLtR+oh60ExQn6o2DU4QjdOZbXaKIQ==, - } - engines: { node: '>=20.0.0' } + resolution: {integrity: sha512-BSe4Lx/qdRQQdX8cSSI7Et20vqBspzAjBy8ZmXVoyLkol3y4sXBXzn+BiLtR+oh60ExQn6o2DU4QjdOZbXaKIQ==} + engines: {node: '>=20.0.0'} '@aws/lambda-invoke-store@0.2.3': - resolution: - { - integrity: sha512-oLvsaPMTBejkkmHhjf09xTgk71mOqyr/409NKhRIL08If7AhVfUsJhVsx386uJaqNd42v9kWamQ9lFbkoC2dYw==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-oLvsaPMTBejkkmHhjf09xTgk71mOqyr/409NKhRIL08If7AhVfUsJhVsx386uJaqNd42v9kWamQ9lFbkoC2dYw==} + engines: {node: '>=18.0.0'} '@babel/code-frame@7.27.1': - resolution: - { - integrity: sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==, - } - engines: { node: '>=6.9.0' } + resolution: {integrity: sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==} + engines: {node: '>=6.9.0'} '@babel/code-frame@7.28.6': - resolution: - { - integrity: sha512-JYgintcMjRiCvS8mMECzaEn+m3PfoQiyqukOMCCVQtoJGYJw8j/8LBJEiqkHLkfwCcs74E3pbAUFNg7d9VNJ+Q==, - } - engines: { node: '>=6.9.0' } + resolution: {integrity: sha512-JYgintcMjRiCvS8mMECzaEn+m3PfoQiyqukOMCCVQtoJGYJw8j/8LBJEiqkHLkfwCcs74E3pbAUFNg7d9VNJ+Q==} + engines: {node: '>=6.9.0'} '@babel/compat-data@7.28.6': - resolution: - { - integrity: sha512-2lfu57JtzctfIrcGMz992hyLlByuzgIk58+hhGCxjKZ3rWI82NnVLjXcaTqkI2NvlcvOskZaiZ5kjUALo3Lpxg==, - } - engines: { node: '>=6.9.0' } + resolution: {integrity: sha512-2lfu57JtzctfIrcGMz992hyLlByuzgIk58+hhGCxjKZ3rWI82NnVLjXcaTqkI2NvlcvOskZaiZ5kjUALo3Lpxg==} + engines: {node: '>=6.9.0'} '@babel/core@7.28.6': - resolution: - { - integrity: sha512-H3mcG6ZDLTlYfaSNi0iOKkigqMFvkTKlGUYlD8GW7nNOYRrevuA46iTypPyv+06V3fEmvvazfntkBU34L0azAw==, - } - engines: { node: '>=6.9.0' } + resolution: {integrity: sha512-H3mcG6ZDLTlYfaSNi0iOKkigqMFvkTKlGUYlD8GW7nNOYRrevuA46iTypPyv+06V3fEmvvazfntkBU34L0azAw==} + engines: {node: '>=6.9.0'} '@babel/generator@7.28.6': - resolution: - { - integrity: sha512-lOoVRwADj8hjf7al89tvQ2a1lf53Z+7tiXMgpZJL3maQPDxh0DgLMN62B2MKUOFcoodBHLMbDM6WAbKgNy5Suw==, - } - engines: { node: '>=6.9.0' } + resolution: {integrity: sha512-lOoVRwADj8hjf7al89tvQ2a1lf53Z+7tiXMgpZJL3maQPDxh0DgLMN62B2MKUOFcoodBHLMbDM6WAbKgNy5Suw==} + engines: {node: '>=6.9.0'} '@babel/helper-annotate-as-pure@7.27.3': - resolution: - { - integrity: sha512-fXSwMQqitTGeHLBC08Eq5yXz2m37E4pJX1qAU1+2cNedz/ifv/bVXft90VeSav5nFO61EcNgwr0aJxbyPaWBPg==, - } - engines: { node: '>=6.9.0' } + resolution: {integrity: sha512-fXSwMQqitTGeHLBC08Eq5yXz2m37E4pJX1qAU1+2cNedz/ifv/bVXft90VeSav5nFO61EcNgwr0aJxbyPaWBPg==} + engines: {node: '>=6.9.0'} '@babel/helper-compilation-targets@7.28.6': - resolution: - { - integrity: sha512-JYtls3hqi15fcx5GaSNL7SCTJ2MNmjrkHXg4FSpOA/grxK8KwyZ5bubHsCq8FXCkua6xhuaaBit+3b7+VZRfcA==, - } - engines: { node: '>=6.9.0' } + resolution: {integrity: sha512-JYtls3hqi15fcx5GaSNL7SCTJ2MNmjrkHXg4FSpOA/grxK8KwyZ5bubHsCq8FXCkua6xhuaaBit+3b7+VZRfcA==} + engines: {node: '>=6.9.0'} '@babel/helper-globals@7.28.0': - resolution: - { - integrity: sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==, - } - engines: { node: '>=6.9.0' } + resolution: {integrity: sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==} + engines: {node: '>=6.9.0'} '@babel/helper-module-imports@7.27.1': - resolution: - { - integrity: sha512-0gSFWUPNXNopqtIPQvlD5WgXYI5GY2kP2cCvoT8kczjbfcfuIljTbcWrulD1CIPIX2gt1wghbDy08yE1p+/r3w==, - } - engines: { node: '>=6.9.0' } + resolution: {integrity: sha512-0gSFWUPNXNopqtIPQvlD5WgXYI5GY2kP2cCvoT8kczjbfcfuIljTbcWrulD1CIPIX2gt1wghbDy08yE1p+/r3w==} + engines: {node: '>=6.9.0'} '@babel/helper-module-imports@7.28.6': - resolution: - { - integrity: sha512-l5XkZK7r7wa9LucGw9LwZyyCUscb4x37JWTPz7swwFE/0FMQAGpiWUZn8u9DzkSBWEcK25jmvubfpw2dnAMdbw==, - } - engines: { node: '>=6.9.0' } + resolution: {integrity: sha512-l5XkZK7r7wa9LucGw9LwZyyCUscb4x37JWTPz7swwFE/0FMQAGpiWUZn8u9DzkSBWEcK25jmvubfpw2dnAMdbw==} + engines: {node: '>=6.9.0'} '@babel/helper-module-transforms@7.28.6': - resolution: - { - integrity: sha512-67oXFAYr2cDLDVGLXTEABjdBJZ6drElUSI7WKp70NrpyISso3plG9SAGEF6y7zbha/wOzUByWWTJvEDVNIUGcA==, - } - engines: { node: '>=6.9.0' } + resolution: {integrity: sha512-67oXFAYr2cDLDVGLXTEABjdBJZ6drElUSI7WKp70NrpyISso3plG9SAGEF6y7zbha/wOzUByWWTJvEDVNIUGcA==} + engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0 '@babel/helper-plugin-utils@7.27.1': - resolution: - { - integrity: sha512-1gn1Up5YXka3YYAHGKpbideQ5Yjf1tDa9qYcgysz+cNCXukyLl6DjPXhD3VRwSb8c0J9tA4b2+rHEZtc6R0tlw==, - } - engines: { node: '>=6.9.0' } + resolution: {integrity: sha512-1gn1Up5YXka3YYAHGKpbideQ5Yjf1tDa9qYcgysz+cNCXukyLl6DjPXhD3VRwSb8c0J9tA4b2+rHEZtc6R0tlw==} + engines: {node: '>=6.9.0'} '@babel/helper-plugin-utils@7.28.6': - resolution: - { - integrity: sha512-S9gzZ/bz83GRysI7gAD4wPT/AI3uCnY+9xn+Mx/KPs2JwHJIz1W8PZkg2cqyt3RNOBM8ejcXhV6y8Og7ly/Dug==, - } - engines: { node: '>=6.9.0' } + resolution: {integrity: sha512-S9gzZ/bz83GRysI7gAD4wPT/AI3uCnY+9xn+Mx/KPs2JwHJIz1W8PZkg2cqyt3RNOBM8ejcXhV6y8Og7ly/Dug==} + engines: {node: '>=6.9.0'} '@babel/helper-string-parser@7.27.1': - resolution: - { - integrity: sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==, - } - engines: { node: '>=6.9.0' } + resolution: {integrity: sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==} + engines: {node: '>=6.9.0'} '@babel/helper-validator-identifier@7.28.5': - resolution: - { - integrity: sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==, - } - engines: { node: '>=6.9.0' } + resolution: {integrity: sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==} + engines: {node: '>=6.9.0'} '@babel/helper-validator-option@7.27.1': - resolution: - { - integrity: sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==, - } - engines: { node: '>=6.9.0' } + resolution: {integrity: sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==} + engines: {node: '>=6.9.0'} '@babel/helpers@7.28.6': - resolution: - { - integrity: sha512-xOBvwq86HHdB7WUDTfKfT/Vuxh7gElQ+Sfti2Cy6yIWNW05P8iUslOVcZ4/sKbE+/jQaukQAdz/gf3724kYdqw==, - } - engines: { node: '>=6.9.0' } + resolution: {integrity: sha512-xOBvwq86HHdB7WUDTfKfT/Vuxh7gElQ+Sfti2Cy6yIWNW05P8iUslOVcZ4/sKbE+/jQaukQAdz/gf3724kYdqw==} + engines: {node: '>=6.9.0'} '@babel/parser@7.28.6': - resolution: - { - integrity: sha512-TeR9zWR18BvbfPmGbLampPMW+uW1NZnJlRuuHso8i87QZNq2JRF9i6RgxRqtEq+wQGsS19NNTWr2duhnE49mfQ==, - } - engines: { node: '>=6.0.0' } + resolution: {integrity: sha512-TeR9zWR18BvbfPmGbLampPMW+uW1NZnJlRuuHso8i87QZNq2JRF9i6RgxRqtEq+wQGsS19NNTWr2duhnE49mfQ==} + engines: {node: '>=6.0.0'} hasBin: true '@babel/plugin-syntax-async-generators@7.8.4': - resolution: - { - integrity: sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==, - } + resolution: {integrity: sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==} peerDependencies: '@babel/core': ^7.0.0-0 '@babel/plugin-syntax-bigint@7.8.3': - resolution: - { - integrity: sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==, - } + resolution: {integrity: sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==} peerDependencies: '@babel/core': ^7.0.0-0 '@babel/plugin-syntax-class-properties@7.12.13': - resolution: - { - integrity: sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==, - } + resolution: {integrity: sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==} peerDependencies: '@babel/core': ^7.0.0-0 '@babel/plugin-syntax-class-static-block@7.14.5': - resolution: - { - integrity: sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==, - } - engines: { node: '>=6.9.0' } + resolution: {integrity: sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==} + engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 '@babel/plugin-syntax-import-attributes@7.28.6': - resolution: - { - integrity: sha512-jiLC0ma9XkQT3TKJ9uYvlakm66Pamywo+qwL+oL8HJOvc6TWdZXVfhqJr8CCzbSGUAbDOzlGHJC1U+vRfLQDvw==, - } - engines: { node: '>=6.9.0' } + resolution: {integrity: sha512-jiLC0ma9XkQT3TKJ9uYvlakm66Pamywo+qwL+oL8HJOvc6TWdZXVfhqJr8CCzbSGUAbDOzlGHJC1U+vRfLQDvw==} + engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 '@babel/plugin-syntax-import-meta@7.10.4': - resolution: - { - integrity: sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==, - } + resolution: {integrity: sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==} peerDependencies: '@babel/core': ^7.0.0-0 '@babel/plugin-syntax-json-strings@7.8.3': - resolution: - { - integrity: sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==, - } + resolution: {integrity: sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==} peerDependencies: '@babel/core': ^7.0.0-0 '@babel/plugin-syntax-jsx@7.27.1': - resolution: - { - integrity: sha512-y8YTNIeKoyhGd9O0Jiyzyyqk8gdjnumGTQPsz0xOZOQ2RmkVJeZ1vmmfIvFEKqucBG6axJGBZDE/7iI5suUI/w==, - } - engines: { node: '>=6.9.0' } + resolution: {integrity: sha512-y8YTNIeKoyhGd9O0Jiyzyyqk8gdjnumGTQPsz0xOZOQ2RmkVJeZ1vmmfIvFEKqucBG6axJGBZDE/7iI5suUI/w==} + engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 '@babel/plugin-syntax-jsx@7.28.6': - resolution: - { - integrity: sha512-wgEmr06G6sIpqr8YDwA2dSRTE3bJ+V0IfpzfSY3Lfgd7YWOaAdlykvJi13ZKBt8cZHfgH1IXN+CL656W3uUa4w==, - } - engines: { node: '>=6.9.0' } + resolution: {integrity: sha512-wgEmr06G6sIpqr8YDwA2dSRTE3bJ+V0IfpzfSY3Lfgd7YWOaAdlykvJi13ZKBt8cZHfgH1IXN+CL656W3uUa4w==} + engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 '@babel/plugin-syntax-logical-assignment-operators@7.10.4': - resolution: - { - integrity: sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==, - } + resolution: {integrity: sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==} peerDependencies: '@babel/core': ^7.0.0-0 '@babel/plugin-syntax-nullish-coalescing-operator@7.8.3': - resolution: - { - integrity: sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==, - } + resolution: {integrity: sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==} peerDependencies: '@babel/core': ^7.0.0-0 '@babel/plugin-syntax-numeric-separator@7.10.4': - resolution: - { - integrity: sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==, - } + resolution: {integrity: sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==} peerDependencies: '@babel/core': ^7.0.0-0 '@babel/plugin-syntax-object-rest-spread@7.8.3': - resolution: - { - integrity: sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==, - } + resolution: {integrity: sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==} peerDependencies: '@babel/core': ^7.0.0-0 '@babel/plugin-syntax-optional-catch-binding@7.8.3': - resolution: - { - integrity: sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==, - } + resolution: {integrity: sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==} peerDependencies: '@babel/core': ^7.0.0-0 '@babel/plugin-syntax-optional-chaining@7.8.3': - resolution: - { - integrity: sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==, - } + resolution: {integrity: sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==} peerDependencies: '@babel/core': ^7.0.0-0 '@babel/plugin-syntax-private-property-in-object@7.14.5': - resolution: - { - integrity: sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==, - } - engines: { node: '>=6.9.0' } + resolution: {integrity: sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==} + engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 '@babel/plugin-syntax-top-level-await@7.14.5': - resolution: - { - integrity: sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==, - } - engines: { node: '>=6.9.0' } + resolution: {integrity: sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==} + engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 '@babel/plugin-syntax-typescript@7.28.6': - resolution: - { - integrity: sha512-+nDNmQye7nlnuuHDboPbGm00Vqg3oO8niRRL27/4LYHUsHYh0zJ1xWOz0uRwNFmM1Avzk8wZbc6rdiYhomzv/A==, - } - engines: { node: '>=6.9.0' } + resolution: {integrity: sha512-+nDNmQye7nlnuuHDboPbGm00Vqg3oO8niRRL27/4LYHUsHYh0zJ1xWOz0uRwNFmM1Avzk8wZbc6rdiYhomzv/A==} + engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 '@babel/plugin-transform-react-jsx-self@7.27.1': - resolution: - { - integrity: sha512-6UzkCs+ejGdZ5mFFC/OCUrv028ab2fp1znZmCZjAOBKiBK2jXD1O+BPSfX8X2qjJ75fZBMSnQn3Rq2mrBJK2mw==, - } - engines: { node: '>=6.9.0' } + resolution: {integrity: sha512-6UzkCs+ejGdZ5mFFC/OCUrv028ab2fp1znZmCZjAOBKiBK2jXD1O+BPSfX8X2qjJ75fZBMSnQn3Rq2mrBJK2mw==} + engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 '@babel/plugin-transform-react-jsx-source@7.27.1': - resolution: - { - integrity: sha512-zbwoTsBruTeKB9hSq73ha66iFeJHuaFkUbwvqElnygoNbj/jHRsSeokowZFN3CZ64IvEqcmmkVe89OPXc7ldAw==, - } - engines: { node: '>=6.9.0' } + resolution: {integrity: sha512-zbwoTsBruTeKB9hSq73ha66iFeJHuaFkUbwvqElnygoNbj/jHRsSeokowZFN3CZ64IvEqcmmkVe89OPXc7ldAw==} + engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 '@babel/runtime-corejs3@7.28.4': - resolution: - { - integrity: sha512-h7iEYiW4HebClDEhtvFObtPmIvrd1SSfpI9EhOeKk4CtIK/ngBWFpuhCzhdmRKtg71ylcue+9I6dv54XYO1epQ==, - } - engines: { node: '>=6.9.0' } + resolution: {integrity: sha512-h7iEYiW4HebClDEhtvFObtPmIvrd1SSfpI9EhOeKk4CtIK/ngBWFpuhCzhdmRKtg71ylcue+9I6dv54XYO1epQ==} + engines: {node: '>=6.9.0'} '@babel/runtime@7.28.4': - resolution: - { - integrity: sha512-Q/N6JNWvIvPnLDvjlE1OUBLPQHH6l3CltCEsHIujp45zQUSSh8K+gHnaEX45yAT1nyngnINhvWtzN+Nb9D8RAQ==, - } - engines: { node: '>=6.9.0' } + resolution: {integrity: sha512-Q/N6JNWvIvPnLDvjlE1OUBLPQHH6l3CltCEsHIujp45zQUSSh8K+gHnaEX45yAT1nyngnINhvWtzN+Nb9D8RAQ==} + engines: {node: '>=6.9.0'} '@babel/template@7.27.2': - resolution: - { - integrity: sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw==, - } - engines: { node: '>=6.9.0' } + resolution: {integrity: sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw==} + engines: {node: '>=6.9.0'} '@babel/template@7.28.6': - resolution: - { - integrity: sha512-YA6Ma2KsCdGb+WC6UpBVFJGXL58MDA6oyONbjyF/+5sBgxY/dwkhLogbMT2GXXyU84/IhRw/2D1Os1B/giz+BQ==, - } - engines: { node: '>=6.9.0' } + resolution: {integrity: sha512-YA6Ma2KsCdGb+WC6UpBVFJGXL58MDA6oyONbjyF/+5sBgxY/dwkhLogbMT2GXXyU84/IhRw/2D1Os1B/giz+BQ==} + engines: {node: '>=6.9.0'} '@babel/traverse@7.28.5': - resolution: - { - integrity: sha512-TCCj4t55U90khlYkVV/0TfkJkAkUg3jZFA3Neb7unZT8CPok7iiRfaX0F+WnqWqt7OxhOn0uBKXCw4lbL8W0aQ==, - } - engines: { node: '>=6.9.0' } + resolution: {integrity: sha512-TCCj4t55U90khlYkVV/0TfkJkAkUg3jZFA3Neb7unZT8CPok7iiRfaX0F+WnqWqt7OxhOn0uBKXCw4lbL8W0aQ==} + engines: {node: '>=6.9.0'} '@babel/traverse@7.28.6': - resolution: - { - integrity: sha512-fgWX62k02qtjqdSNTAGxmKYY/7FSL9WAS1o2Hu5+I5m9T0yxZzr4cnrfXQ/MX0rIifthCSs6FKTlzYbJcPtMNg==, - } - engines: { node: '>=6.9.0' } + resolution: {integrity: sha512-fgWX62k02qtjqdSNTAGxmKYY/7FSL9WAS1o2Hu5+I5m9T0yxZzr4cnrfXQ/MX0rIifthCSs6FKTlzYbJcPtMNg==} + engines: {node: '>=6.9.0'} '@babel/types@7.28.5': - resolution: - { - integrity: sha512-qQ5m48eI/MFLQ5PxQj4PFaprjyCTLI37ElWMmNs0K8Lk3dVeOdNpB3ks8jc7yM5CDmVC73eMVk/trk3fgmrUpA==, - } - engines: { node: '>=6.9.0' } + resolution: {integrity: sha512-qQ5m48eI/MFLQ5PxQj4PFaprjyCTLI37ElWMmNs0K8Lk3dVeOdNpB3ks8jc7yM5CDmVC73eMVk/trk3fgmrUpA==} + engines: {node: '>=6.9.0'} '@babel/types@7.28.6': - resolution: - { - integrity: sha512-0ZrskXVEHSWIqZM/sQZ4EV3jZJXRkio/WCxaqKZP1g//CEWEPSfeZFcms4XeKBCHU0ZKnIkdJeU/kF+eRp5lBg==, - } - engines: { node: '>=6.9.0' } + resolution: {integrity: sha512-0ZrskXVEHSWIqZM/sQZ4EV3jZJXRkio/WCxaqKZP1g//CEWEPSfeZFcms4XeKBCHU0ZKnIkdJeU/kF+eRp5lBg==} + engines: {node: '>=6.9.0'} '@bcoe/v8-coverage@0.2.3': - resolution: - { - integrity: sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==, - } + resolution: {integrity: sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==} '@cspotcode/source-map-support@0.8.1': - resolution: - { - integrity: sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==, - } - engines: { node: '>=12' } + resolution: {integrity: sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==} + engines: {node: '>=12'} '@dataplan/json@1.0.0-rc.5': - resolution: - { - integrity: sha512-KjSV8fcKtp1qyulpj9uQeAh9JQfn1VQRNv35ZQSTeoo/aKdc48Lfmw3mDVCllAsJHNxa2U/WylVepV+y1KqVYQ==, - } - engines: { node: '>=22' } + resolution: {integrity: sha512-KjSV8fcKtp1qyulpj9uQeAh9JQfn1VQRNv35ZQSTeoo/aKdc48Lfmw3mDVCllAsJHNxa2U/WylVepV+y1KqVYQ==} + engines: {node: '>=22'} peerDependencies: grafast: ^1.0.0-rc.7 '@dataplan/pg@1.0.0-rc.5': - resolution: - { - integrity: sha512-9zWeFej39R/jzeKJyIYElGmmiQ75JqI8LFLCFBhDsFJGiv3SOIE7k/nxpgKB9N0M5oD8bmJcnsXgm//eyRHT5w==, - } - engines: { node: '>=22' } + resolution: {integrity: sha512-9zWeFej39R/jzeKJyIYElGmmiQ75JqI8LFLCFBhDsFJGiv3SOIE7k/nxpgKB9N0M5oD8bmJcnsXgm//eyRHT5w==} + engines: {node: '>=22'} peerDependencies: '@dataplan/json': 1.0.0-rc.5 grafast: ^1.0.0-rc.7 @@ -3375,662 +3085,422 @@ packages: optional: true '@emnapi/core@1.7.1': - resolution: - { - integrity: sha512-o1uhUASyo921r2XtHYOHy7gdkGLge8ghBEQHMWmyJFoXlpU58kIrhhN3w26lpQb6dspetweapMn2CSNwQ8I4wg==, - } + resolution: {integrity: sha512-o1uhUASyo921r2XtHYOHy7gdkGLge8ghBEQHMWmyJFoXlpU58kIrhhN3w26lpQb6dspetweapMn2CSNwQ8I4wg==} '@emnapi/core@1.8.1': - resolution: - { - integrity: sha512-AvT9QFpxK0Zd8J0jopedNm+w/2fIzvtPKPjqyw9jwvBaReTTqPBk9Hixaz7KbjimP+QNz605/XnjFcDAL2pqBg==, - } + resolution: {integrity: sha512-AvT9QFpxK0Zd8J0jopedNm+w/2fIzvtPKPjqyw9jwvBaReTTqPBk9Hixaz7KbjimP+QNz605/XnjFcDAL2pqBg==} '@emnapi/runtime@1.7.1': - resolution: - { - integrity: sha512-PVtJr5CmLwYAU9PZDMITZoR5iAOShYREoR45EyyLrbntV50mdePTgUn4AmOw90Ifcj+x2kRjdzr1HP3RrNiHGA==, - } + resolution: {integrity: sha512-PVtJr5CmLwYAU9PZDMITZoR5iAOShYREoR45EyyLrbntV50mdePTgUn4AmOw90Ifcj+x2kRjdzr1HP3RrNiHGA==} '@emnapi/runtime@1.8.1': - resolution: - { - integrity: sha512-mehfKSMWjjNol8659Z8KxEMrdSJDDot5SXMq00dM8BN4o+CLNXQ0xH2V7EchNHV4RmbZLmmPdEaXZc5H2FXmDg==, - } + resolution: {integrity: sha512-mehfKSMWjjNol8659Z8KxEMrdSJDDot5SXMq00dM8BN4o+CLNXQ0xH2V7EchNHV4RmbZLmmPdEaXZc5H2FXmDg==} '@emnapi/wasi-threads@1.1.0': - resolution: - { - integrity: sha512-WI0DdZ8xFSbgMjR1sFsKABJ/C5OnRrjT06JXbZKexJGrDuPTzZdDYfFlsgcCXCyf+suG5QU2e/y1Wo2V/OapLQ==, - } + resolution: {integrity: sha512-WI0DdZ8xFSbgMjR1sFsKABJ/C5OnRrjT06JXbZKexJGrDuPTzZdDYfFlsgcCXCyf+suG5QU2e/y1Wo2V/OapLQ==} '@emotion/is-prop-valid@1.4.0': - resolution: - { - integrity: sha512-QgD4fyscGcbbKwJmqNvUMSE02OsHUa+lAWKdEUIJKgqe5IwRSKd7+KhibEWdaKwgjLj0DRSHA9biAIqGBk05lw==, - } + resolution: {integrity: sha512-QgD4fyscGcbbKwJmqNvUMSE02OsHUa+lAWKdEUIJKgqe5IwRSKd7+KhibEWdaKwgjLj0DRSHA9biAIqGBk05lw==} '@emotion/memoize@0.9.0': - resolution: - { - integrity: sha512-30FAj7/EoJ5mwVPOWhAyCX+FPfMDrVecJAM+Iw9NRoSl4BBAQeqj4cApHHUXOVvIPgLVDsCFoz/hGD+5QQD1GQ==, - } + resolution: {integrity: sha512-30FAj7/EoJ5mwVPOWhAyCX+FPfMDrVecJAM+Iw9NRoSl4BBAQeqj4cApHHUXOVvIPgLVDsCFoz/hGD+5QQD1GQ==} '@emotion/stylis@0.8.5': - resolution: - { - integrity: sha512-h6KtPihKFn3T9fuIrwvXXUOwlx3rfUvfZIcP5a6rh8Y7zjE3O06hT5Ss4S/YI1AYhuZ1kjaE/5EaOOI2NqSylQ==, - } + resolution: {integrity: sha512-h6KtPihKFn3T9fuIrwvXXUOwlx3rfUvfZIcP5a6rh8Y7zjE3O06hT5Ss4S/YI1AYhuZ1kjaE/5EaOOI2NqSylQ==} '@emotion/unitless@0.7.5': - resolution: - { - integrity: sha512-OWORNpfjMsSSUBVrRBVGECkhWcULOAJz9ZW8uK9qgxD+87M7jHRcvh/A96XXNhXTLmKcoYSQtBEX7lHMO7YRwg==, - } + resolution: {integrity: sha512-OWORNpfjMsSSUBVrRBVGECkhWcULOAJz9ZW8uK9qgxD+87M7jHRcvh/A96XXNhXTLmKcoYSQtBEX7lHMO7YRwg==} '@esbuild/aix-ppc64@0.25.12': - resolution: - { - integrity: sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==} + engines: {node: '>=18'} cpu: [ppc64] os: [aix] '@esbuild/aix-ppc64@0.27.2': - resolution: - { - integrity: sha512-GZMB+a0mOMZs4MpDbj8RJp4cw+w1WV5NYD6xzgvzUJ5Ek2jerwfO2eADyI6ExDSUED+1X8aMbegahsJi+8mgpw==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-GZMB+a0mOMZs4MpDbj8RJp4cw+w1WV5NYD6xzgvzUJ5Ek2jerwfO2eADyI6ExDSUED+1X8aMbegahsJi+8mgpw==} + engines: {node: '>=18'} cpu: [ppc64] os: [aix] '@esbuild/android-arm64@0.25.12': - resolution: - { - integrity: sha512-6AAmLG7zwD1Z159jCKPvAxZd4y/VTO0VkprYy+3N2FtJ8+BQWFXU+OxARIwA46c5tdD9SsKGZ/1ocqBS/gAKHg==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-6AAmLG7zwD1Z159jCKPvAxZd4y/VTO0VkprYy+3N2FtJ8+BQWFXU+OxARIwA46c5tdD9SsKGZ/1ocqBS/gAKHg==} + engines: {node: '>=18'} cpu: [arm64] os: [android] '@esbuild/android-arm64@0.27.2': - resolution: - { - integrity: sha512-pvz8ZZ7ot/RBphf8fv60ljmaoydPU12VuXHImtAs0XhLLw+EXBi2BLe3OYSBslR4rryHvweW5gmkKFwTiFy6KA==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-pvz8ZZ7ot/RBphf8fv60ljmaoydPU12VuXHImtAs0XhLLw+EXBi2BLe3OYSBslR4rryHvweW5gmkKFwTiFy6KA==} + engines: {node: '>=18'} cpu: [arm64] os: [android] '@esbuild/android-arm@0.25.12': - resolution: - { - integrity: sha512-VJ+sKvNA/GE7Ccacc9Cha7bpS8nyzVv0jdVgwNDaR4gDMC/2TTRc33Ip8qrNYUcpkOHUT5OZ0bUcNNVZQ9RLlg==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-VJ+sKvNA/GE7Ccacc9Cha7bpS8nyzVv0jdVgwNDaR4gDMC/2TTRc33Ip8qrNYUcpkOHUT5OZ0bUcNNVZQ9RLlg==} + engines: {node: '>=18'} cpu: [arm] os: [android] '@esbuild/android-arm@0.27.2': - resolution: - { - integrity: sha512-DVNI8jlPa7Ujbr1yjU2PfUSRtAUZPG9I1RwW4F4xFB1Imiu2on0ADiI/c3td+KmDtVKNbi+nffGDQMfcIMkwIA==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-DVNI8jlPa7Ujbr1yjU2PfUSRtAUZPG9I1RwW4F4xFB1Imiu2on0ADiI/c3td+KmDtVKNbi+nffGDQMfcIMkwIA==} + engines: {node: '>=18'} cpu: [arm] os: [android] '@esbuild/android-x64@0.25.12': - resolution: - { - integrity: sha512-5jbb+2hhDHx5phYR2By8GTWEzn6I9UqR11Kwf22iKbNpYrsmRB18aX/9ivc5cabcUiAT/wM+YIZ6SG9QO6a8kg==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-5jbb+2hhDHx5phYR2By8GTWEzn6I9UqR11Kwf22iKbNpYrsmRB18aX/9ivc5cabcUiAT/wM+YIZ6SG9QO6a8kg==} + engines: {node: '>=18'} cpu: [x64] os: [android] '@esbuild/android-x64@0.27.2': - resolution: - { - integrity: sha512-z8Ank4Byh4TJJOh4wpz8g2vDy75zFL0TlZlkUkEwYXuPSgX8yzep596n6mT7905kA9uHZsf/o2OJZubl2l3M7A==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-z8Ank4Byh4TJJOh4wpz8g2vDy75zFL0TlZlkUkEwYXuPSgX8yzep596n6mT7905kA9uHZsf/o2OJZubl2l3M7A==} + engines: {node: '>=18'} cpu: [x64] os: [android] '@esbuild/darwin-arm64@0.25.12': - resolution: - { - integrity: sha512-N3zl+lxHCifgIlcMUP5016ESkeQjLj/959RxxNYIthIg+CQHInujFuXeWbWMgnTo4cp5XVHqFPmpyu9J65C1Yg==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-N3zl+lxHCifgIlcMUP5016ESkeQjLj/959RxxNYIthIg+CQHInujFuXeWbWMgnTo4cp5XVHqFPmpyu9J65C1Yg==} + engines: {node: '>=18'} cpu: [arm64] os: [darwin] '@esbuild/darwin-arm64@0.27.2': - resolution: - { - integrity: sha512-davCD2Zc80nzDVRwXTcQP/28fiJbcOwvdolL0sOiOsbwBa72kegmVU0Wrh1MYrbuCL98Omp5dVhQFWRKR2ZAlg==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-davCD2Zc80nzDVRwXTcQP/28fiJbcOwvdolL0sOiOsbwBa72kegmVU0Wrh1MYrbuCL98Omp5dVhQFWRKR2ZAlg==} + engines: {node: '>=18'} cpu: [arm64] os: [darwin] '@esbuild/darwin-x64@0.25.12': - resolution: - { - integrity: sha512-HQ9ka4Kx21qHXwtlTUVbKJOAnmG1ipXhdWTmNXiPzPfWKpXqASVcWdnf2bnL73wgjNrFXAa3yYvBSd9pzfEIpA==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-HQ9ka4Kx21qHXwtlTUVbKJOAnmG1ipXhdWTmNXiPzPfWKpXqASVcWdnf2bnL73wgjNrFXAa3yYvBSd9pzfEIpA==} + engines: {node: '>=18'} cpu: [x64] os: [darwin] '@esbuild/darwin-x64@0.27.2': - resolution: - { - integrity: sha512-ZxtijOmlQCBWGwbVmwOF/UCzuGIbUkqB1faQRf5akQmxRJ1ujusWsb3CVfk/9iZKr2L5SMU5wPBi1UWbvL+VQA==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-ZxtijOmlQCBWGwbVmwOF/UCzuGIbUkqB1faQRf5akQmxRJ1ujusWsb3CVfk/9iZKr2L5SMU5wPBi1UWbvL+VQA==} + engines: {node: '>=18'} cpu: [x64] os: [darwin] '@esbuild/freebsd-arm64@0.25.12': - resolution: - { - integrity: sha512-gA0Bx759+7Jve03K1S0vkOu5Lg/85dou3EseOGUes8flVOGxbhDDh/iZaoek11Y8mtyKPGF3vP8XhnkDEAmzeg==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-gA0Bx759+7Jve03K1S0vkOu5Lg/85dou3EseOGUes8flVOGxbhDDh/iZaoek11Y8mtyKPGF3vP8XhnkDEAmzeg==} + engines: {node: '>=18'} cpu: [arm64] os: [freebsd] '@esbuild/freebsd-arm64@0.27.2': - resolution: - { - integrity: sha512-lS/9CN+rgqQ9czogxlMcBMGd+l8Q3Nj1MFQwBZJyoEKI50XGxwuzznYdwcav6lpOGv5BqaZXqvBSiB/kJ5op+g==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-lS/9CN+rgqQ9czogxlMcBMGd+l8Q3Nj1MFQwBZJyoEKI50XGxwuzznYdwcav6lpOGv5BqaZXqvBSiB/kJ5op+g==} + engines: {node: '>=18'} cpu: [arm64] os: [freebsd] '@esbuild/freebsd-x64@0.25.12': - resolution: - { - integrity: sha512-TGbO26Yw2xsHzxtbVFGEXBFH0FRAP7gtcPE7P5yP7wGy7cXK2oO7RyOhL5NLiqTlBh47XhmIUXuGciXEqYFfBQ==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-TGbO26Yw2xsHzxtbVFGEXBFH0FRAP7gtcPE7P5yP7wGy7cXK2oO7RyOhL5NLiqTlBh47XhmIUXuGciXEqYFfBQ==} + engines: {node: '>=18'} cpu: [x64] os: [freebsd] '@esbuild/freebsd-x64@0.27.2': - resolution: - { - integrity: sha512-tAfqtNYb4YgPnJlEFu4c212HYjQWSO/w/h/lQaBK7RbwGIkBOuNKQI9tqWzx7Wtp7bTPaGC6MJvWI608P3wXYA==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-tAfqtNYb4YgPnJlEFu4c212HYjQWSO/w/h/lQaBK7RbwGIkBOuNKQI9tqWzx7Wtp7bTPaGC6MJvWI608P3wXYA==} + engines: {node: '>=18'} cpu: [x64] os: [freebsd] '@esbuild/linux-arm64@0.25.12': - resolution: - { - integrity: sha512-8bwX7a8FghIgrupcxb4aUmYDLp8pX06rGh5HqDT7bB+8Rdells6mHvrFHHW2JAOPZUbnjUpKTLg6ECyzvas2AQ==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-8bwX7a8FghIgrupcxb4aUmYDLp8pX06rGh5HqDT7bB+8Rdells6mHvrFHHW2JAOPZUbnjUpKTLg6ECyzvas2AQ==} + engines: {node: '>=18'} cpu: [arm64] os: [linux] '@esbuild/linux-arm64@0.27.2': - resolution: - { - integrity: sha512-hYxN8pr66NsCCiRFkHUAsxylNOcAQaxSSkHMMjcpx0si13t1LHFphxJZUiGwojB1a/Hd5OiPIqDdXONia6bhTw==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-hYxN8pr66NsCCiRFkHUAsxylNOcAQaxSSkHMMjcpx0si13t1LHFphxJZUiGwojB1a/Hd5OiPIqDdXONia6bhTw==} + engines: {node: '>=18'} cpu: [arm64] os: [linux] '@esbuild/linux-arm@0.25.12': - resolution: - { - integrity: sha512-lPDGyC1JPDou8kGcywY0YILzWlhhnRjdof3UlcoqYmS9El818LLfJJc3PXXgZHrHCAKs/Z2SeZtDJr5MrkxtOw==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-lPDGyC1JPDou8kGcywY0YILzWlhhnRjdof3UlcoqYmS9El818LLfJJc3PXXgZHrHCAKs/Z2SeZtDJr5MrkxtOw==} + engines: {node: '>=18'} cpu: [arm] os: [linux] '@esbuild/linux-arm@0.27.2': - resolution: - { - integrity: sha512-vWfq4GaIMP9AIe4yj1ZUW18RDhx6EPQKjwe7n8BbIecFtCQG4CfHGaHuh7fdfq+y3LIA2vGS/o9ZBGVxIDi9hw==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-vWfq4GaIMP9AIe4yj1ZUW18RDhx6EPQKjwe7n8BbIecFtCQG4CfHGaHuh7fdfq+y3LIA2vGS/o9ZBGVxIDi9hw==} + engines: {node: '>=18'} cpu: [arm] os: [linux] '@esbuild/linux-ia32@0.25.12': - resolution: - { - integrity: sha512-0y9KrdVnbMM2/vG8KfU0byhUN+EFCny9+8g202gYqSSVMonbsCfLjUO+rCci7pM0WBEtz+oK/PIwHkzxkyharA==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-0y9KrdVnbMM2/vG8KfU0byhUN+EFCny9+8g202gYqSSVMonbsCfLjUO+rCci7pM0WBEtz+oK/PIwHkzxkyharA==} + engines: {node: '>=18'} cpu: [ia32] os: [linux] '@esbuild/linux-ia32@0.27.2': - resolution: - { - integrity: sha512-MJt5BRRSScPDwG2hLelYhAAKh9imjHK5+NE/tvnRLbIqUWa+0E9N4WNMjmp/kXXPHZGqPLxggwVhz7QP8CTR8w==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-MJt5BRRSScPDwG2hLelYhAAKh9imjHK5+NE/tvnRLbIqUWa+0E9N4WNMjmp/kXXPHZGqPLxggwVhz7QP8CTR8w==} + engines: {node: '>=18'} cpu: [ia32] os: [linux] '@esbuild/linux-loong64@0.25.12': - resolution: - { - integrity: sha512-h///Lr5a9rib/v1GGqXVGzjL4TMvVTv+s1DPoxQdz7l/AYv6LDSxdIwzxkrPW438oUXiDtwM10o9PmwS/6Z0Ng==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-h///Lr5a9rib/v1GGqXVGzjL4TMvVTv+s1DPoxQdz7l/AYv6LDSxdIwzxkrPW438oUXiDtwM10o9PmwS/6Z0Ng==} + engines: {node: '>=18'} cpu: [loong64] os: [linux] '@esbuild/linux-loong64@0.27.2': - resolution: - { - integrity: sha512-lugyF1atnAT463aO6KPshVCJK5NgRnU4yb3FUumyVz+cGvZbontBgzeGFO1nF+dPueHD367a2ZXe1NtUkAjOtg==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-lugyF1atnAT463aO6KPshVCJK5NgRnU4yb3FUumyVz+cGvZbontBgzeGFO1nF+dPueHD367a2ZXe1NtUkAjOtg==} + engines: {node: '>=18'} cpu: [loong64] os: [linux] '@esbuild/linux-mips64el@0.25.12': - resolution: - { - integrity: sha512-iyRrM1Pzy9GFMDLsXn1iHUm18nhKnNMWscjmp4+hpafcZjrr2WbT//d20xaGljXDBYHqRcl8HnxbX6uaA/eGVw==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-iyRrM1Pzy9GFMDLsXn1iHUm18nhKnNMWscjmp4+hpafcZjrr2WbT//d20xaGljXDBYHqRcl8HnxbX6uaA/eGVw==} + engines: {node: '>=18'} cpu: [mips64el] os: [linux] '@esbuild/linux-mips64el@0.27.2': - resolution: - { - integrity: sha512-nlP2I6ArEBewvJ2gjrrkESEZkB5mIoaTswuqNFRv/WYd+ATtUpe9Y09RnJvgvdag7he0OWgEZWhviS1OTOKixw==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-nlP2I6ArEBewvJ2gjrrkESEZkB5mIoaTswuqNFRv/WYd+ATtUpe9Y09RnJvgvdag7he0OWgEZWhviS1OTOKixw==} + engines: {node: '>=18'} cpu: [mips64el] os: [linux] '@esbuild/linux-ppc64@0.25.12': - resolution: - { - integrity: sha512-9meM/lRXxMi5PSUqEXRCtVjEZBGwB7P/D4yT8UG/mwIdze2aV4Vo6U5gD3+RsoHXKkHCfSxZKzmDssVlRj1QQA==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-9meM/lRXxMi5PSUqEXRCtVjEZBGwB7P/D4yT8UG/mwIdze2aV4Vo6U5gD3+RsoHXKkHCfSxZKzmDssVlRj1QQA==} + engines: {node: '>=18'} cpu: [ppc64] os: [linux] '@esbuild/linux-ppc64@0.27.2': - resolution: - { - integrity: sha512-C92gnpey7tUQONqg1n6dKVbx3vphKtTHJaNG2Ok9lGwbZil6DrfyecMsp9CrmXGQJmZ7iiVXvvZH6Ml5hL6XdQ==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-C92gnpey7tUQONqg1n6dKVbx3vphKtTHJaNG2Ok9lGwbZil6DrfyecMsp9CrmXGQJmZ7iiVXvvZH6Ml5hL6XdQ==} + engines: {node: '>=18'} cpu: [ppc64] os: [linux] '@esbuild/linux-riscv64@0.25.12': - resolution: - { - integrity: sha512-Zr7KR4hgKUpWAwb1f3o5ygT04MzqVrGEGXGLnj15YQDJErYu/BGg+wmFlIDOdJp0PmB0lLvxFIOXZgFRrdjR0w==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-Zr7KR4hgKUpWAwb1f3o5ygT04MzqVrGEGXGLnj15YQDJErYu/BGg+wmFlIDOdJp0PmB0lLvxFIOXZgFRrdjR0w==} + engines: {node: '>=18'} cpu: [riscv64] os: [linux] '@esbuild/linux-riscv64@0.27.2': - resolution: - { - integrity: sha512-B5BOmojNtUyN8AXlK0QJyvjEZkWwy/FKvakkTDCziX95AowLZKR6aCDhG7LeF7uMCXEJqwa8Bejz5LTPYm8AvA==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-B5BOmojNtUyN8AXlK0QJyvjEZkWwy/FKvakkTDCziX95AowLZKR6aCDhG7LeF7uMCXEJqwa8Bejz5LTPYm8AvA==} + engines: {node: '>=18'} cpu: [riscv64] os: [linux] '@esbuild/linux-s390x@0.25.12': - resolution: - { - integrity: sha512-MsKncOcgTNvdtiISc/jZs/Zf8d0cl/t3gYWX8J9ubBnVOwlk65UIEEvgBORTiljloIWnBzLs4qhzPkJcitIzIg==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-MsKncOcgTNvdtiISc/jZs/Zf8d0cl/t3gYWX8J9ubBnVOwlk65UIEEvgBORTiljloIWnBzLs4qhzPkJcitIzIg==} + engines: {node: '>=18'} cpu: [s390x] os: [linux] '@esbuild/linux-s390x@0.27.2': - resolution: - { - integrity: sha512-p4bm9+wsPwup5Z8f4EpfN63qNagQ47Ua2znaqGH6bqLlmJ4bx97Y9JdqxgGZ6Y8xVTixUnEkoKSHcpRlDnNr5w==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-p4bm9+wsPwup5Z8f4EpfN63qNagQ47Ua2znaqGH6bqLlmJ4bx97Y9JdqxgGZ6Y8xVTixUnEkoKSHcpRlDnNr5w==} + engines: {node: '>=18'} cpu: [s390x] os: [linux] '@esbuild/linux-x64@0.25.12': - resolution: - { - integrity: sha512-uqZMTLr/zR/ed4jIGnwSLkaHmPjOjJvnm6TVVitAa08SLS9Z0VM8wIRx7gWbJB5/J54YuIMInDquWyYvQLZkgw==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-uqZMTLr/zR/ed4jIGnwSLkaHmPjOjJvnm6TVVitAa08SLS9Z0VM8wIRx7gWbJB5/J54YuIMInDquWyYvQLZkgw==} + engines: {node: '>=18'} cpu: [x64] os: [linux] '@esbuild/linux-x64@0.27.2': - resolution: - { - integrity: sha512-uwp2Tip5aPmH+NRUwTcfLb+W32WXjpFejTIOWZFw/v7/KnpCDKG66u4DLcurQpiYTiYwQ9B7KOeMJvLCu/OvbA==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-uwp2Tip5aPmH+NRUwTcfLb+W32WXjpFejTIOWZFw/v7/KnpCDKG66u4DLcurQpiYTiYwQ9B7KOeMJvLCu/OvbA==} + engines: {node: '>=18'} cpu: [x64] os: [linux] '@esbuild/netbsd-arm64@0.25.12': - resolution: - { - integrity: sha512-xXwcTq4GhRM7J9A8Gv5boanHhRa/Q9KLVmcyXHCTaM4wKfIpWkdXiMog/KsnxzJ0A1+nD+zoecuzqPmCRyBGjg==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-xXwcTq4GhRM7J9A8Gv5boanHhRa/Q9KLVmcyXHCTaM4wKfIpWkdXiMog/KsnxzJ0A1+nD+zoecuzqPmCRyBGjg==} + engines: {node: '>=18'} cpu: [arm64] os: [netbsd] '@esbuild/netbsd-arm64@0.27.2': - resolution: - { - integrity: sha512-Kj6DiBlwXrPsCRDeRvGAUb/LNrBASrfqAIok+xB0LxK8CHqxZ037viF13ugfsIpePH93mX7xfJp97cyDuTZ3cw==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-Kj6DiBlwXrPsCRDeRvGAUb/LNrBASrfqAIok+xB0LxK8CHqxZ037viF13ugfsIpePH93mX7xfJp97cyDuTZ3cw==} + engines: {node: '>=18'} cpu: [arm64] os: [netbsd] '@esbuild/netbsd-x64@0.25.12': - resolution: - { - integrity: sha512-Ld5pTlzPy3YwGec4OuHh1aCVCRvOXdH8DgRjfDy/oumVovmuSzWfnSJg+VtakB9Cm0gxNO9BzWkj6mtO1FMXkQ==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-Ld5pTlzPy3YwGec4OuHh1aCVCRvOXdH8DgRjfDy/oumVovmuSzWfnSJg+VtakB9Cm0gxNO9BzWkj6mtO1FMXkQ==} + engines: {node: '>=18'} cpu: [x64] os: [netbsd] '@esbuild/netbsd-x64@0.27.2': - resolution: - { - integrity: sha512-HwGDZ0VLVBY3Y+Nw0JexZy9o/nUAWq9MlV7cahpaXKW6TOzfVno3y3/M8Ga8u8Yr7GldLOov27xiCnqRZf0tCA==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-HwGDZ0VLVBY3Y+Nw0JexZy9o/nUAWq9MlV7cahpaXKW6TOzfVno3y3/M8Ga8u8Yr7GldLOov27xiCnqRZf0tCA==} + engines: {node: '>=18'} cpu: [x64] os: [netbsd] '@esbuild/openbsd-arm64@0.25.12': - resolution: - { - integrity: sha512-fF96T6KsBo/pkQI950FARU9apGNTSlZGsv1jZBAlcLL1MLjLNIWPBkj5NlSz8aAzYKg+eNqknrUJ24QBybeR5A==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-fF96T6KsBo/pkQI950FARU9apGNTSlZGsv1jZBAlcLL1MLjLNIWPBkj5NlSz8aAzYKg+eNqknrUJ24QBybeR5A==} + engines: {node: '>=18'} cpu: [arm64] os: [openbsd] '@esbuild/openbsd-arm64@0.27.2': - resolution: - { - integrity: sha512-DNIHH2BPQ5551A7oSHD0CKbwIA/Ox7+78/AWkbS5QoRzaqlev2uFayfSxq68EkonB+IKjiuxBFoV8ESJy8bOHA==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-DNIHH2BPQ5551A7oSHD0CKbwIA/Ox7+78/AWkbS5QoRzaqlev2uFayfSxq68EkonB+IKjiuxBFoV8ESJy8bOHA==} + engines: {node: '>=18'} cpu: [arm64] os: [openbsd] '@esbuild/openbsd-x64@0.25.12': - resolution: - { - integrity: sha512-MZyXUkZHjQxUvzK7rN8DJ3SRmrVrke8ZyRusHlP+kuwqTcfWLyqMOE3sScPPyeIXN/mDJIfGXvcMqCgYKekoQw==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-MZyXUkZHjQxUvzK7rN8DJ3SRmrVrke8ZyRusHlP+kuwqTcfWLyqMOE3sScPPyeIXN/mDJIfGXvcMqCgYKekoQw==} + engines: {node: '>=18'} cpu: [x64] os: [openbsd] '@esbuild/openbsd-x64@0.27.2': - resolution: - { - integrity: sha512-/it7w9Nb7+0KFIzjalNJVR5bOzA9Vay+yIPLVHfIQYG/j+j9VTH84aNB8ExGKPU4AzfaEvN9/V4HV+F+vo8OEg==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-/it7w9Nb7+0KFIzjalNJVR5bOzA9Vay+yIPLVHfIQYG/j+j9VTH84aNB8ExGKPU4AzfaEvN9/V4HV+F+vo8OEg==} + engines: {node: '>=18'} cpu: [x64] os: [openbsd] '@esbuild/openharmony-arm64@0.25.12': - resolution: - { - integrity: sha512-rm0YWsqUSRrjncSXGA7Zv78Nbnw4XL6/dzr20cyrQf7ZmRcsovpcRBdhD43Nuk3y7XIoW2OxMVvwuRvk9XdASg==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-rm0YWsqUSRrjncSXGA7Zv78Nbnw4XL6/dzr20cyrQf7ZmRcsovpcRBdhD43Nuk3y7XIoW2OxMVvwuRvk9XdASg==} + engines: {node: '>=18'} cpu: [arm64] os: [openharmony] '@esbuild/openharmony-arm64@0.27.2': - resolution: - { - integrity: sha512-LRBbCmiU51IXfeXk59csuX/aSaToeG7w48nMwA6049Y4J4+VbWALAuXcs+qcD04rHDuSCSRKdmY63sruDS5qag==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-LRBbCmiU51IXfeXk59csuX/aSaToeG7w48nMwA6049Y4J4+VbWALAuXcs+qcD04rHDuSCSRKdmY63sruDS5qag==} + engines: {node: '>=18'} cpu: [arm64] os: [openharmony] '@esbuild/sunos-x64@0.25.12': - resolution: - { - integrity: sha512-3wGSCDyuTHQUzt0nV7bocDy72r2lI33QL3gkDNGkod22EsYl04sMf0qLb8luNKTOmgF/eDEDP5BFNwoBKH441w==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-3wGSCDyuTHQUzt0nV7bocDy72r2lI33QL3gkDNGkod22EsYl04sMf0qLb8luNKTOmgF/eDEDP5BFNwoBKH441w==} + engines: {node: '>=18'} cpu: [x64] os: [sunos] '@esbuild/sunos-x64@0.27.2': - resolution: - { - integrity: sha512-kMtx1yqJHTmqaqHPAzKCAkDaKsffmXkPHThSfRwZGyuqyIeBvf08KSsYXl+abf5HDAPMJIPnbBfXvP2ZC2TfHg==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-kMtx1yqJHTmqaqHPAzKCAkDaKsffmXkPHThSfRwZGyuqyIeBvf08KSsYXl+abf5HDAPMJIPnbBfXvP2ZC2TfHg==} + engines: {node: '>=18'} cpu: [x64] os: [sunos] '@esbuild/win32-arm64@0.25.12': - resolution: - { - integrity: sha512-rMmLrur64A7+DKlnSuwqUdRKyd3UE7oPJZmnljqEptesKM8wx9J8gx5u0+9Pq0fQQW8vqeKebwNXdfOyP+8Bsg==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-rMmLrur64A7+DKlnSuwqUdRKyd3UE7oPJZmnljqEptesKM8wx9J8gx5u0+9Pq0fQQW8vqeKebwNXdfOyP+8Bsg==} + engines: {node: '>=18'} cpu: [arm64] os: [win32] '@esbuild/win32-arm64@0.27.2': - resolution: - { - integrity: sha512-Yaf78O/B3Kkh+nKABUF++bvJv5Ijoy9AN1ww904rOXZFLWVc5OLOfL56W+C8F9xn5JQZa3UX6m+IktJnIb1Jjg==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-Yaf78O/B3Kkh+nKABUF++bvJv5Ijoy9AN1ww904rOXZFLWVc5OLOfL56W+C8F9xn5JQZa3UX6m+IktJnIb1Jjg==} + engines: {node: '>=18'} cpu: [arm64] os: [win32] '@esbuild/win32-ia32@0.25.12': - resolution: - { - integrity: sha512-HkqnmmBoCbCwxUKKNPBixiWDGCpQGVsrQfJoVGYLPT41XWF8lHuE5N6WhVia2n4o5QK5M4tYr21827fNhi4byQ==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-HkqnmmBoCbCwxUKKNPBixiWDGCpQGVsrQfJoVGYLPT41XWF8lHuE5N6WhVia2n4o5QK5M4tYr21827fNhi4byQ==} + engines: {node: '>=18'} cpu: [ia32] os: [win32] '@esbuild/win32-ia32@0.27.2': - resolution: - { - integrity: sha512-Iuws0kxo4yusk7sw70Xa2E2imZU5HoixzxfGCdxwBdhiDgt9vX9VUCBhqcwY7/uh//78A1hMkkROMJq9l27oLQ==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-Iuws0kxo4yusk7sw70Xa2E2imZU5HoixzxfGCdxwBdhiDgt9vX9VUCBhqcwY7/uh//78A1hMkkROMJq9l27oLQ==} + engines: {node: '>=18'} cpu: [ia32] os: [win32] '@esbuild/win32-x64@0.25.12': - resolution: - { - integrity: sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA==} + engines: {node: '>=18'} cpu: [x64] os: [win32] '@esbuild/win32-x64@0.27.2': - resolution: - { - integrity: sha512-sRdU18mcKf7F+YgheI/zGf5alZatMUTKj/jNS6l744f9u3WFu4v7twcUI9vu4mknF4Y9aDlblIie0IM+5xxaqQ==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-sRdU18mcKf7F+YgheI/zGf5alZatMUTKj/jNS6l744f9u3WFu4v7twcUI9vu4mknF4Y9aDlblIie0IM+5xxaqQ==} + engines: {node: '>=18'} cpu: [x64] os: [win32] '@eslint-community/eslint-utils@4.9.0': - resolution: - { - integrity: sha512-ayVFHdtZ+hsq1t2Dy24wCmGXGe4q9Gu3smhLYALJrr473ZH27MsnSL+LKUlimp4BWJqMDMLmPpx/Q9R3OAlL4g==, - } - engines: { node: ^12.22.0 || ^14.17.0 || >=16.0.0 } + resolution: {integrity: sha512-ayVFHdtZ+hsq1t2Dy24wCmGXGe4q9Gu3smhLYALJrr473ZH27MsnSL+LKUlimp4BWJqMDMLmPpx/Q9R3OAlL4g==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 '@eslint-community/eslint-utils@4.9.1': - resolution: - { - integrity: sha512-phrYmNiYppR7znFEdqgfWHXR6NCkZEK7hwWDHZUjit/2/U0r6XvkDl0SYnoM51Hq7FhCGdLDT6zxCCOY1hexsQ==, - } - engines: { node: ^12.22.0 || ^14.17.0 || >=16.0.0 } + resolution: {integrity: sha512-phrYmNiYppR7znFEdqgfWHXR6NCkZEK7hwWDHZUjit/2/U0r6XvkDl0SYnoM51Hq7FhCGdLDT6zxCCOY1hexsQ==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 '@eslint-community/regexpp@4.12.2': - resolution: - { - integrity: sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==, - } - engines: { node: ^12.0.0 || ^14.0.0 || >=16.0.0 } + resolution: {integrity: sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==} + engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} '@eslint/config-array@0.21.1': - resolution: - { - integrity: sha512-aw1gNayWpdI/jSYVgzN5pL0cfzU02GT3NBpeT/DXbx1/1x7ZKxFPd9bwrzygx/qiwIQiJ1sw/zD8qY/kRvlGHA==, - } - engines: { node: ^18.18.0 || ^20.9.0 || >=21.1.0 } + resolution: {integrity: sha512-aw1gNayWpdI/jSYVgzN5pL0cfzU02GT3NBpeT/DXbx1/1x7ZKxFPd9bwrzygx/qiwIQiJ1sw/zD8qY/kRvlGHA==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} '@eslint/config-helpers@0.4.2': - resolution: - { - integrity: sha512-gBrxN88gOIf3R7ja5K9slwNayVcZgK6SOUORm2uBzTeIEfeVaIhOpCtTox3P6R7o2jLFwLFTLnC7kU/RGcYEgw==, - } - engines: { node: ^18.18.0 || ^20.9.0 || >=21.1.0 } + resolution: {integrity: sha512-gBrxN88gOIf3R7ja5K9slwNayVcZgK6SOUORm2uBzTeIEfeVaIhOpCtTox3P6R7o2jLFwLFTLnC7kU/RGcYEgw==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} '@eslint/core@0.17.0': - resolution: - { - integrity: sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ==, - } - engines: { node: ^18.18.0 || ^20.9.0 || >=21.1.0 } + resolution: {integrity: sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} '@eslint/eslintrc@3.3.3': - resolution: - { - integrity: sha512-Kr+LPIUVKz2qkx1HAMH8q1q6azbqBAsXJUxBl/ODDuVPX45Z9DfwB8tPjTi6nNZ8BuM3nbJxC5zCAg5elnBUTQ==, - } - engines: { node: ^18.18.0 || ^20.9.0 || >=21.1.0 } + resolution: {integrity: sha512-Kr+LPIUVKz2qkx1HAMH8q1q6azbqBAsXJUxBl/ODDuVPX45Z9DfwB8tPjTi6nNZ8BuM3nbJxC5zCAg5elnBUTQ==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} '@eslint/js@9.39.2': - resolution: - { - integrity: sha512-q1mjIoW1VX4IvSocvM/vbTiveKC4k9eLrajNEuSsmjymSDEbpGddtpfOoN7YGAqBK3NG+uqo8ia4PDTt8buCYA==, - } - engines: { node: ^18.18.0 || ^20.9.0 || >=21.1.0 } + resolution: {integrity: sha512-q1mjIoW1VX4IvSocvM/vbTiveKC4k9eLrajNEuSsmjymSDEbpGddtpfOoN7YGAqBK3NG+uqo8ia4PDTt8buCYA==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} '@eslint/object-schema@2.1.7': - resolution: - { - integrity: sha512-VtAOaymWVfZcmZbp6E2mympDIHvyjXs/12LqWYjVw6qjrfF+VK+fyG33kChz3nnK+SU5/NeHOqrTEHS8sXO3OA==, - } - engines: { node: ^18.18.0 || ^20.9.0 || >=21.1.0 } + resolution: {integrity: sha512-VtAOaymWVfZcmZbp6E2mympDIHvyjXs/12LqWYjVw6qjrfF+VK+fyG33kChz3nnK+SU5/NeHOqrTEHS8sXO3OA==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} '@eslint/plugin-kit@0.4.1': - resolution: - { - integrity: sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==, - } - engines: { node: ^18.18.0 || ^20.9.0 || >=21.1.0 } + resolution: {integrity: sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} '@floating-ui/core@1.7.4': - resolution: - { - integrity: sha512-C3HlIdsBxszvm5McXlB8PeOEWfBhcGBTZGkGlWc2U0KFY5IwG5OQEuQ8rq52DZmcHDlPLd+YFBK+cZcytwIFWg==, - } + resolution: {integrity: sha512-C3HlIdsBxszvm5McXlB8PeOEWfBhcGBTZGkGlWc2U0KFY5IwG5OQEuQ8rq52DZmcHDlPLd+YFBK+cZcytwIFWg==} '@floating-ui/dom@1.7.5': - resolution: - { - integrity: sha512-N0bD2kIPInNHUHehXhMke1rBGs1dwqvC9O9KYMyyjK7iXt7GAhnro7UlcuYcGdS/yYOlq0MAVgrow8IbWJwyqg==, - } + resolution: {integrity: sha512-N0bD2kIPInNHUHehXhMke1rBGs1dwqvC9O9KYMyyjK7iXt7GAhnro7UlcuYcGdS/yYOlq0MAVgrow8IbWJwyqg==} '@floating-ui/react-dom@2.1.7': - resolution: - { - integrity: sha512-0tLRojf/1Go2JgEVm+3Frg9A3IW8bJgKgdO0BN5RkF//ufuz2joZM63Npau2ff3J6lUVYgDSNzNkR+aH3IVfjg==, - } + resolution: {integrity: sha512-0tLRojf/1Go2JgEVm+3Frg9A3IW8bJgKgdO0BN5RkF//ufuz2joZM63Npau2ff3J6lUVYgDSNzNkR+aH3IVfjg==} peerDependencies: react: '>=16.8.0' react-dom: '>=16.8.0' '@floating-ui/react@0.26.28': - resolution: - { - integrity: sha512-yORQuuAtVpiRjpMhdc0wJj06b9JFjrYF4qp96j++v2NBpbi6SEGF7donUJ3TMieerQ6qVkAv1tgr7L4r5roTqw==, - } + resolution: {integrity: sha512-yORQuuAtVpiRjpMhdc0wJj06b9JFjrYF4qp96j++v2NBpbi6SEGF7donUJ3TMieerQ6qVkAv1tgr7L4r5roTqw==} peerDependencies: react: '>=16.8.0' react-dom: '>=16.8.0' '@floating-ui/utils@0.2.10': - resolution: - { - integrity: sha512-aGTxbpbg8/b5JfU1HXSrbH3wXZuLPJcNEcZQFMxLs3oSzgtVu6nFPkbbGGUvBcUjKV2YyB9Wxxabo+HEH9tcRQ==, - } + resolution: {integrity: sha512-aGTxbpbg8/b5JfU1HXSrbH3wXZuLPJcNEcZQFMxLs3oSzgtVu6nFPkbbGGUvBcUjKV2YyB9Wxxabo+HEH9tcRQ==} '@graphile-contrib/pg-many-to-many@2.0.0-rc.1': - resolution: - { - integrity: sha512-qd6u50sxYFEzGPO6rjH+5OH6A8BFNhVsTuJaVD/JOfF2LIO+ANS8sT0MTicgZ9WLd+Eq6OYrYJD0iNUDN3Eing==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-qd6u50sxYFEzGPO6rjH+5OH6A8BFNhVsTuJaVD/JOfF2LIO+ANS8sT0MTicgZ9WLd+Eq6OYrYJD0iNUDN3Eing==} + engines: {node: '>=10'} '@graphile/lru@5.0.0-rc.4': - resolution: - { - integrity: sha512-QJibEzd/Fhxut3OS5opWd+b1kYUhg74hurepbhb4cHSW76U7Xp6vIPBh//eRznymIOVgE4KNDo7bKblM/NGbVA==, - } - engines: { node: '>=22' } + resolution: {integrity: sha512-QJibEzd/Fhxut3OS5opWd+b1kYUhg74hurepbhb4cHSW76U7Xp6vIPBh//eRznymIOVgE4KNDo7bKblM/NGbVA==} + engines: {node: '>=22'} '@graphile/simplify-inflection@8.0.0-rc.3': - resolution: - { - integrity: sha512-2ujrwI5P7tNDUfr0NegXmU6M9cwyBPoGGy+sykQne5jf2PUgdwJz4HxLsyFT/ykukwZt5Kcrm7Thik2f7reiJA==, - } + resolution: {integrity: sha512-2ujrwI5P7tNDUfr0NegXmU6M9cwyBPoGGy+sykQne5jf2PUgdwJz4HxLsyFT/ykukwZt5Kcrm7Thik2f7reiJA==} '@graphiql/plugin-doc-explorer@0.4.1': - resolution: - { - integrity: sha512-+ram1dDDGMqJn/f9n5I8E6grTvxcM9JZYt/HhtYLuCvkN8kERI6/E3zBHBshhIUnQZoXioZ03fAzXg7JOn0Kyg==, - } + resolution: {integrity: sha512-+ram1dDDGMqJn/f9n5I8E6grTvxcM9JZYt/HhtYLuCvkN8kERI6/E3zBHBshhIUnQZoXioZ03fAzXg7JOn0Kyg==} peerDependencies: '@graphiql/react': ^0.37.0 graphql: ^15.5.0 || ^16.0.0 || ^17.0.0 @@ -4039,10 +3509,7 @@ packages: react-dom: ^18 || ^19 '@graphiql/plugin-history@0.4.1': - resolution: - { - integrity: sha512-UyGI/Nm5tzKNMB71li41p6TfkthLqHkmNi9CgHzAM1zKgPIrtSq7Q8WCWKHLOEB5n4/8X8sXFeyQfHgnGYTXYg==, - } + resolution: {integrity: sha512-UyGI/Nm5tzKNMB71li41p6TfkthLqHkmNi9CgHzAM1zKgPIrtSq7Q8WCWKHLOEB5n4/8X8sXFeyQfHgnGYTXYg==} peerDependencies: '@graphiql/react': ^0.37.0 react: ^18 || ^19 @@ -4050,10 +3517,7 @@ packages: react-dom: ^18 || ^19 '@graphiql/react@0.37.3': - resolution: - { - integrity: sha512-rNJjwsYGhcZRdZ2FnyU6ss06xQaZ4UordyvOhp7+b/bEqQiEBpMOLJjuUr48Z6T7zEbZBnzCJpIJyXNqlcfQeA==, - } + resolution: {integrity: sha512-rNJjwsYGhcZRdZ2FnyU6ss06xQaZ4UordyvOhp7+b/bEqQiEBpMOLJjuUr48Z6T7zEbZBnzCJpIJyXNqlcfQeA==} peerDependencies: graphql: ^15.5.0 || ^16.0.0 || ^17.0.0 react: ^18 || ^19 @@ -4061,10 +3525,7 @@ packages: react-dom: ^18 || ^19 '@graphiql/toolkit@0.11.3': - resolution: - { - integrity: sha512-Glf0fK1cdHLNq52UWPzfSrYIJuNxy8h4451Pw1ZVpJ7dtU+tm7GVVC64UjEDQ/v2j3fnG4cX8jvR75IvfL6nzQ==, - } + resolution: {integrity: sha512-Glf0fK1cdHLNq52UWPzfSrYIJuNxy8h4451Pw1ZVpJ7dtU+tm7GVVC64UjEDQ/v2j3fnG4cX8jvR75IvfL6nzQ==} peerDependencies: graphql: ^15.5.0 || ^16.0.0 || ^17.0.0 graphql-ws: '>= 4.5.0' @@ -4073,64 +3534,40 @@ packages: optional: true '@graphql-typed-document-node/core@3.2.0': - resolution: - { - integrity: sha512-mB9oAsNCm9aM3/SOv4YtBMqZbYj10R7dkq8byBqxGY/ncFwhf2oQzMV+LCRlWoDSEBJ3COiR1yeDvMtsoOsuFQ==, - } + resolution: {integrity: sha512-mB9oAsNCm9aM3/SOv4YtBMqZbYj10R7dkq8byBqxGY/ncFwhf2oQzMV+LCRlWoDSEBJ3COiR1yeDvMtsoOsuFQ==} peerDependencies: graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 '@headlessui/react@2.2.9': - resolution: - { - integrity: sha512-Mb+Un58gwBn0/yWZfyrCh0TJyurtT+dETj7YHleylHk5od3dv2XqETPGWMyQ5/7sYN7oWdyM1u9MvC0OC8UmzQ==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-Mb+Un58gwBn0/yWZfyrCh0TJyurtT+dETj7YHleylHk5od3dv2XqETPGWMyQ5/7sYN7oWdyM1u9MvC0OC8UmzQ==} + engines: {node: '>=10'} peerDependencies: react: ^18 || ^19 || ^19.0.0-rc react-dom: ^18 || ^19 || ^19.0.0-rc '@humanfs/core@0.19.1': - resolution: - { - integrity: sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==, - } - engines: { node: '>=18.18.0' } + resolution: {integrity: sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==} + engines: {node: '>=18.18.0'} '@humanfs/node@0.16.7': - resolution: - { - integrity: sha512-/zUx+yOsIrG4Y43Eh2peDeKCxlRt/gET6aHfaKpuq267qXdYDFViVHfMaLyygZOnl0kGWxFIgsBy8QFuTLUXEQ==, - } - engines: { node: '>=18.18.0' } + resolution: {integrity: sha512-/zUx+yOsIrG4Y43Eh2peDeKCxlRt/gET6aHfaKpuq267qXdYDFViVHfMaLyygZOnl0kGWxFIgsBy8QFuTLUXEQ==} + engines: {node: '>=18.18.0'} '@humanwhocodes/module-importer@1.0.1': - resolution: - { - integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==, - } - engines: { node: '>=12.22' } + resolution: {integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==} + engines: {node: '>=12.22'} '@humanwhocodes/retry@0.4.3': - resolution: - { - integrity: sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==, - } - engines: { node: '>=18.18' } + resolution: {integrity: sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==} + engines: {node: '>=18.18'} '@hutson/parse-repository-url@3.0.2': - resolution: - { - integrity: sha512-H9XAx3hc0BQHY6l+IFSWHDySypcXsvsuLhgYLUGywmJ5pswRVQJUHpOsobnLYp2ZUaUlKiKDrgWWhosOwAEM8Q==, - } - engines: { node: '>=6.9.0' } + resolution: {integrity: sha512-H9XAx3hc0BQHY6l+IFSWHDySypcXsvsuLhgYLUGywmJ5pswRVQJUHpOsobnLYp2ZUaUlKiKDrgWWhosOwAEM8Q==} + engines: {node: '>=6.9.0'} '@inquirer/external-editor@1.0.3': - resolution: - { - integrity: sha512-RWbSrDiYmO4LbejWY7ttpxczuwQyZLBUyygsA9Nsv95hpzUWwnNTVQmAq3xuh7vNwCp07UTmE5i11XAEExx4RA==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-RWbSrDiYmO4LbejWY7ttpxczuwQyZLBUyygsA9Nsv95hpzUWwnNTVQmAq3xuh7vNwCp07UTmE5i11XAEExx4RA==} + engines: {node: '>=18'} peerDependencies: '@types/node': '>=18' peerDependenciesMeta: @@ -4138,10 +3575,7 @@ packages: optional: true '@inquirerer/test@1.3.0': - resolution: - { - integrity: sha512-uKn1yJ66MKaPf8ECxoTRma6+lQSLy1YtBOXHDrTGn/j6xtCDdfDYw34h51gM0MLimPTd1vAoxMG+zQGXRSHZLg==, - } + resolution: {integrity: sha512-uKn1yJ66MKaPf8ECxoTRma6+lQSLy1YtBOXHDrTGn/j6xtCDdfDYw34h51gM0MLimPTd1vAoxMG+zQGXRSHZLg==} peerDependencies: jest: '>=29.0.0' peerDependenciesMeta: @@ -4149,85 +3583,49 @@ packages: optional: true '@inquirerer/utils@3.2.3': - resolution: - { - integrity: sha512-Ak0GspJ8fT9aW9pp1Op53xebtJOoZpt1/7eklI1TpUh7QuLxqmk2cl7sGMP1mROvR3q5Ms10ZvJ3eS2GKI++yw==, - } + resolution: {integrity: sha512-Ak0GspJ8fT9aW9pp1Op53xebtJOoZpt1/7eklI1TpUh7QuLxqmk2cl7sGMP1mROvR3q5Ms10ZvJ3eS2GKI++yw==} '@inquirerer/utils@3.3.0': - resolution: - { - integrity: sha512-QugrMW6U6UfPLBKiAvGRUsyQ/WmQlGnOfWOtXX4Zd5uwJuaxbwcXoTy7MJvZpD9WRjg7IaDhI1Wwdlewxq2nFg==, - } + resolution: {integrity: sha512-QugrMW6U6UfPLBKiAvGRUsyQ/WmQlGnOfWOtXX4Zd5uwJuaxbwcXoTy7MJvZpD9WRjg7IaDhI1Wwdlewxq2nFg==} '@isaacs/balanced-match@4.0.1': - resolution: - { - integrity: sha512-yzMTt9lEb8Gv7zRioUilSglI0c0smZ9k5D65677DLWLtWJaXIS3CqcGyUFByYKlnUj6TkjLVs54fBl6+TiGQDQ==, - } - engines: { node: 20 || >=22 } + resolution: {integrity: sha512-yzMTt9lEb8Gv7zRioUilSglI0c0smZ9k5D65677DLWLtWJaXIS3CqcGyUFByYKlnUj6TkjLVs54fBl6+TiGQDQ==} + engines: {node: 20 || >=22} '@isaacs/brace-expansion@5.0.0': - resolution: - { - integrity: sha512-ZT55BDLV0yv0RBm2czMiZ+SqCGO7AvmOM3G/w2xhVPH+te0aKgFjmBvGlL1dH+ql2tgGO3MVrbb3jCKyvpgnxA==, - } - engines: { node: 20 || >=22 } + resolution: {integrity: sha512-ZT55BDLV0yv0RBm2czMiZ+SqCGO7AvmOM3G/w2xhVPH+te0aKgFjmBvGlL1dH+ql2tgGO3MVrbb3jCKyvpgnxA==} + engines: {node: 20 || >=22} '@isaacs/brace-expansion@5.0.1': - resolution: - { - integrity: sha512-WMz71T1JS624nWj2n2fnYAuPovhv7EUhk69R6i9dsVyzxt5eM3bjwvgk9L+APE1TRscGysAVMANkB0jh0LQZrQ==, - } - engines: { node: 20 || >=22 } + resolution: {integrity: sha512-WMz71T1JS624nWj2n2fnYAuPovhv7EUhk69R6i9dsVyzxt5eM3bjwvgk9L+APE1TRscGysAVMANkB0jh0LQZrQ==} + engines: {node: 20 || >=22} '@isaacs/cliui@8.0.2': - resolution: - { - integrity: sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==, - } - engines: { node: '>=12' } + resolution: {integrity: sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==} + engines: {node: '>=12'} '@isaacs/cliui@9.0.0': - resolution: - { - integrity: sha512-AokJm4tuBHillT+FpMtxQ60n8ObyXBatq7jD2/JA9dxbDDokKQm8KMht5ibGzLVU9IJDIKK4TPKgMHEYMn3lMg==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-AokJm4tuBHillT+FpMtxQ60n8ObyXBatq7jD2/JA9dxbDDokKQm8KMht5ibGzLVU9IJDIKK4TPKgMHEYMn3lMg==} + engines: {node: '>=18'} '@isaacs/string-locale-compare@1.1.0': - resolution: - { - integrity: sha512-SQ7Kzhh9+D+ZW9MA0zkYv3VXhIDNx+LzM6EJ+/65I3QY+enU6Itte7E5XX7EWrqLW2FN4n06GWzBnPoC3th2aQ==, - } + resolution: {integrity: sha512-SQ7Kzhh9+D+ZW9MA0zkYv3VXhIDNx+LzM6EJ+/65I3QY+enU6Itte7E5XX7EWrqLW2FN4n06GWzBnPoC3th2aQ==} '@istanbuljs/load-nyc-config@1.1.0': - resolution: - { - integrity: sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==} + engines: {node: '>=8'} '@istanbuljs/schema@0.1.3': - resolution: - { - integrity: sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==} + engines: {node: '>=8'} '@jest/console@30.2.0': - resolution: - { - integrity: sha512-+O1ifRjkvYIkBqASKWgLxrpEhQAAE7hY77ALLUufSk5717KfOShg6IbqLmdsLMPdUiFvA2kTs0R7YZy+l0IzZQ==, - } - engines: { node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0 } + resolution: {integrity: sha512-+O1ifRjkvYIkBqASKWgLxrpEhQAAE7hY77ALLUufSk5717KfOShg6IbqLmdsLMPdUiFvA2kTs0R7YZy+l0IzZQ==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} '@jest/core@30.2.0': - resolution: - { - integrity: sha512-03W6IhuhjqTlpzh/ojut/pDB2LPRygyWX8ExpgHtQA8H/3K7+1vKmcINx5UzeOX1se6YEsBsOHQ1CRzf3fOwTQ==, - } - engines: { node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0 } + resolution: {integrity: sha512-03W6IhuhjqTlpzh/ojut/pDB2LPRygyWX8ExpgHtQA8H/3K7+1vKmcINx5UzeOX1se6YEsBsOHQ1CRzf3fOwTQ==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} peerDependencies: node-notifier: ^8.0.1 || ^9.0.0 || ^10.0.0 peerDependenciesMeta: @@ -4235,67 +3633,40 @@ packages: optional: true '@jest/diff-sequences@30.0.1': - resolution: - { - integrity: sha512-n5H8QLDJ47QqbCNn5SuFjCRDrOLEZ0h8vAHCK5RL9Ls7Xa8AQLa/YxAc9UjFqoEDM48muwtBGjtMY5cr0PLDCw==, - } - engines: { node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0 } + resolution: {integrity: sha512-n5H8QLDJ47QqbCNn5SuFjCRDrOLEZ0h8vAHCK5RL9Ls7Xa8AQLa/YxAc9UjFqoEDM48muwtBGjtMY5cr0PLDCw==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} '@jest/environment@30.2.0': - resolution: - { - integrity: sha512-/QPTL7OBJQ5ac09UDRa3EQes4gt1FTEG/8jZ/4v5IVzx+Cv7dLxlVIvfvSVRiiX2drWyXeBjkMSR8hvOWSog5g==, - } - engines: { node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0 } + resolution: {integrity: sha512-/QPTL7OBJQ5ac09UDRa3EQes4gt1FTEG/8jZ/4v5IVzx+Cv7dLxlVIvfvSVRiiX2drWyXeBjkMSR8hvOWSog5g==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} '@jest/expect-utils@30.2.0': - resolution: - { - integrity: sha512-1JnRfhqpD8HGpOmQp180Fo9Zt69zNtC+9lR+kT7NVL05tNXIi+QC8Csz7lfidMoVLPD3FnOtcmp0CEFnxExGEA==, - } - engines: { node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0 } + resolution: {integrity: sha512-1JnRfhqpD8HGpOmQp180Fo9Zt69zNtC+9lR+kT7NVL05tNXIi+QC8Csz7lfidMoVLPD3FnOtcmp0CEFnxExGEA==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} '@jest/expect@30.2.0': - resolution: - { - integrity: sha512-V9yxQK5erfzx99Sf+7LbhBwNWEZ9eZay8qQ9+JSC0TrMR1pMDHLMY+BnVPacWU6Jamrh252/IKo4F1Xn/zfiqA==, - } - engines: { node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0 } + resolution: {integrity: sha512-V9yxQK5erfzx99Sf+7LbhBwNWEZ9eZay8qQ9+JSC0TrMR1pMDHLMY+BnVPacWU6Jamrh252/IKo4F1Xn/zfiqA==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} '@jest/fake-timers@30.2.0': - resolution: - { - integrity: sha512-HI3tRLjRxAbBy0VO8dqqm7Hb2mIa8d5bg/NJkyQcOk7V118ObQML8RC5luTF/Zsg4474a+gDvhce7eTnP4GhYw==, - } - engines: { node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0 } + resolution: {integrity: sha512-HI3tRLjRxAbBy0VO8dqqm7Hb2mIa8d5bg/NJkyQcOk7V118ObQML8RC5luTF/Zsg4474a+gDvhce7eTnP4GhYw==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} '@jest/get-type@30.1.0': - resolution: - { - integrity: sha512-eMbZE2hUnx1WV0pmURZY9XoXPkUYjpc55mb0CrhtdWLtzMQPFvu/rZkTLZFTsdaVQa+Tr4eWAteqcUzoawq/uA==, - } - engines: { node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0 } + resolution: {integrity: sha512-eMbZE2hUnx1WV0pmURZY9XoXPkUYjpc55mb0CrhtdWLtzMQPFvu/rZkTLZFTsdaVQa+Tr4eWAteqcUzoawq/uA==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} '@jest/globals@30.2.0': - resolution: - { - integrity: sha512-b63wmnKPaK+6ZZfpYhz9K61oybvbI1aMcIs80++JI1O1rR1vaxHUCNqo3ITu6NU0d4V34yZFoHMn/uoKr/Rwfw==, - } - engines: { node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0 } + resolution: {integrity: sha512-b63wmnKPaK+6ZZfpYhz9K61oybvbI1aMcIs80++JI1O1rR1vaxHUCNqo3ITu6NU0d4V34yZFoHMn/uoKr/Rwfw==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} '@jest/pattern@30.0.1': - resolution: - { - integrity: sha512-gWp7NfQW27LaBQz3TITS8L7ZCQ0TLvtmI//4OwlQRx4rnWxcPNIYjxZpDcN4+UlGxgm3jS5QPz8IPTCkb59wZA==, - } - engines: { node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0 } + resolution: {integrity: sha512-gWp7NfQW27LaBQz3TITS8L7ZCQ0TLvtmI//4OwlQRx4rnWxcPNIYjxZpDcN4+UlGxgm3jS5QPz8IPTCkb59wZA==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} '@jest/reporters@30.2.0': - resolution: - { - integrity: sha512-DRyW6baWPqKMa9CzeiBjHwjd8XeAyco2Vt8XbcLFjiwCOEKOvy82GJ8QQnJE9ofsxCMPjH4MfH8fCWIHHDKpAQ==, - } - engines: { node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0 } + resolution: {integrity: sha512-DRyW6baWPqKMa9CzeiBjHwjd8XeAyco2Vt8XbcLFjiwCOEKOvy82GJ8QQnJE9ofsxCMPjH4MfH8fCWIHHDKpAQ==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} peerDependencies: node-notifier: ^8.0.1 || ^9.0.0 || ^10.0.0 peerDependenciesMeta: @@ -4303,699 +3674,405 @@ packages: optional: true '@jest/schemas@29.6.3': - resolution: - { - integrity: sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==, - } - engines: { node: ^14.15.0 || ^16.10.0 || >=18.0.0 } + resolution: {integrity: sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} '@jest/schemas@30.0.5': - resolution: - { - integrity: sha512-DmdYgtezMkh3cpU8/1uyXakv3tJRcmcXxBOcO0tbaozPwpmh4YMsnWrQm9ZmZMfa5ocbxzbFk6O4bDPEc/iAnA==, - } - engines: { node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0 } + resolution: {integrity: sha512-DmdYgtezMkh3cpU8/1uyXakv3tJRcmcXxBOcO0tbaozPwpmh4YMsnWrQm9ZmZMfa5ocbxzbFk6O4bDPEc/iAnA==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} '@jest/snapshot-utils@30.2.0': - resolution: - { - integrity: sha512-0aVxM3RH6DaiLcjj/b0KrIBZhSX1373Xci4l3cW5xiUWPctZ59zQ7jj4rqcJQ/Z8JuN/4wX3FpJSa3RssVvCug==, - } - engines: { node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0 } + resolution: {integrity: sha512-0aVxM3RH6DaiLcjj/b0KrIBZhSX1373Xci4l3cW5xiUWPctZ59zQ7jj4rqcJQ/Z8JuN/4wX3FpJSa3RssVvCug==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} '@jest/source-map@30.0.1': - resolution: - { - integrity: sha512-MIRWMUUR3sdbP36oyNyhbThLHyJ2eEDClPCiHVbrYAe5g3CHRArIVpBw7cdSB5fr+ofSfIb2Tnsw8iEHL0PYQg==, - } - engines: { node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0 } + resolution: {integrity: sha512-MIRWMUUR3sdbP36oyNyhbThLHyJ2eEDClPCiHVbrYAe5g3CHRArIVpBw7cdSB5fr+ofSfIb2Tnsw8iEHL0PYQg==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} '@jest/test-result@30.2.0': - resolution: - { - integrity: sha512-RF+Z+0CCHkARz5HT9mcQCBulb1wgCP3FBvl9VFokMX27acKphwyQsNuWH3c+ojd1LeWBLoTYoxF0zm6S/66mjg==, - } - engines: { node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0 } + resolution: {integrity: sha512-RF+Z+0CCHkARz5HT9mcQCBulb1wgCP3FBvl9VFokMX27acKphwyQsNuWH3c+ojd1LeWBLoTYoxF0zm6S/66mjg==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} '@jest/test-sequencer@30.2.0': - resolution: - { - integrity: sha512-wXKgU/lk8fKXMu/l5Hog1R61bL4q5GCdT6OJvdAFz1P+QrpoFuLU68eoKuVc4RbrTtNnTL5FByhWdLgOPSph+Q==, - } - engines: { node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0 } + resolution: {integrity: sha512-wXKgU/lk8fKXMu/l5Hog1R61bL4q5GCdT6OJvdAFz1P+QrpoFuLU68eoKuVc4RbrTtNnTL5FByhWdLgOPSph+Q==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} '@jest/transform@30.2.0': - resolution: - { - integrity: sha512-XsauDV82o5qXbhalKxD7p4TZYYdwcaEXC77PPD2HixEFF+6YGppjrAAQurTl2ECWcEomHBMMNS9AH3kcCFx8jA==, - } - engines: { node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0 } + resolution: {integrity: sha512-XsauDV82o5qXbhalKxD7p4TZYYdwcaEXC77PPD2HixEFF+6YGppjrAAQurTl2ECWcEomHBMMNS9AH3kcCFx8jA==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} '@jest/types@26.6.2': - resolution: - { - integrity: sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==, - } - engines: { node: '>= 10.14.2' } + resolution: {integrity: sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==} + engines: {node: '>= 10.14.2'} '@jest/types@30.2.0': - resolution: - { - integrity: sha512-H9xg1/sfVvyfU7o3zMfBEjQ1gcsdeTMgqHoYdN79tuLqfTtuu7WckRA1R5whDwOzxaZAeMKTYWqP+WCAi0CHsg==, - } - engines: { node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0 } + resolution: {integrity: sha512-H9xg1/sfVvyfU7o3zMfBEjQ1gcsdeTMgqHoYdN79tuLqfTtuu7WckRA1R5whDwOzxaZAeMKTYWqP+WCAi0CHsg==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} '@jridgewell/gen-mapping@0.3.13': - resolution: - { - integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==, - } + resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==} '@jridgewell/remapping@2.3.5': - resolution: - { - integrity: sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==, - } + resolution: {integrity: sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==} '@jridgewell/resolve-uri@3.1.2': - resolution: - { - integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==, - } - engines: { node: '>=6.0.0' } + resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==} + engines: {node: '>=6.0.0'} '@jridgewell/sourcemap-codec@1.5.5': - resolution: - { - integrity: sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==, - } + resolution: {integrity: sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==} '@jridgewell/trace-mapping@0.3.31': - resolution: - { - integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==, - } + resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==} '@jridgewell/trace-mapping@0.3.9': - resolution: - { - integrity: sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==, - } + resolution: {integrity: sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==} '@launchql/mjml@0.1.1': - resolution: - { - integrity: sha512-6+OEmECuu5atRZ43ovsMfFs+T4NWNaKbzNG0uA8HYaBSn3kWR7GH3QnmL3lCIeymLtvgua8aZChYvg6SxrQdnw==, - } + resolution: {integrity: sha512-6+OEmECuu5atRZ43ovsMfFs+T4NWNaKbzNG0uA8HYaBSn3kWR7GH3QnmL3lCIeymLtvgua8aZChYvg6SxrQdnw==} peerDependencies: react: '>=16' react-dom: '>=16' '@launchql/protobufjs@7.2.6': - resolution: - { - integrity: sha512-vwi1nG2/heVFsIMHQU1KxTjUp5c757CTtRAZn/jutApCkFlle1iv8tzM/DHlSZJKDldxaYqnNYTg0pTyp8Bbtg==, - } - engines: { node: '>=12.0.0' } + resolution: {integrity: sha512-vwi1nG2/heVFsIMHQU1KxTjUp5c757CTtRAZn/jutApCkFlle1iv8tzM/DHlSZJKDldxaYqnNYTg0pTyp8Bbtg==} + engines: {node: '>=12.0.0'} '@launchql/styled-email@0.1.0': - resolution: - { - integrity: sha512-ISjzsY+3EOH/qAKHPq3evw9QmmEyA8Vw+0pUf+Zf8l4/rAHJJKrSa/uPiaUf2Abi8yAZKyx2uyaZq4ExNNkD+w==, - } + resolution: {integrity: sha512-ISjzsY+3EOH/qAKHPq3evw9QmmEyA8Vw+0pUf+Zf8l4/rAHJJKrSa/uPiaUf2Abi8yAZKyx2uyaZq4ExNNkD+w==} peerDependencies: react: '>=16' react-dom: '>=16' '@lerna/create@8.2.4': - resolution: - { - integrity: sha512-A8AlzetnS2WIuhijdAzKUyFpR5YbLLfV3luQ4lzBgIBgRfuoBDZeF+RSZPhra+7A6/zTUlrbhKZIOi/MNhqgvQ==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-A8AlzetnS2WIuhijdAzKUyFpR5YbLLfV3luQ4lzBgIBgRfuoBDZeF+RSZPhra+7A6/zTUlrbhKZIOi/MNhqgvQ==} + engines: {node: '>=18.0.0'} '@n1ru4l/push-pull-async-iterable-iterator@3.2.0': - resolution: - { - integrity: sha512-3fkKj25kEjsfObL6IlKPAlHYPq/oYwUkkQ03zsTTiDjD7vg/RxjdiLeCydqtxHZP0JgsXL3D/X5oAkMGzuUp/Q==, - } - engines: { node: '>=12' } + resolution: {integrity: sha512-3fkKj25kEjsfObL6IlKPAlHYPq/oYwUkkQ03zsTTiDjD7vg/RxjdiLeCydqtxHZP0JgsXL3D/X5oAkMGzuUp/Q==} + engines: {node: '>=12'} '@napi-rs/wasm-runtime@0.2.12': - resolution: - { - integrity: sha512-ZVWUcfwY4E/yPitQJl481FjFo3K22D6qF0DuFH6Y/nbnE11GY5uguDxZMGXPQ8WQ0128MXQD7TnfHyK4oWoIJQ==, - } + resolution: {integrity: sha512-ZVWUcfwY4E/yPitQJl481FjFo3K22D6qF0DuFH6Y/nbnE11GY5uguDxZMGXPQ8WQ0128MXQD7TnfHyK4oWoIJQ==} '@napi-rs/wasm-runtime@0.2.4': - resolution: - { - integrity: sha512-9zESzOO5aDByvhIAsOy9TbpZ0Ur2AJbUI7UT73kcUTS2mxAMHOBaa1st/jAymNoCtvrit99kkzT1FZuXVcgfIQ==, - } + resolution: {integrity: sha512-9zESzOO5aDByvhIAsOy9TbpZ0Ur2AJbUI7UT73kcUTS2mxAMHOBaa1st/jAymNoCtvrit99kkzT1FZuXVcgfIQ==} '@noble/hashes@1.8.0': - resolution: - { - integrity: sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==, - } - engines: { node: ^14.21.3 || >=16 } + resolution: {integrity: sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==} + engines: {node: ^14.21.3 || >=16} '@nodelib/fs.scandir@2.1.5': - resolution: - { - integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==, - } - engines: { node: '>= 8' } + resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} + engines: {node: '>= 8'} '@nodelib/fs.stat@2.0.5': - resolution: - { - integrity: sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==, - } - engines: { node: '>= 8' } + resolution: {integrity: sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==} + engines: {node: '>= 8'} '@nodelib/fs.walk@1.2.8': - resolution: - { - integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==, - } - engines: { node: '>= 8' } + resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==} + engines: {node: '>= 8'} '@npmcli/agent@2.2.2': - resolution: - { - integrity: sha512-OrcNPXdpSl9UX7qPVRWbmWMCSXrcDa2M9DvrbOTj7ao1S4PlqVFYv9/yLKMkrJKZ/V5A/kDBC690or307i26Og==, - } - engines: { node: ^16.14.0 || >=18.0.0 } + resolution: {integrity: sha512-OrcNPXdpSl9UX7qPVRWbmWMCSXrcDa2M9DvrbOTj7ao1S4PlqVFYv9/yLKMkrJKZ/V5A/kDBC690or307i26Og==} + engines: {node: ^16.14.0 || >=18.0.0} '@npmcli/arborist@7.5.4': - resolution: - { - integrity: sha512-nWtIc6QwwoUORCRNzKx4ypHqCk3drI+5aeYdMTQQiRCcn4lOOgfQh7WyZobGYTxXPSq1VwV53lkpN/BRlRk08g==, - } - engines: { node: ^16.14.0 || >=18.0.0 } + resolution: {integrity: sha512-nWtIc6QwwoUORCRNzKx4ypHqCk3drI+5aeYdMTQQiRCcn4lOOgfQh7WyZobGYTxXPSq1VwV53lkpN/BRlRk08g==} + engines: {node: ^16.14.0 || >=18.0.0} hasBin: true '@npmcli/fs@3.1.1': - resolution: - { - integrity: sha512-q9CRWjpHCMIh5sVyefoD1cA7PkvILqCZsnSOEUUivORLjxCO/Irmue2DprETiNgEqktDBZaM1Bi+jrarx1XdCg==, - } - engines: { node: ^14.17.0 || ^16.13.0 || >=18.0.0 } + resolution: {integrity: sha512-q9CRWjpHCMIh5sVyefoD1cA7PkvILqCZsnSOEUUivORLjxCO/Irmue2DprETiNgEqktDBZaM1Bi+jrarx1XdCg==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} '@npmcli/git@5.0.8': - resolution: - { - integrity: sha512-liASfw5cqhjNW9UFd+ruwwdEf/lbOAQjLL2XY2dFW/bkJheXDYZgOyul/4gVvEV4BWkTXjYGmDqMw9uegdbJNQ==, - } - engines: { node: ^16.14.0 || >=18.0.0 } + resolution: {integrity: sha512-liASfw5cqhjNW9UFd+ruwwdEf/lbOAQjLL2XY2dFW/bkJheXDYZgOyul/4gVvEV4BWkTXjYGmDqMw9uegdbJNQ==} + engines: {node: ^16.14.0 || >=18.0.0} '@npmcli/installed-package-contents@2.1.0': - resolution: - { - integrity: sha512-c8UuGLeZpm69BryRykLuKRyKFZYJsZSCT4aVY5ds4omyZqJ172ApzgfKJ5eV/r3HgLdUYgFVe54KSFVjKoe27w==, - } - engines: { node: ^14.17.0 || ^16.13.0 || >=18.0.0 } + resolution: {integrity: sha512-c8UuGLeZpm69BryRykLuKRyKFZYJsZSCT4aVY5ds4omyZqJ172ApzgfKJ5eV/r3HgLdUYgFVe54KSFVjKoe27w==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} hasBin: true '@npmcli/map-workspaces@3.0.6': - resolution: - { - integrity: sha512-tkYs0OYnzQm6iIRdfy+LcLBjcKuQCeE5YLb8KnrIlutJfheNaPvPpgoFEyEFgbjzl5PLZ3IA/BWAwRU0eHuQDA==, - } - engines: { node: ^14.17.0 || ^16.13.0 || >=18.0.0 } + resolution: {integrity: sha512-tkYs0OYnzQm6iIRdfy+LcLBjcKuQCeE5YLb8KnrIlutJfheNaPvPpgoFEyEFgbjzl5PLZ3IA/BWAwRU0eHuQDA==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} '@npmcli/metavuln-calculator@7.1.1': - resolution: - { - integrity: sha512-Nkxf96V0lAx3HCpVda7Vw4P23RILgdi/5K1fmj2tZkWIYLpXAN8k2UVVOsW16TsS5F8Ws2I7Cm+PU1/rsVF47g==, - } - engines: { node: ^16.14.0 || >=18.0.0 } + resolution: {integrity: sha512-Nkxf96V0lAx3HCpVda7Vw4P23RILgdi/5K1fmj2tZkWIYLpXAN8k2UVVOsW16TsS5F8Ws2I7Cm+PU1/rsVF47g==} + engines: {node: ^16.14.0 || >=18.0.0} '@npmcli/name-from-folder@2.0.0': - resolution: - { - integrity: sha512-pwK+BfEBZJbKdNYpHHRTNBwBoqrN/iIMO0AiGvYsp3Hoaq0WbgGSWQR6SCldZovoDpY3yje5lkFUe6gsDgJ2vg==, - } - engines: { node: ^14.17.0 || ^16.13.0 || >=18.0.0 } + resolution: {integrity: sha512-pwK+BfEBZJbKdNYpHHRTNBwBoqrN/iIMO0AiGvYsp3Hoaq0WbgGSWQR6SCldZovoDpY3yje5lkFUe6gsDgJ2vg==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} '@npmcli/node-gyp@3.0.0': - resolution: - { - integrity: sha512-gp8pRXC2oOxu0DUE1/M3bYtb1b3/DbJ5aM113+XJBgfXdussRAsX0YOrOhdd8WvnAR6auDBvJomGAkLKA5ydxA==, - } - engines: { node: ^14.17.0 || ^16.13.0 || >=18.0.0 } + resolution: {integrity: sha512-gp8pRXC2oOxu0DUE1/M3bYtb1b3/DbJ5aM113+XJBgfXdussRAsX0YOrOhdd8WvnAR6auDBvJomGAkLKA5ydxA==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} '@npmcli/package-json@5.2.0': - resolution: - { - integrity: sha512-qe/kiqqkW0AGtvBjL8TJKZk/eBBSpnJkUWvHdQ9jM2lKHXRYYJuyNpJPlJw3c8QjC2ow6NZYiLExhUaeJelbxQ==, - } - engines: { node: ^16.14.0 || >=18.0.0 } + resolution: {integrity: sha512-qe/kiqqkW0AGtvBjL8TJKZk/eBBSpnJkUWvHdQ9jM2lKHXRYYJuyNpJPlJw3c8QjC2ow6NZYiLExhUaeJelbxQ==} + engines: {node: ^16.14.0 || >=18.0.0} '@npmcli/promise-spawn@7.0.2': - resolution: - { - integrity: sha512-xhfYPXoV5Dy4UkY0D+v2KkwvnDfiA/8Mt3sWCGI/hM03NsYIH8ZaG6QzS9x7pje5vHZBZJ2v6VRFVTWACnqcmQ==, - } - engines: { node: ^16.14.0 || >=18.0.0 } + resolution: {integrity: sha512-xhfYPXoV5Dy4UkY0D+v2KkwvnDfiA/8Mt3sWCGI/hM03NsYIH8ZaG6QzS9x7pje5vHZBZJ2v6VRFVTWACnqcmQ==} + engines: {node: ^16.14.0 || >=18.0.0} '@npmcli/query@3.1.0': - resolution: - { - integrity: sha512-C/iR0tk7KSKGldibYIB9x8GtO/0Bd0I2mhOaDb8ucQL/bQVTmGoeREaFj64Z5+iCBRf3dQfed0CjJL7I8iTkiQ==, - } - engines: { node: ^14.17.0 || ^16.13.0 || >=18.0.0 } + resolution: {integrity: sha512-C/iR0tk7KSKGldibYIB9x8GtO/0Bd0I2mhOaDb8ucQL/bQVTmGoeREaFj64Z5+iCBRf3dQfed0CjJL7I8iTkiQ==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} '@npmcli/redact@2.0.1': - resolution: - { - integrity: sha512-YgsR5jCQZhVmTJvjduTOIHph0L73pK8xwMVaDY0PatySqVM9AZj93jpoXYSJqfHFxFkN9dmqTw6OiqExsS3LPw==, - } - engines: { node: ^16.14.0 || >=18.0.0 } + resolution: {integrity: sha512-YgsR5jCQZhVmTJvjduTOIHph0L73pK8xwMVaDY0PatySqVM9AZj93jpoXYSJqfHFxFkN9dmqTw6OiqExsS3LPw==} + engines: {node: ^16.14.0 || >=18.0.0} '@npmcli/run-script@8.1.0': - resolution: - { - integrity: sha512-y7efHHwghQfk28G2z3tlZ67pLG0XdfYbcVG26r7YIXALRsrVQcTq4/tdenSmdOrEsNahIYA/eh8aEVROWGFUDg==, - } - engines: { node: ^16.14.0 || >=18.0.0 } + resolution: {integrity: sha512-y7efHHwghQfk28G2z3tlZ67pLG0XdfYbcVG26r7YIXALRsrVQcTq4/tdenSmdOrEsNahIYA/eh8aEVROWGFUDg==} + engines: {node: ^16.14.0 || >=18.0.0} '@nx/devkit@20.8.3': - resolution: - { - integrity: sha512-5lbfJ6ICFOiGeirldQOU5fQ/W/VQ8L3dfWnmHG4UgpWSLoK/YFdRf4lTB4rS0aDXsBL0gyWABz3sZGLPGNYnPA==, - } + resolution: {integrity: sha512-5lbfJ6ICFOiGeirldQOU5fQ/W/VQ8L3dfWnmHG4UgpWSLoK/YFdRf4lTB4rS0aDXsBL0gyWABz3sZGLPGNYnPA==} peerDependencies: nx: '>= 19 <= 21' '@nx/nx-darwin-arm64@20.8.3': - resolution: - { - integrity: sha512-BeYnPAcnaerg6q+qR0bAb0nebwwrsvm4STSVqqVlaqLmmQpU3Bfpx44CEa5d6T9b0V11ZqVE/bkmRhMqhUcrhw==, - } - engines: { node: '>= 10' } + resolution: {integrity: sha512-BeYnPAcnaerg6q+qR0bAb0nebwwrsvm4STSVqqVlaqLmmQpU3Bfpx44CEa5d6T9b0V11ZqVE/bkmRhMqhUcrhw==} + engines: {node: '>= 10'} cpu: [arm64] os: [darwin] '@nx/nx-darwin-x64@20.8.3': - resolution: - { - integrity: sha512-RIFg1VkQ4jhI+ErqEZuIeGBcJGD8t+u9J5CdQBDIASd8QRhtudBkiYLYCJb+qaQly09G7nVfxuyItlS2uRW3qA==, - } - engines: { node: '>= 10' } + resolution: {integrity: sha512-RIFg1VkQ4jhI+ErqEZuIeGBcJGD8t+u9J5CdQBDIASd8QRhtudBkiYLYCJb+qaQly09G7nVfxuyItlS2uRW3qA==} + engines: {node: '>= 10'} cpu: [x64] os: [darwin] '@nx/nx-freebsd-x64@20.8.3': - resolution: - { - integrity: sha512-boQTgMUdnqpZhHMrV/xgnp/dTg5dfxw8I4d16NBwmW4j+Sez7zi/dydgsJpfZsj8TicOHvPu6KK4W5wzp82NPw==, - } - engines: { node: '>= 10' } + resolution: {integrity: sha512-boQTgMUdnqpZhHMrV/xgnp/dTg5dfxw8I4d16NBwmW4j+Sez7zi/dydgsJpfZsj8TicOHvPu6KK4W5wzp82NPw==} + engines: {node: '>= 10'} cpu: [x64] os: [freebsd] '@nx/nx-linux-arm-gnueabihf@20.8.3': - resolution: - { - integrity: sha512-wpiNyY1igx1rLN3EsTLum2lDtblFijdBZB9/9u/6UDub4z9CaQ4yaC4h9n5v7yFYILwfL44YTsQKzrE+iv0y1Q==, - } - engines: { node: '>= 10' } + resolution: {integrity: sha512-wpiNyY1igx1rLN3EsTLum2lDtblFijdBZB9/9u/6UDub4z9CaQ4yaC4h9n5v7yFYILwfL44YTsQKzrE+iv0y1Q==} + engines: {node: '>= 10'} cpu: [arm] os: [linux] '@nx/nx-linux-arm64-gnu@20.8.3': - resolution: - { - integrity: sha512-nbi/eZtJfWxuDwdUCiP+VJolFubtrz6XxVtB26eMAkODnREOKELHZtMOrlm8JBZCdtWCvTqibq9Az74XsqSfdA==, - } - engines: { node: '>= 10' } + resolution: {integrity: sha512-nbi/eZtJfWxuDwdUCiP+VJolFubtrz6XxVtB26eMAkODnREOKELHZtMOrlm8JBZCdtWCvTqibq9Az74XsqSfdA==} + engines: {node: '>= 10'} cpu: [arm64] os: [linux] '@nx/nx-linux-arm64-musl@20.8.3': - resolution: - { - integrity: sha512-LTTGzI8YVPlF1v0YlVf+exM+1q7rpsiUbjTTHJcfHFRU5t4BsiZD54K19Y1UBg1XFx5cwhEaIomSmJ88RwPPVQ==, - } - engines: { node: '>= 10' } + resolution: {integrity: sha512-LTTGzI8YVPlF1v0YlVf+exM+1q7rpsiUbjTTHJcfHFRU5t4BsiZD54K19Y1UBg1XFx5cwhEaIomSmJ88RwPPVQ==} + engines: {node: '>= 10'} cpu: [arm64] os: [linux] '@nx/nx-linux-x64-gnu@20.8.3': - resolution: - { - integrity: sha512-SlA4GtXvQbSzSIWLgiIiLBOjdINPOUR/im+TUbaEMZ8wiGrOY8cnk0PVt95TIQJVBeXBCeb5HnoY0lHJpMOODg==, - } - engines: { node: '>= 10' } + resolution: {integrity: sha512-SlA4GtXvQbSzSIWLgiIiLBOjdINPOUR/im+TUbaEMZ8wiGrOY8cnk0PVt95TIQJVBeXBCeb5HnoY0lHJpMOODg==} + engines: {node: '>= 10'} cpu: [x64] os: [linux] '@nx/nx-linux-x64-musl@20.8.3': - resolution: - { - integrity: sha512-MNzkEwPktp5SQH9dJDH2wP9hgG9LsBDhKJXJfKw6sUI/6qz5+/aAjFziKy+zBnhU4AO1yXt5qEWzR8lDcIriVQ==, - } - engines: { node: '>= 10' } + resolution: {integrity: sha512-MNzkEwPktp5SQH9dJDH2wP9hgG9LsBDhKJXJfKw6sUI/6qz5+/aAjFziKy+zBnhU4AO1yXt5qEWzR8lDcIriVQ==} + engines: {node: '>= 10'} cpu: [x64] os: [linux] '@nx/nx-win32-arm64-msvc@20.8.3': - resolution: - { - integrity: sha512-qUV7CyXKwRCM/lkvyS6Xa1MqgAuK5da6w27RAehh7LATBUKn1I4/M7DGn6L7ERCxpZuh1TrDz9pUzEy0R+Ekkg==, - } - engines: { node: '>= 10' } + resolution: {integrity: sha512-qUV7CyXKwRCM/lkvyS6Xa1MqgAuK5da6w27RAehh7LATBUKn1I4/M7DGn6L7ERCxpZuh1TrDz9pUzEy0R+Ekkg==} + engines: {node: '>= 10'} cpu: [arm64] os: [win32] '@nx/nx-win32-x64-msvc@20.8.3': - resolution: - { - integrity: sha512-gX1G8u6W6EPX6PO/wv07+B++UHyCHBXyVWXITA3Kv6HoSajOxIa2Kk1rv1iDQGmX1WWxBaj3bUyYJAFBDITe4w==, - } - engines: { node: '>= 10' } + resolution: {integrity: sha512-gX1G8u6W6EPX6PO/wv07+B++UHyCHBXyVWXITA3Kv6HoSajOxIa2Kk1rv1iDQGmX1WWxBaj3bUyYJAFBDITe4w==} + engines: {node: '>= 10'} cpu: [x64] os: [win32] '@octokit/auth-token@4.0.0': - resolution: - { - integrity: sha512-tY/msAuJo6ARbK6SPIxZrPBms3xPbfwBrulZe0Wtr/DIY9lje2HeV1uoebShn6mx7SjCHif6EjMvoREj+gZ+SA==, - } - engines: { node: '>= 18' } + resolution: {integrity: sha512-tY/msAuJo6ARbK6SPIxZrPBms3xPbfwBrulZe0Wtr/DIY9lje2HeV1uoebShn6mx7SjCHif6EjMvoREj+gZ+SA==} + engines: {node: '>= 18'} '@octokit/core@5.2.2': - resolution: - { - integrity: sha512-/g2d4sW9nUDJOMz3mabVQvOGhVa4e/BN/Um7yca9Bb2XTzPPnfTWHWQg+IsEYO7M3Vx+EXvaM/I2pJWIMun1bg==, - } - engines: { node: '>= 18' } + resolution: {integrity: sha512-/g2d4sW9nUDJOMz3mabVQvOGhVa4e/BN/Um7yca9Bb2XTzPPnfTWHWQg+IsEYO7M3Vx+EXvaM/I2pJWIMun1bg==} + engines: {node: '>= 18'} '@octokit/endpoint@9.0.6': - resolution: - { - integrity: sha512-H1fNTMA57HbkFESSt3Y9+FBICv+0jFceJFPWDePYlR/iMGrwM5ph+Dd4XRQs+8X+PUFURLQgX9ChPfhJ/1uNQw==, - } - engines: { node: '>= 18' } + resolution: {integrity: sha512-H1fNTMA57HbkFESSt3Y9+FBICv+0jFceJFPWDePYlR/iMGrwM5ph+Dd4XRQs+8X+PUFURLQgX9ChPfhJ/1uNQw==} + engines: {node: '>= 18'} '@octokit/graphql@7.1.1': - resolution: - { - integrity: sha512-3mkDltSfcDUoa176nlGoA32RGjeWjl3K7F/BwHwRMJUW/IteSa4bnSV8p2ThNkcIcZU2umkZWxwETSSCJf2Q7g==, - } - engines: { node: '>= 18' } + resolution: {integrity: sha512-3mkDltSfcDUoa176nlGoA32RGjeWjl3K7F/BwHwRMJUW/IteSa4bnSV8p2ThNkcIcZU2umkZWxwETSSCJf2Q7g==} + engines: {node: '>= 18'} '@octokit/openapi-types@24.2.0': - resolution: - { - integrity: sha512-9sIH3nSUttelJSXUrmGzl7QUBFul0/mB8HRYl3fOlgHbIWG+WnYDXU3v/2zMtAvuzZ/ed00Ei6on975FhBfzrg==, - } + resolution: {integrity: sha512-9sIH3nSUttelJSXUrmGzl7QUBFul0/mB8HRYl3fOlgHbIWG+WnYDXU3v/2zMtAvuzZ/ed00Ei6on975FhBfzrg==} '@octokit/plugin-enterprise-rest@6.0.1': - resolution: - { - integrity: sha512-93uGjlhUD+iNg1iWhUENAtJata6w5nE+V4urXOAlIXdco6xNZtUSfYY8dzp3Udy74aqO/B5UZL80x/YMa5PKRw==, - } + resolution: {integrity: sha512-93uGjlhUD+iNg1iWhUENAtJata6w5nE+V4urXOAlIXdco6xNZtUSfYY8dzp3Udy74aqO/B5UZL80x/YMa5PKRw==} '@octokit/plugin-paginate-rest@11.4.4-cjs.2': - resolution: - { - integrity: sha512-2dK6z8fhs8lla5PaOTgqfCGBxgAv/le+EhPs27KklPhm1bKObpu6lXzwfUEQ16ajXzqNrKMujsFyo9K2eaoISw==, - } - engines: { node: '>= 18' } + resolution: {integrity: sha512-2dK6z8fhs8lla5PaOTgqfCGBxgAv/le+EhPs27KklPhm1bKObpu6lXzwfUEQ16ajXzqNrKMujsFyo9K2eaoISw==} + engines: {node: '>= 18'} peerDependencies: '@octokit/core': '5' '@octokit/plugin-request-log@4.0.1': - resolution: - { - integrity: sha512-GihNqNpGHorUrO7Qa9JbAl0dbLnqJVrV8OXe2Zm5/Y4wFkZQDfTreBzVmiRfJVfE4mClXdihHnbpyyO9FSX4HA==, - } - engines: { node: '>= 18' } + resolution: {integrity: sha512-GihNqNpGHorUrO7Qa9JbAl0dbLnqJVrV8OXe2Zm5/Y4wFkZQDfTreBzVmiRfJVfE4mClXdihHnbpyyO9FSX4HA==} + engines: {node: '>= 18'} peerDependencies: '@octokit/core': '5' '@octokit/plugin-rest-endpoint-methods@13.3.2-cjs.1': - resolution: - { - integrity: sha512-VUjIjOOvF2oELQmiFpWA1aOPdawpyaCUqcEBc/UOUnj3Xp6DJGrJ1+bjUIIDzdHjnFNO6q57ODMfdEZnoBkCwQ==, - } - engines: { node: '>= 18' } + resolution: {integrity: sha512-VUjIjOOvF2oELQmiFpWA1aOPdawpyaCUqcEBc/UOUnj3Xp6DJGrJ1+bjUIIDzdHjnFNO6q57ODMfdEZnoBkCwQ==} + engines: {node: '>= 18'} peerDependencies: '@octokit/core': ^5 '@octokit/request-error@5.1.1': - resolution: - { - integrity: sha512-v9iyEQJH6ZntoENr9/yXxjuezh4My67CBSu9r6Ve/05Iu5gNgnisNWOsoJHTP6k0Rr0+HQIpnH+kyammu90q/g==, - } - engines: { node: '>= 18' } + resolution: {integrity: sha512-v9iyEQJH6ZntoENr9/yXxjuezh4My67CBSu9r6Ve/05Iu5gNgnisNWOsoJHTP6k0Rr0+HQIpnH+kyammu90q/g==} + engines: {node: '>= 18'} '@octokit/request@8.4.1': - resolution: - { - integrity: sha512-qnB2+SY3hkCmBxZsR/MPCybNmbJe4KAlfWErXq+rBKkQJlbjdJeS85VI9r8UqeLYLvnAenU8Q1okM/0MBsAGXw==, - } - engines: { node: '>= 18' } + resolution: {integrity: sha512-qnB2+SY3hkCmBxZsR/MPCybNmbJe4KAlfWErXq+rBKkQJlbjdJeS85VI9r8UqeLYLvnAenU8Q1okM/0MBsAGXw==} + engines: {node: '>= 18'} '@octokit/rest@20.1.2': - resolution: - { - integrity: sha512-GmYiltypkHHtihFwPRxlaorG5R9VAHuk/vbszVoRTGXnAsY60wYLkh/E2XiFmdZmqrisw+9FaazS1i5SbdWYgA==, - } - engines: { node: '>= 18' } + resolution: {integrity: sha512-GmYiltypkHHtihFwPRxlaorG5R9VAHuk/vbszVoRTGXnAsY60wYLkh/E2XiFmdZmqrisw+9FaazS1i5SbdWYgA==} + engines: {node: '>= 18'} '@octokit/types@13.10.0': - resolution: - { - integrity: sha512-ifLaO34EbbPj0Xgro4G5lP5asESjwHracYJvVaPIyXMuiuXLlhic3S47cBdTb+jfODkTE5YtGCLt3Ay3+J97sA==, - } + resolution: {integrity: sha512-ifLaO34EbbPj0Xgro4G5lP5asESjwHracYJvVaPIyXMuiuXLlhic3S47cBdTb+jfODkTE5YtGCLt3Ay3+J97sA==} '@one-ini/wasm@0.1.1': - resolution: - { - integrity: sha512-XuySG1E38YScSJoMlqovLru4KTUNSjgVTIjyh7qMX6aNN5HY5Ct5LhRJdxO79JtTzKfzV/bnWpz+zquYrISsvw==, - } + resolution: {integrity: sha512-XuySG1E38YScSJoMlqovLru4KTUNSjgVTIjyh7qMX6aNN5HY5Ct5LhRJdxO79JtTzKfzV/bnWpz+zquYrISsvw==} '@oxfmt/darwin-arm64@0.26.0': - resolution: - { - integrity: sha512-AAGc+8CffkiWeVgtWf4dPfQwHEE5c/j/8NWH7VGVxxJRCZFdmWcqCXprvL2H6qZFewvDLrFbuSPRCqYCpYGaTQ==, - } + resolution: {integrity: sha512-AAGc+8CffkiWeVgtWf4dPfQwHEE5c/j/8NWH7VGVxxJRCZFdmWcqCXprvL2H6qZFewvDLrFbuSPRCqYCpYGaTQ==} cpu: [arm64] os: [darwin] '@oxfmt/darwin-x64@0.26.0': - resolution: - { - integrity: sha512-xFx5ijCTjw577wJvFlZEMmKDnp3HSCcbYdCsLRmC5i3TZZiDe9DEYh3P46uqhzj8BkEw1Vm1ZCWdl48aEYAzvQ==, - } + resolution: {integrity: sha512-xFx5ijCTjw577wJvFlZEMmKDnp3HSCcbYdCsLRmC5i3TZZiDe9DEYh3P46uqhzj8BkEw1Vm1ZCWdl48aEYAzvQ==} cpu: [x64] os: [darwin] '@oxfmt/linux-arm64-gnu@0.26.0': - resolution: - { - integrity: sha512-GubkQeQT5d3B/Jx/IiR7NMkSmXrCZcVI0BPh1i7mpFi8HgD1hQ/LbhiBKAMsMqs5bbugdQOgBEl8bOhe8JhW1g==, - } + resolution: {integrity: sha512-GubkQeQT5d3B/Jx/IiR7NMkSmXrCZcVI0BPh1i7mpFi8HgD1hQ/LbhiBKAMsMqs5bbugdQOgBEl8bOhe8JhW1g==} cpu: [arm64] os: [linux] '@oxfmt/linux-arm64-musl@0.26.0': - resolution: - { - integrity: sha512-OEypUwK69bFPj+aa3/LYCnlIUPgoOLu//WNcriwpnWNmt47808Ht7RJSg+MNK8a7pSZHpXJ5/E6CRK/OTwFdaQ==, - } + resolution: {integrity: sha512-OEypUwK69bFPj+aa3/LYCnlIUPgoOLu//WNcriwpnWNmt47808Ht7RJSg+MNK8a7pSZHpXJ5/E6CRK/OTwFdaQ==} cpu: [arm64] os: [linux] '@oxfmt/linux-x64-gnu@0.26.0': - resolution: - { - integrity: sha512-xO6iEW2bC6ZHyOTPmPWrg/nM6xgzyRPaS84rATy6F8d79wz69LdRdJ3l/PXlkqhi7XoxhvX4ExysA0Nf10ZZEQ==, - } + resolution: {integrity: sha512-xO6iEW2bC6ZHyOTPmPWrg/nM6xgzyRPaS84rATy6F8d79wz69LdRdJ3l/PXlkqhi7XoxhvX4ExysA0Nf10ZZEQ==} cpu: [x64] os: [linux] '@oxfmt/linux-x64-musl@0.26.0': - resolution: - { - integrity: sha512-Z3KuZFC+MIuAyFCXBHY71kCsdRq1ulbsbzTe71v+hrEv7zVBn6yzql+/AZcgfIaKzWO9OXNuz5WWLWDmVALwow==, - } + resolution: {integrity: sha512-Z3KuZFC+MIuAyFCXBHY71kCsdRq1ulbsbzTe71v+hrEv7zVBn6yzql+/AZcgfIaKzWO9OXNuz5WWLWDmVALwow==} cpu: [x64] os: [linux] '@oxfmt/win32-arm64@0.26.0': - resolution: - { - integrity: sha512-3zRbqwVWK1mDhRhTknlQFpRFL9GhEB5GfU6U7wawnuEwpvi39q91kJ+SRJvJnhyPCARkjZBd1V8XnweN5IFd1g==, - } + resolution: {integrity: sha512-3zRbqwVWK1mDhRhTknlQFpRFL9GhEB5GfU6U7wawnuEwpvi39q91kJ+SRJvJnhyPCARkjZBd1V8XnweN5IFd1g==} cpu: [arm64] os: [win32] '@oxfmt/win32-x64@0.26.0': - resolution: - { - integrity: sha512-m8TfIljU22i9UEIkD+slGPifTFeaCwIUfxszN3E6ABWP1KQbtwSw9Ak0TdoikibvukF/dtbeyG3WW63jv9DnEg==, - } + resolution: {integrity: sha512-m8TfIljU22i9UEIkD+slGPifTFeaCwIUfxszN3E6ABWP1KQbtwSw9Ak0TdoikibvukF/dtbeyG3WW63jv9DnEg==} cpu: [x64] os: [win32] '@paralleldrive/cuid2@2.3.1': - resolution: - { - integrity: sha512-XO7cAxhnTZl0Yggq6jOgjiOHhbgcO4NqFqwSmQpjK3b6TEE6Uj/jfSk6wzYyemh3+I0sHirKSetjQwn5cZktFw==, - } + resolution: {integrity: sha512-XO7cAxhnTZl0Yggq6jOgjiOHhbgcO4NqFqwSmQpjK3b6TEE6Uj/jfSk6wzYyemh3+I0sHirKSetjQwn5cZktFw==} '@pgpm/database-jobs@0.16.0': - resolution: - { - integrity: sha512-s8I7958PlhfYXZKhYoU76R03yk6dlevjGk/Uy9uktveJkZ8C3JVsIhP6Lv4lo0SFEZCjFmXRCYpOY5xINIcX4w==, - } + resolution: {integrity: sha512-s8I7958PlhfYXZKhYoU76R03yk6dlevjGk/Uy9uktveJkZ8C3JVsIhP6Lv4lo0SFEZCjFmXRCYpOY5xINIcX4w==} '@pgpm/inflection@0.16.0': - resolution: - { - integrity: sha512-otjWGx+KkB113Wc5I9nsvoqPhBK6zD1ON2OcXw9PQRgqU43Y9f0yZjb559dDzZwDn5XUeiZMf6il5SIvJE5NPg==, - } + resolution: {integrity: sha512-otjWGx+KkB113Wc5I9nsvoqPhBK6zD1ON2OcXw9PQRgqU43Y9f0yZjb559dDzZwDn5XUeiZMf6il5SIvJE5NPg==} '@pgpm/metaschema-modules@0.16.4': - resolution: - { - integrity: sha512-sB3+5yljFEqUXTTHUOHBBxK52CwagHiUBumWjikHVN9C5w6NHUQ+xFde+3RJMCkoqnmcZn6HTGvWCF25QgciiA==, - } + resolution: {integrity: sha512-sB3+5yljFEqUXTTHUOHBBxK52CwagHiUBumWjikHVN9C5w6NHUQ+xFde+3RJMCkoqnmcZn6HTGvWCF25QgciiA==} '@pgpm/metaschema-schema@0.16.3': - resolution: - { - integrity: sha512-sDIWJY+uNaqMMGjL8NWo8ezzXH1OT0qdaqsX+YDrBL6v1u0PphWprdjd7HySzdqIGpPSax8sIy5u4P2M96wR9Q==, - } + resolution: {integrity: sha512-sDIWJY+uNaqMMGjL8NWo8ezzXH1OT0qdaqsX+YDrBL6v1u0PphWprdjd7HySzdqIGpPSax8sIy5u4P2M96wR9Q==} '@pgpm/services@0.16.3': - resolution: - { - integrity: sha512-TfYALB8RKPyR2WZIFH2Pirb5qfx1q2EKbr7gzG/CcZcQMgTGYyDHBtvSqIO4nDfJ6GgYcASoip9T0lzQmwGtlA==, - } + resolution: {integrity: sha512-TfYALB8RKPyR2WZIFH2Pirb5qfx1q2EKbr7gzG/CcZcQMgTGYyDHBtvSqIO4nDfJ6GgYcASoip9T0lzQmwGtlA==} '@pgpm/types@0.16.0': - resolution: - { - integrity: sha512-CioHCxZGQUnpLANw4aMOOq7Z6zi2SXCxJIRZ8CSBPJfJkWU1OgxX+EpSjnm4Td4bznJhOViXniLltibaaGkMPA==, - } + resolution: {integrity: sha512-CioHCxZGQUnpLANw4aMOOq7Z6zi2SXCxJIRZ8CSBPJfJkWU1OgxX+EpSjnm4Td4bznJhOViXniLltibaaGkMPA==} '@pgpm/verify@0.16.0': - resolution: - { - integrity: sha512-uG0zTXAWGLV8wTUiLdBn+2b4AO+gtiw7sZf+TFFU8h/mVGMBTHUb9Gbsl/GL/5/0zZKOxak7cRJ5deec79KB/A==, - } + resolution: {integrity: sha512-uG0zTXAWGLV8wTUiLdBn+2b4AO+gtiw7sZf+TFFU8h/mVGMBTHUb9Gbsl/GL/5/0zZKOxak7cRJ5deec79KB/A==} '@pgsql/types@17.6.2': - resolution: - { - integrity: sha512-1UtbELdbqNdyOShhrVfSz3a1gDi0s9XXiQemx+6QqtsrXe62a6zOGU+vjb2GRfG5jeEokI1zBBcfD42enRv0Rw==, - } + resolution: {integrity: sha512-1UtbELdbqNdyOShhrVfSz3a1gDi0s9XXiQemx+6QqtsrXe62a6zOGU+vjb2GRfG5jeEokI1zBBcfD42enRv0Rw==} '@pgsql/utils@17.8.11': - resolution: - { - integrity: sha512-gcaS9ATilQyGSIq8596tq+6rcb7TX54sdjOvOzGa9lu9NjqkptEKLbBae5UTjfkFGfH50duDFD1EpFogMnZToA==, - } + resolution: {integrity: sha512-gcaS9ATilQyGSIq8596tq+6rcb7TX54sdjOvOzGa9lu9NjqkptEKLbBae5UTjfkFGfH50duDFD1EpFogMnZToA==} '@pkgjs/parseargs@0.11.0': - resolution: - { - integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==, - } - engines: { node: '>=14' } + resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==} + engines: {node: '>=14'} '@pkgr/core@0.2.9': - resolution: - { - integrity: sha512-QNqXyfVS2wm9hweSYD2O7F0G06uurj9kZ96TRQE5Y9hU7+tgdZwIkbAKc5Ocy1HxEY2kuDQa6cQ1WRs/O5LFKA==, - } - engines: { node: ^12.20.0 || ^14.18.0 || >=16.0.0 } + resolution: {integrity: sha512-QNqXyfVS2wm9hweSYD2O7F0G06uurj9kZ96TRQE5Y9hU7+tgdZwIkbAKc5Ocy1HxEY2kuDQa6cQ1WRs/O5LFKA==} + engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0} '@playwright/test@1.57.0': - resolution: - { - integrity: sha512-6TyEnHgd6SArQO8UO2OMTxshln3QMWBtPGrOCgs3wVEmQmwyuNtB10IZMfmYDE0riwNR1cu4q+pPcxMVtaG3TA==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-6TyEnHgd6SArQO8UO2OMTxshln3QMWBtPGrOCgs3wVEmQmwyuNtB10IZMfmYDE0riwNR1cu4q+pPcxMVtaG3TA==} + engines: {node: '>=18'} hasBin: true '@protobufjs/aspromise@1.1.2': - resolution: - { - integrity: sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==, - } + resolution: {integrity: sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==} '@protobufjs/base64@1.1.2': - resolution: - { - integrity: sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==, - } + resolution: {integrity: sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==} '@protobufjs/codegen@2.0.4': - resolution: - { - integrity: sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==, - } + resolution: {integrity: sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==} '@protobufjs/eventemitter@1.1.0': - resolution: - { - integrity: sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==, - } + resolution: {integrity: sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==} '@protobufjs/fetch@1.1.0': - resolution: - { - integrity: sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ==, - } + resolution: {integrity: sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ==} '@protobufjs/float@1.0.2': - resolution: - { - integrity: sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==, - } + resolution: {integrity: sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==} '@protobufjs/inquire@1.1.0': - resolution: - { - integrity: sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==, - } + resolution: {integrity: sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==} '@protobufjs/path@1.1.2': - resolution: - { - integrity: sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==, - } + resolution: {integrity: sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==} '@protobufjs/pool@1.1.0': - resolution: - { - integrity: sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==, - } + resolution: {integrity: sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==} '@protobufjs/utf8@1.1.0': - resolution: - { - integrity: sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==, - } + resolution: {integrity: sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==} '@radix-ui/primitive@1.1.3': - resolution: - { - integrity: sha512-JTF99U/6XIjCBo0wqkU5sK10glYe27MRRsfwoiq5zzOEZLHU3A3KCMa5X/azekYRCJ0HlwI0crAXS/5dEHTzDg==, - } + resolution: {integrity: sha512-JTF99U/6XIjCBo0wqkU5sK10glYe27MRRsfwoiq5zzOEZLHU3A3KCMa5X/azekYRCJ0HlwI0crAXS/5dEHTzDg==} '@radix-ui/react-arrow@1.1.7': - resolution: - { - integrity: sha512-F+M1tLhO+mlQaOWspE8Wstg+z6PwxwRd8oQ8IXceWz92kfAmalTRf0EjrouQeo7QssEPfCn05B4Ihs1K9WQ/7w==, - } + resolution: {integrity: sha512-F+M1tLhO+mlQaOWspE8Wstg+z6PwxwRd8oQ8IXceWz92kfAmalTRf0EjrouQeo7QssEPfCn05B4Ihs1K9WQ/7w==} peerDependencies: '@types/react': '*' '@types/react-dom': '*' @@ -5008,10 +4085,7 @@ packages: optional: true '@radix-ui/react-collection@1.1.7': - resolution: - { - integrity: sha512-Fh9rGN0MoI4ZFUNyfFVNU4y9LUz93u9/0K+yLgA2bwRojxM8JU1DyvvMBabnZPBgMWREAJvU2jjVzq+LrFUglw==, - } + resolution: {integrity: sha512-Fh9rGN0MoI4ZFUNyfFVNU4y9LUz93u9/0K+yLgA2bwRojxM8JU1DyvvMBabnZPBgMWREAJvU2jjVzq+LrFUglw==} peerDependencies: '@types/react': '*' '@types/react-dom': '*' @@ -5024,10 +4098,7 @@ packages: optional: true '@radix-ui/react-compose-refs@1.1.2': - resolution: - { - integrity: sha512-z4eqJvfiNnFMHIIvXP3CY57y2WJs5g2v3X0zm9mEJkrkNv4rDxu+sg9Jh8EkXyeqBkB7SOcboo9dMVqhyrACIg==, - } + resolution: {integrity: sha512-z4eqJvfiNnFMHIIvXP3CY57y2WJs5g2v3X0zm9mEJkrkNv4rDxu+sg9Jh8EkXyeqBkB7SOcboo9dMVqhyrACIg==} peerDependencies: '@types/react': '*' react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc @@ -5036,10 +4107,7 @@ packages: optional: true '@radix-ui/react-context@1.1.2': - resolution: - { - integrity: sha512-jCi/QKUM2r1Ju5a3J64TH2A5SpKAgh0LpknyqdQ4m6DCV0xJ2HG1xARRwNGPQfi1SLdLWZ1OJz6F4OMBBNiGJA==, - } + resolution: {integrity: sha512-jCi/QKUM2r1Ju5a3J64TH2A5SpKAgh0LpknyqdQ4m6DCV0xJ2HG1xARRwNGPQfi1SLdLWZ1OJz6F4OMBBNiGJA==} peerDependencies: '@types/react': '*' react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc @@ -5048,10 +4116,7 @@ packages: optional: true '@radix-ui/react-dialog@1.1.15': - resolution: - { - integrity: sha512-TCglVRtzlffRNxRMEyR36DGBLJpeusFcgMVD9PZEzAKnUs1lKCgX5u9BmC2Yg+LL9MgZDugFFs1Vl+Jp4t/PGw==, - } + resolution: {integrity: sha512-TCglVRtzlffRNxRMEyR36DGBLJpeusFcgMVD9PZEzAKnUs1lKCgX5u9BmC2Yg+LL9MgZDugFFs1Vl+Jp4t/PGw==} peerDependencies: '@types/react': '*' '@types/react-dom': '*' @@ -5064,10 +4129,7 @@ packages: optional: true '@radix-ui/react-direction@1.1.1': - resolution: - { - integrity: sha512-1UEWRX6jnOA2y4H5WczZ44gOOjTEmlqv1uNW4GAJEO5+bauCBhv8snY65Iw5/VOS/ghKN9gr2KjnLKxrsvoMVw==, - } + resolution: {integrity: sha512-1UEWRX6jnOA2y4H5WczZ44gOOjTEmlqv1uNW4GAJEO5+bauCBhv8snY65Iw5/VOS/ghKN9gr2KjnLKxrsvoMVw==} peerDependencies: '@types/react': '*' react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc @@ -5076,10 +4138,7 @@ packages: optional: true '@radix-ui/react-dismissable-layer@1.1.11': - resolution: - { - integrity: sha512-Nqcp+t5cTB8BinFkZgXiMJniQH0PsUt2k51FUhbdfeKvc4ACcG2uQniY/8+h1Yv6Kza4Q7lD7PQV0z0oicE0Mg==, - } + resolution: {integrity: sha512-Nqcp+t5cTB8BinFkZgXiMJniQH0PsUt2k51FUhbdfeKvc4ACcG2uQniY/8+h1Yv6Kza4Q7lD7PQV0z0oicE0Mg==} peerDependencies: '@types/react': '*' '@types/react-dom': '*' @@ -5092,10 +4151,7 @@ packages: optional: true '@radix-ui/react-dropdown-menu@2.1.16': - resolution: - { - integrity: sha512-1PLGQEynI/3OX/ftV54COn+3Sud/Mn8vALg2rWnBLnRaGtJDduNW/22XjlGgPdpcIbiQxjKtb7BkcjP00nqfJw==, - } + resolution: {integrity: sha512-1PLGQEynI/3OX/ftV54COn+3Sud/Mn8vALg2rWnBLnRaGtJDduNW/22XjlGgPdpcIbiQxjKtb7BkcjP00nqfJw==} peerDependencies: '@types/react': '*' '@types/react-dom': '*' @@ -5108,10 +4164,7 @@ packages: optional: true '@radix-ui/react-focus-guards@1.1.3': - resolution: - { - integrity: sha512-0rFg/Rj2Q62NCm62jZw0QX7a3sz6QCQU0LpZdNrJX8byRGaGVTqbrW9jAoIAHyMQqsNpeZ81YgSizOt5WXq0Pw==, - } + resolution: {integrity: sha512-0rFg/Rj2Q62NCm62jZw0QX7a3sz6QCQU0LpZdNrJX8byRGaGVTqbrW9jAoIAHyMQqsNpeZ81YgSizOt5WXq0Pw==} peerDependencies: '@types/react': '*' react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc @@ -5120,10 +4173,7 @@ packages: optional: true '@radix-ui/react-focus-scope@1.1.7': - resolution: - { - integrity: sha512-t2ODlkXBQyn7jkl6TNaw/MtVEVvIGelJDCG41Okq/KwUsJBwQ4XVZsHAVUkK4mBv3ewiAS3PGuUWuY2BoK4ZUw==, - } + resolution: {integrity: sha512-t2ODlkXBQyn7jkl6TNaw/MtVEVvIGelJDCG41Okq/KwUsJBwQ4XVZsHAVUkK4mBv3ewiAS3PGuUWuY2BoK4ZUw==} peerDependencies: '@types/react': '*' '@types/react-dom': '*' @@ -5136,10 +4186,7 @@ packages: optional: true '@radix-ui/react-id@1.1.1': - resolution: - { - integrity: sha512-kGkGegYIdQsOb4XjsfM97rXsiHaBwco+hFI66oO4s9LU+PLAC5oJ7khdOVFxkhsmlbpUqDAvXw11CluXP+jkHg==, - } + resolution: {integrity: sha512-kGkGegYIdQsOb4XjsfM97rXsiHaBwco+hFI66oO4s9LU+PLAC5oJ7khdOVFxkhsmlbpUqDAvXw11CluXP+jkHg==} peerDependencies: '@types/react': '*' react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc @@ -5148,10 +4195,7 @@ packages: optional: true '@radix-ui/react-menu@2.1.16': - resolution: - { - integrity: sha512-72F2T+PLlphrqLcAotYPp0uJMr5SjP5SL01wfEspJbru5Zs5vQaSHb4VB3ZMJPimgHHCHG7gMOeOB9H3Hdmtxg==, - } + resolution: {integrity: sha512-72F2T+PLlphrqLcAotYPp0uJMr5SjP5SL01wfEspJbru5Zs5vQaSHb4VB3ZMJPimgHHCHG7gMOeOB9H3Hdmtxg==} peerDependencies: '@types/react': '*' '@types/react-dom': '*' @@ -5164,10 +4208,7 @@ packages: optional: true '@radix-ui/react-popper@1.2.8': - resolution: - { - integrity: sha512-0NJQ4LFFUuWkE7Oxf0htBKS6zLkkjBH+hM1uk7Ng705ReR8m/uelduy1DBo0PyBXPKVnBA6YBlU94MBGXrSBCw==, - } + resolution: {integrity: sha512-0NJQ4LFFUuWkE7Oxf0htBKS6zLkkjBH+hM1uk7Ng705ReR8m/uelduy1DBo0PyBXPKVnBA6YBlU94MBGXrSBCw==} peerDependencies: '@types/react': '*' '@types/react-dom': '*' @@ -5180,10 +4221,7 @@ packages: optional: true '@radix-ui/react-portal@1.1.9': - resolution: - { - integrity: sha512-bpIxvq03if6UNwXZ+HTK71JLh4APvnXntDc6XOX8UVq4XQOVl7lwok0AvIl+b8zgCw3fSaVTZMpAPPagXbKmHQ==, - } + resolution: {integrity: sha512-bpIxvq03if6UNwXZ+HTK71JLh4APvnXntDc6XOX8UVq4XQOVl7lwok0AvIl+b8zgCw3fSaVTZMpAPPagXbKmHQ==} peerDependencies: '@types/react': '*' '@types/react-dom': '*' @@ -5196,10 +4234,7 @@ packages: optional: true '@radix-ui/react-presence@1.1.5': - resolution: - { - integrity: sha512-/jfEwNDdQVBCNvjkGit4h6pMOzq8bHkopq458dPt2lMjx+eBQUohZNG9A7DtO/O5ukSbxuaNGXMjHicgwy6rQQ==, - } + resolution: {integrity: sha512-/jfEwNDdQVBCNvjkGit4h6pMOzq8bHkopq458dPt2lMjx+eBQUohZNG9A7DtO/O5ukSbxuaNGXMjHicgwy6rQQ==} peerDependencies: '@types/react': '*' '@types/react-dom': '*' @@ -5212,10 +4247,7 @@ packages: optional: true '@radix-ui/react-primitive@2.1.3': - resolution: - { - integrity: sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ==, - } + resolution: {integrity: sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ==} peerDependencies: '@types/react': '*' '@types/react-dom': '*' @@ -5228,10 +4260,7 @@ packages: optional: true '@radix-ui/react-primitive@2.1.4': - resolution: - { - integrity: sha512-9hQc4+GNVtJAIEPEqlYqW5RiYdrr8ea5XQ0ZOnD6fgru+83kqT15mq2OCcbe8KnjRZl5vF3ks69AKz3kh1jrhg==, - } + resolution: {integrity: sha512-9hQc4+GNVtJAIEPEqlYqW5RiYdrr8ea5XQ0ZOnD6fgru+83kqT15mq2OCcbe8KnjRZl5vF3ks69AKz3kh1jrhg==} peerDependencies: '@types/react': '*' '@types/react-dom': '*' @@ -5244,10 +4273,7 @@ packages: optional: true '@radix-ui/react-roving-focus@1.1.11': - resolution: - { - integrity: sha512-7A6S9jSgm/S+7MdtNDSb+IU859vQqJ/QAtcYQcfFC6W8RS4IxIZDldLR0xqCFZ6DCyrQLjLPsxtTNch5jVA4lA==, - } + resolution: {integrity: sha512-7A6S9jSgm/S+7MdtNDSb+IU859vQqJ/QAtcYQcfFC6W8RS4IxIZDldLR0xqCFZ6DCyrQLjLPsxtTNch5jVA4lA==} peerDependencies: '@types/react': '*' '@types/react-dom': '*' @@ -5260,10 +4286,7 @@ packages: optional: true '@radix-ui/react-slot@1.2.3': - resolution: - { - integrity: sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A==, - } + resolution: {integrity: sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A==} peerDependencies: '@types/react': '*' react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc @@ -5272,10 +4295,7 @@ packages: optional: true '@radix-ui/react-slot@1.2.4': - resolution: - { - integrity: sha512-Jl+bCv8HxKnlTLVrcDE8zTMJ09R9/ukw4qBs/oZClOfoQk/cOTbDn+NceXfV7j09YPVQUryJPHurafcSg6EVKA==, - } + resolution: {integrity: sha512-Jl+bCv8HxKnlTLVrcDE8zTMJ09R9/ukw4qBs/oZClOfoQk/cOTbDn+NceXfV7j09YPVQUryJPHurafcSg6EVKA==} peerDependencies: '@types/react': '*' react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc @@ -5284,10 +4304,7 @@ packages: optional: true '@radix-ui/react-tooltip@1.2.8': - resolution: - { - integrity: sha512-tY7sVt1yL9ozIxvmbtN5qtmH2krXcBCfjEiCgKGLqunJHvgvZG2Pcl2oQ3kbcZARb1BGEHdkLzcYGO8ynVlieg==, - } + resolution: {integrity: sha512-tY7sVt1yL9ozIxvmbtN5qtmH2krXcBCfjEiCgKGLqunJHvgvZG2Pcl2oQ3kbcZARb1BGEHdkLzcYGO8ynVlieg==} peerDependencies: '@types/react': '*' '@types/react-dom': '*' @@ -5300,10 +4317,7 @@ packages: optional: true '@radix-ui/react-use-callback-ref@1.1.1': - resolution: - { - integrity: sha512-FkBMwD+qbGQeMu1cOHnuGB6x4yzPjho8ap5WtbEJ26umhgqVXbhekKUQO+hZEL1vU92a3wHwdp0HAcqAUF5iDg==, - } + resolution: {integrity: sha512-FkBMwD+qbGQeMu1cOHnuGB6x4yzPjho8ap5WtbEJ26umhgqVXbhekKUQO+hZEL1vU92a3wHwdp0HAcqAUF5iDg==} peerDependencies: '@types/react': '*' react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc @@ -5312,10 +4326,7 @@ packages: optional: true '@radix-ui/react-use-controllable-state@1.2.2': - resolution: - { - integrity: sha512-BjasUjixPFdS+NKkypcyyN5Pmg83Olst0+c6vGov0diwTEo6mgdqVR6hxcEgFuh4QrAs7Rc+9KuGJ9TVCj0Zzg==, - } + resolution: {integrity: sha512-BjasUjixPFdS+NKkypcyyN5Pmg83Olst0+c6vGov0diwTEo6mgdqVR6hxcEgFuh4QrAs7Rc+9KuGJ9TVCj0Zzg==} peerDependencies: '@types/react': '*' react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc @@ -5324,10 +4335,7 @@ packages: optional: true '@radix-ui/react-use-effect-event@0.0.2': - resolution: - { - integrity: sha512-Qp8WbZOBe+blgpuUT+lw2xheLP8q0oatc9UpmiemEICxGvFLYmHm9QowVZGHtJlGbS6A6yJ3iViad/2cVjnOiA==, - } + resolution: {integrity: sha512-Qp8WbZOBe+blgpuUT+lw2xheLP8q0oatc9UpmiemEICxGvFLYmHm9QowVZGHtJlGbS6A6yJ3iViad/2cVjnOiA==} peerDependencies: '@types/react': '*' react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc @@ -5336,10 +4344,7 @@ packages: optional: true '@radix-ui/react-use-escape-keydown@1.1.1': - resolution: - { - integrity: sha512-Il0+boE7w/XebUHyBjroE+DbByORGR9KKmITzbR7MyQ4akpORYP/ZmbhAr0DG7RmmBqoOnZdy2QlvajJ2QA59g==, - } + resolution: {integrity: sha512-Il0+boE7w/XebUHyBjroE+DbByORGR9KKmITzbR7MyQ4akpORYP/ZmbhAr0DG7RmmBqoOnZdy2QlvajJ2QA59g==} peerDependencies: '@types/react': '*' react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc @@ -5348,10 +4353,7 @@ packages: optional: true '@radix-ui/react-use-layout-effect@1.1.1': - resolution: - { - integrity: sha512-RbJRS4UWQFkzHTTwVymMTUv8EqYhOp8dOOviLj2ugtTiXRaRQS7GLGxZTLL1jWhMeoSCf5zmcZkqTl9IiYfXcQ==, - } + resolution: {integrity: sha512-RbJRS4UWQFkzHTTwVymMTUv8EqYhOp8dOOviLj2ugtTiXRaRQS7GLGxZTLL1jWhMeoSCf5zmcZkqTl9IiYfXcQ==} peerDependencies: '@types/react': '*' react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc @@ -5360,10 +4362,7 @@ packages: optional: true '@radix-ui/react-use-rect@1.1.1': - resolution: - { - integrity: sha512-QTYuDesS0VtuHNNvMh+CjlKJ4LJickCMUAqjlE3+j8w+RlRpwyX3apEQKGFzbZGdo7XNG1tXa+bQqIE7HIXT2w==, - } + resolution: {integrity: sha512-QTYuDesS0VtuHNNvMh+CjlKJ4LJickCMUAqjlE3+j8w+RlRpwyX3apEQKGFzbZGdo7XNG1tXa+bQqIE7HIXT2w==} peerDependencies: '@types/react': '*' react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc @@ -5372,10 +4371,7 @@ packages: optional: true '@radix-ui/react-use-size@1.1.1': - resolution: - { - integrity: sha512-ewrXRDTAqAXlkl6t/fkXWNAhFX9I+CkKlw6zjEwk86RSPKwZr3xpBRso655aqYafwtnbpHLj6toFzmd6xdVptQ==, - } + resolution: {integrity: sha512-ewrXRDTAqAXlkl6t/fkXWNAhFX9I+CkKlw6zjEwk86RSPKwZr3xpBRso655aqYafwtnbpHLj6toFzmd6xdVptQ==} peerDependencies: '@types/react': '*' react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc @@ -5384,10 +4380,7 @@ packages: optional: true '@radix-ui/react-visually-hidden@1.2.3': - resolution: - { - integrity: sha512-pzJq12tEaaIhqjbzpCuv/OypJY/BPavOofm+dbab+MHLajy277+1lLm6JFcGgF5eskJ6mquGirhXY2GD/8u8Ug==, - } + resolution: {integrity: sha512-pzJq12tEaaIhqjbzpCuv/OypJY/BPavOofm+dbab+MHLajy277+1lLm6JFcGgF5eskJ6mquGirhXY2GD/8u8Ug==} peerDependencies: '@types/react': '*' '@types/react-dom': '*' @@ -5400,10 +4393,7 @@ packages: optional: true '@radix-ui/react-visually-hidden@1.2.4': - resolution: - { - integrity: sha512-kaeiyGCe844dkb9AVF+rb4yTyb1LiLN/e3es3nLiRyN4dC8AduBYPMnnNlDjX2VDOcvDEiPnRNMJeWCfsX0txg==, - } + resolution: {integrity: sha512-kaeiyGCe844dkb9AVF+rb4yTyb1LiLN/e3es3nLiRyN4dC8AduBYPMnnNlDjX2VDOcvDEiPnRNMJeWCfsX0txg==} peerDependencies: '@types/react': '*' '@types/react-dom': '*' @@ -5416,2751 +4406,1551 @@ packages: optional: true '@radix-ui/rect@1.1.1': - resolution: - { - integrity: sha512-HPwpGIzkl28mWyZqG52jiqDJ12waP11Pa1lGoiyUkIEuMLBP0oeK/C89esbXrxsky5we7dfd8U58nm0SgAWpVw==, - } + resolution: {integrity: sha512-HPwpGIzkl28mWyZqG52jiqDJ12waP11Pa1lGoiyUkIEuMLBP0oeK/C89esbXrxsky5we7dfd8U58nm0SgAWpVw==} '@react-aria/focus@3.21.4': - resolution: - { - integrity: sha512-6gz+j9ip0/vFRTKJMl3R30MHopn4i19HqqLfSQfElxJD+r9hBnYG1Q6Wd/kl/WRR1+CALn2F+rn06jUnf5sT8Q==, - } + resolution: {integrity: sha512-6gz+j9ip0/vFRTKJMl3R30MHopn4i19HqqLfSQfElxJD+r9hBnYG1Q6Wd/kl/WRR1+CALn2F+rn06jUnf5sT8Q==} peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1 react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1 '@react-aria/interactions@3.27.0': - resolution: - { - integrity: sha512-D27pOy+0jIfHK60BB26AgqjjRFOYdvVSkwC31b2LicIzRCSPOSP06V4gMHuGmkhNTF4+YWDi1HHYjxIvMeiSlA==, - } + resolution: {integrity: sha512-D27pOy+0jIfHK60BB26AgqjjRFOYdvVSkwC31b2LicIzRCSPOSP06V4gMHuGmkhNTF4+YWDi1HHYjxIvMeiSlA==} peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1 react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1 '@react-aria/ssr@3.9.10': - resolution: - { - integrity: sha512-hvTm77Pf+pMBhuBm760Li0BVIO38jv1IBws1xFm1NoL26PU+fe+FMW5+VZWyANR6nYL65joaJKZqOdTQMkO9IQ==, - } - engines: { node: '>= 12' } + resolution: {integrity: sha512-hvTm77Pf+pMBhuBm760Li0BVIO38jv1IBws1xFm1NoL26PU+fe+FMW5+VZWyANR6nYL65joaJKZqOdTQMkO9IQ==} + engines: {node: '>= 12'} peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1 '@react-aria/utils@3.33.0': - resolution: - { - integrity: sha512-yvz7CMH8d2VjwbSa5nGXqjU031tYhD8ddax95VzJsHSPyqHDEGfxul8RkhGV6oO7bVqZxVs6xY66NIgae+FHjw==, - } + resolution: {integrity: sha512-yvz7CMH8d2VjwbSa5nGXqjU031tYhD8ddax95VzJsHSPyqHDEGfxul8RkhGV6oO7bVqZxVs6xY66NIgae+FHjw==} peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1 react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1 '@react-stately/flags@3.1.2': - resolution: - { - integrity: sha512-2HjFcZx1MyQXoPqcBGALwWWmgFVUk2TuKVIQxCbRq7fPyWXIl6VHcakCLurdtYC2Iks7zizvz0Idv48MQ38DWg==, - } + resolution: {integrity: sha512-2HjFcZx1MyQXoPqcBGALwWWmgFVUk2TuKVIQxCbRq7fPyWXIl6VHcakCLurdtYC2Iks7zizvz0Idv48MQ38DWg==} '@react-stately/utils@3.11.0': - resolution: - { - integrity: sha512-8LZpYowJ9eZmmYLpudbo/eclIRnbhWIJZ994ncmlKlouNzKohtM8qTC6B1w1pwUbiwGdUoyzLuQbeaIor5Dvcw==, - } + resolution: {integrity: sha512-8LZpYowJ9eZmmYLpudbo/eclIRnbhWIJZ994ncmlKlouNzKohtM8qTC6B1w1pwUbiwGdUoyzLuQbeaIor5Dvcw==} peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1 '@react-types/shared@3.33.0': - resolution: - { - integrity: sha512-xuUpP6MyuPmJtzNOqF5pzFUIHH2YogyOQfUQHag54PRmWB7AbjuGWBUv0l1UDmz6+AbzAYGmDVAzcRDOu2PFpw==, - } + resolution: {integrity: sha512-xuUpP6MyuPmJtzNOqF5pzFUIHH2YogyOQfUQHag54PRmWB7AbjuGWBUv0l1UDmz6+AbzAYGmDVAzcRDOu2PFpw==} peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1 '@rolldown/pluginutils@1.0.0-beta.27': - resolution: - { - integrity: sha512-+d0F4MKMCbeVUJwG96uQ4SgAznZNSq93I3V+9NHA4OpvqG8mRCpGdKmK8l/dl02h2CCDHwW2FqilnTyDcAnqjA==, - } + resolution: {integrity: sha512-+d0F4MKMCbeVUJwG96uQ4SgAznZNSq93I3V+9NHA4OpvqG8mRCpGdKmK8l/dl02h2CCDHwW2FqilnTyDcAnqjA==} '@rollup/rollup-android-arm-eabi@4.57.1': - resolution: - { - integrity: sha512-A6ehUVSiSaaliTxai040ZpZ2zTevHYbvu/lDoeAteHI8QnaosIzm4qwtezfRg1jOYaUmnzLX1AOD6Z+UJjtifg==, - } + resolution: {integrity: sha512-A6ehUVSiSaaliTxai040ZpZ2zTevHYbvu/lDoeAteHI8QnaosIzm4qwtezfRg1jOYaUmnzLX1AOD6Z+UJjtifg==} cpu: [arm] os: [android] '@rollup/rollup-android-arm64@4.57.1': - resolution: - { - integrity: sha512-dQaAddCY9YgkFHZcFNS/606Exo8vcLHwArFZ7vxXq4rigo2bb494/xKMMwRRQW6ug7Js6yXmBZhSBRuBvCCQ3w==, - } + resolution: {integrity: sha512-dQaAddCY9YgkFHZcFNS/606Exo8vcLHwArFZ7vxXq4rigo2bb494/xKMMwRRQW6ug7Js6yXmBZhSBRuBvCCQ3w==} cpu: [arm64] os: [android] '@rollup/rollup-darwin-arm64@4.57.1': - resolution: - { - integrity: sha512-crNPrwJOrRxagUYeMn/DZwqN88SDmwaJ8Cvi/TN1HnWBU7GwknckyosC2gd0IqYRsHDEnXf328o9/HC6OkPgOg==, - } + resolution: {integrity: sha512-crNPrwJOrRxagUYeMn/DZwqN88SDmwaJ8Cvi/TN1HnWBU7GwknckyosC2gd0IqYRsHDEnXf328o9/HC6OkPgOg==} cpu: [arm64] os: [darwin] '@rollup/rollup-darwin-x64@4.57.1': - resolution: - { - integrity: sha512-Ji8g8ChVbKrhFtig5QBV7iMaJrGtpHelkB3lsaKzadFBe58gmjfGXAOfI5FV0lYMH8wiqsxKQ1C9B0YTRXVy4w==, - } + resolution: {integrity: sha512-Ji8g8ChVbKrhFtig5QBV7iMaJrGtpHelkB3lsaKzadFBe58gmjfGXAOfI5FV0lYMH8wiqsxKQ1C9B0YTRXVy4w==} cpu: [x64] os: [darwin] '@rollup/rollup-freebsd-arm64@4.57.1': - resolution: - { - integrity: sha512-R+/WwhsjmwodAcz65guCGFRkMb4gKWTcIeLy60JJQbXrJ97BOXHxnkPFrP+YwFlaS0m+uWJTstrUA9o+UchFug==, - } + resolution: {integrity: sha512-R+/WwhsjmwodAcz65guCGFRkMb4gKWTcIeLy60JJQbXrJ97BOXHxnkPFrP+YwFlaS0m+uWJTstrUA9o+UchFug==} cpu: [arm64] os: [freebsd] '@rollup/rollup-freebsd-x64@4.57.1': - resolution: - { - integrity: sha512-IEQTCHeiTOnAUC3IDQdzRAGj3jOAYNr9kBguI7MQAAZK3caezRrg0GxAb6Hchg4lxdZEI5Oq3iov/w/hnFWY9Q==, - } + resolution: {integrity: sha512-IEQTCHeiTOnAUC3IDQdzRAGj3jOAYNr9kBguI7MQAAZK3caezRrg0GxAb6Hchg4lxdZEI5Oq3iov/w/hnFWY9Q==} cpu: [x64] os: [freebsd] '@rollup/rollup-linux-arm-gnueabihf@4.57.1': - resolution: - { - integrity: sha512-F8sWbhZ7tyuEfsmOxwc2giKDQzN3+kuBLPwwZGyVkLlKGdV1nvnNwYD0fKQ8+XS6hp9nY7B+ZeK01EBUE7aHaw==, - } + resolution: {integrity: sha512-F8sWbhZ7tyuEfsmOxwc2giKDQzN3+kuBLPwwZGyVkLlKGdV1nvnNwYD0fKQ8+XS6hp9nY7B+ZeK01EBUE7aHaw==} cpu: [arm] os: [linux] '@rollup/rollup-linux-arm-musleabihf@4.57.1': - resolution: - { - integrity: sha512-rGfNUfn0GIeXtBP1wL5MnzSj98+PZe/AXaGBCRmT0ts80lU5CATYGxXukeTX39XBKsxzFpEeK+Mrp9faXOlmrw==, - } + resolution: {integrity: sha512-rGfNUfn0GIeXtBP1wL5MnzSj98+PZe/AXaGBCRmT0ts80lU5CATYGxXukeTX39XBKsxzFpEeK+Mrp9faXOlmrw==} cpu: [arm] os: [linux] '@rollup/rollup-linux-arm64-gnu@4.57.1': - resolution: - { - integrity: sha512-MMtej3YHWeg/0klK2Qodf3yrNzz6CGjo2UntLvk2RSPlhzgLvYEB3frRvbEF2wRKh1Z2fDIg9KRPe1fawv7C+g==, - } + resolution: {integrity: sha512-MMtej3YHWeg/0klK2Qodf3yrNzz6CGjo2UntLvk2RSPlhzgLvYEB3frRvbEF2wRKh1Z2fDIg9KRPe1fawv7C+g==} cpu: [arm64] os: [linux] '@rollup/rollup-linux-arm64-musl@4.57.1': - resolution: - { - integrity: sha512-1a/qhaaOXhqXGpMFMET9VqwZakkljWHLmZOX48R0I/YLbhdxr1m4gtG1Hq7++VhVUmf+L3sTAf9op4JlhQ5u1Q==, - } + resolution: {integrity: sha512-1a/qhaaOXhqXGpMFMET9VqwZakkljWHLmZOX48R0I/YLbhdxr1m4gtG1Hq7++VhVUmf+L3sTAf9op4JlhQ5u1Q==} cpu: [arm64] os: [linux] '@rollup/rollup-linux-loong64-gnu@4.57.1': - resolution: - { - integrity: sha512-QWO6RQTZ/cqYtJMtxhkRkidoNGXc7ERPbZN7dVW5SdURuLeVU7lwKMpo18XdcmpWYd0qsP1bwKPf7DNSUinhvA==, - } + resolution: {integrity: sha512-QWO6RQTZ/cqYtJMtxhkRkidoNGXc7ERPbZN7dVW5SdURuLeVU7lwKMpo18XdcmpWYd0qsP1bwKPf7DNSUinhvA==} cpu: [loong64] os: [linux] '@rollup/rollup-linux-loong64-musl@4.57.1': - resolution: - { - integrity: sha512-xpObYIf+8gprgWaPP32xiN5RVTi/s5FCR+XMXSKmhfoJjrpRAjCuuqQXyxUa/eJTdAE6eJ+KDKaoEqjZQxh3Gw==, - } + resolution: {integrity: sha512-xpObYIf+8gprgWaPP32xiN5RVTi/s5FCR+XMXSKmhfoJjrpRAjCuuqQXyxUa/eJTdAE6eJ+KDKaoEqjZQxh3Gw==} cpu: [loong64] os: [linux] '@rollup/rollup-linux-ppc64-gnu@4.57.1': - resolution: - { - integrity: sha512-4BrCgrpZo4hvzMDKRqEaW1zeecScDCR+2nZ86ATLhAoJ5FQ+lbHVD3ttKe74/c7tNT9c6F2viwB3ufwp01Oh2w==, - } + resolution: {integrity: sha512-4BrCgrpZo4hvzMDKRqEaW1zeecScDCR+2nZ86ATLhAoJ5FQ+lbHVD3ttKe74/c7tNT9c6F2viwB3ufwp01Oh2w==} cpu: [ppc64] os: [linux] '@rollup/rollup-linux-ppc64-musl@4.57.1': - resolution: - { - integrity: sha512-NOlUuzesGauESAyEYFSe3QTUguL+lvrN1HtwEEsU2rOwdUDeTMJdO5dUYl/2hKf9jWydJrO9OL/XSSf65R5+Xw==, - } + resolution: {integrity: sha512-NOlUuzesGauESAyEYFSe3QTUguL+lvrN1HtwEEsU2rOwdUDeTMJdO5dUYl/2hKf9jWydJrO9OL/XSSf65R5+Xw==} cpu: [ppc64] os: [linux] '@rollup/rollup-linux-riscv64-gnu@4.57.1': - resolution: - { - integrity: sha512-ptA88htVp0AwUUqhVghwDIKlvJMD/fmL/wrQj99PRHFRAG6Z5nbWoWG4o81Nt9FT+IuqUQi+L31ZKAFeJ5Is+A==, - } + resolution: {integrity: sha512-ptA88htVp0AwUUqhVghwDIKlvJMD/fmL/wrQj99PRHFRAG6Z5nbWoWG4o81Nt9FT+IuqUQi+L31ZKAFeJ5Is+A==} cpu: [riscv64] os: [linux] '@rollup/rollup-linux-riscv64-musl@4.57.1': - resolution: - { - integrity: sha512-S51t7aMMTNdmAMPpBg7OOsTdn4tySRQvklmL3RpDRyknk87+Sp3xaumlatU+ppQ+5raY7sSTcC2beGgvhENfuw==, - } + resolution: {integrity: sha512-S51t7aMMTNdmAMPpBg7OOsTdn4tySRQvklmL3RpDRyknk87+Sp3xaumlatU+ppQ+5raY7sSTcC2beGgvhENfuw==} cpu: [riscv64] os: [linux] '@rollup/rollup-linux-s390x-gnu@4.57.1': - resolution: - { - integrity: sha512-Bl00OFnVFkL82FHbEqy3k5CUCKH6OEJL54KCyx2oqsmZnFTR8IoNqBF+mjQVcRCT5sB6yOvK8A37LNm/kPJiZg==, - } + resolution: {integrity: sha512-Bl00OFnVFkL82FHbEqy3k5CUCKH6OEJL54KCyx2oqsmZnFTR8IoNqBF+mjQVcRCT5sB6yOvK8A37LNm/kPJiZg==} cpu: [s390x] os: [linux] '@rollup/rollup-linux-x64-gnu@4.57.1': - resolution: - { - integrity: sha512-ABca4ceT4N+Tv/GtotnWAeXZUZuM/9AQyCyKYyKnpk4yoA7QIAuBt6Hkgpw8kActYlew2mvckXkvx0FfoInnLg==, - } + resolution: {integrity: sha512-ABca4ceT4N+Tv/GtotnWAeXZUZuM/9AQyCyKYyKnpk4yoA7QIAuBt6Hkgpw8kActYlew2mvckXkvx0FfoInnLg==} cpu: [x64] os: [linux] '@rollup/rollup-linux-x64-musl@4.57.1': - resolution: - { - integrity: sha512-HFps0JeGtuOR2convgRRkHCekD7j+gdAuXM+/i6kGzQtFhlCtQkpwtNzkNj6QhCDp7DRJ7+qC/1Vg2jt5iSOFw==, - } + resolution: {integrity: sha512-HFps0JeGtuOR2convgRRkHCekD7j+gdAuXM+/i6kGzQtFhlCtQkpwtNzkNj6QhCDp7DRJ7+qC/1Vg2jt5iSOFw==} cpu: [x64] os: [linux] '@rollup/rollup-openbsd-x64@4.57.1': - resolution: - { - integrity: sha512-H+hXEv9gdVQuDTgnqD+SQffoWoc0Of59AStSzTEj/feWTBAnSfSD3+Dql1ZruJQxmykT/JVY0dE8Ka7z0DH1hw==, - } + resolution: {integrity: sha512-H+hXEv9gdVQuDTgnqD+SQffoWoc0Of59AStSzTEj/feWTBAnSfSD3+Dql1ZruJQxmykT/JVY0dE8Ka7z0DH1hw==} cpu: [x64] os: [openbsd] '@rollup/rollup-openharmony-arm64@4.57.1': - resolution: - { - integrity: sha512-4wYoDpNg6o/oPximyc/NG+mYUejZrCU2q+2w6YZqrAs2UcNUChIZXjtafAiiZSUc7On8v5NyNj34Kzj/Ltk6dQ==, - } + resolution: {integrity: sha512-4wYoDpNg6o/oPximyc/NG+mYUejZrCU2q+2w6YZqrAs2UcNUChIZXjtafAiiZSUc7On8v5NyNj34Kzj/Ltk6dQ==} cpu: [arm64] os: [openharmony] '@rollup/rollup-win32-arm64-msvc@4.57.1': - resolution: - { - integrity: sha512-O54mtsV/6LW3P8qdTcamQmuC990HDfR71lo44oZMZlXU4tzLrbvTii87Ni9opq60ds0YzuAlEr/GNwuNluZyMQ==, - } + resolution: {integrity: sha512-O54mtsV/6LW3P8qdTcamQmuC990HDfR71lo44oZMZlXU4tzLrbvTii87Ni9opq60ds0YzuAlEr/GNwuNluZyMQ==} cpu: [arm64] os: [win32] '@rollup/rollup-win32-ia32-msvc@4.57.1': - resolution: - { - integrity: sha512-P3dLS+IerxCT/7D2q2FYcRdWRl22dNbrbBEtxdWhXrfIMPP9lQhb5h4Du04mdl5Woq05jVCDPCMF7Ub0NAjIew==, - } + resolution: {integrity: sha512-P3dLS+IerxCT/7D2q2FYcRdWRl22dNbrbBEtxdWhXrfIMPP9lQhb5h4Du04mdl5Woq05jVCDPCMF7Ub0NAjIew==} cpu: [ia32] os: [win32] '@rollup/rollup-win32-x64-gnu@4.57.1': - resolution: - { - integrity: sha512-VMBH2eOOaKGtIJYleXsi2B8CPVADrh+TyNxJ4mWPnKfLB/DBUmzW+5m1xUrcwWoMfSLagIRpjUFeW5CO5hyciQ==, - } + resolution: {integrity: sha512-VMBH2eOOaKGtIJYleXsi2B8CPVADrh+TyNxJ4mWPnKfLB/DBUmzW+5m1xUrcwWoMfSLagIRpjUFeW5CO5hyciQ==} cpu: [x64] os: [win32] '@rollup/rollup-win32-x64-msvc@4.57.1': - resolution: - { - integrity: sha512-mxRFDdHIWRxg3UfIIAwCm6NzvxG0jDX/wBN6KsQFTvKFqqg9vTrWUE68qEjHt19A5wwx5X5aUi2zuZT7YR0jrA==, - } + resolution: {integrity: sha512-mxRFDdHIWRxg3UfIIAwCm6NzvxG0jDX/wBN6KsQFTvKFqqg9vTrWUE68qEjHt19A5wwx5X5aUi2zuZT7YR0jrA==} cpu: [x64] os: [win32] '@sigstore/bundle@2.3.2': - resolution: - { - integrity: sha512-wueKWDk70QixNLB363yHc2D2ItTgYiMTdPwK8D9dKQMR3ZQ0c35IxP5xnwQ8cNLoCgCRcHf14kE+CLIvNX1zmA==, - } - engines: { node: ^16.14.0 || >=18.0.0 } + resolution: {integrity: sha512-wueKWDk70QixNLB363yHc2D2ItTgYiMTdPwK8D9dKQMR3ZQ0c35IxP5xnwQ8cNLoCgCRcHf14kE+CLIvNX1zmA==} + engines: {node: ^16.14.0 || >=18.0.0} '@sigstore/core@1.1.0': - resolution: - { - integrity: sha512-JzBqdVIyqm2FRQCulY6nbQzMpJJpSiJ8XXWMhtOX9eKgaXXpfNOF53lzQEjIydlStnd/eFtuC1dW4VYdD93oRg==, - } - engines: { node: ^16.14.0 || >=18.0.0 } + resolution: {integrity: sha512-JzBqdVIyqm2FRQCulY6nbQzMpJJpSiJ8XXWMhtOX9eKgaXXpfNOF53lzQEjIydlStnd/eFtuC1dW4VYdD93oRg==} + engines: {node: ^16.14.0 || >=18.0.0} '@sigstore/protobuf-specs@0.3.3': - resolution: - { - integrity: sha512-RpacQhBlwpBWd7KEJsRKcBQalbV28fvkxwTOJIqhIuDysMMaJW47V4OqW30iJB9uRpqOSxxEAQFdr8tTattReQ==, - } - engines: { node: ^18.17.0 || >=20.5.0 } + resolution: {integrity: sha512-RpacQhBlwpBWd7KEJsRKcBQalbV28fvkxwTOJIqhIuDysMMaJW47V4OqW30iJB9uRpqOSxxEAQFdr8tTattReQ==} + engines: {node: ^18.17.0 || >=20.5.0} '@sigstore/sign@2.3.2': - resolution: - { - integrity: sha512-5Vz5dPVuunIIvC5vBb0APwo7qKA4G9yM48kPWJT+OEERs40md5GoUR1yedwpekWZ4m0Hhw44m6zU+ObsON+iDA==, - } - engines: { node: ^16.14.0 || >=18.0.0 } + resolution: {integrity: sha512-5Vz5dPVuunIIvC5vBb0APwo7qKA4G9yM48kPWJT+OEERs40md5GoUR1yedwpekWZ4m0Hhw44m6zU+ObsON+iDA==} + engines: {node: ^16.14.0 || >=18.0.0} '@sigstore/tuf@2.3.4': - resolution: - { - integrity: sha512-44vtsveTPUpqhm9NCrbU8CWLe3Vck2HO1PNLw7RIajbB7xhtn5RBPm1VNSCMwqGYHhDsBJG8gDF0q4lgydsJvw==, - } - engines: { node: ^16.14.0 || >=18.0.0 } + resolution: {integrity: sha512-44vtsveTPUpqhm9NCrbU8CWLe3Vck2HO1PNLw7RIajbB7xhtn5RBPm1VNSCMwqGYHhDsBJG8gDF0q4lgydsJvw==} + engines: {node: ^16.14.0 || >=18.0.0} '@sigstore/verify@1.2.1': - resolution: - { - integrity: sha512-8iKx79/F73DKbGfRf7+t4dqrc0bRr0thdPrxAtCKWRm/F0tG71i6O1rvlnScncJLLBZHn3h8M3c1BSUAb9yu8g==, - } - engines: { node: ^16.14.0 || >=18.0.0 } + resolution: {integrity: sha512-8iKx79/F73DKbGfRf7+t4dqrc0bRr0thdPrxAtCKWRm/F0tG71i6O1rvlnScncJLLBZHn3h8M3c1BSUAb9yu8g==} + engines: {node: ^16.14.0 || >=18.0.0} '@sinclair/typebox@0.27.8': - resolution: - { - integrity: sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==, - } + resolution: {integrity: sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==} '@sinclair/typebox@0.34.47': - resolution: - { - integrity: sha512-ZGIBQ+XDvO5JQku9wmwtabcVTHJsgSWAHYtVuM9pBNNR5E88v6Jcj/llpmsjivig5X8A8HHOb4/mbEKPS5EvAw==, - } + resolution: {integrity: sha512-ZGIBQ+XDvO5JQku9wmwtabcVTHJsgSWAHYtVuM9pBNNR5E88v6Jcj/llpmsjivig5X8A8HHOb4/mbEKPS5EvAw==} '@sinonjs/commons@3.0.1': - resolution: - { - integrity: sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ==, - } + resolution: {integrity: sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ==} '@sinonjs/fake-timers@13.0.5': - resolution: - { - integrity: sha512-36/hTbH2uaWuGVERyC6da9YwGWnzUZXuPro/F2LfsdOsLnCojz/iSH8MxUt/FD2S5XBSVPhmArFUXcpCQ2Hkiw==, - } + resolution: {integrity: sha512-36/hTbH2uaWuGVERyC6da9YwGWnzUZXuPro/F2LfsdOsLnCojz/iSH8MxUt/FD2S5XBSVPhmArFUXcpCQ2Hkiw==} '@smithy/abort-controller@4.2.7': - resolution: - { - integrity: sha512-rzMY6CaKx2qxrbYbqjXWS0plqEy7LOdKHS0bg4ixJ6aoGDPNUcLWk/FRNuCILh7GKLG9TFUXYYeQQldMBBwuyw==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-rzMY6CaKx2qxrbYbqjXWS0plqEy7LOdKHS0bg4ixJ6aoGDPNUcLWk/FRNuCILh7GKLG9TFUXYYeQQldMBBwuyw==} + engines: {node: '>=18.0.0'} '@smithy/abort-controller@4.2.8': - resolution: - { - integrity: sha512-peuVfkYHAmS5ybKxWcfraK7WBBP0J+rkfUcbHJJKQ4ir3UAUNQI+Y4Vt/PqSzGqgloJ5O1dk7+WzNL8wcCSXbw==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-peuVfkYHAmS5ybKxWcfraK7WBBP0J+rkfUcbHJJKQ4ir3UAUNQI+Y4Vt/PqSzGqgloJ5O1dk7+WzNL8wcCSXbw==} + engines: {node: '>=18.0.0'} '@smithy/chunked-blob-reader-native@4.2.1': - resolution: - { - integrity: sha512-lX9Ay+6LisTfpLid2zZtIhSEjHMZoAR5hHCR4H7tBz/Zkfr5ea8RcQ7Tk4mi0P76p4cN+Btz16Ffno7YHpKXnQ==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-lX9Ay+6LisTfpLid2zZtIhSEjHMZoAR5hHCR4H7tBz/Zkfr5ea8RcQ7Tk4mi0P76p4cN+Btz16Ffno7YHpKXnQ==} + engines: {node: '>=18.0.0'} '@smithy/chunked-blob-reader@5.2.0': - resolution: - { - integrity: sha512-WmU0TnhEAJLWvfSeMxBNe5xtbselEO8+4wG0NtZeL8oR21WgH1xiO37El+/Y+H/Ie4SCwBy3MxYWmOYaGgZueA==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-WmU0TnhEAJLWvfSeMxBNe5xtbselEO8+4wG0NtZeL8oR21WgH1xiO37El+/Y+H/Ie4SCwBy3MxYWmOYaGgZueA==} + engines: {node: '>=18.0.0'} '@smithy/config-resolver@4.4.6': - resolution: - { - integrity: sha512-qJpzYC64kaj3S0fueiu3kXm8xPrR3PcXDPEgnaNMRn0EjNSZFoFjvbUp0YUDsRhN1CB90EnHJtbxWKevnH99UQ==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-qJpzYC64kaj3S0fueiu3kXm8xPrR3PcXDPEgnaNMRn0EjNSZFoFjvbUp0YUDsRhN1CB90EnHJtbxWKevnH99UQ==} + engines: {node: '>=18.0.0'} '@smithy/core@3.20.0': - resolution: - { - integrity: sha512-WsSHCPq/neD5G/MkK4csLI5Y5Pkd9c1NMfpYEKeghSGaD4Ja1qLIohRQf2D5c1Uy5aXp76DeKHkzWZ9KAlHroQ==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-WsSHCPq/neD5G/MkK4csLI5Y5Pkd9c1NMfpYEKeghSGaD4Ja1qLIohRQf2D5c1Uy5aXp76DeKHkzWZ9KAlHroQ==} + engines: {node: '>=18.0.0'} '@smithy/core@3.20.5': - resolution: - { - integrity: sha512-0Tz77Td8ynHaowXfOdrD0F1IH4tgWGUhwmLwmpFyTbr+U9WHXNNp9u/k2VjBXGnSe7BwjBERRpXsokGTXzNjhA==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-0Tz77Td8ynHaowXfOdrD0F1IH4tgWGUhwmLwmpFyTbr+U9WHXNNp9u/k2VjBXGnSe7BwjBERRpXsokGTXzNjhA==} + engines: {node: '>=18.0.0'} '@smithy/core@3.20.7': - resolution: - { - integrity: sha512-aO7jmh3CtrmPsIJxUwYIzI5WVlMK8BMCPQ4D4nTzqTqBhbzvxHNzBMGcEg13yg/z9R2Qsz49NUFl0F0lVbTVFw==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-aO7jmh3CtrmPsIJxUwYIzI5WVlMK8BMCPQ4D4nTzqTqBhbzvxHNzBMGcEg13yg/z9R2Qsz49NUFl0F0lVbTVFw==} + engines: {node: '>=18.0.0'} '@smithy/credential-provider-imds@4.2.8': - resolution: - { - integrity: sha512-FNT0xHS1c/CPN8upqbMFP83+ul5YgdisfCfkZ86Jh2NSmnqw/AJ6x5pEogVCTVvSm7j9MopRU89bmDelxuDMYw==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-FNT0xHS1c/CPN8upqbMFP83+ul5YgdisfCfkZ86Jh2NSmnqw/AJ6x5pEogVCTVvSm7j9MopRU89bmDelxuDMYw==} + engines: {node: '>=18.0.0'} '@smithy/eventstream-codec@4.2.8': - resolution: - { - integrity: sha512-jS/O5Q14UsufqoGhov7dHLOPCzkYJl9QDzusI2Psh4wyYx/izhzvX9P4D69aTxcdfVhEPhjK+wYyn/PzLjKbbw==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-jS/O5Q14UsufqoGhov7dHLOPCzkYJl9QDzusI2Psh4wyYx/izhzvX9P4D69aTxcdfVhEPhjK+wYyn/PzLjKbbw==} + engines: {node: '>=18.0.0'} '@smithy/eventstream-serde-browser@4.2.8': - resolution: - { - integrity: sha512-MTfQT/CRQz5g24ayXdjg53V0mhucZth4PESoA5IhvaWVDTOQLfo8qI9vzqHcPsdd2v6sqfTYqF5L/l+pea5Uyw==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-MTfQT/CRQz5g24ayXdjg53V0mhucZth4PESoA5IhvaWVDTOQLfo8qI9vzqHcPsdd2v6sqfTYqF5L/l+pea5Uyw==} + engines: {node: '>=18.0.0'} '@smithy/eventstream-serde-config-resolver@4.3.8': - resolution: - { - integrity: sha512-ah12+luBiDGzBruhu3efNy1IlbwSEdNiw8fOZksoKoWW1ZHvO/04MQsdnws/9Aj+5b0YXSSN2JXKy/ClIsW8MQ==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-ah12+luBiDGzBruhu3efNy1IlbwSEdNiw8fOZksoKoWW1ZHvO/04MQsdnws/9Aj+5b0YXSSN2JXKy/ClIsW8MQ==} + engines: {node: '>=18.0.0'} '@smithy/eventstream-serde-node@4.2.8': - resolution: - { - integrity: sha512-cYpCpp29z6EJHa5T9WL0KAlq3SOKUQkcgSoeRfRVwjGgSFl7Uh32eYGt7IDYCX20skiEdRffyDpvF2efEZPC0A==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-cYpCpp29z6EJHa5T9WL0KAlq3SOKUQkcgSoeRfRVwjGgSFl7Uh32eYGt7IDYCX20skiEdRffyDpvF2efEZPC0A==} + engines: {node: '>=18.0.0'} '@smithy/eventstream-serde-universal@4.2.8': - resolution: - { - integrity: sha512-iJ6YNJd0bntJYnX6s52NC4WFYcZeKrPUr1Kmmr5AwZcwCSzVpS7oavAmxMR7pMq7V+D1G4s9F5NJK0xwOsKAlQ==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-iJ6YNJd0bntJYnX6s52NC4WFYcZeKrPUr1Kmmr5AwZcwCSzVpS7oavAmxMR7pMq7V+D1G4s9F5NJK0xwOsKAlQ==} + engines: {node: '>=18.0.0'} '@smithy/fetch-http-handler@5.3.8': - resolution: - { - integrity: sha512-h/Fi+o7mti4n8wx1SR6UHWLaakwHRx29sizvp8OOm7iqwKGFneT06GCSFhml6Bha5BT6ot5pj3CYZnCHhGC2Rg==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-h/Fi+o7mti4n8wx1SR6UHWLaakwHRx29sizvp8OOm7iqwKGFneT06GCSFhml6Bha5BT6ot5pj3CYZnCHhGC2Rg==} + engines: {node: '>=18.0.0'} '@smithy/fetch-http-handler@5.3.9': - resolution: - { - integrity: sha512-I4UhmcTYXBrct03rwzQX1Y/iqQlzVQaPxWjCjula++5EmWq9YGBrx6bbGqluGc1f0XEfhSkiY4jhLgbsJUMKRA==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-I4UhmcTYXBrct03rwzQX1Y/iqQlzVQaPxWjCjula++5EmWq9YGBrx6bbGqluGc1f0XEfhSkiY4jhLgbsJUMKRA==} + engines: {node: '>=18.0.0'} '@smithy/hash-blob-browser@4.2.9': - resolution: - { - integrity: sha512-m80d/iicI7DlBDxyQP6Th7BW/ejDGiF0bgI754+tiwK0lgMkcaIBgvwwVc7OFbY4eUzpGtnig52MhPAEJ7iNYg==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-m80d/iicI7DlBDxyQP6Th7BW/ejDGiF0bgI754+tiwK0lgMkcaIBgvwwVc7OFbY4eUzpGtnig52MhPAEJ7iNYg==} + engines: {node: '>=18.0.0'} '@smithy/hash-node@4.2.8': - resolution: - { - integrity: sha512-7ZIlPbmaDGxVoxErDZnuFG18WekhbA/g2/i97wGj+wUBeS6pcUeAym8u4BXh/75RXWhgIJhyC11hBzig6MljwA==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-7ZIlPbmaDGxVoxErDZnuFG18WekhbA/g2/i97wGj+wUBeS6pcUeAym8u4BXh/75RXWhgIJhyC11hBzig6MljwA==} + engines: {node: '>=18.0.0'} '@smithy/hash-stream-node@4.2.8': - resolution: - { - integrity: sha512-v0FLTXgHrTeheYZFGhR+ehX5qUm4IQsjAiL9qehad2cyjMWcN2QG6/4mSwbSgEQzI7jwfoXj7z4fxZUx/Mhj2w==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-v0FLTXgHrTeheYZFGhR+ehX5qUm4IQsjAiL9qehad2cyjMWcN2QG6/4mSwbSgEQzI7jwfoXj7z4fxZUx/Mhj2w==} + engines: {node: '>=18.0.0'} '@smithy/invalid-dependency@4.2.8': - resolution: - { - integrity: sha512-N9iozRybwAQ2dn9Fot9kI6/w9vos2oTXLhtK7ovGqwZjlOcxu6XhPlpLpC+INsxktqHinn5gS2DXDjDF2kG5sQ==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-N9iozRybwAQ2dn9Fot9kI6/w9vos2oTXLhtK7ovGqwZjlOcxu6XhPlpLpC+INsxktqHinn5gS2DXDjDF2kG5sQ==} + engines: {node: '>=18.0.0'} '@smithy/is-array-buffer@2.2.0': - resolution: - { - integrity: sha512-GGP3O9QFD24uGeAXYUjwSTXARoqpZykHadOmA8G5vfJPK0/DC67qa//0qvqrJzL1xc8WQWX7/yc7fwudjPHPhA==, - } - engines: { node: '>=14.0.0' } + resolution: {integrity: sha512-GGP3O9QFD24uGeAXYUjwSTXARoqpZykHadOmA8G5vfJPK0/DC67qa//0qvqrJzL1xc8WQWX7/yc7fwudjPHPhA==} + engines: {node: '>=14.0.0'} '@smithy/is-array-buffer@4.2.0': - resolution: - { - integrity: sha512-DZZZBvC7sjcYh4MazJSGiWMI2L7E0oCiRHREDzIxi/M2LY79/21iXt6aPLHge82wi5LsuRF5A06Ds3+0mlh6CQ==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-DZZZBvC7sjcYh4MazJSGiWMI2L7E0oCiRHREDzIxi/M2LY79/21iXt6aPLHge82wi5LsuRF5A06Ds3+0mlh6CQ==} + engines: {node: '>=18.0.0'} '@smithy/md5-js@4.2.8': - resolution: - { - integrity: sha512-oGMaLj4tVZzLi3itBa9TCswgMBr7k9b+qKYowQ6x1rTyTuO1IU2YHdHUa+891OsOH+wCsH7aTPRsTJO3RMQmjQ==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-oGMaLj4tVZzLi3itBa9TCswgMBr7k9b+qKYowQ6x1rTyTuO1IU2YHdHUa+891OsOH+wCsH7aTPRsTJO3RMQmjQ==} + engines: {node: '>=18.0.0'} '@smithy/middleware-content-length@4.2.8': - resolution: - { - integrity: sha512-RO0jeoaYAB1qBRhfVyq0pMgBoUK34YEJxVxyjOWYZiOKOq2yMZ4MnVXMZCUDenpozHue207+9P5ilTV1zeda0A==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-RO0jeoaYAB1qBRhfVyq0pMgBoUK34YEJxVxyjOWYZiOKOq2yMZ4MnVXMZCUDenpozHue207+9P5ilTV1zeda0A==} + engines: {node: '>=18.0.0'} '@smithy/middleware-endpoint@4.4.1': - resolution: - { - integrity: sha512-gpLspUAoe6f1M6H0u4cVuFzxZBrsGZmjx2O9SigurTx4PbntYa4AJ+o0G0oGm1L2oSX6oBhcGHwrfJHup2JnJg==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-gpLspUAoe6f1M6H0u4cVuFzxZBrsGZmjx2O9SigurTx4PbntYa4AJ+o0G0oGm1L2oSX6oBhcGHwrfJHup2JnJg==} + engines: {node: '>=18.0.0'} '@smithy/middleware-endpoint@4.4.6': - resolution: - { - integrity: sha512-dpq3bHqbEOBqGBjRVHVFP3eUSPpX0BYtg1D5d5Irgk6orGGAuZfY22rC4sErhg+ZfY/Y0kPqm1XpAmDZg7DeuA==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-dpq3bHqbEOBqGBjRVHVFP3eUSPpX0BYtg1D5d5Irgk6orGGAuZfY22rC4sErhg+ZfY/Y0kPqm1XpAmDZg7DeuA==} + engines: {node: '>=18.0.0'} '@smithy/middleware-endpoint@4.4.8': - resolution: - { - integrity: sha512-TV44qwB/T0OMMzjIuI+JeS0ort3bvlPJ8XIH0MSlGADraXpZqmyND27ueuAL3E14optleADWqtd7dUgc2w+qhQ==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-TV44qwB/T0OMMzjIuI+JeS0ort3bvlPJ8XIH0MSlGADraXpZqmyND27ueuAL3E14optleADWqtd7dUgc2w+qhQ==} + engines: {node: '>=18.0.0'} '@smithy/middleware-retry@4.4.22': - resolution: - { - integrity: sha512-vwWDMaObSMjw6WCC/3Ae9G7uul5Sk95jr07CDk1gkIMpaDic0phPS1MpVAZ6+YkF7PAzRlpsDjxPwRlh/S11FQ==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-vwWDMaObSMjw6WCC/3Ae9G7uul5Sk95jr07CDk1gkIMpaDic0phPS1MpVAZ6+YkF7PAzRlpsDjxPwRlh/S11FQ==} + engines: {node: '>=18.0.0'} '@smithy/middleware-retry@4.4.24': - resolution: - { - integrity: sha512-yiUY1UvnbUFfP5izoKLtfxDSTRv724YRRwyiC/5HYY6vdsVDcDOXKSXmkJl/Hovcxt5r+8tZEUAdrOaCJwrl9Q==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-yiUY1UvnbUFfP5izoKLtfxDSTRv724YRRwyiC/5HYY6vdsVDcDOXKSXmkJl/Hovcxt5r+8tZEUAdrOaCJwrl9Q==} + engines: {node: '>=18.0.0'} '@smithy/middleware-serde@4.2.8': - resolution: - { - integrity: sha512-8rDGYen5m5+NV9eHv9ry0sqm2gI6W7mc1VSFMtn6Igo25S507/HaOX9LTHAS2/J32VXD0xSzrY0H5FJtOMS4/w==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-8rDGYen5m5+NV9eHv9ry0sqm2gI6W7mc1VSFMtn6Igo25S507/HaOX9LTHAS2/J32VXD0xSzrY0H5FJtOMS4/w==} + engines: {node: '>=18.0.0'} '@smithy/middleware-serde@4.2.9': - resolution: - { - integrity: sha512-eMNiej0u/snzDvlqRGSN3Vl0ESn3838+nKyVfF2FKNXFbi4SERYT6PR392D39iczngbqqGG0Jl1DlCnp7tBbXQ==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-eMNiej0u/snzDvlqRGSN3Vl0ESn3838+nKyVfF2FKNXFbi4SERYT6PR392D39iczngbqqGG0Jl1DlCnp7tBbXQ==} + engines: {node: '>=18.0.0'} '@smithy/middleware-stack@4.2.7': - resolution: - { - integrity: sha512-bsOT0rJ+HHlZd9crHoS37mt8qRRN/h9jRve1SXUhVbkRzu0QaNYZp1i1jha4n098tsvROjcwfLlfvcFuJSXEsw==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-bsOT0rJ+HHlZd9crHoS37mt8qRRN/h9jRve1SXUhVbkRzu0QaNYZp1i1jha4n098tsvROjcwfLlfvcFuJSXEsw==} + engines: {node: '>=18.0.0'} '@smithy/middleware-stack@4.2.8': - resolution: - { - integrity: sha512-w6LCfOviTYQjBctOKSwy6A8FIkQy7ICvglrZFl6Bw4FmcQ1Z420fUtIhxaUZZshRe0VCq4kvDiPiXrPZAe8oRA==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-w6LCfOviTYQjBctOKSwy6A8FIkQy7ICvglrZFl6Bw4FmcQ1Z420fUtIhxaUZZshRe0VCq4kvDiPiXrPZAe8oRA==} + engines: {node: '>=18.0.0'} '@smithy/node-config-provider@4.3.7': - resolution: - { - integrity: sha512-7r58wq8sdOcrwWe+klL9y3bc4GW1gnlfnFOuL7CXa7UzfhzhxKuzNdtqgzmTV+53lEp9NXh5hY/S4UgjLOzPfw==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-7r58wq8sdOcrwWe+klL9y3bc4GW1gnlfnFOuL7CXa7UzfhzhxKuzNdtqgzmTV+53lEp9NXh5hY/S4UgjLOzPfw==} + engines: {node: '>=18.0.0'} '@smithy/node-config-provider@4.3.8': - resolution: - { - integrity: sha512-aFP1ai4lrbVlWjfpAfRSL8KFcnJQYfTl5QxLJXY32vghJrDuFyPZ6LtUL+JEGYiFRG1PfPLHLoxj107ulncLIg==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-aFP1ai4lrbVlWjfpAfRSL8KFcnJQYfTl5QxLJXY32vghJrDuFyPZ6LtUL+JEGYiFRG1PfPLHLoxj107ulncLIg==} + engines: {node: '>=18.0.0'} '@smithy/node-http-handler@4.4.7': - resolution: - { - integrity: sha512-NELpdmBOO6EpZtWgQiHjoShs1kmweaiNuETUpuup+cmm/xJYjT4eUjfhrXRP4jCOaAsS3c3yPsP3B+K+/fyPCQ==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-NELpdmBOO6EpZtWgQiHjoShs1kmweaiNuETUpuup+cmm/xJYjT4eUjfhrXRP4jCOaAsS3c3yPsP3B+K+/fyPCQ==} + engines: {node: '>=18.0.0'} '@smithy/node-http-handler@4.4.8': - resolution: - { - integrity: sha512-q9u+MSbJVIJ1QmJ4+1u+cERXkrhuILCBDsJUBAW1MPE6sFonbCNaegFuwW9ll8kh5UdyY3jOkoOGlc7BesoLpg==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-q9u+MSbJVIJ1QmJ4+1u+cERXkrhuILCBDsJUBAW1MPE6sFonbCNaegFuwW9ll8kh5UdyY3jOkoOGlc7BesoLpg==} + engines: {node: '>=18.0.0'} '@smithy/property-provider@4.2.7': - resolution: - { - integrity: sha512-jmNYKe9MGGPoSl/D7JDDs1C8b3dC8f/w78LbaVfoTtWy4xAd5dfjaFG9c9PWPihY4ggMQNQSMtzU77CNgAJwmA==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-jmNYKe9MGGPoSl/D7JDDs1C8b3dC8f/w78LbaVfoTtWy4xAd5dfjaFG9c9PWPihY4ggMQNQSMtzU77CNgAJwmA==} + engines: {node: '>=18.0.0'} '@smithy/property-provider@4.2.8': - resolution: - { - integrity: sha512-EtCTbyIveCKeOXDSWSdze3k612yCPq1YbXsbqX3UHhkOSW8zKsM9NOJG5gTIya0vbY2DIaieG8pKo1rITHYL0w==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-EtCTbyIveCKeOXDSWSdze3k612yCPq1YbXsbqX3UHhkOSW8zKsM9NOJG5gTIya0vbY2DIaieG8pKo1rITHYL0w==} + engines: {node: '>=18.0.0'} '@smithy/protocol-http@5.3.7': - resolution: - { - integrity: sha512-1r07pb994I20dD/c2seaZhoCuNYm0rWrvBxhCQ70brNh11M5Ml2ew6qJVo0lclB3jMIXirD4s2XRXRe7QEi0xA==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-1r07pb994I20dD/c2seaZhoCuNYm0rWrvBxhCQ70brNh11M5Ml2ew6qJVo0lclB3jMIXirD4s2XRXRe7QEi0xA==} + engines: {node: '>=18.0.0'} '@smithy/protocol-http@5.3.8': - resolution: - { - integrity: sha512-QNINVDhxpZ5QnP3aviNHQFlRogQZDfYlCkQT+7tJnErPQbDhysondEjhikuANxgMsZrkGeiAxXy4jguEGsDrWQ==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-QNINVDhxpZ5QnP3aviNHQFlRogQZDfYlCkQT+7tJnErPQbDhysondEjhikuANxgMsZrkGeiAxXy4jguEGsDrWQ==} + engines: {node: '>=18.0.0'} '@smithy/querystring-builder@4.2.7': - resolution: - { - integrity: sha512-eKONSywHZxK4tBxe2lXEysh8wbBdvDWiA+RIuaxZSgCMmA0zMgoDpGLJhnyj+c0leOQprVnXOmcB4m+W9Rw7sg==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-eKONSywHZxK4tBxe2lXEysh8wbBdvDWiA+RIuaxZSgCMmA0zMgoDpGLJhnyj+c0leOQprVnXOmcB4m+W9Rw7sg==} + engines: {node: '>=18.0.0'} '@smithy/querystring-builder@4.2.8': - resolution: - { - integrity: sha512-Xr83r31+DrE8CP3MqPgMJl+pQlLLmOfiEUnoyAlGzzJIrEsbKsPy1hqH0qySaQm4oWrCBlUqRt+idEgunKB+iw==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-Xr83r31+DrE8CP3MqPgMJl+pQlLLmOfiEUnoyAlGzzJIrEsbKsPy1hqH0qySaQm4oWrCBlUqRt+idEgunKB+iw==} + engines: {node: '>=18.0.0'} '@smithy/querystring-parser@4.2.7': - resolution: - { - integrity: sha512-3X5ZvzUHmlSTHAXFlswrS6EGt8fMSIxX/c3Rm1Pni3+wYWB6cjGocmRIoqcQF9nU5OgGmL0u7l9m44tSUpfj9w==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-3X5ZvzUHmlSTHAXFlswrS6EGt8fMSIxX/c3Rm1Pni3+wYWB6cjGocmRIoqcQF9nU5OgGmL0u7l9m44tSUpfj9w==} + engines: {node: '>=18.0.0'} '@smithy/querystring-parser@4.2.8': - resolution: - { - integrity: sha512-vUurovluVy50CUlazOiXkPq40KGvGWSdmusa3130MwrR1UNnNgKAlj58wlOe61XSHRpUfIIh6cE0zZ8mzKaDPA==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-vUurovluVy50CUlazOiXkPq40KGvGWSdmusa3130MwrR1UNnNgKAlj58wlOe61XSHRpUfIIh6cE0zZ8mzKaDPA==} + engines: {node: '>=18.0.0'} '@smithy/service-error-classification@4.2.8': - resolution: - { - integrity: sha512-mZ5xddodpJhEt3RkCjbmUQuXUOaPNTkbMGR0bcS8FE0bJDLMZlhmpgrvPNCYglVw5rsYTpSnv19womw9WWXKQQ==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-mZ5xddodpJhEt3RkCjbmUQuXUOaPNTkbMGR0bcS8FE0bJDLMZlhmpgrvPNCYglVw5rsYTpSnv19womw9WWXKQQ==} + engines: {node: '>=18.0.0'} '@smithy/shared-ini-file-loader@4.4.2': - resolution: - { - integrity: sha512-M7iUUff/KwfNunmrgtqBfvZSzh3bmFgv/j/t1Y1dQ+8dNo34br1cqVEqy6v0mYEgi0DkGO7Xig0AnuOaEGVlcg==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-M7iUUff/KwfNunmrgtqBfvZSzh3bmFgv/j/t1Y1dQ+8dNo34br1cqVEqy6v0mYEgi0DkGO7Xig0AnuOaEGVlcg==} + engines: {node: '>=18.0.0'} '@smithy/shared-ini-file-loader@4.4.3': - resolution: - { - integrity: sha512-DfQjxXQnzC5UbCUPeC3Ie8u+rIWZTvuDPAGU/BxzrOGhRvgUanaP68kDZA+jaT3ZI+djOf+4dERGlm9mWfFDrg==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-DfQjxXQnzC5UbCUPeC3Ie8u+rIWZTvuDPAGU/BxzrOGhRvgUanaP68kDZA+jaT3ZI+djOf+4dERGlm9mWfFDrg==} + engines: {node: '>=18.0.0'} '@smithy/signature-v4@5.3.8': - resolution: - { - integrity: sha512-6A4vdGj7qKNRF16UIcO8HhHjKW27thsxYci+5r/uVRkdcBEkOEiY8OMPuydLX4QHSrJqGHPJzPRwwVTqbLZJhg==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-6A4vdGj7qKNRF16UIcO8HhHjKW27thsxYci+5r/uVRkdcBEkOEiY8OMPuydLX4QHSrJqGHPJzPRwwVTqbLZJhg==} + engines: {node: '>=18.0.0'} '@smithy/smithy-client@4.10.2': - resolution: - { - integrity: sha512-D5z79xQWpgrGpAHb054Fn2CCTQZpog7JELbVQ6XAvXs5MNKWf28U9gzSBlJkOyMl9LA1TZEjRtwvGXfP0Sl90g==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-D5z79xQWpgrGpAHb054Fn2CCTQZpog7JELbVQ6XAvXs5MNKWf28U9gzSBlJkOyMl9LA1TZEjRtwvGXfP0Sl90g==} + engines: {node: '>=18.0.0'} '@smithy/smithy-client@4.10.7': - resolution: - { - integrity: sha512-Uznt0I9z3os3Z+8pbXrOSCTXCA6vrjyN7Ub+8l2pRDum44vLv8qw0qGVkJN0/tZBZotaEFHrDPKUoPNueTr5Vg==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-Uznt0I9z3os3Z+8pbXrOSCTXCA6vrjyN7Ub+8l2pRDum44vLv8qw0qGVkJN0/tZBZotaEFHrDPKUoPNueTr5Vg==} + engines: {node: '>=18.0.0'} '@smithy/smithy-client@4.10.9': - resolution: - { - integrity: sha512-Je0EvGXVJ0Vrrr2lsubq43JGRIluJ/hX17aN/W/A0WfE+JpoMdI8kwk2t9F0zTX9232sJDGcoH4zZre6m6f/sg==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-Je0EvGXVJ0Vrrr2lsubq43JGRIluJ/hX17aN/W/A0WfE+JpoMdI8kwk2t9F0zTX9232sJDGcoH4zZre6m6f/sg==} + engines: {node: '>=18.0.0'} '@smithy/types@4.11.0': - resolution: - { - integrity: sha512-mlrmL0DRDVe3mNrjTcVcZEgkFmufITfUAPBEA+AHYiIeYyJebso/He1qLbP3PssRe22KUzLRpQSdBPbXdgZ2VA==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-mlrmL0DRDVe3mNrjTcVcZEgkFmufITfUAPBEA+AHYiIeYyJebso/He1qLbP3PssRe22KUzLRpQSdBPbXdgZ2VA==} + engines: {node: '>=18.0.0'} '@smithy/types@4.12.0': - resolution: - { - integrity: sha512-9YcuJVTOBDjg9LWo23Qp0lTQ3D7fQsQtwle0jVfpbUHy9qBwCEgKuVH4FqFB3VYu0nwdHKiEMA+oXz7oV8X1kw==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-9YcuJVTOBDjg9LWo23Qp0lTQ3D7fQsQtwle0jVfpbUHy9qBwCEgKuVH4FqFB3VYu0nwdHKiEMA+oXz7oV8X1kw==} + engines: {node: '>=18.0.0'} '@smithy/url-parser@4.2.7': - resolution: - { - integrity: sha512-/RLtVsRV4uY3qPWhBDsjwahAtt3x2IsMGnP5W1b2VZIe+qgCqkLxI1UOHDZp1Q1QSOrdOR32MF3Ph2JfWT1VHg==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-/RLtVsRV4uY3qPWhBDsjwahAtt3x2IsMGnP5W1b2VZIe+qgCqkLxI1UOHDZp1Q1QSOrdOR32MF3Ph2JfWT1VHg==} + engines: {node: '>=18.0.0'} '@smithy/url-parser@4.2.8': - resolution: - { - integrity: sha512-NQho9U68TGMEU639YkXnVMV3GEFFULmmaWdlu1E9qzyIePOHsoSnagTGSDv1Zi8DCNN6btxOSdgmy5E/hsZwhA==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-NQho9U68TGMEU639YkXnVMV3GEFFULmmaWdlu1E9qzyIePOHsoSnagTGSDv1Zi8DCNN6btxOSdgmy5E/hsZwhA==} + engines: {node: '>=18.0.0'} '@smithy/util-base64@4.3.0': - resolution: - { - integrity: sha512-GkXZ59JfyxsIwNTWFnjmFEI8kZpRNIBfxKjv09+nkAWPt/4aGaEWMM04m4sxgNVWkbt2MdSvE3KF/PfX4nFedQ==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-GkXZ59JfyxsIwNTWFnjmFEI8kZpRNIBfxKjv09+nkAWPt/4aGaEWMM04m4sxgNVWkbt2MdSvE3KF/PfX4nFedQ==} + engines: {node: '>=18.0.0'} '@smithy/util-body-length-browser@4.2.0': - resolution: - { - integrity: sha512-Fkoh/I76szMKJnBXWPdFkQJl2r9SjPt3cMzLdOB6eJ4Pnpas8hVoWPYemX/peO0yrrvldgCUVJqOAjUrOLjbxg==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-Fkoh/I76szMKJnBXWPdFkQJl2r9SjPt3cMzLdOB6eJ4Pnpas8hVoWPYemX/peO0yrrvldgCUVJqOAjUrOLjbxg==} + engines: {node: '>=18.0.0'} '@smithy/util-body-length-node@4.2.1': - resolution: - { - integrity: sha512-h53dz/pISVrVrfxV1iqXlx5pRg3V2YWFcSQyPyXZRrZoZj4R4DeWRDo1a7dd3CPTcFi3kE+98tuNyD2axyZReA==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-h53dz/pISVrVrfxV1iqXlx5pRg3V2YWFcSQyPyXZRrZoZj4R4DeWRDo1a7dd3CPTcFi3kE+98tuNyD2axyZReA==} + engines: {node: '>=18.0.0'} '@smithy/util-buffer-from@2.2.0': - resolution: - { - integrity: sha512-IJdWBbTcMQ6DA0gdNhh/BwrLkDR+ADW5Kr1aZmd4k3DIF6ezMV4R2NIAmT08wQJ3yUK82thHWmC/TnK/wpMMIA==, - } - engines: { node: '>=14.0.0' } + resolution: {integrity: sha512-IJdWBbTcMQ6DA0gdNhh/BwrLkDR+ADW5Kr1aZmd4k3DIF6ezMV4R2NIAmT08wQJ3yUK82thHWmC/TnK/wpMMIA==} + engines: {node: '>=14.0.0'} '@smithy/util-buffer-from@4.2.0': - resolution: - { - integrity: sha512-kAY9hTKulTNevM2nlRtxAG2FQ3B2OR6QIrPY3zE5LqJy1oxzmgBGsHLWTcNhWXKchgA0WHW+mZkQrng/pgcCew==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-kAY9hTKulTNevM2nlRtxAG2FQ3B2OR6QIrPY3zE5LqJy1oxzmgBGsHLWTcNhWXKchgA0WHW+mZkQrng/pgcCew==} + engines: {node: '>=18.0.0'} '@smithy/util-config-provider@4.2.0': - resolution: - { - integrity: sha512-YEjpl6XJ36FTKmD+kRJJWYvrHeUvm5ykaUS5xK+6oXffQPHeEM4/nXlZPe+Wu0lsgRUcNZiliYNh/y7q9c2y6Q==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-YEjpl6XJ36FTKmD+kRJJWYvrHeUvm5ykaUS5xK+6oXffQPHeEM4/nXlZPe+Wu0lsgRUcNZiliYNh/y7q9c2y6Q==} + engines: {node: '>=18.0.0'} '@smithy/util-defaults-mode-browser@4.3.21': - resolution: - { - integrity: sha512-DtmVJarzqtjghtGjCw/PFJolcJkP7GkZgy+hWTAN3YLXNH+IC82uMoMhFoC3ZtIz5mOgCm5+hOGi1wfhVYgrxw==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-DtmVJarzqtjghtGjCw/PFJolcJkP7GkZgy+hWTAN3YLXNH+IC82uMoMhFoC3ZtIz5mOgCm5+hOGi1wfhVYgrxw==} + engines: {node: '>=18.0.0'} '@smithy/util-defaults-mode-browser@4.3.23': - resolution: - { - integrity: sha512-mMg+r/qDfjfF/0psMbV4zd7F/i+rpyp7Hjh0Wry7eY15UnzTEId+xmQTGDU8IdZtDfbGQxuWNfgBZKBj+WuYbA==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-mMg+r/qDfjfF/0psMbV4zd7F/i+rpyp7Hjh0Wry7eY15UnzTEId+xmQTGDU8IdZtDfbGQxuWNfgBZKBj+WuYbA==} + engines: {node: '>=18.0.0'} '@smithy/util-defaults-mode-node@4.2.24': - resolution: - { - integrity: sha512-JelBDKPAVswVY666rezBvY6b0nF/v9TXjUbNwDNAyme7qqKYEX687wJv0uze8lBIZVbg30wlWnlYfVSjjpKYFA==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-JelBDKPAVswVY666rezBvY6b0nF/v9TXjUbNwDNAyme7qqKYEX687wJv0uze8lBIZVbg30wlWnlYfVSjjpKYFA==} + engines: {node: '>=18.0.0'} '@smithy/util-defaults-mode-node@4.2.26': - resolution: - { - integrity: sha512-EQqe/WkbCinah0h1lMWh9ICl0Ob4lyl20/10WTB35SC9vDQfD8zWsOT+x2FIOXKAoZQ8z/y0EFMoodbcqWJY/w==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-EQqe/WkbCinah0h1lMWh9ICl0Ob4lyl20/10WTB35SC9vDQfD8zWsOT+x2FIOXKAoZQ8z/y0EFMoodbcqWJY/w==} + engines: {node: '>=18.0.0'} '@smithy/util-endpoints@3.2.8': - resolution: - { - integrity: sha512-8JaVTn3pBDkhZgHQ8R0epwWt+BqPSLCjdjXXusK1onwJlRuN69fbvSK66aIKKO7SwVFM6x2J2ox5X8pOaWcUEw==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-8JaVTn3pBDkhZgHQ8R0epwWt+BqPSLCjdjXXusK1onwJlRuN69fbvSK66aIKKO7SwVFM6x2J2ox5X8pOaWcUEw==} + engines: {node: '>=18.0.0'} '@smithy/util-hex-encoding@4.2.0': - resolution: - { - integrity: sha512-CCQBwJIvXMLKxVbO88IukazJD9a4kQ9ZN7/UMGBjBcJYvatpWk+9g870El4cB8/EJxfe+k+y0GmR9CAzkF+Nbw==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-CCQBwJIvXMLKxVbO88IukazJD9a4kQ9ZN7/UMGBjBcJYvatpWk+9g870El4cB8/EJxfe+k+y0GmR9CAzkF+Nbw==} + engines: {node: '>=18.0.0'} '@smithy/util-middleware@4.2.7': - resolution: - { - integrity: sha512-i1IkpbOae6NvIKsEeLLM9/2q4X+M90KV3oCFgWQI4q0Qz+yUZvsr+gZPdAEAtFhWQhAHpTsJO8DRJPuwVyln+w==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-i1IkpbOae6NvIKsEeLLM9/2q4X+M90KV3oCFgWQI4q0Qz+yUZvsr+gZPdAEAtFhWQhAHpTsJO8DRJPuwVyln+w==} + engines: {node: '>=18.0.0'} '@smithy/util-middleware@4.2.8': - resolution: - { - integrity: sha512-PMqfeJxLcNPMDgvPbbLl/2Vpin+luxqTGPpW3NAQVLbRrFRzTa4rNAASYeIGjRV9Ytuhzny39SpyU04EQreF+A==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-PMqfeJxLcNPMDgvPbbLl/2Vpin+luxqTGPpW3NAQVLbRrFRzTa4rNAASYeIGjRV9Ytuhzny39SpyU04EQreF+A==} + engines: {node: '>=18.0.0'} '@smithy/util-retry@4.2.8': - resolution: - { - integrity: sha512-CfJqwvoRY0kTGe5AkQokpURNCT1u/MkRzMTASWMPPo2hNSnKtF1D45dQl3DE2LKLr4m+PW9mCeBMJr5mCAVThg==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-CfJqwvoRY0kTGe5AkQokpURNCT1u/MkRzMTASWMPPo2hNSnKtF1D45dQl3DE2LKLr4m+PW9mCeBMJr5mCAVThg==} + engines: {node: '>=18.0.0'} '@smithy/util-stream@4.5.10': - resolution: - { - integrity: sha512-jbqemy51UFSZSp2y0ZmRfckmrzuKww95zT9BYMmuJ8v3altGcqjwoV1tzpOwuHaKrwQrCjIzOib499ymr2f98g==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-jbqemy51UFSZSp2y0ZmRfckmrzuKww95zT9BYMmuJ8v3altGcqjwoV1tzpOwuHaKrwQrCjIzOib499ymr2f98g==} + engines: {node: '>=18.0.0'} '@smithy/util-stream@4.5.8': - resolution: - { - integrity: sha512-ZnnBhTapjM0YPGUSmOs0Mcg/Gg87k503qG4zU2v/+Js2Gu+daKOJMeqcQns8ajepY8tgzzfYxl6kQyZKml6O2w==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-ZnnBhTapjM0YPGUSmOs0Mcg/Gg87k503qG4zU2v/+Js2Gu+daKOJMeqcQns8ajepY8tgzzfYxl6kQyZKml6O2w==} + engines: {node: '>=18.0.0'} '@smithy/util-uri-escape@4.2.0': - resolution: - { - integrity: sha512-igZpCKV9+E/Mzrpq6YacdTQ0qTiLm85gD6N/IrmyDvQFA4UnU3d5g3m8tMT/6zG/vVkWSU+VxeUyGonL62DuxA==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-igZpCKV9+E/Mzrpq6YacdTQ0qTiLm85gD6N/IrmyDvQFA4UnU3d5g3m8tMT/6zG/vVkWSU+VxeUyGonL62DuxA==} + engines: {node: '>=18.0.0'} '@smithy/util-utf8@2.3.0': - resolution: - { - integrity: sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A==, - } - engines: { node: '>=14.0.0' } + resolution: {integrity: sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A==} + engines: {node: '>=14.0.0'} '@smithy/util-utf8@4.2.0': - resolution: - { - integrity: sha512-zBPfuzoI8xyBtR2P6WQj63Rz8i3AmfAaJLuNG8dWsfvPe8lO4aCPYLn879mEgHndZH1zQ2oXmG8O1GGzzaoZiw==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-zBPfuzoI8xyBtR2P6WQj63Rz8i3AmfAaJLuNG8dWsfvPe8lO4aCPYLn879mEgHndZH1zQ2oXmG8O1GGzzaoZiw==} + engines: {node: '>=18.0.0'} '@smithy/util-waiter@4.2.8': - resolution: - { - integrity: sha512-n+lahlMWk+aejGuax7DPWtqav8HYnWxQwR+LCG2BgCUmaGcTe9qZCFsmw8TMg9iG75HOwhrJCX9TCJRLH+Yzqg==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-n+lahlMWk+aejGuax7DPWtqav8HYnWxQwR+LCG2BgCUmaGcTe9qZCFsmw8TMg9iG75HOwhrJCX9TCJRLH+Yzqg==} + engines: {node: '>=18.0.0'} '@smithy/uuid@1.1.0': - resolution: - { - integrity: sha512-4aUIteuyxtBUhVdiQqcDhKFitwfd9hqoSDYY2KRXiWtgoWJ9Bmise+KfEPDiVHWeJepvF8xJO9/9+WDIciMFFw==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-4aUIteuyxtBUhVdiQqcDhKFitwfd9hqoSDYY2KRXiWtgoWJ9Bmise+KfEPDiVHWeJepvF8xJO9/9+WDIciMFFw==} + engines: {node: '>=18.0.0'} '@styled-system/background@5.1.2': - resolution: - { - integrity: sha512-jtwH2C/U6ssuGSvwTN3ri/IyjdHb8W9X/g8Y0JLcrH02G+BW3OS8kZdHphF1/YyRklnrKrBT2ngwGUK6aqqV3A==, - } + resolution: {integrity: sha512-jtwH2C/U6ssuGSvwTN3ri/IyjdHb8W9X/g8Y0JLcrH02G+BW3OS8kZdHphF1/YyRklnrKrBT2ngwGUK6aqqV3A==} '@styled-system/border@5.1.5': - resolution: - { - integrity: sha512-JvddhNrnhGigtzWRCVuAHepniyVi6hBlimxWDVAdcTuk7aRn9BYJUwfHslURtwYFsF5FoEs8Zmr1oZq2M1AP0A==, - } + resolution: {integrity: sha512-JvddhNrnhGigtzWRCVuAHepniyVi6hBlimxWDVAdcTuk7aRn9BYJUwfHslURtwYFsF5FoEs8Zmr1oZq2M1AP0A==} '@styled-system/color@5.1.2': - resolution: - { - integrity: sha512-1kCkeKDZkt4GYkuFNKc7vJQMcOmTl3bJY3YBUs7fCNM6mMYJeT1pViQ2LwBSBJytj3AB0o4IdLBoepgSgGl5MA==, - } + resolution: {integrity: sha512-1kCkeKDZkt4GYkuFNKc7vJQMcOmTl3bJY3YBUs7fCNM6mMYJeT1pViQ2LwBSBJytj3AB0o4IdLBoepgSgGl5MA==} '@styled-system/core@5.1.2': - resolution: - { - integrity: sha512-XclBDdNIy7OPOsN4HBsawG2eiWfCcuFt6gxKn1x4QfMIgeO6TOlA2pZZ5GWZtIhCUqEPTgIBta6JXsGyCkLBYw==, - } + resolution: {integrity: sha512-XclBDdNIy7OPOsN4HBsawG2eiWfCcuFt6gxKn1x4QfMIgeO6TOlA2pZZ5GWZtIhCUqEPTgIBta6JXsGyCkLBYw==} '@styled-system/css@5.1.5': - resolution: - { - integrity: sha512-XkORZdS5kypzcBotAMPBoeckDs9aSZVkvrAlq5K3xP8IMAUek+x2O4NtwoSgkYkWWzVBu6DGdFZLR790QWGG+A==, - } + resolution: {integrity: sha512-XkORZdS5kypzcBotAMPBoeckDs9aSZVkvrAlq5K3xP8IMAUek+x2O4NtwoSgkYkWWzVBu6DGdFZLR790QWGG+A==} '@styled-system/flexbox@5.1.2': - resolution: - { - integrity: sha512-6hHV52+eUk654Y1J2v77B8iLeBNtc+SA3R4necsu2VVinSD7+XY5PCCEzBFaWs42dtOEDIa2lMrgL0YBC01mDQ==, - } + resolution: {integrity: sha512-6hHV52+eUk654Y1J2v77B8iLeBNtc+SA3R4necsu2VVinSD7+XY5PCCEzBFaWs42dtOEDIa2lMrgL0YBC01mDQ==} '@styled-system/grid@5.1.2': - resolution: - { - integrity: sha512-K3YiV1KyHHzgdNuNlaw8oW2ktMuGga99o1e/NAfTEi5Zsa7JXxzwEnVSDSBdJC+z6R8WYTCYRQC6bkVFcvdTeg==, - } + resolution: {integrity: sha512-K3YiV1KyHHzgdNuNlaw8oW2ktMuGga99o1e/NAfTEi5Zsa7JXxzwEnVSDSBdJC+z6R8WYTCYRQC6bkVFcvdTeg==} '@styled-system/layout@5.1.2': - resolution: - { - integrity: sha512-wUhkMBqSeacPFhoE9S6UF3fsMEKFv91gF4AdDWp0Aym1yeMPpqz9l9qS/6vjSsDPF7zOb5cOKC3tcKKOMuDCPw==, - } + resolution: {integrity: sha512-wUhkMBqSeacPFhoE9S6UF3fsMEKFv91gF4AdDWp0Aym1yeMPpqz9l9qS/6vjSsDPF7zOb5cOKC3tcKKOMuDCPw==} '@styled-system/position@5.1.2': - resolution: - { - integrity: sha512-60IZfMXEOOZe3l1mCu6sj/2NAyUmES2kR9Kzp7s2D3P4qKsZWxD1Se1+wJvevb+1TP+ZMkGPEYYXRyU8M1aF5A==, - } + resolution: {integrity: sha512-60IZfMXEOOZe3l1mCu6sj/2NAyUmES2kR9Kzp7s2D3P4qKsZWxD1Se1+wJvevb+1TP+ZMkGPEYYXRyU8M1aF5A==} '@styled-system/shadow@5.1.2': - resolution: - { - integrity: sha512-wqniqYb7XuZM7K7C0d1Euxc4eGtqEe/lvM0WjuAFsQVImiq6KGT7s7is+0bNI8O4Dwg27jyu4Lfqo/oIQXNzAg==, - } + resolution: {integrity: sha512-wqniqYb7XuZM7K7C0d1Euxc4eGtqEe/lvM0WjuAFsQVImiq6KGT7s7is+0bNI8O4Dwg27jyu4Lfqo/oIQXNzAg==} '@styled-system/space@5.1.2': - resolution: - { - integrity: sha512-+zzYpR8uvfhcAbaPXhH8QgDAV//flxqxSjHiS9cDFQQUSznXMQmxJegbhcdEF7/eNnJgHeIXv1jmny78kipgBA==, - } + resolution: {integrity: sha512-+zzYpR8uvfhcAbaPXhH8QgDAV//flxqxSjHiS9cDFQQUSznXMQmxJegbhcdEF7/eNnJgHeIXv1jmny78kipgBA==} '@styled-system/typography@5.1.2': - resolution: - { - integrity: sha512-BxbVUnN8N7hJ4aaPOd7wEsudeT7CxarR+2hns8XCX1zp0DFfbWw4xYa/olA0oQaqx7F1hzDg+eRaGzAJbF+jOg==, - } + resolution: {integrity: sha512-BxbVUnN8N7hJ4aaPOd7wEsudeT7CxarR+2hns8XCX1zp0DFfbWw4xYa/olA0oQaqx7F1hzDg+eRaGzAJbF+jOg==} '@styled-system/variant@5.1.5': - resolution: - { - integrity: sha512-Yn8hXAFoWIro8+Q5J8YJd/mP85Teiut3fsGVR9CAxwgNfIAiqlYxsk5iHU7VHJks/0KjL4ATSjmbtCDC/4l1qw==, - } + resolution: {integrity: sha512-Yn8hXAFoWIro8+Q5J8YJd/mP85Teiut3fsGVR9CAxwgNfIAiqlYxsk5iHU7VHJks/0KjL4ATSjmbtCDC/4l1qw==} '@swc/helpers@0.5.18': - resolution: - { - integrity: sha512-TXTnIcNJQEKwThMMqBXsZ4VGAza6bvN4pa41Rkqoio6QBKMvo+5lexeTMScGCIxtzgQJzElcvIltani+adC5PQ==, - } + resolution: {integrity: sha512-TXTnIcNJQEKwThMMqBXsZ4VGAza6bvN4pa41Rkqoio6QBKMvo+5lexeTMScGCIxtzgQJzElcvIltani+adC5PQ==} '@tanstack/query-core@5.90.19': - resolution: - { - integrity: sha512-GLW5sjPVIvH491VV1ufddnfldyVB+teCnpPIvweEfkpRx7CfUmUGhoh9cdcUKBh/KwVxk22aNEDxeTsvmyB/WA==, - } + resolution: {integrity: sha512-GLW5sjPVIvH491VV1ufddnfldyVB+teCnpPIvweEfkpRx7CfUmUGhoh9cdcUKBh/KwVxk22aNEDxeTsvmyB/WA==} '@tanstack/query-core@5.90.20': - resolution: - { - integrity: sha512-OMD2HLpNouXEfZJWcKeVKUgQ5n+n3A2JFmBaScpNDUqSrQSjiveC7dKMe53uJUg1nDG16ttFPz2xfilz6i2uVg==, - } + resolution: {integrity: sha512-OMD2HLpNouXEfZJWcKeVKUgQ5n+n3A2JFmBaScpNDUqSrQSjiveC7dKMe53uJUg1nDG16ttFPz2xfilz6i2uVg==} '@tanstack/react-query@5.90.19': - resolution: - { - integrity: sha512-qTZRZ4QyTzQc+M0IzrbKHxSeISUmRB3RPGmao5bT+sI6ayxSRhn0FXEnT5Hg3as8SBFcRosrXXRFB+yAcxVxJQ==, - } + resolution: {integrity: sha512-qTZRZ4QyTzQc+M0IzrbKHxSeISUmRB3RPGmao5bT+sI6ayxSRhn0FXEnT5Hg3as8SBFcRosrXXRFB+yAcxVxJQ==} peerDependencies: react: ^18 || ^19 '@tanstack/react-query@5.90.20': - resolution: - { - integrity: sha512-vXBxa+qeyveVO7OA0jX1z+DeyCA4JKnThKv411jd5SORpBKgkcVnYKCiBgECvADvniBX7tobwBmg01qq9JmMJw==, - } + resolution: {integrity: sha512-vXBxa+qeyveVO7OA0jX1z+DeyCA4JKnThKv411jd5SORpBKgkcVnYKCiBgECvADvniBX7tobwBmg01qq9JmMJw==} peerDependencies: react: ^18 || ^19 '@tanstack/react-virtual@3.13.18': - resolution: - { - integrity: sha512-dZkhyfahpvlaV0rIKnvQiVoWPyURppl6w4m9IwMDpuIjcJ1sD9YGWrt0wISvgU7ewACXx2Ct46WPgI6qAD4v6A==, - } + resolution: {integrity: sha512-dZkhyfahpvlaV0rIKnvQiVoWPyURppl6w4m9IwMDpuIjcJ1sD9YGWrt0wISvgU7ewACXx2Ct46WPgI6qAD4v6A==} peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 '@tanstack/virtual-core@3.13.18': - resolution: - { - integrity: sha512-Mx86Hqu1k39icq2Zusq+Ey2J6dDWTjDvEv43PJtRCoEYTLyfaPnxIQ6iy7YAOK0NV/qOEmZQ/uCufrppZxTgcg==, - } + resolution: {integrity: sha512-Mx86Hqu1k39icq2Zusq+Ey2J6dDWTjDvEv43PJtRCoEYTLyfaPnxIQ6iy7YAOK0NV/qOEmZQ/uCufrppZxTgcg==} '@testing-library/dom@7.31.2': - resolution: - { - integrity: sha512-3UqjCpey6HiTZT92vODYLPxTBWlM8ZOOjr3LX5F37/VRipW2M1kX6I/Cm4VXzteZqfGfagg8yXywpcOgQBlNsQ==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-3UqjCpey6HiTZT92vODYLPxTBWlM8ZOOjr3LX5F37/VRipW2M1kX6I/Cm4VXzteZqfGfagg8yXywpcOgQBlNsQ==} + engines: {node: '>=10'} '@testing-library/jest-dom@5.11.10': - resolution: - { - integrity: sha512-FuKiq5xuk44Fqm0000Z9w0hjOdwZRNzgx7xGGxQYepWFZy+OYUMOT/wPI4nLYXCaVltNVpU1W/qmD88wLWDsqQ==, - } - engines: { node: '>=8', npm: '>=6', yarn: '>=1' } + resolution: {integrity: sha512-FuKiq5xuk44Fqm0000Z9w0hjOdwZRNzgx7xGGxQYepWFZy+OYUMOT/wPI4nLYXCaVltNVpU1W/qmD88wLWDsqQ==} + engines: {node: '>=8', npm: '>=6', yarn: '>=1'} '@testing-library/react@11.2.5': - resolution: - { - integrity: sha512-yEx7oIa/UWLe2F2dqK0FtMF9sJWNXD+2PPtp39BvE0Kh9MJ9Kl0HrZAgEuhUJR+Lx8Di6Xz+rKwSdEPY2UV8ZQ==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-yEx7oIa/UWLe2F2dqK0FtMF9sJWNXD+2PPtp39BvE0Kh9MJ9Kl0HrZAgEuhUJR+Lx8Di6Xz+rKwSdEPY2UV8ZQ==} + engines: {node: '>=10'} peerDependencies: react: '*' react-dom: '*' '@tsconfig/node10@1.0.12': - resolution: - { - integrity: sha512-UCYBaeFvM11aU2y3YPZ//O5Rhj+xKyzy7mvcIoAjASbigy8mHMryP5cK7dgjlz2hWxh1g5pLw084E0a/wlUSFQ==, - } + resolution: {integrity: sha512-UCYBaeFvM11aU2y3YPZ//O5Rhj+xKyzy7mvcIoAjASbigy8mHMryP5cK7dgjlz2hWxh1g5pLw084E0a/wlUSFQ==} '@tsconfig/node12@1.0.11': - resolution: - { - integrity: sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==, - } + resolution: {integrity: sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==} '@tsconfig/node14@1.0.3': - resolution: - { - integrity: sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==, - } + resolution: {integrity: sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==} '@tsconfig/node16@1.0.4': - resolution: - { - integrity: sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==, - } + resolution: {integrity: sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==} '@tsconfig/node20@20.1.9': - resolution: - { - integrity: sha512-IjlTv1RsvnPtUcjTqtVsZExKVq+KQx4g5pCP5tI7rAs6Xesl2qFwSz/tPDBC4JajkL/MlezBu3gPUwqRHl+RIg==, - } + resolution: {integrity: sha512-IjlTv1RsvnPtUcjTqtVsZExKVq+KQx4g5pCP5tI7rAs6Xesl2qFwSz/tPDBC4JajkL/MlezBu3gPUwqRHl+RIg==} '@tufjs/canonical-json@2.0.0': - resolution: - { - integrity: sha512-yVtV8zsdo8qFHe+/3kw81dSLyF7D576A5cCFCi4X7B39tWT7SekaEFUnvnWJHz+9qO7qJTah1JbrDjWKqFtdWA==, - } - engines: { node: ^16.14.0 || >=18.0.0 } + resolution: {integrity: sha512-yVtV8zsdo8qFHe+/3kw81dSLyF7D576A5cCFCi4X7B39tWT7SekaEFUnvnWJHz+9qO7qJTah1JbrDjWKqFtdWA==} + engines: {node: ^16.14.0 || >=18.0.0} '@tufjs/models@2.0.1': - resolution: - { - integrity: sha512-92F7/SFyufn4DXsha9+QfKnN03JGqtMFMXgSHbZOo8JG59WkTni7UzAouNQDf7AuP9OAMxVOPQcqG3sB7w+kkg==, - } - engines: { node: ^16.14.0 || >=18.0.0 } + resolution: {integrity: sha512-92F7/SFyufn4DXsha9+QfKnN03JGqtMFMXgSHbZOo8JG59WkTni7UzAouNQDf7AuP9OAMxVOPQcqG3sB7w+kkg==} + engines: {node: ^16.14.0 || >=18.0.0} '@tybys/wasm-util@0.10.1': - resolution: - { - integrity: sha512-9tTaPJLSiejZKx+Bmog4uSubteqTvFrVrURwkmHixBo0G4seD0zUxp98E1DzUBJxLQ3NPwXrGKDiVjwx/DpPsg==, - } + resolution: {integrity: sha512-9tTaPJLSiejZKx+Bmog4uSubteqTvFrVrURwkmHixBo0G4seD0zUxp98E1DzUBJxLQ3NPwXrGKDiVjwx/DpPsg==} '@tybys/wasm-util@0.9.0': - resolution: - { - integrity: sha512-6+7nlbMVX/PVDCwaIQ8nTOPveOcFLSt8GcXdx8hD0bt39uWxYT88uXzqTd4fTvqta7oeUJqudepapKNt2DYJFw==, - } + resolution: {integrity: sha512-6+7nlbMVX/PVDCwaIQ8nTOPveOcFLSt8GcXdx8hD0bt39uWxYT88uXzqTd4fTvqta7oeUJqudepapKNt2DYJFw==} '@types/accepts@1.3.7': - resolution: - { - integrity: sha512-Pay9fq2lM2wXPWbteBsRAGiWH2hig4ZE2asK+mm7kUzlxRTfL961rj89I6zV/E3PcIkDqyuBEcMxFT7rccugeQ==, - } + resolution: {integrity: sha512-Pay9fq2lM2wXPWbteBsRAGiWH2hig4ZE2asK+mm7kUzlxRTfL961rj89I6zV/E3PcIkDqyuBEcMxFT7rccugeQ==} '@types/aria-query@4.2.2': - resolution: - { - integrity: sha512-HnYpAE1Y6kRyKM/XkEuiRQhTHvkzMBurTHnpFLYLBGPIylZNPs9jJcuOOYWxPLJCSEtmZT0Y8rHDokKN7rRTig==, - } + resolution: {integrity: sha512-HnYpAE1Y6kRyKM/XkEuiRQhTHvkzMBurTHnpFLYLBGPIylZNPs9jJcuOOYWxPLJCSEtmZT0Y8rHDokKN7rRTig==} '@types/babel__core@7.20.5': - resolution: - { - integrity: sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==, - } + resolution: {integrity: sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==} '@types/babel__generator@7.27.0': - resolution: - { - integrity: sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==, - } + resolution: {integrity: sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==} '@types/babel__template@7.4.4': - resolution: - { - integrity: sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==, - } + resolution: {integrity: sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==} '@types/babel__traverse@7.28.0': - resolution: - { - integrity: sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==, - } + resolution: {integrity: sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==} '@types/body-parser@1.19.6': - resolution: - { - integrity: sha512-HLFeCYgz89uk22N5Qg3dvGvsv46B8GLvKKo1zKG4NybA8U2DiEO3w9lqGg29t/tfLRJpJ6iQxnVw4OnB7MoM9g==, - } + resolution: {integrity: sha512-HLFeCYgz89uk22N5Qg3dvGvsv46B8GLvKKo1zKG4NybA8U2DiEO3w9lqGg29t/tfLRJpJ6iQxnVw4OnB7MoM9g==} '@types/connect@3.4.38': - resolution: - { - integrity: sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==, - } + resolution: {integrity: sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==} '@types/content-disposition@0.5.9': - resolution: - { - integrity: sha512-8uYXI3Gw35MhiVYhG3s295oihrxRyytcRHjSjqnqZVDDy/xcGBRny7+Xj1Wgfhv5QzRtN2hB2dVRBUX9XW3UcQ==, - } + resolution: {integrity: sha512-8uYXI3Gw35MhiVYhG3s295oihrxRyytcRHjSjqnqZVDDy/xcGBRny7+Xj1Wgfhv5QzRtN2hB2dVRBUX9XW3UcQ==} '@types/cookiejar@2.1.5': - resolution: - { - integrity: sha512-he+DHOWReW0nghN24E1WUqM0efK4kI9oTqDm6XmK8ZPe2djZ90BSNdGnIyCLzCPw7/pogPlGbzI2wHGGmi4O/Q==, - } + resolution: {integrity: sha512-he+DHOWReW0nghN24E1WUqM0efK4kI9oTqDm6XmK8ZPe2djZ90BSNdGnIyCLzCPw7/pogPlGbzI2wHGGmi4O/Q==} '@types/cookies@0.9.2': - resolution: - { - integrity: sha512-1AvkDdZM2dbyFybL4fxpuNCaWyv//0AwsuUk2DWeXyM1/5ZKm6W3z6mQi24RZ4l2ucY+bkSHzbDVpySqPGuV8A==, - } + resolution: {integrity: sha512-1AvkDdZM2dbyFybL4fxpuNCaWyv//0AwsuUk2DWeXyM1/5ZKm6W3z6mQi24RZ4l2ucY+bkSHzbDVpySqPGuV8A==} '@types/cors@2.8.19': - resolution: - { - integrity: sha512-mFNylyeyqN93lfe/9CSxOGREz8cpzAhH+E93xJ4xWQf62V8sQ/24reV2nyzUWM6H6Xji+GGHpkbLe7pVoUEskg==, - } + resolution: {integrity: sha512-mFNylyeyqN93lfe/9CSxOGREz8cpzAhH+E93xJ4xWQf62V8sQ/24reV2nyzUWM6H6Xji+GGHpkbLe7pVoUEskg==} '@types/estree@1.0.8': - resolution: - { - integrity: sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==, - } + resolution: {integrity: sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==} '@types/express-serve-static-core@5.1.0': - resolution: - { - integrity: sha512-jnHMsrd0Mwa9Cf4IdOzbz543y4XJepXrbia2T4b6+spXC2We3t1y6K44D3mR8XMFSXMCf3/l7rCgddfx7UNVBA==, - } + resolution: {integrity: sha512-jnHMsrd0Mwa9Cf4IdOzbz543y4XJepXrbia2T4b6+spXC2We3t1y6K44D3mR8XMFSXMCf3/l7rCgddfx7UNVBA==} '@types/express@5.0.6': - resolution: - { - integrity: sha512-sKYVuV7Sv9fbPIt/442koC7+IIwK5olP1KWeD88e/idgoJqDm3JV/YUiPwkoKK92ylff2MGxSz1CSjsXelx0YA==, - } + resolution: {integrity: sha512-sKYVuV7Sv9fbPIt/442koC7+IIwK5olP1KWeD88e/idgoJqDm3JV/YUiPwkoKK92ylff2MGxSz1CSjsXelx0YA==} '@types/geojson@7946.0.16': - resolution: - { - integrity: sha512-6C8nqWur3j98U6+lXDfTUWIfgvZU+EumvpHKcYjujKH7woYyLj2sUmff0tRhrqM7BohUw7Pz3ZB1jj2gW9Fvmg==, - } + resolution: {integrity: sha512-6C8nqWur3j98U6+lXDfTUWIfgvZU+EumvpHKcYjujKH7woYyLj2sUmff0tRhrqM7BohUw7Pz3ZB1jj2gW9Fvmg==} '@types/graphql-upload@8.0.12': - resolution: - { - integrity: sha512-M0ZPZqNUzKNB16q5woEzgG/Q8DjICV80K7JvDSRnDmDFfrRdfFX/n6PbmqAN7gCzECcHVnw1gk6N4Cg0FwxCqA==, - } + resolution: {integrity: sha512-M0ZPZqNUzKNB16q5woEzgG/Q8DjICV80K7JvDSRnDmDFfrRdfFX/n6PbmqAN7gCzECcHVnw1gk6N4Cg0FwxCqA==} '@types/http-assert@1.5.6': - resolution: - { - integrity: sha512-TTEwmtjgVbYAzZYWyeHPrrtWnfVkm8tQkP8P21uQifPgMRgjrow3XDEYqucuC8SKZJT7pUnhU/JymvjggxO9vw==, - } + resolution: {integrity: sha512-TTEwmtjgVbYAzZYWyeHPrrtWnfVkm8tQkP8P21uQifPgMRgjrow3XDEYqucuC8SKZJT7pUnhU/JymvjggxO9vw==} '@types/http-errors@2.0.5': - resolution: - { - integrity: sha512-r8Tayk8HJnX0FztbZN7oVqGccWgw98T/0neJphO91KkmOzug1KkofZURD4UaD5uH8AqcFLfdPErnBod0u71/qg==, - } + resolution: {integrity: sha512-r8Tayk8HJnX0FztbZN7oVqGccWgw98T/0neJphO91KkmOzug1KkofZURD4UaD5uH8AqcFLfdPErnBod0u71/qg==} '@types/interpret@1.1.4': - resolution: - { - integrity: sha512-r+tPKWHYqaxJOYA3Eik0mMi+SEREqOXLmsooRFmc6GHv7nWUDixFtKN+cegvsPlDcEZd9wxsdp041v2imQuvag==, - } + resolution: {integrity: sha512-r+tPKWHYqaxJOYA3Eik0mMi+SEREqOXLmsooRFmc6GHv7nWUDixFtKN+cegvsPlDcEZd9wxsdp041v2imQuvag==} '@types/istanbul-lib-coverage@2.0.6': - resolution: - { - integrity: sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==, - } + resolution: {integrity: sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==} '@types/istanbul-lib-report@3.0.3': - resolution: - { - integrity: sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==, - } + resolution: {integrity: sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==} '@types/istanbul-reports@3.0.4': - resolution: - { - integrity: sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==, - } + resolution: {integrity: sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==} '@types/jest-in-case@1.0.9': - resolution: - { - integrity: sha512-tapHpzWGjCC/hxYJyzbJ/5ZV6rA2153Sve5lGJUAIA1Jzrphfp27TznAWfGeXf+d8TLN7zMujaC0UwNQwSJaQg==, - } + resolution: {integrity: sha512-tapHpzWGjCC/hxYJyzbJ/5ZV6rA2153Sve5lGJUAIA1Jzrphfp27TznAWfGeXf+d8TLN7zMujaC0UwNQwSJaQg==} '@types/jest@30.0.0': - resolution: - { - integrity: sha512-XTYugzhuwqWjws0CVz8QpM36+T+Dz5mTEBKhNs/esGLnCIlGdRy+Dq78NRjd7ls7r8BC8ZRMOrKlkO1hU0JOwA==, - } + resolution: {integrity: sha512-XTYugzhuwqWjws0CVz8QpM36+T+Dz5mTEBKhNs/esGLnCIlGdRy+Dq78NRjd7ls7r8BC8ZRMOrKlkO1hU0JOwA==} '@types/js-yaml@4.0.9': - resolution: - { - integrity: sha512-k4MGaQl5TGo/iipqb2UDG2UwjXziSWkh0uysQelTlJpX1qGlpUZYm8PnO4DxG1qBomtJUdYJ6qR6xdIah10JLg==, - } + resolution: {integrity: sha512-k4MGaQl5TGo/iipqb2UDG2UwjXziSWkh0uysQelTlJpX1qGlpUZYm8PnO4DxG1qBomtJUdYJ6qR6xdIah10JLg==} '@types/json-schema@7.0.15': - resolution: - { - integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==, - } + resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==} '@types/keygrip@1.0.6': - resolution: - { - integrity: sha512-lZuNAY9xeJt7Bx4t4dx0rYCDqGPW8RXhQZK1td7d4H6E9zYbLoOtjBvfwdTKpsyxQI/2jv+armjX/RW+ZNpXOQ==, - } + resolution: {integrity: sha512-lZuNAY9xeJt7Bx4t4dx0rYCDqGPW8RXhQZK1td7d4H6E9zYbLoOtjBvfwdTKpsyxQI/2jv+armjX/RW+ZNpXOQ==} '@types/koa-compose@3.2.9': - resolution: - { - integrity: sha512-BroAZ9FTvPiCy0Pi8tjD1OfJ7bgU1gQf0eR6e1Vm+JJATy9eKOG3hQMFtMciMawiSOVnLMdmUOC46s7HBhSTsA==, - } + resolution: {integrity: sha512-BroAZ9FTvPiCy0Pi8tjD1OfJ7bgU1gQf0eR6e1Vm+JJATy9eKOG3hQMFtMciMawiSOVnLMdmUOC46s7HBhSTsA==} '@types/koa@3.0.1': - resolution: - { - integrity: sha512-VkB6WJUQSe0zBpR+Q7/YIUESGp5wPHcaXr0xueU5W0EOUWtlSbblsl+Kl31lyRQ63nIILh0e/7gXjQ09JXJIHw==, - } + resolution: {integrity: sha512-VkB6WJUQSe0zBpR+Q7/YIUESGp5wPHcaXr0xueU5W0EOUWtlSbblsl+Kl31lyRQ63nIILh0e/7gXjQ09JXJIHw==} '@types/methods@1.1.4': - resolution: - { - integrity: sha512-ymXWVrDiCxTBE3+RIrrP533E70eA+9qu7zdWoHuOmGujkYtzf4HQF96b8nwHLqhuf4ykX61IGRIB38CC6/sImQ==, - } + resolution: {integrity: sha512-ymXWVrDiCxTBE3+RIrrP533E70eA+9qu7zdWoHuOmGujkYtzf4HQF96b8nwHLqhuf4ykX61IGRIB38CC6/sImQ==} '@types/minimatch@3.0.5': - resolution: - { - integrity: sha512-Klz949h02Gz2uZCMGwDUSDS1YBlTdDDgbWHi+81l29tQALUtvz4rAYi5uoVhE5Lagoq6DeqAUlbrHvW/mXDgdQ==, - } + resolution: {integrity: sha512-Klz949h02Gz2uZCMGwDUSDS1YBlTdDDgbWHi+81l29tQALUtvz4rAYi5uoVhE5Lagoq6DeqAUlbrHvW/mXDgdQ==} '@types/minimist@1.2.5': - resolution: - { - integrity: sha512-hov8bUuiLiyFPGyFPE1lwWhmzYbirOXQNNo40+y3zow8aFVTeyn3VWL0VFFfdNddA8S4Vf0Tc062rzyNr7Paag==, - } + resolution: {integrity: sha512-hov8bUuiLiyFPGyFPE1lwWhmzYbirOXQNNo40+y3zow8aFVTeyn3VWL0VFFfdNddA8S4Vf0Tc062rzyNr7Paag==} '@types/multer@1.4.13': - resolution: - { - integrity: sha512-bhhdtPw7JqCiEfC9Jimx5LqX9BDIPJEh2q/fQ4bqbBPtyEZYr3cvF22NwG0DmPZNYA0CAf2CnqDB4KIGGpJcaw==, - } + resolution: {integrity: sha512-bhhdtPw7JqCiEfC9Jimx5LqX9BDIPJEh2q/fQ4bqbBPtyEZYr3cvF22NwG0DmPZNYA0CAf2CnqDB4KIGGpJcaw==} '@types/node@18.19.130': - resolution: - { - integrity: sha512-GRaXQx6jGfL8sKfaIDD6OupbIHBr9jv7Jnaml9tB7l4v068PAOXqfcujMMo5PhbIs6ggR1XODELqahT2R8v0fg==, - } + resolution: {integrity: sha512-GRaXQx6jGfL8sKfaIDD6OupbIHBr9jv7Jnaml9tB7l4v068PAOXqfcujMMo5PhbIs6ggR1XODELqahT2R8v0fg==} '@types/node@20.19.27': - resolution: - { - integrity: sha512-N2clP5pJhB2YnZJ3PIHFk5RkygRX5WO/5f0WC08tp0wd+sv0rsJk3MqWn3CbNmT2J505a5336jaQj4ph1AdMug==, - } + resolution: {integrity: sha512-N2clP5pJhB2YnZJ3PIHFk5RkygRX5WO/5f0WC08tp0wd+sv0rsJk3MqWn3CbNmT2J505a5336jaQj4ph1AdMug==} '@types/node@22.19.11': - resolution: - { - integrity: sha512-BH7YwL6rA93ReqeQS1c4bsPpcfOmJasG+Fkr6Y59q83f9M1WcBRHR2vM+P9eOisYRcN3ujQoiZY8uk5W+1WL8w==, - } + resolution: {integrity: sha512-BH7YwL6rA93ReqeQS1c4bsPpcfOmJasG+Fkr6Y59q83f9M1WcBRHR2vM+P9eOisYRcN3ujQoiZY8uk5W+1WL8w==} '@types/nodemailer@7.0.5': - resolution: - { - integrity: sha512-7WtR4MFJUNN2UFy0NIowBRJswj5KXjXDhlZY43Hmots5eGu5q/dTeFd/I6GgJA/qj3RqO6dDy4SvfcV3fOVeIA==, - } + resolution: {integrity: sha512-7WtR4MFJUNN2UFy0NIowBRJswj5KXjXDhlZY43Hmots5eGu5q/dTeFd/I6GgJA/qj3RqO6dDy4SvfcV3fOVeIA==} '@types/normalize-package-data@2.4.4': - resolution: - { - integrity: sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA==, - } + resolution: {integrity: sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA==} '@types/pg-copy-streams@1.2.5': - resolution: - { - integrity: sha512-7D6/GYW2uHIaVU6S/5omI+6RZnwlZBpLQDZAH83xX1rjxAOK0f6/deKyyUTewxqts145VIGn6XWYz1YGf50G5g==, - } + resolution: {integrity: sha512-7D6/GYW2uHIaVU6S/5omI+6RZnwlZBpLQDZAH83xX1rjxAOK0f6/deKyyUTewxqts145VIGn6XWYz1YGf50G5g==} '@types/pg@8.16.0': - resolution: - { - integrity: sha512-RmhMd/wD+CF8Dfo+cVIy3RR5cl8CyfXQ0tGgW6XBL8L4LM/UTEbNXYRbLwU6w+CgrKBNbrQWt4FUtTfaU5jSYQ==, - } + resolution: {integrity: sha512-RmhMd/wD+CF8Dfo+cVIy3RR5cl8CyfXQ0tGgW6XBL8L4LM/UTEbNXYRbLwU6w+CgrKBNbrQWt4FUtTfaU5jSYQ==} '@types/pluralize@0.0.33': - resolution: - { - integrity: sha512-JOqsl+ZoCpP4e8TDke9W79FDcSgPAR0l6pixx2JHkhnRjvShyYiAYw2LVsnA7K08Y6DeOnaU6ujmENO4os/cYg==, - } + resolution: {integrity: sha512-JOqsl+ZoCpP4e8TDke9W79FDcSgPAR0l6pixx2JHkhnRjvShyYiAYw2LVsnA7K08Y6DeOnaU6ujmENO4os/cYg==} '@types/qs@6.14.0': - resolution: - { - integrity: sha512-eOunJqu0K1923aExK6y8p6fsihYEn/BYuQ4g0CxAAgFc4b/ZLN4CrsRZ55srTdqoiLzU2B2evC+apEIxprEzkQ==, - } + resolution: {integrity: sha512-eOunJqu0K1923aExK6y8p6fsihYEn/BYuQ4g0CxAAgFc4b/ZLN4CrsRZ55srTdqoiLzU2B2evC+apEIxprEzkQ==} '@types/range-parser@1.2.7': - resolution: - { - integrity: sha512-hKormJbkJqzQGhziax5PItDUTMAM9uE2XXQmM37dyd4hVM+5aVl7oVxMVUiVQn2oCQFN/LKCZdvSM0pFRqbSmQ==, - } + resolution: {integrity: sha512-hKormJbkJqzQGhziax5PItDUTMAM9uE2XXQmM37dyd4hVM+5aVl7oVxMVUiVQn2oCQFN/LKCZdvSM0pFRqbSmQ==} '@types/react-dom@19.2.3': - resolution: - { - integrity: sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ==, - } + resolution: {integrity: sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ==} peerDependencies: '@types/react': ^19.2.0 '@types/react@19.2.13': - resolution: - { - integrity: sha512-KkiJeU6VbYbUOp5ITMIc7kBfqlYkKA5KhEHVrGMmUUMt7NeaZg65ojdPk+FtNrBAOXNVM5QM72jnADjM+XVRAQ==, - } + resolution: {integrity: sha512-KkiJeU6VbYbUOp5ITMIc7kBfqlYkKA5KhEHVrGMmUUMt7NeaZg65ojdPk+FtNrBAOXNVM5QM72jnADjM+XVRAQ==} '@types/react@19.2.8': - resolution: - { - integrity: sha512-3MbSL37jEchWZz2p2mjntRZtPt837ij10ApxKfgmXCTuHWagYg7iA5bqPw6C8BMPfwidlvfPI/fxOc42HLhcyg==, - } + resolution: {integrity: sha512-3MbSL37jEchWZz2p2mjntRZtPt837ij10ApxKfgmXCTuHWagYg7iA5bqPw6C8BMPfwidlvfPI/fxOc42HLhcyg==} '@types/request-ip@0.0.41': - resolution: - { - integrity: sha512-Qzz0PM2nSZej4lsLzzNfADIORZhhxO7PED0fXpg4FjXiHuJ/lMyUg+YFF5q8x9HPZH3Gl6N+NOM8QZjItNgGKg==, - } + resolution: {integrity: sha512-Qzz0PM2nSZej4lsLzzNfADIORZhhxO7PED0fXpg4FjXiHuJ/lMyUg+YFF5q8x9HPZH3Gl6N+NOM8QZjItNgGKg==} '@types/semver@7.7.1': - resolution: - { - integrity: sha512-FmgJfu+MOcQ370SD0ev7EI8TlCAfKYU+B4m5T3yXc1CiRN94g/SZPtsCkk506aUDtlMnFZvasDwHHUcZUEaYuA==, - } + resolution: {integrity: sha512-FmgJfu+MOcQ370SD0ev7EI8TlCAfKYU+B4m5T3yXc1CiRN94g/SZPtsCkk506aUDtlMnFZvasDwHHUcZUEaYuA==} '@types/send@1.2.1': - resolution: - { - integrity: sha512-arsCikDvlU99zl1g69TcAB3mzZPpxgw0UQnaHeC1Nwb015xp8bknZv5rIfri9xTOcMuaVgvabfIRA7PSZVuZIQ==, - } + resolution: {integrity: sha512-arsCikDvlU99zl1g69TcAB3mzZPpxgw0UQnaHeC1Nwb015xp8bknZv5rIfri9xTOcMuaVgvabfIRA7PSZVuZIQ==} '@types/serve-static@2.2.0': - resolution: - { - integrity: sha512-8mam4H1NHLtu7nmtalF7eyBH14QyOASmcxHhSfEoRyr0nP/YdoesEtU+uSRvMe96TW/HPTtkoKqQLl53N7UXMQ==, - } + resolution: {integrity: sha512-8mam4H1NHLtu7nmtalF7eyBH14QyOASmcxHhSfEoRyr0nP/YdoesEtU+uSRvMe96TW/HPTtkoKqQLl53N7UXMQ==} '@types/shelljs@0.8.17': - resolution: - { - integrity: sha512-IDksKYmQA2W9MkQjiyptbMmcQx+8+Ol6b7h6dPU5S05JyiQDSb/nZKnrMrZqGwgV6VkVdl6/SPCKPDlMRvqECg==, - } + resolution: {integrity: sha512-IDksKYmQA2W9MkQjiyptbMmcQx+8+Ol6b7h6dPU5S05JyiQDSb/nZKnrMrZqGwgV6VkVdl6/SPCKPDlMRvqECg==} '@types/smtp-server@3.5.12': - resolution: - { - integrity: sha512-IBemrqI6nzvbgwE41Lnd4v4Yf1Kc7F1UHjk1GFBLNhLcI/Zop1ggHQ8g7Y8QYc6jGVgzWQcsa0MBNcGnDY9UGw==, - } + resolution: {integrity: sha512-IBemrqI6nzvbgwE41Lnd4v4Yf1Kc7F1UHjk1GFBLNhLcI/Zop1ggHQ8g7Y8QYc6jGVgzWQcsa0MBNcGnDY9UGw==} '@types/stack-utils@2.0.3': - resolution: - { - integrity: sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==, - } + resolution: {integrity: sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==} '@types/superagent@8.1.9': - resolution: - { - integrity: sha512-pTVjI73witn+9ILmoJdajHGW2jkSaOzhiFYF1Rd3EQ94kymLqB9PjD9ISg7WaALC7+dCHT0FGe9T2LktLq/3GQ==, - } + resolution: {integrity: sha512-pTVjI73witn+9ILmoJdajHGW2jkSaOzhiFYF1Rd3EQ94kymLqB9PjD9ISg7WaALC7+dCHT0FGe9T2LktLq/3GQ==} '@types/supertest@6.0.3': - resolution: - { - integrity: sha512-8WzXq62EXFhJ7QsH3Ocb/iKQ/Ty9ZVWnVzoTKc9tyyFRRF3a74Tk2+TLFgaFFw364Ere+npzHKEJ6ga2LzIL7w==, - } + resolution: {integrity: sha512-8WzXq62EXFhJ7QsH3Ocb/iKQ/Ty9ZVWnVzoTKc9tyyFRRF3a74Tk2+TLFgaFFw364Ere+npzHKEJ6ga2LzIL7w==} '@types/testing-library__jest-dom@5.14.9': - resolution: - { - integrity: sha512-FSYhIjFlfOpGSRyVoMBMuS3ws5ehFQODymf3vlI7U1K8c7PHwWwFY7VREfmsuzHSOnoKs/9/Y983ayOs7eRzqw==, - } + resolution: {integrity: sha512-FSYhIjFlfOpGSRyVoMBMuS3ws5ehFQODymf3vlI7U1K8c7PHwWwFY7VREfmsuzHSOnoKs/9/Y983ayOs7eRzqw==} '@types/yargs-parser@21.0.3': - resolution: - { - integrity: sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==, - } + resolution: {integrity: sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==} '@types/yargs@15.0.20': - resolution: - { - integrity: sha512-KIkX+/GgfFitlASYCGoSF+T4XRXhOubJLhkLVtSfsRTe9jWMmuM2g28zQ41BtPTG7TRBb2xHW+LCNVE9QR/vsg==, - } + resolution: {integrity: sha512-KIkX+/GgfFitlASYCGoSF+T4XRXhOubJLhkLVtSfsRTe9jWMmuM2g28zQ41BtPTG7TRBb2xHW+LCNVE9QR/vsg==} '@types/yargs@17.0.35': - resolution: - { - integrity: sha512-qUHkeCyQFxMXg79wQfTtfndEC+N9ZZg76HJftDJp+qH2tV7Gj4OJi7l+PiWwJ+pWtW8GwSmqsDj/oymhrTWXjg==, - } + resolution: {integrity: sha512-qUHkeCyQFxMXg79wQfTtfndEC+N9ZZg76HJftDJp+qH2tV7Gj4OJi7l+PiWwJ+pWtW8GwSmqsDj/oymhrTWXjg==} '@typescript-eslint/eslint-plugin@8.53.1': - resolution: - { - integrity: sha512-cFYYFZ+oQFi6hUnBTbLRXfTJiaQtYE3t4O692agbBl+2Zy+eqSKWtPjhPXJu1G7j4RLjKgeJPDdq3EqOwmX5Ag==, - } - engines: { node: ^18.18.0 || ^20.9.0 || >=21.1.0 } + resolution: {integrity: sha512-cFYYFZ+oQFi6hUnBTbLRXfTJiaQtYE3t4O692agbBl+2Zy+eqSKWtPjhPXJu1G7j4RLjKgeJPDdq3EqOwmX5Ag==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: '@typescript-eslint/parser': ^8.53.1 eslint: ^8.57.0 || ^9.0.0 typescript: '>=4.8.4 <6.0.0' '@typescript-eslint/parser@8.53.1': - resolution: - { - integrity: sha512-nm3cvFN9SqZGXjmw5bZ6cGmvJSyJPn0wU9gHAZZHDnZl2wF9PhHv78Xf06E0MaNk4zLVHL8hb2/c32XvyJOLQg==, - } - engines: { node: ^18.18.0 || ^20.9.0 || >=21.1.0 } + resolution: {integrity: sha512-nm3cvFN9SqZGXjmw5bZ6cGmvJSyJPn0wU9gHAZZHDnZl2wF9PhHv78Xf06E0MaNk4zLVHL8hb2/c32XvyJOLQg==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: eslint: ^8.57.0 || ^9.0.0 typescript: '>=4.8.4 <6.0.0' '@typescript-eslint/project-service@8.53.1': - resolution: - { - integrity: sha512-WYC4FB5Ra0xidsmlPb+1SsnaSKPmS3gsjIARwbEkHkoWloQmuzcfypljaJcR78uyLA1h8sHdWWPHSLDI+MtNog==, - } - engines: { node: ^18.18.0 || ^20.9.0 || >=21.1.0 } + resolution: {integrity: sha512-WYC4FB5Ra0xidsmlPb+1SsnaSKPmS3gsjIARwbEkHkoWloQmuzcfypljaJcR78uyLA1h8sHdWWPHSLDI+MtNog==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: typescript: '>=4.8.4 <6.0.0' '@typescript-eslint/scope-manager@8.53.1': - resolution: - { - integrity: sha512-Lu23yw1uJMFY8cUeq7JlrizAgeQvWugNQzJp8C3x8Eo5Jw5Q2ykMdiiTB9vBVOOUBysMzmRRmUfwFrZuI2C4SQ==, - } - engines: { node: ^18.18.0 || ^20.9.0 || >=21.1.0 } + resolution: {integrity: sha512-Lu23yw1uJMFY8cUeq7JlrizAgeQvWugNQzJp8C3x8Eo5Jw5Q2ykMdiiTB9vBVOOUBysMzmRRmUfwFrZuI2C4SQ==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} '@typescript-eslint/tsconfig-utils@8.53.1': - resolution: - { - integrity: sha512-qfvLXS6F6b1y43pnf0pPbXJ+YoXIC7HKg0UGZ27uMIemKMKA6XH2DTxsEDdpdN29D+vHV07x/pnlPNVLhdhWiA==, - } - engines: { node: ^18.18.0 || ^20.9.0 || >=21.1.0 } + resolution: {integrity: sha512-qfvLXS6F6b1y43pnf0pPbXJ+YoXIC7HKg0UGZ27uMIemKMKA6XH2DTxsEDdpdN29D+vHV07x/pnlPNVLhdhWiA==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: typescript: '>=4.8.4 <6.0.0' '@typescript-eslint/type-utils@8.53.1': - resolution: - { - integrity: sha512-MOrdtNvyhy0rHyv0ENzub1d4wQYKb2NmIqG7qEqPWFW7Mpy2jzFC3pQ2yKDvirZB7jypm5uGjF2Qqs6OIqu47w==, - } - engines: { node: ^18.18.0 || ^20.9.0 || >=21.1.0 } + resolution: {integrity: sha512-MOrdtNvyhy0rHyv0ENzub1d4wQYKb2NmIqG7qEqPWFW7Mpy2jzFC3pQ2yKDvirZB7jypm5uGjF2Qqs6OIqu47w==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: eslint: ^8.57.0 || ^9.0.0 typescript: '>=4.8.4 <6.0.0' '@typescript-eslint/types@8.53.1': - resolution: - { - integrity: sha512-jr/swrr2aRmUAUjW5/zQHbMaui//vQlsZcJKijZf3M26bnmLj8LyZUpj8/Rd6uzaek06OWsqdofN/Thenm5O8A==, - } - engines: { node: ^18.18.0 || ^20.9.0 || >=21.1.0 } + resolution: {integrity: sha512-jr/swrr2aRmUAUjW5/zQHbMaui//vQlsZcJKijZf3M26bnmLj8LyZUpj8/Rd6uzaek06OWsqdofN/Thenm5O8A==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} '@typescript-eslint/typescript-estree@8.53.1': - resolution: - { - integrity: sha512-RGlVipGhQAG4GxV1s34O91cxQ/vWiHJTDHbXRr0li2q/BGg3RR/7NM8QDWgkEgrwQYCvmJV9ichIwyoKCQ+DTg==, - } - engines: { node: ^18.18.0 || ^20.9.0 || >=21.1.0 } + resolution: {integrity: sha512-RGlVipGhQAG4GxV1s34O91cxQ/vWiHJTDHbXRr0li2q/BGg3RR/7NM8QDWgkEgrwQYCvmJV9ichIwyoKCQ+DTg==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: typescript: '>=4.8.4 <6.0.0' '@typescript-eslint/utils@8.53.1': - resolution: - { - integrity: sha512-c4bMvGVWW4hv6JmDUEG7fSYlWOl3II2I4ylt0NM+seinYQlZMQIaKaXIIVJWt9Ofh6whrpM+EdDQXKXjNovvrg==, - } - engines: { node: ^18.18.0 || ^20.9.0 || >=21.1.0 } + resolution: {integrity: sha512-c4bMvGVWW4hv6JmDUEG7fSYlWOl3II2I4ylt0NM+seinYQlZMQIaKaXIIVJWt9Ofh6whrpM+EdDQXKXjNovvrg==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: eslint: ^8.57.0 || ^9.0.0 typescript: '>=4.8.4 <6.0.0' '@typescript-eslint/visitor-keys@8.53.1': - resolution: - { - integrity: sha512-oy+wV7xDKFPRyNggmXuZQSBzvoLnpmJs+GhzRhPjrxl2b/jIlyjVokzm47CZCDUdXKr2zd7ZLodPfOBpOPyPlg==, - } - engines: { node: ^18.18.0 || ^20.9.0 || >=21.1.0 } + resolution: {integrity: sha512-oy+wV7xDKFPRyNggmXuZQSBzvoLnpmJs+GhzRhPjrxl2b/jIlyjVokzm47CZCDUdXKr2zd7ZLodPfOBpOPyPlg==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} '@ungap/structured-clone@1.3.0': - resolution: - { - integrity: sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==, - } + resolution: {integrity: sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==} '@unrs/resolver-binding-android-arm-eabi@1.11.1': - resolution: - { - integrity: sha512-ppLRUgHVaGRWUx0R0Ut06Mjo9gBaBkg3v/8AxusGLhsIotbBLuRk51rAzqLC8gq6NyyAojEXglNjzf6R948DNw==, - } + resolution: {integrity: sha512-ppLRUgHVaGRWUx0R0Ut06Mjo9gBaBkg3v/8AxusGLhsIotbBLuRk51rAzqLC8gq6NyyAojEXglNjzf6R948DNw==} cpu: [arm] os: [android] '@unrs/resolver-binding-android-arm64@1.11.1': - resolution: - { - integrity: sha512-lCxkVtb4wp1v+EoN+HjIG9cIIzPkX5OtM03pQYkG+U5O/wL53LC4QbIeazgiKqluGeVEeBlZahHalCaBvU1a2g==, - } + resolution: {integrity: sha512-lCxkVtb4wp1v+EoN+HjIG9cIIzPkX5OtM03pQYkG+U5O/wL53LC4QbIeazgiKqluGeVEeBlZahHalCaBvU1a2g==} cpu: [arm64] os: [android] '@unrs/resolver-binding-darwin-arm64@1.11.1': - resolution: - { - integrity: sha512-gPVA1UjRu1Y/IsB/dQEsp2V1pm44Of6+LWvbLc9SDk1c2KhhDRDBUkQCYVWe6f26uJb3fOK8saWMgtX8IrMk3g==, - } + resolution: {integrity: sha512-gPVA1UjRu1Y/IsB/dQEsp2V1pm44Of6+LWvbLc9SDk1c2KhhDRDBUkQCYVWe6f26uJb3fOK8saWMgtX8IrMk3g==} cpu: [arm64] os: [darwin] '@unrs/resolver-binding-darwin-x64@1.11.1': - resolution: - { - integrity: sha512-cFzP7rWKd3lZaCsDze07QX1SC24lO8mPty9vdP+YVa3MGdVgPmFc59317b2ioXtgCMKGiCLxJ4HQs62oz6GfRQ==, - } + resolution: {integrity: sha512-cFzP7rWKd3lZaCsDze07QX1SC24lO8mPty9vdP+YVa3MGdVgPmFc59317b2ioXtgCMKGiCLxJ4HQs62oz6GfRQ==} cpu: [x64] os: [darwin] '@unrs/resolver-binding-freebsd-x64@1.11.1': - resolution: - { - integrity: sha512-fqtGgak3zX4DCB6PFpsH5+Kmt/8CIi4Bry4rb1ho6Av2QHTREM+47y282Uqiu3ZRF5IQioJQ5qWRV6jduA+iGw==, - } + resolution: {integrity: sha512-fqtGgak3zX4DCB6PFpsH5+Kmt/8CIi4Bry4rb1ho6Av2QHTREM+47y282Uqiu3ZRF5IQioJQ5qWRV6jduA+iGw==} cpu: [x64] os: [freebsd] '@unrs/resolver-binding-linux-arm-gnueabihf@1.11.1': - resolution: - { - integrity: sha512-u92mvlcYtp9MRKmP+ZvMmtPN34+/3lMHlyMj7wXJDeXxuM0Vgzz0+PPJNsro1m3IZPYChIkn944wW8TYgGKFHw==, - } + resolution: {integrity: sha512-u92mvlcYtp9MRKmP+ZvMmtPN34+/3lMHlyMj7wXJDeXxuM0Vgzz0+PPJNsro1m3IZPYChIkn944wW8TYgGKFHw==} cpu: [arm] os: [linux] '@unrs/resolver-binding-linux-arm-musleabihf@1.11.1': - resolution: - { - integrity: sha512-cINaoY2z7LVCrfHkIcmvj7osTOtm6VVT16b5oQdS4beibX2SYBwgYLmqhBjA1t51CarSaBuX5YNsWLjsqfW5Cw==, - } + resolution: {integrity: sha512-cINaoY2z7LVCrfHkIcmvj7osTOtm6VVT16b5oQdS4beibX2SYBwgYLmqhBjA1t51CarSaBuX5YNsWLjsqfW5Cw==} cpu: [arm] os: [linux] '@unrs/resolver-binding-linux-arm64-gnu@1.11.1': - resolution: - { - integrity: sha512-34gw7PjDGB9JgePJEmhEqBhWvCiiWCuXsL9hYphDF7crW7UgI05gyBAi6MF58uGcMOiOqSJ2ybEeCvHcq0BCmQ==, - } + resolution: {integrity: sha512-34gw7PjDGB9JgePJEmhEqBhWvCiiWCuXsL9hYphDF7crW7UgI05gyBAi6MF58uGcMOiOqSJ2ybEeCvHcq0BCmQ==} cpu: [arm64] os: [linux] '@unrs/resolver-binding-linux-arm64-musl@1.11.1': - resolution: - { - integrity: sha512-RyMIx6Uf53hhOtJDIamSbTskA99sPHS96wxVE/bJtePJJtpdKGXO1wY90oRdXuYOGOTuqjT8ACccMc4K6QmT3w==, - } + resolution: {integrity: sha512-RyMIx6Uf53hhOtJDIamSbTskA99sPHS96wxVE/bJtePJJtpdKGXO1wY90oRdXuYOGOTuqjT8ACccMc4K6QmT3w==} cpu: [arm64] os: [linux] '@unrs/resolver-binding-linux-ppc64-gnu@1.11.1': - resolution: - { - integrity: sha512-D8Vae74A4/a+mZH0FbOkFJL9DSK2R6TFPC9M+jCWYia/q2einCubX10pecpDiTmkJVUH+y8K3BZClycD8nCShA==, - } + resolution: {integrity: sha512-D8Vae74A4/a+mZH0FbOkFJL9DSK2R6TFPC9M+jCWYia/q2einCubX10pecpDiTmkJVUH+y8K3BZClycD8nCShA==} cpu: [ppc64] os: [linux] '@unrs/resolver-binding-linux-riscv64-gnu@1.11.1': - resolution: - { - integrity: sha512-frxL4OrzOWVVsOc96+V3aqTIQl1O2TjgExV4EKgRY09AJ9leZpEg8Ak9phadbuX0BA4k8U5qtvMSQQGGmaJqcQ==, - } + resolution: {integrity: sha512-frxL4OrzOWVVsOc96+V3aqTIQl1O2TjgExV4EKgRY09AJ9leZpEg8Ak9phadbuX0BA4k8U5qtvMSQQGGmaJqcQ==} cpu: [riscv64] os: [linux] '@unrs/resolver-binding-linux-riscv64-musl@1.11.1': - resolution: - { - integrity: sha512-mJ5vuDaIZ+l/acv01sHoXfpnyrNKOk/3aDoEdLO/Xtn9HuZlDD6jKxHlkN8ZhWyLJsRBxfv9GYM2utQ1SChKew==, - } + resolution: {integrity: sha512-mJ5vuDaIZ+l/acv01sHoXfpnyrNKOk/3aDoEdLO/Xtn9HuZlDD6jKxHlkN8ZhWyLJsRBxfv9GYM2utQ1SChKew==} cpu: [riscv64] os: [linux] '@unrs/resolver-binding-linux-s390x-gnu@1.11.1': - resolution: - { - integrity: sha512-kELo8ebBVtb9sA7rMe1Cph4QHreByhaZ2QEADd9NzIQsYNQpt9UkM9iqr2lhGr5afh885d/cB5QeTXSbZHTYPg==, - } + resolution: {integrity: sha512-kELo8ebBVtb9sA7rMe1Cph4QHreByhaZ2QEADd9NzIQsYNQpt9UkM9iqr2lhGr5afh885d/cB5QeTXSbZHTYPg==} cpu: [s390x] os: [linux] '@unrs/resolver-binding-linux-x64-gnu@1.11.1': - resolution: - { - integrity: sha512-C3ZAHugKgovV5YvAMsxhq0gtXuwESUKc5MhEtjBpLoHPLYM+iuwSj3lflFwK3DPm68660rZ7G8BMcwSro7hD5w==, - } + resolution: {integrity: sha512-C3ZAHugKgovV5YvAMsxhq0gtXuwESUKc5MhEtjBpLoHPLYM+iuwSj3lflFwK3DPm68660rZ7G8BMcwSro7hD5w==} cpu: [x64] os: [linux] '@unrs/resolver-binding-linux-x64-musl@1.11.1': - resolution: - { - integrity: sha512-rV0YSoyhK2nZ4vEswT/QwqzqQXw5I6CjoaYMOX0TqBlWhojUf8P94mvI7nuJTeaCkkds3QE4+zS8Ko+GdXuZtA==, - } + resolution: {integrity: sha512-rV0YSoyhK2nZ4vEswT/QwqzqQXw5I6CjoaYMOX0TqBlWhojUf8P94mvI7nuJTeaCkkds3QE4+zS8Ko+GdXuZtA==} cpu: [x64] os: [linux] '@unrs/resolver-binding-wasm32-wasi@1.11.1': - resolution: - { - integrity: sha512-5u4RkfxJm+Ng7IWgkzi3qrFOvLvQYnPBmjmZQ8+szTK/b31fQCnleNl1GgEt7nIsZRIf5PLhPwT0WM+q45x/UQ==, - } - engines: { node: '>=14.0.0' } + resolution: {integrity: sha512-5u4RkfxJm+Ng7IWgkzi3qrFOvLvQYnPBmjmZQ8+szTK/b31fQCnleNl1GgEt7nIsZRIf5PLhPwT0WM+q45x/UQ==} + engines: {node: '>=14.0.0'} cpu: [wasm32] '@unrs/resolver-binding-win32-arm64-msvc@1.11.1': - resolution: - { - integrity: sha512-nRcz5Il4ln0kMhfL8S3hLkxI85BXs3o8EYoattsJNdsX4YUU89iOkVn7g0VHSRxFuVMdM4Q1jEpIId1Ihim/Uw==, - } + resolution: {integrity: sha512-nRcz5Il4ln0kMhfL8S3hLkxI85BXs3o8EYoattsJNdsX4YUU89iOkVn7g0VHSRxFuVMdM4Q1jEpIId1Ihim/Uw==} cpu: [arm64] os: [win32] '@unrs/resolver-binding-win32-ia32-msvc@1.11.1': - resolution: - { - integrity: sha512-DCEI6t5i1NmAZp6pFonpD5m7i6aFrpofcp4LA2i8IIq60Jyo28hamKBxNrZcyOwVOZkgsRp9O2sXWBWP8MnvIQ==, - } + resolution: {integrity: sha512-DCEI6t5i1NmAZp6pFonpD5m7i6aFrpofcp4LA2i8IIq60Jyo28hamKBxNrZcyOwVOZkgsRp9O2sXWBWP8MnvIQ==} cpu: [ia32] os: [win32] '@unrs/resolver-binding-win32-x64-msvc@1.11.1': - resolution: - { - integrity: sha512-lrW200hZdbfRtztbygyaq/6jP6AKE8qQN2KvPcJ+x7wiD038YtnYtZ82IMNJ69GJibV7bwL3y9FgK+5w/pYt6g==, - } + resolution: {integrity: sha512-lrW200hZdbfRtztbygyaq/6jP6AKE8qQN2KvPcJ+x7wiD038YtnYtZ82IMNJ69GJibV7bwL3y9FgK+5w/pYt6g==} cpu: [x64] os: [win32] '@vitejs/plugin-react@4.7.0': - resolution: - { - integrity: sha512-gUu9hwfWvvEDBBmgtAowQCojwZmJ5mcLn3aufeCsitijs3+f2NsrPtlAWIR6OPiqljl96GVCUbLe0HyqIpVaoA==, - } - engines: { node: ^14.18.0 || >=16.0.0 } + resolution: {integrity: sha512-gUu9hwfWvvEDBBmgtAowQCojwZmJ5mcLn3aufeCsitijs3+f2NsrPtlAWIR6OPiqljl96GVCUbLe0HyqIpVaoA==} + engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: vite: ^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 '@yarnpkg/lockfile@1.1.0': - resolution: - { - integrity: sha512-GpSwvyXOcOOlV70vbnzjj4fW5xW/FdUF6nQEt1ENy7m4ZCczi1+/buVUPAqmGfqznsORNFzUMjctTIp8a9tuCQ==, - } + resolution: {integrity: sha512-GpSwvyXOcOOlV70vbnzjj4fW5xW/FdUF6nQEt1ENy7m4ZCczi1+/buVUPAqmGfqznsORNFzUMjctTIp8a9tuCQ==} '@yarnpkg/parsers@3.0.2': - resolution: - { - integrity: sha512-/HcYgtUSiJiot/XWGLOlGxPYUG65+/31V8oqk17vZLW1xlCoR4PampyePljOxY2n8/3jz9+tIFzICsyGujJZoA==, - } - engines: { node: '>=18.12.0' } + resolution: {integrity: sha512-/HcYgtUSiJiot/XWGLOlGxPYUG65+/31V8oqk17vZLW1xlCoR4PampyePljOxY2n8/3jz9+tIFzICsyGujJZoA==} + engines: {node: '>=18.12.0'} '@zkochan/js-yaml@0.0.7': - resolution: - { - integrity: sha512-nrUSn7hzt7J6JWgWGz78ZYI8wj+gdIJdk0Ynjpp8l+trkn58Uqsf6RYrYkEK+3X18EX+TNdtJI0WxAtc+L84SQ==, - } + resolution: {integrity: sha512-nrUSn7hzt7J6JWgWGz78ZYI8wj+gdIJdk0Ynjpp8l+trkn58Uqsf6RYrYkEK+3X18EX+TNdtJI0WxAtc+L84SQ==} hasBin: true JSONStream@1.3.5: - resolution: - { - integrity: sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==, - } + resolution: {integrity: sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==} hasBin: true abbrev@2.0.0: - resolution: - { - integrity: sha512-6/mh1E2u2YgEsCHdY0Yx5oW+61gZU+1vXaoiHHrpKeuRNNgFvS+/jrwHiQhB5apAf5oB7UB7E19ol2R2LKH8hQ==, - } - engines: { node: ^14.17.0 || ^16.13.0 || >=18.0.0 } + resolution: {integrity: sha512-6/mh1E2u2YgEsCHdY0Yx5oW+61gZU+1vXaoiHHrpKeuRNNgFvS+/jrwHiQhB5apAf5oB7UB7E19ol2R2LKH8hQ==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} accepts@2.0.0: - resolution: - { - integrity: sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==, - } - engines: { node: '>= 0.6' } + resolution: {integrity: sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==} + engines: {node: '>= 0.6'} acorn-jsx@5.3.2: - resolution: - { - integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==, - } + resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} peerDependencies: acorn: ^6.0.0 || ^7.0.0 || ^8.0.0 acorn-walk@8.3.4: - resolution: - { - integrity: sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g==, - } - engines: { node: '>=0.4.0' } + resolution: {integrity: sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g==} + engines: {node: '>=0.4.0'} acorn@8.15.0: - resolution: - { - integrity: sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==, - } - engines: { node: '>=0.4.0' } + resolution: {integrity: sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==} + engines: {node: '>=0.4.0'} hasBin: true add-stream@1.0.0: - resolution: - { - integrity: sha512-qQLMr+8o0WC4FZGQTcJiKBVC59JylcPSrTtk6usvmIDFUOCKegapy1VHQwRbFMOFyb/inzUVqHs+eMYKDM1YeQ==, - } + resolution: {integrity: sha512-qQLMr+8o0WC4FZGQTcJiKBVC59JylcPSrTtk6usvmIDFUOCKegapy1VHQwRbFMOFyb/inzUVqHs+eMYKDM1YeQ==} agent-base@7.1.4: - resolution: - { - integrity: sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==, - } - engines: { node: '>= 14' } + resolution: {integrity: sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==} + engines: {node: '>= 14'} aggregate-error@3.1.0: - resolution: - { - integrity: sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==} + engines: {node: '>=8'} ajv@6.12.6: - resolution: - { - integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==, - } + resolution: {integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==} ajv@7.2.4: - resolution: - { - integrity: sha512-nBeQgg/ZZA3u3SYxyaDvpvDtgZ/EZPF547ARgZBrG9Bhu1vKDwAIjtIf+sDtJUKa2zOcEbmRLBRSyMraS/Oy1A==, - } + resolution: {integrity: sha512-nBeQgg/ZZA3u3SYxyaDvpvDtgZ/EZPF547ARgZBrG9Bhu1vKDwAIjtIf+sDtJUKa2zOcEbmRLBRSyMraS/Oy1A==} ajv@8.17.1: - resolution: - { - integrity: sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==, - } + resolution: {integrity: sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==} ansi-colors@4.1.3: - resolution: - { - integrity: sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==, - } - engines: { node: '>=6' } + resolution: {integrity: sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==} + engines: {node: '>=6'} ansi-escapes@4.3.2: - resolution: - { - integrity: sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==} + engines: {node: '>=8'} ansi-regex@5.0.1: - resolution: - { - integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} + engines: {node: '>=8'} ansi-regex@6.2.2: - resolution: - { - integrity: sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==, - } - engines: { node: '>=12' } + resolution: {integrity: sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==} + engines: {node: '>=12'} ansi-styles@4.3.0: - resolution: - { - integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} + engines: {node: '>=8'} ansi-styles@5.2.0: - resolution: - { - integrity: sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==} + engines: {node: '>=10'} ansi-styles@6.2.3: - resolution: - { - integrity: sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==, - } - engines: { node: '>=12' } + resolution: {integrity: sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==} + engines: {node: '>=12'} anymatch@3.1.3: - resolution: - { - integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==, - } - engines: { node: '>= 8' } + resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==} + engines: {node: '>= 8'} append-field@1.0.0: - resolution: - { - integrity: sha512-klpgFSWLW1ZEs8svjfb7g4qWY0YS5imI82dTg+QahUvJ8YqAY0P10Uk8tTyh9ZGuYEZEMaeJYCF5BFuX552hsw==, - } + resolution: {integrity: sha512-klpgFSWLW1ZEs8svjfb7g4qWY0YS5imI82dTg+QahUvJ8YqAY0P10Uk8tTyh9ZGuYEZEMaeJYCF5BFuX552hsw==} appstash@0.3.0: - resolution: - { - integrity: sha512-F4rMrok4wQYDVitYMWbPQh2MBoKCj7GYzmI/Gw8zDeO2vDLmCmyzmbd0zAwplghB6X3VMGQw/NKcngIc8w6oTA==, - } + resolution: {integrity: sha512-F4rMrok4wQYDVitYMWbPQh2MBoKCj7GYzmI/Gw8zDeO2vDLmCmyzmbd0zAwplghB6X3VMGQw/NKcngIc8w6oTA==} appstash@0.3.1: - resolution: - { - integrity: sha512-6blvfn9slJQeA7oavIeJ8Wbj5/KCRKkWRsmL54+sgY/ZDPTZndRGTFGOpdARHx0MZzRRQSUPrt1pUaOXXy350A==, - } + resolution: {integrity: sha512-6blvfn9slJQeA7oavIeJ8Wbj5/KCRKkWRsmL54+sgY/ZDPTZndRGTFGOpdARHx0MZzRRQSUPrt1pUaOXXy350A==} appstash@0.5.0: - resolution: - { - integrity: sha512-f9CkbNq1UK2aRn7ErcZI4C1ojInalknp+GsjHnlGSM35sKDBYf6lDc3Z6hViH751hOI0tSrNcFunkaYvxWYgKQ==, - } + resolution: {integrity: sha512-f9CkbNq1UK2aRn7ErcZI4C1ojInalknp+GsjHnlGSM35sKDBYf6lDc3Z6hViH751hOI0tSrNcFunkaYvxWYgKQ==} aproba@2.0.0: - resolution: - { - integrity: sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ==, - } + resolution: {integrity: sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ==} arg@4.1.3: - resolution: - { - integrity: sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==, - } + resolution: {integrity: sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==} argparse@1.0.10: - resolution: - { - integrity: sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==, - } + resolution: {integrity: sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==} argparse@2.0.1: - resolution: - { - integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==, - } + resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} aria-hidden@1.2.6: - resolution: - { - integrity: sha512-ik3ZgC9dY/lYVVM++OISsaYDeg1tb0VtP5uL3ouh1koGOaUMDPpbFIei4JkFimWUFPn90sbMNMXQAIVOlnYKJA==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-ik3ZgC9dY/lYVVM++OISsaYDeg1tb0VtP5uL3ouh1koGOaUMDPpbFIei4JkFimWUFPn90sbMNMXQAIVOlnYKJA==} + engines: {node: '>=10'} aria-query@4.2.2: - resolution: - { - integrity: sha512-o/HelwhuKpTj/frsOsbNLNgnNGVIFsVP/SW2BSF14gVl7kAfMOJ6/8wUAUvG1R1NHKrfG+2sHZTu0yauT1qBrA==, - } - engines: { node: '>=6.0' } + resolution: {integrity: sha512-o/HelwhuKpTj/frsOsbNLNgnNGVIFsVP/SW2BSF14gVl7kAfMOJ6/8wUAUvG1R1NHKrfG+2sHZTu0yauT1qBrA==} + engines: {node: '>=6.0'} array-differ@3.0.0: - resolution: - { - integrity: sha512-THtfYS6KtME/yIAhKjZ2ul7XI96lQGHRputJQHO80LAWQnuGP4iCIN8vdMRboGbIEYBwU33q8Tch1os2+X0kMg==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-THtfYS6KtME/yIAhKjZ2ul7XI96lQGHRputJQHO80LAWQnuGP4iCIN8vdMRboGbIEYBwU33q8Tch1os2+X0kMg==} + engines: {node: '>=8'} array-ify@1.0.0: - resolution: - { - integrity: sha512-c5AMf34bKdvPhQ7tBGhqkgKNUzMr4WUs+WDtC2ZUGOUncbxKMTvqxYctiseW3+L4bA8ec+GcZ6/A/FW4m8ukng==, - } + resolution: {integrity: sha512-c5AMf34bKdvPhQ7tBGhqkgKNUzMr4WUs+WDtC2ZUGOUncbxKMTvqxYctiseW3+L4bA8ec+GcZ6/A/FW4m8ukng==} array-union@2.1.0: - resolution: - { - integrity: sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==} + engines: {node: '>=8'} arrify@1.0.1: - resolution: - { - integrity: sha512-3CYzex9M9FGQjCGMGyi6/31c8GJbgb0qGyrx5HWxPd0aCwh4cB2YjMb2Xf9UuoogrMrlO9cTqnB5rI5GHZTcUA==, - } - engines: { node: '>=0.10.0' } + resolution: {integrity: sha512-3CYzex9M9FGQjCGMGyi6/31c8GJbgb0qGyrx5HWxPd0aCwh4cB2YjMb2Xf9UuoogrMrlO9cTqnB5rI5GHZTcUA==} + engines: {node: '>=0.10.0'} arrify@2.0.1: - resolution: - { - integrity: sha512-3duEwti880xqi4eAMN8AyR4a0ByT90zoYdLlevfrvU43vb0YZwZVfxOgxWrLXXXpyugL0hNZc9G6BiB5B3nUug==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-3duEwti880xqi4eAMN8AyR4a0ByT90zoYdLlevfrvU43vb0YZwZVfxOgxWrLXXXpyugL0hNZc9G6BiB5B3nUug==} + engines: {node: '>=8'} asap@2.0.6: - resolution: - { - integrity: sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==, - } + resolution: {integrity: sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==} async-retry@1.3.1: - resolution: - { - integrity: sha512-aiieFW/7h3hY0Bq5d+ktDBejxuwR78vRu9hDUdR8rNhSaQ29VzPL4AoIRG7D/c7tdenwOcKvgPM6tIxB3cB6HA==, - } + resolution: {integrity: sha512-aiieFW/7h3hY0Bq5d+ktDBejxuwR78vRu9hDUdR8rNhSaQ29VzPL4AoIRG7D/c7tdenwOcKvgPM6tIxB3cB6HA==} async@3.2.6: - resolution: - { - integrity: sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==, - } + resolution: {integrity: sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==} asynckit@0.4.0: - resolution: - { - integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==, - } + resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==} atob@2.1.2: - resolution: - { - integrity: sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==, - } - engines: { node: '>= 4.5.0' } + resolution: {integrity: sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==} + engines: {node: '>= 4.5.0'} hasBin: true axios@1.13.2: - resolution: - { - integrity: sha512-VPk9ebNqPcy5lRGuSlKx752IlDatOjT9paPlm8A7yOuW2Fbvp4X3JznJtT4f0GzGLLiWE9W8onz51SqLYwzGaA==, - } + resolution: {integrity: sha512-VPk9ebNqPcy5lRGuSlKx752IlDatOjT9paPlm8A7yOuW2Fbvp4X3JznJtT4f0GzGLLiWE9W8onz51SqLYwzGaA==} babel-jest@30.2.0: - resolution: - { - integrity: sha512-0YiBEOxWqKkSQWL9nNGGEgndoeL0ZpWrbLMNL5u/Kaxrli3Eaxlt3ZtIDktEvXt4L/R9r3ODr2zKwGM/2BjxVw==, - } - engines: { node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0 } + resolution: {integrity: sha512-0YiBEOxWqKkSQWL9nNGGEgndoeL0ZpWrbLMNL5u/Kaxrli3Eaxlt3ZtIDktEvXt4L/R9r3ODr2zKwGM/2BjxVw==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} peerDependencies: '@babel/core': ^7.11.0 || ^8.0.0-0 babel-plugin-istanbul@7.0.1: - resolution: - { - integrity: sha512-D8Z6Qm8jCvVXtIRkBnqNHX0zJ37rQcFJ9u8WOS6tkYOsRdHBzypCstaxWiu5ZIlqQtviRYbgnRLSoCEvjqcqbA==, - } - engines: { node: '>=12' } + resolution: {integrity: sha512-D8Z6Qm8jCvVXtIRkBnqNHX0zJ37rQcFJ9u8WOS6tkYOsRdHBzypCstaxWiu5ZIlqQtviRYbgnRLSoCEvjqcqbA==} + engines: {node: '>=12'} babel-plugin-jest-hoist@30.2.0: - resolution: - { - integrity: sha512-ftzhzSGMUnOzcCXd6WHdBGMyuwy15Wnn0iyyWGKgBDLxf9/s5ABuraCSpBX2uG0jUg4rqJnxsLc5+oYBqoxVaA==, - } - engines: { node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0 } + resolution: {integrity: sha512-ftzhzSGMUnOzcCXd6WHdBGMyuwy15Wnn0iyyWGKgBDLxf9/s5ABuraCSpBX2uG0jUg4rqJnxsLc5+oYBqoxVaA==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} babel-plugin-styled-components@2.1.4: - resolution: - { - integrity: sha512-Xgp9g+A/cG47sUyRwwYxGM4bR/jDRg5N6it/8+HxCnbT5XNKSKDT9xm4oag/osgqjC2It/vH0yXsomOG6k558g==, - } + resolution: {integrity: sha512-Xgp9g+A/cG47sUyRwwYxGM4bR/jDRg5N6it/8+HxCnbT5XNKSKDT9xm4oag/osgqjC2It/vH0yXsomOG6k558g==} peerDependencies: styled-components: '>= 2' babel-preset-current-node-syntax@1.2.0: - resolution: - { - integrity: sha512-E/VlAEzRrsLEb2+dv8yp3bo4scof3l9nR4lrld+Iy5NyVqgVYUJnDAmunkhPMisRI32Qc4iRiz425d8vM++2fg==, - } + resolution: {integrity: sha512-E/VlAEzRrsLEb2+dv8yp3bo4scof3l9nR4lrld+Iy5NyVqgVYUJnDAmunkhPMisRI32Qc4iRiz425d8vM++2fg==} peerDependencies: '@babel/core': ^7.0.0 || ^8.0.0-0 babel-preset-jest@30.2.0: - resolution: - { - integrity: sha512-US4Z3NOieAQumwFnYdUWKvUKh8+YSnS/gB3t6YBiz0bskpu7Pine8pPCheNxlPEW4wnUkma2a94YuW2q3guvCQ==, - } - engines: { node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0 } + resolution: {integrity: sha512-US4Z3NOieAQumwFnYdUWKvUKh8+YSnS/gB3t6YBiz0bskpu7Pine8pPCheNxlPEW4wnUkma2a94YuW2q3guvCQ==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} peerDependencies: '@babel/core': ^7.11.0 || ^8.0.0-beta.1 babel-runtime@6.25.0: - resolution: - { - integrity: sha512-zeCYxDePWYAT/DfmQWIHsMSFW2vv45UIwIAMjGvQVsTd47RwsiRH0uK1yzyWZ7LDBKdhnGDPM6NYEO5CZyhPrg==, - } + resolution: {integrity: sha512-zeCYxDePWYAT/DfmQWIHsMSFW2vv45UIwIAMjGvQVsTd47RwsiRH0uK1yzyWZ7LDBKdhnGDPM6NYEO5CZyhPrg==} balanced-match@1.0.2: - resolution: - { - integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==, - } + resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} base-64@1.0.0: - resolution: - { - integrity: sha512-kwDPIFCGx0NZHog36dj+tHiwP4QMzsZ3AgMViUBKI0+V5n4U0ufTCUMhnQ04diaRI8EX/QcPfql7zlhZ7j4zgg==, - } + resolution: {integrity: sha512-kwDPIFCGx0NZHog36dj+tHiwP4QMzsZ3AgMViUBKI0+V5n4U0ufTCUMhnQ04diaRI8EX/QcPfql7zlhZ7j4zgg==} base32.js@0.1.0: - resolution: - { - integrity: sha512-n3TkB02ixgBOhTvANakDb4xaMXnYUVkNoRFJjQflcqMQhyEKxEHdj3E6N8t8sUQ0mjH/3/JxzlXuz3ul/J90pQ==, - } - engines: { node: '>=0.12.0' } + resolution: {integrity: sha512-n3TkB02ixgBOhTvANakDb4xaMXnYUVkNoRFJjQflcqMQhyEKxEHdj3E6N8t8sUQ0mjH/3/JxzlXuz3ul/J90pQ==} + engines: {node: '>=0.12.0'} base64-js@1.5.1: - resolution: - { - integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==, - } + resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==} baseline-browser-mapping@2.9.15: - resolution: - { - integrity: sha512-kX8h7K2srmDyYnXRIppo4AH/wYgzWVCs+eKr3RusRSQ5PvRYoEFmR/I0PbdTjKFAoKqp5+kbxnNTFO9jOfSVJg==, - } + resolution: {integrity: sha512-kX8h7K2srmDyYnXRIppo4AH/wYgzWVCs+eKr3RusRSQ5PvRYoEFmR/I0PbdTjKFAoKqp5+kbxnNTFO9jOfSVJg==} hasBin: true before-after-hook@2.2.3: - resolution: - { - integrity: sha512-NzUnlZexiaH/46WDhANlyR2bXRopNg4F/zuSA3OpZnllCUgRaOF2znDioDWrmbNVsuZk6l9pMquQB38cfBZwkQ==, - } + resolution: {integrity: sha512-NzUnlZexiaH/46WDhANlyR2bXRopNg4F/zuSA3OpZnllCUgRaOF2znDioDWrmbNVsuZk6l9pMquQB38cfBZwkQ==} big-integer@1.6.52: - resolution: - { - integrity: sha512-QxD8cf2eVqJOOz63z6JIN9BzvVs/dlySa5HGSBH5xtR8dPteIRQnBxxKqkNTiT6jbDTF6jAfrd4oMcND9RGbQg==, - } - engines: { node: '>=0.6' } + resolution: {integrity: sha512-QxD8cf2eVqJOOz63z6JIN9BzvVs/dlySa5HGSBH5xtR8dPteIRQnBxxKqkNTiT6jbDTF6jAfrd4oMcND9RGbQg==} + engines: {node: '>=0.6'} bin-links@4.0.4: - resolution: - { - integrity: sha512-cMtq4W5ZsEwcutJrVId+a/tjt8GSbS+h0oNkdl6+6rBuEv8Ot33Bevj5KPm40t309zuhVic8NjpuL42QCiJWWA==, - } - engines: { node: ^14.17.0 || ^16.13.0 || >=18.0.0 } + resolution: {integrity: sha512-cMtq4W5ZsEwcutJrVId+a/tjt8GSbS+h0oNkdl6+6rBuEv8Ot33Bevj5KPm40t309zuhVic8NjpuL42QCiJWWA==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} binary-extensions@2.3.0: - resolution: - { - integrity: sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==} + engines: {node: '>=8'} bl@4.1.0: - resolution: - { - integrity: sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==, - } + resolution: {integrity: sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==} body-parser@2.2.1: - resolution: - { - integrity: sha512-nfDwkulwiZYQIGwxdy0RUmowMhKcFVcYXUU7m4QlKYim1rUtg83xm2yjZ40QjDuc291AJjjeSc9b++AWHSgSHw==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-nfDwkulwiZYQIGwxdy0RUmowMhKcFVcYXUU7m4QlKYim1rUtg83xm2yjZ40QjDuc291AJjjeSc9b++AWHSgSHw==} + engines: {node: '>=18'} boolbase@1.0.0: - resolution: - { - integrity: sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==, - } + resolution: {integrity: sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==} bowser@2.13.1: - resolution: - { - integrity: sha512-OHawaAbjwx6rqICCKgSG0SAnT05bzd7ppyKLVUITZpANBaaMFBAsaNkto3LoQ31tyFP5kNujE8Cdx85G9VzOkw==, - } + resolution: {integrity: sha512-OHawaAbjwx6rqICCKgSG0SAnT05bzd7ppyKLVUITZpANBaaMFBAsaNkto3LoQ31tyFP5kNujE8Cdx85G9VzOkw==} brace-expansion@1.1.12: - resolution: - { - integrity: sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==, - } + resolution: {integrity: sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==} brace-expansion@2.0.2: - resolution: - { - integrity: sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==, - } + resolution: {integrity: sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==} braces@3.0.3: - resolution: - { - integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} + engines: {node: '>=8'} broadcast-channel@3.7.0: - resolution: - { - integrity: sha512-cIAKJXAxGJceNZGTZSBzMxzyOn72cVgPnKx4dc6LRjQgbaJUQqhy5rzL3zbMxkMWsGKkv2hSFkPRMEXfoMZ2Mg==, - } + resolution: {integrity: sha512-cIAKJXAxGJceNZGTZSBzMxzyOn72cVgPnKx4dc6LRjQgbaJUQqhy5rzL3zbMxkMWsGKkv2hSFkPRMEXfoMZ2Mg==} browserslist@4.28.1: - resolution: - { - integrity: sha512-ZC5Bd0LgJXgwGqUknZY/vkUQ04r8NXnJZ3yYi4vDmSiZmC/pdSN0NbNRPxZpbtO4uAfDUAFffO8IZoM3Gj8IkA==, - } - engines: { node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7 } + resolution: {integrity: sha512-ZC5Bd0LgJXgwGqUknZY/vkUQ04r8NXnJZ3yYi4vDmSiZmC/pdSN0NbNRPxZpbtO4uAfDUAFffO8IZoM3Gj8IkA==} + engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} hasBin: true bs-logger@0.2.6: - resolution: - { - integrity: sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==, - } - engines: { node: '>= 6' } + resolution: {integrity: sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==} + engines: {node: '>= 6'} bser@2.1.1: - resolution: - { - integrity: sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==, - } + resolution: {integrity: sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==} buffer-equal-constant-time@1.0.1: - resolution: - { - integrity: sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==, - } + resolution: {integrity: sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==} buffer-from@1.1.2: - resolution: - { - integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==, - } + resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==} buffer@5.6.0: - resolution: - { - integrity: sha512-/gDYp/UtU0eA1ys8bOs9J6a+E/KWIY+DZ+Q2WESNUA0jFRsJOc0SNUO6xJ5SGA1xueg3NL65W6s+NY5l9cunuw==, - } + resolution: {integrity: sha512-/gDYp/UtU0eA1ys8bOs9J6a+E/KWIY+DZ+Q2WESNUA0jFRsJOc0SNUO6xJ5SGA1xueg3NL65W6s+NY5l9cunuw==} buffer@5.7.1: - resolution: - { - integrity: sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==, - } + resolution: {integrity: sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==} busboy@0.3.1: - resolution: - { - integrity: sha512-y7tTxhGKXcyBxRKAni+awqx8uqaJKrSFSNFSeRG5CsWNdmy2BIK+6VGWEW7TZnIO/533mtMEA4rOevQV815YJw==, - } - engines: { node: '>=4.5.0' } + resolution: {integrity: sha512-y7tTxhGKXcyBxRKAni+awqx8uqaJKrSFSNFSeRG5CsWNdmy2BIK+6VGWEW7TZnIO/533mtMEA4rOevQV815YJw==} + engines: {node: '>=4.5.0'} busboy@1.6.0: - resolution: - { - integrity: sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==, - } - engines: { node: '>=10.16.0' } + resolution: {integrity: sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==} + engines: {node: '>=10.16.0'} byte-size@8.1.1: - resolution: - { - integrity: sha512-tUkzZWK0M/qdoLEqikxBWe4kumyuwjl3HO6zHTr4yEI23EojPtLYXdG1+AQY7MN0cGyNDvEaJ8wiYQm6P2bPxg==, - } - engines: { node: '>=12.17' } + resolution: {integrity: sha512-tUkzZWK0M/qdoLEqikxBWe4kumyuwjl3HO6zHTr4yEI23EojPtLYXdG1+AQY7MN0cGyNDvEaJ8wiYQm6P2bPxg==} + engines: {node: '>=12.17'} bytes@3.1.2: - resolution: - { - integrity: sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==, - } - engines: { node: '>= 0.8' } + resolution: {integrity: sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==} + engines: {node: '>= 0.8'} cacache@18.0.4: - resolution: - { - integrity: sha512-B+L5iIa9mgcjLbliir2th36yEwPftrzteHYujzsx3dFP/31GCHcIeS8f5MGd80odLOjaOvSpU3EEAmRQptkxLQ==, - } - engines: { node: ^16.14.0 || >=18.0.0 } + resolution: {integrity: sha512-B+L5iIa9mgcjLbliir2th36yEwPftrzteHYujzsx3dFP/31GCHcIeS8f5MGd80odLOjaOvSpU3EEAmRQptkxLQ==} + engines: {node: ^16.14.0 || >=18.0.0} call-bind-apply-helpers@1.0.2: - resolution: - { - integrity: sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==, - } - engines: { node: '>= 0.4' } + resolution: {integrity: sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==} + engines: {node: '>= 0.4'} call-bound@1.0.4: - resolution: - { - integrity: sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==, - } - engines: { node: '>= 0.4' } + resolution: {integrity: sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==} + engines: {node: '>= 0.4'} callsites@3.1.0: - resolution: - { - integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==, - } - engines: { node: '>=6' } + resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==} + engines: {node: '>=6'} camel-case@3.0.0: - resolution: - { - integrity: sha512-+MbKztAYHXPr1jNTSKQF52VpcFjwY5RkR7fxksV8Doo4KAYc5Fl4UJRgthBbTmEx8C54DqahhbLJkDwjI3PI/w==, - } + resolution: {integrity: sha512-+MbKztAYHXPr1jNTSKQF52VpcFjwY5RkR7fxksV8Doo4KAYc5Fl4UJRgthBbTmEx8C54DqahhbLJkDwjI3PI/w==} camelcase-keys@6.2.2: - resolution: - { - integrity: sha512-YrwaA0vEKazPBkn0ipTiMpSajYDSe+KjQfrjhcBMxJt/znbvlHd8Pw/Vamaz5EB4Wfhs3SUR3Z9mwRu/P3s3Yg==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-YrwaA0vEKazPBkn0ipTiMpSajYDSe+KjQfrjhcBMxJt/znbvlHd8Pw/Vamaz5EB4Wfhs3SUR3Z9mwRu/P3s3Yg==} + engines: {node: '>=8'} camelcase@5.3.1: - resolution: - { - integrity: sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==, - } - engines: { node: '>=6' } + resolution: {integrity: sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==} + engines: {node: '>=6'} camelcase@6.3.0: - resolution: - { - integrity: sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==} + engines: {node: '>=10'} camelize@1.0.1: - resolution: - { - integrity: sha512-dU+Tx2fsypxTgtLoE36npi3UqcjSSMNYfkqgmoEhtZrraP5VWq0K7FkWVTYa8eMPtnU/G2txVsfdCJTn9uzpuQ==, - } + resolution: {integrity: sha512-dU+Tx2fsypxTgtLoE36npi3UqcjSSMNYfkqgmoEhtZrraP5VWq0K7FkWVTYa8eMPtnU/G2txVsfdCJTn9uzpuQ==} caniuse-lite@1.0.30001765: - resolution: - { - integrity: sha512-LWcNtSyZrakjECqmpP4qdg0MMGdN368D7X8XvvAqOcqMv0RxnlqVKZl2V6/mBR68oYMxOZPLw/gO7DuisMHUvQ==, - } + resolution: {integrity: sha512-LWcNtSyZrakjECqmpP4qdg0MMGdN368D7X8XvvAqOcqMv0RxnlqVKZl2V6/mBR68oYMxOZPLw/gO7DuisMHUvQ==} case@1.6.3: - resolution: - { - integrity: sha512-mzDSXIPaFwVDvZAHqZ9VlbyF4yyXRuX6IvB06WvPYkqJVO24kX1PPhv9bfpKNFZyxYFmmgo03HUiD8iklmJYRQ==, - } - engines: { node: '>= 0.8.0' } + resolution: {integrity: sha512-mzDSXIPaFwVDvZAHqZ9VlbyF4yyXRuX6IvB06WvPYkqJVO24kX1PPhv9bfpKNFZyxYFmmgo03HUiD8iklmJYRQ==} + engines: {node: '>= 0.8.0'} chalk@3.0.0: - resolution: - { - integrity: sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==} + engines: {node: '>=8'} chalk@4.1.0: - resolution: - { - integrity: sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==} + engines: {node: '>=10'} chalk@4.1.2: - resolution: - { - integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} + engines: {node: '>=10'} char-regex@1.0.2: - resolution: - { - integrity: sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==} + engines: {node: '>=10'} chardet@2.1.1: - resolution: - { - integrity: sha512-PsezH1rqdV9VvyNhxxOW32/d75r01NY7TQCmOqomRo15ZSOKbpTFVsfjghxo6JloQUCGnH4k1LGu0R4yCLlWQQ==, - } + resolution: {integrity: sha512-PsezH1rqdV9VvyNhxxOW32/d75r01NY7TQCmOqomRo15ZSOKbpTFVsfjghxo6JloQUCGnH4k1LGu0R4yCLlWQQ==} cheerio-select@2.1.0: - resolution: - { - integrity: sha512-9v9kG0LvzrlcungtnJtpGNxY+fzECQKhK4EGJX2vByejiMX84MFNQw4UxPJl3bFbTMw+Dfs37XaIkCwTZfLh4g==, - } + resolution: {integrity: sha512-9v9kG0LvzrlcungtnJtpGNxY+fzECQKhK4EGJX2vByejiMX84MFNQw4UxPJl3bFbTMw+Dfs37XaIkCwTZfLh4g==} cheerio@1.0.0-rc.3: - resolution: - { - integrity: sha512-0td5ijfUPuubwLUu0OBoe98gZj8C/AA+RW3v67GPlGOrvxWjZmBXiBCRU+I8VEiNyJzjth40POfHiz2RB3gImA==, - } - engines: { node: '>= 0.6' } + resolution: {integrity: sha512-0td5ijfUPuubwLUu0OBoe98gZj8C/AA+RW3v67GPlGOrvxWjZmBXiBCRU+I8VEiNyJzjth40POfHiz2RB3gImA==} + engines: {node: '>= 0.6'} cheerio@1.1.2: - resolution: - { - integrity: sha512-IkxPpb5rS/d1IiLbHMgfPuS0FgiWTtFIm/Nj+2woXDLTZ7fOT2eqzgYbdMlLweqlHbsZjxEChoVK+7iph7jyQg==, - } - engines: { node: '>=20.18.1' } + resolution: {integrity: sha512-IkxPpb5rS/d1IiLbHMgfPuS0FgiWTtFIm/Nj+2woXDLTZ7fOT2eqzgYbdMlLweqlHbsZjxEChoVK+7iph7jyQg==} + engines: {node: '>=20.18.1'} chokidar@3.6.0: - resolution: - { - integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==, - } - engines: { node: '>= 8.10.0' } + resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==} + engines: {node: '>= 8.10.0'} chownr@2.0.0: - resolution: - { - integrity: sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==} + engines: {node: '>=10'} ci-info@3.9.0: - resolution: - { - integrity: sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==} + engines: {node: '>=8'} ci-info@4.3.1: - resolution: - { - integrity: sha512-Wdy2Igu8OcBpI2pZePZ5oWjPC38tmDVx5WKUXKwlLYkA0ozo85sLsLvkBbBn/sZaSCMFOGZJ14fvW9t5/d7kdA==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-Wdy2Igu8OcBpI2pZePZ5oWjPC38tmDVx5WKUXKwlLYkA0ozo85sLsLvkBbBn/sZaSCMFOGZJ14fvW9t5/d7kdA==} + engines: {node: '>=8'} cjs-module-lexer@2.2.0: - resolution: - { - integrity: sha512-4bHTS2YuzUvtoLjdy+98ykbNB5jS0+07EvFNXerqZQJ89F7DI6ET7OQo/HJuW6K0aVsKA9hj9/RVb2kQVOrPDQ==, - } + resolution: {integrity: sha512-4bHTS2YuzUvtoLjdy+98ykbNB5jS0+07EvFNXerqZQJ89F7DI6ET7OQo/HJuW6K0aVsKA9hj9/RVb2kQVOrPDQ==} clean-ansi@0.2.0: - resolution: - { - integrity: sha512-AX26I7oo87AIA4OixLOARtjeNdX85aKGI+HPJ7wQEnXkoC3ytbwIuPu3d5+cmDoh2j1I2pQsQa/z3/FNAR8vOQ==, - } + resolution: {integrity: sha512-AX26I7oo87AIA4OixLOARtjeNdX85aKGI+HPJ7wQEnXkoC3ytbwIuPu3d5+cmDoh2j1I2pQsQa/z3/FNAR8vOQ==} clean-css@4.2.4: - resolution: - { - integrity: sha512-EJUDT7nDVFDvaQgAo2G/PJvxmp1o/c6iXLbswsBbUFXi1Nr+AjA2cKmfbKDMjMvzEe75g3P6JkaDDAKk96A85A==, - } - engines: { node: '>= 4.0' } + resolution: {integrity: sha512-EJUDT7nDVFDvaQgAo2G/PJvxmp1o/c6iXLbswsBbUFXi1Nr+AjA2cKmfbKDMjMvzEe75g3P6JkaDDAKk96A85A==} + engines: {node: '>= 4.0'} clean-stack@2.2.0: - resolution: - { - integrity: sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==, - } - engines: { node: '>=6' } + resolution: {integrity: sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==} + engines: {node: '>=6'} cli-cursor@3.1.0: - resolution: - { - integrity: sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==} + engines: {node: '>=8'} cli-spinners@2.6.1: - resolution: - { - integrity: sha512-x/5fWmGMnbKQAaNwN+UZlV79qBLM9JFnJuJ03gIi5whrob0xV0ofNVHy9DhwGdsMJQc2OKv0oGmLzvaqvAVv+g==, - } - engines: { node: '>=6' } + resolution: {integrity: sha512-x/5fWmGMnbKQAaNwN+UZlV79qBLM9JFnJuJ03gIi5whrob0xV0ofNVHy9DhwGdsMJQc2OKv0oGmLzvaqvAVv+g==} + engines: {node: '>=6'} cli-spinners@2.9.2: - resolution: - { - integrity: sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==, - } - engines: { node: '>=6' } + resolution: {integrity: sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==} + engines: {node: '>=6'} cli-width@3.0.0: - resolution: - { - integrity: sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RKx+mJJYSthzNhp32Kzxxy3YAEZ/Dc/EWN1vZRY0+kOhbw==, - } - engines: { node: '>= 10' } + resolution: {integrity: sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RKx+mJJYSthzNhp32Kzxxy3YAEZ/Dc/EWN1vZRY0+kOhbw==} + engines: {node: '>= 10'} cliui@6.0.0: - resolution: - { - integrity: sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==, - } + resolution: {integrity: sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==} cliui@7.0.4: - resolution: - { - integrity: sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==, - } + resolution: {integrity: sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==} cliui@8.0.1: - resolution: - { - integrity: sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==, - } - engines: { node: '>=12' } + resolution: {integrity: sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==} + engines: {node: '>=12'} clone-deep@4.0.1: - resolution: - { - integrity: sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==, - } - engines: { node: '>=6' } + resolution: {integrity: sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==} + engines: {node: '>=6'} clone@1.0.4: - resolution: - { - integrity: sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==, - } - engines: { node: '>=0.8' } + resolution: {integrity: sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==} + engines: {node: '>=0.8'} clsx@1.2.1: - resolution: - { - integrity: sha512-EcR6r5a8bj6pu3ycsa/E/cKVGuTgZJZdsyUYHOksG/UHIiKfjxzRxYJpyVBwYaQeOvghal9fcc4PidlgzugAQg==, - } - engines: { node: '>=6' } + resolution: {integrity: sha512-EcR6r5a8bj6pu3ycsa/E/cKVGuTgZJZdsyUYHOksG/UHIiKfjxzRxYJpyVBwYaQeOvghal9fcc4PidlgzugAQg==} + engines: {node: '>=6'} clsx@2.1.1: - resolution: - { - integrity: sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==, - } - engines: { node: '>=6' } + resolution: {integrity: sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==} + engines: {node: '>=6'} cmd-shim@6.0.3: - resolution: - { - integrity: sha512-FMabTRlc5t5zjdenF6mS0MBeFZm0XqHqeOkcskKFb/LYCcRQ5fVgLOHVc4Lq9CqABd9zhjwPjMBCJvMCziSVtA==, - } - engines: { node: ^14.17.0 || ^16.13.0 || >=18.0.0 } + resolution: {integrity: sha512-FMabTRlc5t5zjdenF6mS0MBeFZm0XqHqeOkcskKFb/LYCcRQ5fVgLOHVc4Lq9CqABd9zhjwPjMBCJvMCziSVtA==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} co@4.6.0: - resolution: - { - integrity: sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==, - } - engines: { iojs: '>= 1.0.0', node: '>= 0.12.0' } + resolution: {integrity: sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==} + engines: {iojs: '>= 1.0.0', node: '>= 0.12.0'} collect-v8-coverage@1.0.3: - resolution: - { - integrity: sha512-1L5aqIkwPfiodaMgQunkF1zRhNqifHBmtbbbxcr6yVxxBnliw4TDOW6NxpO8DJLgJ16OT+Y4ztZqP6p/FtXnAw==, - } + resolution: {integrity: sha512-1L5aqIkwPfiodaMgQunkF1zRhNqifHBmtbbbxcr6yVxxBnliw4TDOW6NxpO8DJLgJ16OT+Y4ztZqP6p/FtXnAw==} color-convert@2.0.1: - resolution: - { - integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==, - } - engines: { node: '>=7.0.0' } + resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} + engines: {node: '>=7.0.0'} color-name@1.1.4: - resolution: - { - integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==, - } + resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} color-support@1.1.3: - resolution: - { - integrity: sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==, - } + resolution: {integrity: sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==} hasBin: true columnify@1.6.0: - resolution: - { - integrity: sha512-lomjuFZKfM6MSAnV9aCZC9sc0qGbmZdfygNv+nCpqVkSKdCxCklLtd16O0EILGkImHw9ZpHkAnHaB+8Zxq5W6Q==, - } - engines: { node: '>=8.0.0' } + resolution: {integrity: sha512-lomjuFZKfM6MSAnV9aCZC9sc0qGbmZdfygNv+nCpqVkSKdCxCklLtd16O0EILGkImHw9ZpHkAnHaB+8Zxq5W6Q==} + engines: {node: '>=8.0.0'} combined-stream@1.0.8: - resolution: - { - integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==, - } - engines: { node: '>= 0.8' } + resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==} + engines: {node: '>= 0.8'} commander@10.0.1: - resolution: - { - integrity: sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==, - } - engines: { node: '>=14' } + resolution: {integrity: sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==} + engines: {node: '>=14'} commander@2.17.1: - resolution: - { - integrity: sha512-wPMUt6FnH2yzG95SA6mzjQOEKUU3aLaDEmzs1ti+1E9h+CsrZghRlqEM/EJ4KscsQVG8uNN4uVreUeT8+drlgg==, - } + resolution: {integrity: sha512-wPMUt6FnH2yzG95SA6mzjQOEKUU3aLaDEmzs1ti+1E9h+CsrZghRlqEM/EJ4KscsQVG8uNN4uVreUeT8+drlgg==} commander@2.19.0: - resolution: - { - integrity: sha512-6tvAOO+D6OENvRAh524Dh9jcfKTYDQAqvqezbCW82xj5X0pSrcpxtvRKHLG0yBY6SD7PSDrJaj+0AiOcKVd1Xg==, - } + resolution: {integrity: sha512-6tvAOO+D6OENvRAh524Dh9jcfKTYDQAqvqezbCW82xj5X0pSrcpxtvRKHLG0yBY6SD7PSDrJaj+0AiOcKVd1Xg==} commander@5.1.0: - resolution: - { - integrity: sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==, - } - engines: { node: '>= 6' } + resolution: {integrity: sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==} + engines: {node: '>= 6'} common-ancestor-path@1.0.1: - resolution: - { - integrity: sha512-L3sHRo1pXXEqX8VU28kfgUY+YGsk09hPqZiZmLacNib6XNTCM8ubYeT7ryXQw8asB1sKgcU5lkB7ONug08aB8w==, - } + resolution: {integrity: sha512-L3sHRo1pXXEqX8VU28kfgUY+YGsk09hPqZiZmLacNib6XNTCM8ubYeT7ryXQw8asB1sKgcU5lkB7ONug08aB8w==} compare-func@2.0.0: - resolution: - { - integrity: sha512-zHig5N+tPWARooBnb0Zx1MFcdfpyJrfTJ3Y5L+IFvUm8rM74hHz66z0gw0x4tijh5CorKkKUCnW82R2vmpeCRA==, - } + resolution: {integrity: sha512-zHig5N+tPWARooBnb0Zx1MFcdfpyJrfTJ3Y5L+IFvUm8rM74hHz66z0gw0x4tijh5CorKkKUCnW82R2vmpeCRA==} component-emitter@1.3.1: - resolution: - { - integrity: sha512-T0+barUSQRTUQASh8bx02dl+DhF54GtIDY13Y3m9oWTklKbb3Wv974meRpeZ3lp1JpLVECWWNHC4vaG2XHXouQ==, - } + resolution: {integrity: sha512-T0+barUSQRTUQASh8bx02dl+DhF54GtIDY13Y3m9oWTklKbb3Wv974meRpeZ3lp1JpLVECWWNHC4vaG2XHXouQ==} concat-map@0.0.1: - resolution: - { - integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==, - } + resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} concat-stream@2.0.0: - resolution: - { - integrity: sha512-MWufYdFw53ccGjCA+Ol7XJYpAlW6/prSMzuPOTRnJGcGzuhLn4Scrz7qf6o8bROZ514ltazcIFJZevcfbo0x7A==, - } - engines: { '0': node >= 6.0 } + resolution: {integrity: sha512-MWufYdFw53ccGjCA+Ol7XJYpAlW6/prSMzuPOTRnJGcGzuhLn4Scrz7qf6o8bROZ514ltazcIFJZevcfbo0x7A==} + engines: {'0': node >= 6.0} config-chain@1.1.13: - resolution: - { - integrity: sha512-qj+f8APARXHrM0hraqXYb2/bOVSV4PvJQlNZ/DVj0QrmNM2q2euizkeuVckQ57J+W0mRH6Hvi+k50M4Jul2VRQ==, - } + resolution: {integrity: sha512-qj+f8APARXHrM0hraqXYb2/bOVSV4PvJQlNZ/DVj0QrmNM2q2euizkeuVckQ57J+W0mRH6Hvi+k50M4Jul2VRQ==} console-control-strings@1.1.0: - resolution: - { - integrity: sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==, - } + resolution: {integrity: sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==} content-disposition@1.0.1: - resolution: - { - integrity: sha512-oIXISMynqSqm241k6kcQ5UwttDILMK4BiurCfGEREw6+X9jkkpEe5T9FZaApyLGGOnFuyMWZpdolTXMtvEJ08Q==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-oIXISMynqSqm241k6kcQ5UwttDILMK4BiurCfGEREw6+X9jkkpEe5T9FZaApyLGGOnFuyMWZpdolTXMtvEJ08Q==} + engines: {node: '>=18'} content-type@1.0.5: - resolution: - { - integrity: sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==, - } - engines: { node: '>= 0.6' } + resolution: {integrity: sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==} + engines: {node: '>= 0.6'} conventional-changelog-angular@7.0.0: - resolution: - { - integrity: sha512-ROjNchA9LgfNMTTFSIWPzebCwOGFdgkEq45EnvvrmSLvCtAw0HSmrCs7/ty+wAeYUZyNay0YMUNYFTRL72PkBQ==, - } - engines: { node: '>=16' } + resolution: {integrity: sha512-ROjNchA9LgfNMTTFSIWPzebCwOGFdgkEq45EnvvrmSLvCtAw0HSmrCs7/ty+wAeYUZyNay0YMUNYFTRL72PkBQ==} + engines: {node: '>=16'} conventional-changelog-core@5.0.1: - resolution: - { - integrity: sha512-Rvi5pH+LvgsqGwZPZ3Cq/tz4ty7mjijhr3qR4m9IBXNbxGGYgTVVO+duXzz9aArmHxFtwZ+LRkrNIMDQzgoY4A==, - } - engines: { node: '>=14' } + resolution: {integrity: sha512-Rvi5pH+LvgsqGwZPZ3Cq/tz4ty7mjijhr3qR4m9IBXNbxGGYgTVVO+duXzz9aArmHxFtwZ+LRkrNIMDQzgoY4A==} + engines: {node: '>=14'} conventional-changelog-preset-loader@3.0.0: - resolution: - { - integrity: sha512-qy9XbdSLmVnwnvzEisjxdDiLA4OmV3o8db+Zdg4WiFw14fP3B6XNz98X0swPPpkTd/pc1K7+adKgEDM1JCUMiA==, - } - engines: { node: '>=14' } + resolution: {integrity: sha512-qy9XbdSLmVnwnvzEisjxdDiLA4OmV3o8db+Zdg4WiFw14fP3B6XNz98X0swPPpkTd/pc1K7+adKgEDM1JCUMiA==} + engines: {node: '>=14'} conventional-changelog-writer@6.0.1: - resolution: - { - integrity: sha512-359t9aHorPw+U+nHzUXHS5ZnPBOizRxfQsWT5ZDHBfvfxQOAik+yfuhKXG66CN5LEWPpMNnIMHUTCKeYNprvHQ==, - } - engines: { node: '>=14' } + resolution: {integrity: sha512-359t9aHorPw+U+nHzUXHS5ZnPBOizRxfQsWT5ZDHBfvfxQOAik+yfuhKXG66CN5LEWPpMNnIMHUTCKeYNprvHQ==} + engines: {node: '>=14'} hasBin: true conventional-commits-filter@3.0.0: - resolution: - { - integrity: sha512-1ymej8b5LouPx9Ox0Dw/qAO2dVdfpRFq28e5Y0jJEU8ZrLdy0vOSkkIInwmxErFGhg6SALro60ZrwYFVTUDo4Q==, - } - engines: { node: '>=14' } + resolution: {integrity: sha512-1ymej8b5LouPx9Ox0Dw/qAO2dVdfpRFq28e5Y0jJEU8ZrLdy0vOSkkIInwmxErFGhg6SALro60ZrwYFVTUDo4Q==} + engines: {node: '>=14'} conventional-commits-parser@4.0.0: - resolution: - { - integrity: sha512-WRv5j1FsVM5FISJkoYMR6tPk07fkKT0UodruX4je86V4owk451yjXAKzKAPOs9l7y59E2viHUS9eQ+dfUA9NSg==, - } - engines: { node: '>=14' } + resolution: {integrity: sha512-WRv5j1FsVM5FISJkoYMR6tPk07fkKT0UodruX4je86V4owk451yjXAKzKAPOs9l7y59E2viHUS9eQ+dfUA9NSg==} + engines: {node: '>=14'} hasBin: true conventional-recommended-bump@7.0.1: - resolution: - { - integrity: sha512-Ft79FF4SlOFvX4PkwFDRnaNiIVX7YbmqGU0RwccUaiGvgp3S0a8ipR2/Qxk31vclDNM+GSdJOVs2KrsUCjblVA==, - } - engines: { node: '>=14' } + resolution: {integrity: sha512-Ft79FF4SlOFvX4PkwFDRnaNiIVX7YbmqGU0RwccUaiGvgp3S0a8ipR2/Qxk31vclDNM+GSdJOVs2KrsUCjblVA==} + engines: {node: '>=14'} hasBin: true convert-source-map@2.0.0: - resolution: - { - integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==, - } + resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==} cookie-signature@1.2.2: - resolution: - { - integrity: sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==, - } - engines: { node: '>=6.6.0' } + resolution: {integrity: sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==} + engines: {node: '>=6.6.0'} cookie@0.7.2: - resolution: - { - integrity: sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==, - } - engines: { node: '>= 0.6' } + resolution: {integrity: sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==} + engines: {node: '>= 0.6'} cookiejar@2.1.4: - resolution: - { - integrity: sha512-LDx6oHrK+PhzLKJU9j5S7/Y3jM/mUHvD/DeI1WQmJn652iPC5Y4TBzC9l+5OMOXlyTTA+SmVUPm0HQUwpD5Jqw==, - } + resolution: {integrity: sha512-LDx6oHrK+PhzLKJU9j5S7/Y3jM/mUHvD/DeI1WQmJn652iPC5Y4TBzC9l+5OMOXlyTTA+SmVUPm0HQUwpD5Jqw==} copyfiles@2.4.1: - resolution: - { - integrity: sha512-fereAvAvxDrQDOXybk3Qu3dPbOoKoysFMWtkY3mv5BsL8//OSZVL5DCLYqgRfY5cWirgRzlC+WSrxp6Bo3eNZg==, - } + resolution: {integrity: sha512-fereAvAvxDrQDOXybk3Qu3dPbOoKoysFMWtkY3mv5BsL8//OSZVL5DCLYqgRfY5cWirgRzlC+WSrxp6Bo3eNZg==} hasBin: true core-js-pure@3.47.0: - resolution: - { - integrity: sha512-BcxeDbzUrRnXGYIVAGFtcGQVNpFcUhVjr6W7F8XktvQW2iJP9e66GP6xdKotCRFlrxBvNIBrhwKteRXqMV86Nw==, - } + resolution: {integrity: sha512-BcxeDbzUrRnXGYIVAGFtcGQVNpFcUhVjr6W7F8XktvQW2iJP9e66GP6xdKotCRFlrxBvNIBrhwKteRXqMV86Nw==} core-js@2.6.12: - resolution: - { - integrity: sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ==, - } + resolution: {integrity: sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ==} deprecated: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js. core-util-is@1.0.3: - resolution: - { - integrity: sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==, - } + resolution: {integrity: sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==} cors@2.8.5: - resolution: - { - integrity: sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==, - } - engines: { node: '>= 0.10' } + resolution: {integrity: sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==} + engines: {node: '>= 0.10'} cosmiconfig@9.0.0: - resolution: - { - integrity: sha512-itvL5h8RETACmOTFc4UfIyB2RfEHi71Ax6E/PivVxq9NseKbOWpeyHEOIbmAw1rs8Ak0VursQNww7lf7YtUwzg==, - } - engines: { node: '>=14' } + resolution: {integrity: sha512-itvL5h8RETACmOTFc4UfIyB2RfEHi71Ax6E/PivVxq9NseKbOWpeyHEOIbmAw1rs8Ak0VursQNww7lf7YtUwzg==} + engines: {node: '>=14'} peerDependencies: typescript: '>=4.9.5' peerDependenciesMeta: @@ -8168,128 +5958,71 @@ packages: optional: true create-require@1.1.1: - resolution: - { - integrity: sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==, - } + resolution: {integrity: sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==} cron-parser@4.9.0: - resolution: - { - integrity: sha512-p0SaNjrHOnQeR8/VnfGbmg9te2kfyYSQ7Sc/j/6DtPL3JQvKxmjO9TSjNFpujqV3vEYYBvNNvXSxzyksBWAx1Q==, - } - engines: { node: '>=12.0.0' } + resolution: {integrity: sha512-p0SaNjrHOnQeR8/VnfGbmg9te2kfyYSQ7Sc/j/6DtPL3JQvKxmjO9TSjNFpujqV3vEYYBvNNvXSxzyksBWAx1Q==} + engines: {node: '>=12.0.0'} cross-spawn@7.0.6: - resolution: - { - integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==, - } - engines: { node: '>= 8' } + resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==} + engines: {node: '>= 8'} css-color-keywords@1.0.0: - resolution: - { - integrity: sha512-FyyrDHZKEjXDpNJYvVsV960FiqQyXc/LlYmsxl2BcdMb2WPx0OGRVgTg55rPSyLSNMqP52R9r8geSp7apN3Ofg==, - } - engines: { node: '>=4' } + resolution: {integrity: sha512-FyyrDHZKEjXDpNJYvVsV960FiqQyXc/LlYmsxl2BcdMb2WPx0OGRVgTg55rPSyLSNMqP52R9r8geSp7apN3Ofg==} + engines: {node: '>=4'} css-select@1.2.0: - resolution: - { - integrity: sha512-dUQOBoqdR7QwV90WysXPLXG5LO7nhYBgiWVfxF80DKPF8zx1t/pUd2FYy73emg3zrjtM6dzmYgbHKfV2rxiHQA==, - } + resolution: {integrity: sha512-dUQOBoqdR7QwV90WysXPLXG5LO7nhYBgiWVfxF80DKPF8zx1t/pUd2FYy73emg3zrjtM6dzmYgbHKfV2rxiHQA==} css-select@5.2.2: - resolution: - { - integrity: sha512-TizTzUddG/xYLA3NXodFM0fSbNizXjOKhqiQQwvhlspadZokn1KDy0NZFS0wuEubIYAV5/c1/lAr0TaaFXEXzw==, - } + resolution: {integrity: sha512-TizTzUddG/xYLA3NXodFM0fSbNizXjOKhqiQQwvhlspadZokn1KDy0NZFS0wuEubIYAV5/c1/lAr0TaaFXEXzw==} css-to-react-native@3.2.0: - resolution: - { - integrity: sha512-e8RKaLXMOFii+02mOlqwjbD00KSEKqblnpO9e++1aXS1fPQOpS1YoqdVHBqPjHNoxeF2mimzVqawm2KCbEdtHQ==, - } + resolution: {integrity: sha512-e8RKaLXMOFii+02mOlqwjbD00KSEKqblnpO9e++1aXS1fPQOpS1YoqdVHBqPjHNoxeF2mimzVqawm2KCbEdtHQ==} css-what@2.1.3: - resolution: - { - integrity: sha512-a+EPoD+uZiNfh+5fxw2nO9QwFa6nJe2Or35fGY6Ipw1R3R4AGz1d1TEZrCegvw2YTmZ0jXirGYlzxxpYSHwpEg==, - } + resolution: {integrity: sha512-a+EPoD+uZiNfh+5fxw2nO9QwFa6nJe2Or35fGY6Ipw1R3R4AGz1d1TEZrCegvw2YTmZ0jXirGYlzxxpYSHwpEg==} css-what@6.2.2: - resolution: - { - integrity: sha512-u/O3vwbptzhMs3L1fQE82ZSLHQQfto5gyZzwteVIEyeaY5Fc7R4dapF/BvRoSYFeqfBk4m0V1Vafq5Pjv25wvA==, - } - engines: { node: '>= 6' } + resolution: {integrity: sha512-u/O3vwbptzhMs3L1fQE82ZSLHQQfto5gyZzwteVIEyeaY5Fc7R4dapF/BvRoSYFeqfBk4m0V1Vafq5Pjv25wvA==} + engines: {node: '>= 6'} css.escape@1.5.1: - resolution: - { - integrity: sha512-YUifsXXuknHlUsmlgyY0PKzgPOr7/FjCePfHNt0jxm83wHZi44VDMQ7/fGNkjY3/jV1MC+1CmZbaHzugyeRtpg==, - } + resolution: {integrity: sha512-YUifsXXuknHlUsmlgyY0PKzgPOr7/FjCePfHNt0jxm83wHZi44VDMQ7/fGNkjY3/jV1MC+1CmZbaHzugyeRtpg==} css@3.0.0: - resolution: - { - integrity: sha512-DG9pFfwOrzc+hawpmqX/dHYHJG+Bsdb0klhyi1sDneOgGOXy9wQIC8hzyVp1e4NRYDBdxcylvywPkkXCHAzTyQ==, - } + resolution: {integrity: sha512-DG9pFfwOrzc+hawpmqX/dHYHJG+Bsdb0klhyi1sDneOgGOXy9wQIC8hzyVp1e4NRYDBdxcylvywPkkXCHAzTyQ==} cssesc@3.0.0: - resolution: - { - integrity: sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==, - } - engines: { node: '>=4' } + resolution: {integrity: sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==} + engines: {node: '>=4'} hasBin: true csstype@3.2.3: - resolution: - { - integrity: sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==, - } + resolution: {integrity: sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==} csv-parse@6.1.0: - resolution: - { - integrity: sha512-CEE+jwpgLn+MmtCpVcPtiCZpVtB6Z2OKPTr34pycYYoL7sxdOkXDdQ4lRiw6ioC0q6BLqhc6cKweCVvral8yhw==, - } + resolution: {integrity: sha512-CEE+jwpgLn+MmtCpVcPtiCZpVtB6Z2OKPTr34pycYYoL7sxdOkXDdQ4lRiw6ioC0q6BLqhc6cKweCVvral8yhw==} csv-parser@2.3.5: - resolution: - { - integrity: sha512-LCHolC4AlNwL+5EuD5LH2VVNKpD8QixZW2zzK1XmrVYUaslFY4c5BooERHOCIubG9iv/DAyFjs4x0HvWNZuyWg==, - } - engines: { node: '>= 8.16.0' } + resolution: {integrity: sha512-LCHolC4AlNwL+5EuD5LH2VVNKpD8QixZW2zzK1XmrVYUaslFY4c5BooERHOCIubG9iv/DAyFjs4x0HvWNZuyWg==} + engines: {node: '>= 8.16.0'} hasBin: true dargs@7.0.0: - resolution: - { - integrity: sha512-2iy1EkLdlBzQGvbweYRFxmFath8+K7+AKB0TlhHWkNuH+TmovaMH/Wp7V7R4u7f4SnX3OgLsU9t1NI9ioDnUpg==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-2iy1EkLdlBzQGvbweYRFxmFath8+K7+AKB0TlhHWkNuH+TmovaMH/Wp7V7R4u7f4SnX3OgLsU9t1NI9ioDnUpg==} + engines: {node: '>=8'} dateformat@3.0.3: - resolution: - { - integrity: sha512-jyCETtSl3VMZMWeRo7iY1FL19ges1t55hMo5yaam4Jrsm5EPL89UQkoQRyiI+Yf4k8r2ZpdngkV8hr1lIdjb3Q==, - } + resolution: {integrity: sha512-jyCETtSl3VMZMWeRo7iY1FL19ges1t55hMo5yaam4Jrsm5EPL89UQkoQRyiI+Yf4k8r2ZpdngkV8hr1lIdjb3Q==} debounce-promise@3.1.2: - resolution: - { - integrity: sha512-rZHcgBkbYavBeD9ej6sP56XfG53d51CD4dnaw989YX/nZ/ZJfgRx/9ePKmTNiUiyQvh4mtrMoS3OAWW+yoYtpg==, - } + resolution: {integrity: sha512-rZHcgBkbYavBeD9ej6sP56XfG53d51CD4dnaw989YX/nZ/ZJfgRx/9ePKmTNiUiyQvh4mtrMoS3OAWW+yoYtpg==} debug@4.4.3: - resolution: - { - integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==, - } - engines: { node: '>=6.0' } + resolution: {integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==} + engines: {node: '>=6.0'} peerDependencies: supports-color: '*' peerDependenciesMeta: @@ -8297,31 +6030,19 @@ packages: optional: true decamelize-keys@1.1.1: - resolution: - { - integrity: sha512-WiPxgEirIV0/eIOMcnFBA3/IJZAZqKnwAwWyvvdi4lsr1WCN22nhdf/3db3DoZcUjTV2SqfzIwNyp6y2xs3nmg==, - } - engines: { node: '>=0.10.0' } + resolution: {integrity: sha512-WiPxgEirIV0/eIOMcnFBA3/IJZAZqKnwAwWyvvdi4lsr1WCN22nhdf/3db3DoZcUjTV2SqfzIwNyp6y2xs3nmg==} + engines: {node: '>=0.10.0'} decamelize@1.2.0: - resolution: - { - integrity: sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==, - } - engines: { node: '>=0.10.0' } + resolution: {integrity: sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==} + engines: {node: '>=0.10.0'} decode-uri-component@0.2.2: - resolution: - { - integrity: sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ==, - } - engines: { node: '>=0.10' } + resolution: {integrity: sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ==} + engines: {node: '>=0.10'} dedent@1.5.3: - resolution: - { - integrity: sha512-NHQtfOOW68WD8lgypbLA5oT+Bt0xXJhiYvoR6SmmNXZfpzOGXwdKWmcwG8N7PwVVWV3eF/68nmD9BaJSsTBhyQ==, - } + resolution: {integrity: sha512-NHQtfOOW68WD8lgypbLA5oT+Bt0xXJhiYvoR6SmmNXZfpzOGXwdKWmcwG8N7PwVVWV3eF/68nmD9BaJSsTBhyQ==} peerDependencies: babel-plugin-macros: ^3.1.0 peerDependenciesMeta: @@ -8329,10 +6050,7 @@ packages: optional: true dedent@1.7.1: - resolution: - { - integrity: sha512-9JmrhGZpOlEgOLdQgSm0zxFaYoQon408V1v49aqTWuXENVlnCuY9JBZcXZiCsZQWDjTm5Qf/nIvAy77mXDAjEg==, - } + resolution: {integrity: sha512-9JmrhGZpOlEgOLdQgSm0zxFaYoQon408V1v49aqTWuXENVlnCuY9JBZcXZiCsZQWDjTm5Qf/nIvAy77mXDAjEg==} peerDependencies: babel-plugin-macros: ^3.1.0 peerDependenciesMeta: @@ -8340,230 +6058,125 @@ packages: optional: true deep-is@0.1.4: - resolution: - { - integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==, - } + resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==} deepmerge@4.3.1: - resolution: - { - integrity: sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==, - } - engines: { node: '>=0.10.0' } + resolution: {integrity: sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==} + engines: {node: '>=0.10.0'} defaults@1.0.4: - resolution: - { - integrity: sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A==, - } + resolution: {integrity: sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A==} define-lazy-prop@2.0.0: - resolution: - { - integrity: sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==} + engines: {node: '>=8'} delayed-stream@1.0.0: - resolution: - { - integrity: sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==, - } - engines: { node: '>=0.4.0' } + resolution: {integrity: sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==} + engines: {node: '>=0.4.0'} depd@1.1.2: - resolution: - { - integrity: sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ==, - } - engines: { node: '>= 0.6' } + resolution: {integrity: sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ==} + engines: {node: '>= 0.6'} depd@2.0.0: - resolution: - { - integrity: sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==, - } - engines: { node: '>= 0.8' } + resolution: {integrity: sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==} + engines: {node: '>= 0.8'} deprecation@2.3.1: - resolution: - { - integrity: sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==, - } + resolution: {integrity: sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==} detect-indent@5.0.0: - resolution: - { - integrity: sha512-rlpvsxUtM0PQvy9iZe640/IWwWYyBsTApREbA1pHOpmOUIl9MkP/U4z7vTtg4Oaojvqhxt7sdufnT0EzGaR31g==, - } - engines: { node: '>=4' } + resolution: {integrity: sha512-rlpvsxUtM0PQvy9iZe640/IWwWYyBsTApREbA1pHOpmOUIl9MkP/U4z7vTtg4Oaojvqhxt7sdufnT0EzGaR31g==} + engines: {node: '>=4'} detect-newline@3.1.0: - resolution: - { - integrity: sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==} + engines: {node: '>=8'} detect-node-es@1.1.0: - resolution: - { - integrity: sha512-ypdmJU/TbBby2Dxibuv7ZLW3Bs1QEmM7nHjEANfohJLvE0XVujisn1qPJcZxg+qDucsr+bP6fLD1rPS3AhJ7EQ==, - } + resolution: {integrity: sha512-ypdmJU/TbBby2Dxibuv7ZLW3Bs1QEmM7nHjEANfohJLvE0XVujisn1qPJcZxg+qDucsr+bP6fLD1rPS3AhJ7EQ==} detect-node@2.1.0: - resolution: - { - integrity: sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==, - } + resolution: {integrity: sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==} dezalgo@1.0.4: - resolution: - { - integrity: sha512-rXSP0bf+5n0Qonsb+SVVfNfIsimO4HEtmnIpPHY8Q1UCzKlQrDMfdobr8nJOOsRgWCyMRqeSBQzmWUMq7zvVig==, - } + resolution: {integrity: sha512-rXSP0bf+5n0Qonsb+SVVfNfIsimO4HEtmnIpPHY8Q1UCzKlQrDMfdobr8nJOOsRgWCyMRqeSBQzmWUMq7zvVig==} dicer@0.3.0: - resolution: - { - integrity: sha512-MdceRRWqltEG2dZqO769g27N/3PXfcKl04VhYnBlo2YhH7zPi88VebsjTKclaOyiuMaGU72hTfw3VkUitGcVCA==, - } - engines: { node: '>=4.5.0' } + resolution: {integrity: sha512-MdceRRWqltEG2dZqO769g27N/3PXfcKl04VhYnBlo2YhH7zPi88VebsjTKclaOyiuMaGU72hTfw3VkUitGcVCA==} + engines: {node: '>=4.5.0'} diff-sequences@29.6.3: - resolution: - { - integrity: sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==, - } - engines: { node: ^14.15.0 || ^16.10.0 || >=18.0.0 } + resolution: {integrity: sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} diff@4.0.2: - resolution: - { - integrity: sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==, - } - engines: { node: '>=0.3.1' } + resolution: {integrity: sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==} + engines: {node: '>=0.3.1'} dom-accessibility-api@0.5.16: - resolution: - { - integrity: sha512-X7BJ2yElsnOJ30pZF4uIIDfBEVgF4XEBxL9Bxhy6dnrm5hkzqmsWHGTiHqRiITNhMyFLyAiWndIJP7Z1NTteDg==, - } + resolution: {integrity: sha512-X7BJ2yElsnOJ30pZF4uIIDfBEVgF4XEBxL9Bxhy6dnrm5hkzqmsWHGTiHqRiITNhMyFLyAiWndIJP7Z1NTteDg==} dom-serializer@0.1.1: - resolution: - { - integrity: sha512-l0IU0pPzLWSHBcieZbpOKgkIn3ts3vAh7ZuFyXNwJxJXk/c4Gwj9xaTJwIDVQCXawWD0qb3IzMGH5rglQaO0XA==, - } + resolution: {integrity: sha512-l0IU0pPzLWSHBcieZbpOKgkIn3ts3vAh7ZuFyXNwJxJXk/c4Gwj9xaTJwIDVQCXawWD0qb3IzMGH5rglQaO0XA==} dom-serializer@0.2.2: - resolution: - { - integrity: sha512-2/xPb3ORsQ42nHYiSunXkDjPLBaEj/xTwUO4B7XCZQTRk7EBtTOPaygh10YAAh2OI1Qrp6NWfpAhzswj0ydt9g==, - } + resolution: {integrity: sha512-2/xPb3ORsQ42nHYiSunXkDjPLBaEj/xTwUO4B7XCZQTRk7EBtTOPaygh10YAAh2OI1Qrp6NWfpAhzswj0ydt9g==} dom-serializer@1.4.1: - resolution: - { - integrity: sha512-VHwB3KfrcOOkelEG2ZOfxqLZdfkil8PtJi4P8N2MMXucZq2yLp75ClViUlOVwyoHEDjYU433Aq+5zWP61+RGag==, - } + resolution: {integrity: sha512-VHwB3KfrcOOkelEG2ZOfxqLZdfkil8PtJi4P8N2MMXucZq2yLp75ClViUlOVwyoHEDjYU433Aq+5zWP61+RGag==} dom-serializer@2.0.0: - resolution: - { - integrity: sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==, - } + resolution: {integrity: sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==} domelementtype@1.3.1: - resolution: - { - integrity: sha512-BSKB+TSpMpFI/HOxCNr1O8aMOTZ8hT3pM3GQ0w/mWRmkhEDSFJkkyzz4XQsBV44BChwGkrDfMyjVD0eA2aFV3w==, - } + resolution: {integrity: sha512-BSKB+TSpMpFI/HOxCNr1O8aMOTZ8hT3pM3GQ0w/mWRmkhEDSFJkkyzz4XQsBV44BChwGkrDfMyjVD0eA2aFV3w==} domelementtype@2.3.0: - resolution: - { - integrity: sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==, - } + resolution: {integrity: sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==} domhandler@2.4.2: - resolution: - { - integrity: sha512-JiK04h0Ht5u/80fdLMCEmV4zkNh2BcoMFBmZ/91WtYZ8qVXSKjiw7fXMgFPnHcSZgOo3XdinHvmnDUeMf5R4wA==, - } + resolution: {integrity: sha512-JiK04h0Ht5u/80fdLMCEmV4zkNh2BcoMFBmZ/91WtYZ8qVXSKjiw7fXMgFPnHcSZgOo3XdinHvmnDUeMf5R4wA==} domhandler@3.3.0: - resolution: - { - integrity: sha512-J1C5rIANUbuYK+FuFL98650rihynUOEzRLxW+90bKZRWB6A1X1Tf82GxR1qAWLyfNPRvjqfip3Q5tdYlmAa9lA==, - } - engines: { node: '>= 4' } + resolution: {integrity: sha512-J1C5rIANUbuYK+FuFL98650rihynUOEzRLxW+90bKZRWB6A1X1Tf82GxR1qAWLyfNPRvjqfip3Q5tdYlmAa9lA==} + engines: {node: '>= 4'} domhandler@4.3.1: - resolution: - { - integrity: sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ==, - } - engines: { node: '>= 4' } + resolution: {integrity: sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ==} + engines: {node: '>= 4'} domhandler@5.0.3: - resolution: - { - integrity: sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==, - } - engines: { node: '>= 4' } + resolution: {integrity: sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==} + engines: {node: '>= 4'} domutils@1.5.1: - resolution: - { - integrity: sha512-gSu5Oi/I+3wDENBsOWBiRK1eoGxcywYSqg3rR960/+EfY0CF4EX1VPkgHOZ3WiS/Jg2DtliF6BhWcHlfpYUcGw==, - } + resolution: {integrity: sha512-gSu5Oi/I+3wDENBsOWBiRK1eoGxcywYSqg3rR960/+EfY0CF4EX1VPkgHOZ3WiS/Jg2DtliF6BhWcHlfpYUcGw==} domutils@1.7.0: - resolution: - { - integrity: sha512-Lgd2XcJ/NjEw+7tFvfKxOzCYKZsdct5lczQ2ZaQY8Djz7pfAD3Gbp8ySJWtreII/vDlMVmxwa6pHmdxIYgttDg==, - } + resolution: {integrity: sha512-Lgd2XcJ/NjEw+7tFvfKxOzCYKZsdct5lczQ2ZaQY8Djz7pfAD3Gbp8ySJWtreII/vDlMVmxwa6pHmdxIYgttDg==} domutils@2.8.0: - resolution: - { - integrity: sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==, - } + resolution: {integrity: sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==} domutils@3.2.2: - resolution: - { - integrity: sha512-6kZKyUajlDuqlHKVX1w7gyslj9MPIXzIFiz/rGu35uC1wMi+kMhQwGhl4lt9unC9Vb9INnY9Z3/ZA3+FhASLaw==, - } + resolution: {integrity: sha512-6kZKyUajlDuqlHKVX1w7gyslj9MPIXzIFiz/rGu35uC1wMi+kMhQwGhl4lt9unC9Vb9INnY9Z3/ZA3+FhASLaw==} dot-prop@5.3.0: - resolution: - { - integrity: sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q==} + engines: {node: '>=8'} dotenv-expand@11.0.7: - resolution: - { - integrity: sha512-zIHwmZPRshsCdpMDyVsqGmgyP0yT8GAgXUnkdAoJisxvf33k7yO6OuoKmcTGuXPWSsm8Oh88nZicRLA9Y0rUeA==, - } - engines: { node: '>=12' } + resolution: {integrity: sha512-zIHwmZPRshsCdpMDyVsqGmgyP0yT8GAgXUnkdAoJisxvf33k7yO6OuoKmcTGuXPWSsm8Oh88nZicRLA9Y0rUeA==} + engines: {node: '>=12'} dotenv@16.4.7: - resolution: - { - integrity: sha512-47qPchRCykZC03FhkYAhrvwU4xDBFIj1QPqaarj6mdM/hgUzfPHcpkHJOn3mJAufFeeAxAzeGsr5X0M4k6fLZQ==, - } - engines: { node: '>=12' } + resolution: {integrity: sha512-47qPchRCykZC03FhkYAhrvwU4xDBFIj1QPqaarj6mdM/hgUzfPHcpkHJOn3mJAufFeeAxAzeGsr5X0M4k6fLZQ==} + engines: {node: '>=12'} drizzle-orm@0.45.1: - resolution: - { - integrity: sha512-Te0FOdKIistGNPMq2jscdqngBRfBpC8uMFVwqjf6gtTVJHIQ/dosgV/CLBU2N4ZJBsXL5savCba9b0YJskKdcA==, - } + resolution: {integrity: sha512-Te0FOdKIistGNPMq2jscdqngBRfBpC8uMFVwqjf6gtTVJHIQ/dosgV/CLBU2N4ZJBsXL5savCba9b0YJskKdcA==} peerDependencies: '@aws-sdk/client-rds-data': '>=3' '@cloudflare/workers-types': '>=4' @@ -8655,270 +6268,153 @@ packages: optional: true dunder-proto@1.0.1: - resolution: - { - integrity: sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==, - } - engines: { node: '>= 0.4' } + resolution: {integrity: sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==} + engines: {node: '>= 0.4'} eastasianwidth@0.2.0: - resolution: - { - integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==, - } + resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} ecdsa-sig-formatter@1.0.11: - resolution: - { - integrity: sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==, - } + resolution: {integrity: sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==} editorconfig@1.0.4: - resolution: - { - integrity: sha512-L9Qe08KWTlqYMVvMcTIvMAdl1cDUubzRNYL+WfA4bLDMHe4nemKkpmYzkznE1FwLKu0EEmy6obgQKzMJrg4x9Q==, - } - engines: { node: '>=14' } + resolution: {integrity: sha512-L9Qe08KWTlqYMVvMcTIvMAdl1cDUubzRNYL+WfA4bLDMHe4nemKkpmYzkznE1FwLKu0EEmy6obgQKzMJrg4x9Q==} + engines: {node: '>=14'} hasBin: true ee-first@1.1.1: - resolution: - { - integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==, - } + resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==} ejs@3.1.10: - resolution: - { - integrity: sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA==, - } - engines: { node: '>=0.10.0' } + resolution: {integrity: sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA==} + engines: {node: '>=0.10.0'} hasBin: true electron-to-chromium@1.5.267: - resolution: - { - integrity: sha512-0Drusm6MVRXSOJpGbaSVgcQsuB4hEkMpHXaVstcPmhu5LIedxs1xNK/nIxmQIU/RPC0+1/o0AVZfBTkTNJOdUw==, - } + resolution: {integrity: sha512-0Drusm6MVRXSOJpGbaSVgcQsuB4hEkMpHXaVstcPmhu5LIedxs1xNK/nIxmQIU/RPC0+1/o0AVZfBTkTNJOdUw==} emittery@0.13.1: - resolution: - { - integrity: sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==, - } - engines: { node: '>=12' } + resolution: {integrity: sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==} + engines: {node: '>=12'} emoji-regex@8.0.0: - resolution: - { - integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==, - } + resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} emoji-regex@9.2.2: - resolution: - { - integrity: sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==, - } + resolution: {integrity: sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==} encodeurl@2.0.0: - resolution: - { - integrity: sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==, - } - engines: { node: '>= 0.8' } + resolution: {integrity: sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==} + engines: {node: '>= 0.8'} encoding-sniffer@0.2.1: - resolution: - { - integrity: sha512-5gvq20T6vfpekVtqrYQsSCFZ1wEg5+wW0/QaZMWkFr6BqD3NfKs0rLCx4rrVlSWJeZb5NBJgVLswK/w2MWU+Gw==, - } + resolution: {integrity: sha512-5gvq20T6vfpekVtqrYQsSCFZ1wEg5+wW0/QaZMWkFr6BqD3NfKs0rLCx4rrVlSWJeZb5NBJgVLswK/w2MWU+Gw==} encoding@0.1.13: - resolution: - { - integrity: sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A==, - } + resolution: {integrity: sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A==} end-of-stream@1.4.5: - resolution: - { - integrity: sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==, - } + resolution: {integrity: sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==} enquirer@2.3.6: - resolution: - { - integrity: sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg==, - } - engines: { node: '>=8.6' } + resolution: {integrity: sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg==} + engines: {node: '>=8.6'} entities@1.1.2: - resolution: - { - integrity: sha512-f2LZMYl1Fzu7YSBKg+RoROelpOaNrcGmE9AZubeDfrCEia483oW4MI4VyFd5VNHIgQ/7qm1I0wUHK1eJnn2y2w==, - } + resolution: {integrity: sha512-f2LZMYl1Fzu7YSBKg+RoROelpOaNrcGmE9AZubeDfrCEia483oW4MI4VyFd5VNHIgQ/7qm1I0wUHK1eJnn2y2w==} entities@2.2.0: - resolution: - { - integrity: sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==, - } + resolution: {integrity: sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==} entities@4.5.0: - resolution: - { - integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==, - } - engines: { node: '>=0.12' } + resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==} + engines: {node: '>=0.12'} entities@6.0.1: - resolution: - { - integrity: sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g==, - } - engines: { node: '>=0.12' } + resolution: {integrity: sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g==} + engines: {node: '>=0.12'} env-paths@2.2.1: - resolution: - { - integrity: sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==, - } - engines: { node: '>=6' } + resolution: {integrity: sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==} + engines: {node: '>=6'} envalid@8.1.1: - resolution: - { - integrity: sha512-vOUfHxAFFvkBjbVQbBfgnCO9d3GcNfMMTtVfgqSU2rQGMFEVqWy9GBuoSfHnwGu7EqR0/GeukQcL3KjFBaga9w==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-vOUfHxAFFvkBjbVQbBfgnCO9d3GcNfMMTtVfgqSU2rQGMFEVqWy9GBuoSfHnwGu7EqR0/GeukQcL3KjFBaga9w==} + engines: {node: '>=18'} envinfo@7.13.0: - resolution: - { - integrity: sha512-cvcaMr7KqXVh4nyzGTVqTum+gAiL265x5jUWQIDLq//zOGbW+gSW/C+OWLleY/rs9Qole6AZLMXPbtIFQbqu+Q==, - } - engines: { node: '>=4' } + resolution: {integrity: sha512-cvcaMr7KqXVh4nyzGTVqTum+gAiL265x5jUWQIDLq//zOGbW+gSW/C+OWLleY/rs9Qole6AZLMXPbtIFQbqu+Q==} + engines: {node: '>=4'} hasBin: true err-code@2.0.3: - resolution: - { - integrity: sha512-2bmlRpNKBxT/CRmPOlyISQpNj+qSeYvcym/uT0Jx2bMOlKLtSy1ZmLuVxSEKKyor/N5yhvp/ZiG1oE3DEYMSFA==, - } + resolution: {integrity: sha512-2bmlRpNKBxT/CRmPOlyISQpNj+qSeYvcym/uT0Jx2bMOlKLtSy1ZmLuVxSEKKyor/N5yhvp/ZiG1oE3DEYMSFA==} error-ex@1.3.4: - resolution: - { - integrity: sha512-sqQamAnR14VgCr1A618A3sGrygcpK+HEbenA/HiEAkkUwcZIIB/tgWqHFxWgOyDh4nB4JCRimh79dR5Ywc9MDQ==, - } + resolution: {integrity: sha512-sqQamAnR14VgCr1A618A3sGrygcpK+HEbenA/HiEAkkUwcZIIB/tgWqHFxWgOyDh4nB4JCRimh79dR5Ywc9MDQ==} es-define-property@1.0.1: - resolution: - { - integrity: sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==, - } - engines: { node: '>= 0.4' } + resolution: {integrity: sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==} + engines: {node: '>= 0.4'} es-errors@1.3.0: - resolution: - { - integrity: sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==, - } - engines: { node: '>= 0.4' } + resolution: {integrity: sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==} + engines: {node: '>= 0.4'} es-object-atoms@1.1.1: - resolution: - { - integrity: sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==, - } - engines: { node: '>= 0.4' } + resolution: {integrity: sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==} + engines: {node: '>= 0.4'} es-set-tostringtag@2.1.0: - resolution: - { - integrity: sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==, - } - engines: { node: '>= 0.4' } + resolution: {integrity: sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==} + engines: {node: '>= 0.4'} esbuild@0.25.12: - resolution: - { - integrity: sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==} + engines: {node: '>=18'} hasBin: true esbuild@0.27.2: - resolution: - { - integrity: sha512-HyNQImnsOC7X9PMNaCIeAm4ISCQXs5a5YasTXVliKv4uuBo1dKrG0A+uQS8M5eXjVMnLg3WgXaKvprHlFJQffw==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-HyNQImnsOC7X9PMNaCIeAm4ISCQXs5a5YasTXVliKv4uuBo1dKrG0A+uQS8M5eXjVMnLg3WgXaKvprHlFJQffw==} + engines: {node: '>=18'} hasBin: true escalade@3.2.0: - resolution: - { - integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==, - } - engines: { node: '>=6' } + resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==} + engines: {node: '>=6'} escape-goat@3.0.0: - resolution: - { - integrity: sha512-w3PwNZJwRxlp47QGzhuEBldEqVHHhh8/tIPcl6ecf2Bou99cdAt0knihBV0Ecc7CGxYduXVBDheH1K2oADRlvw==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-w3PwNZJwRxlp47QGzhuEBldEqVHHhh8/tIPcl6ecf2Bou99cdAt0knihBV0Ecc7CGxYduXVBDheH1K2oADRlvw==} + engines: {node: '>=10'} escape-html@1.0.3: - resolution: - { - integrity: sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==, - } + resolution: {integrity: sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==} escape-string-regexp@1.0.5: - resolution: - { - integrity: sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==, - } - engines: { node: '>=0.8.0' } + resolution: {integrity: sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==} + engines: {node: '>=0.8.0'} escape-string-regexp@2.0.0: - resolution: - { - integrity: sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==} + engines: {node: '>=8'} escape-string-regexp@4.0.0: - resolution: - { - integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==} + engines: {node: '>=10'} eslint-config-prettier@10.1.8: - resolution: - { - integrity: sha512-82GZUjRS0p/jganf6q1rEO25VSoHH0hKPCTrgillPjdI/3bgBhAE1QzHrHTizjpRvy6pGAvKjDJtk2pF9NDq8w==, - } + resolution: {integrity: sha512-82GZUjRS0p/jganf6q1rEO25VSoHH0hKPCTrgillPjdI/3bgBhAE1QzHrHTizjpRvy6pGAvKjDJtk2pF9NDq8w==} hasBin: true peerDependencies: eslint: '>=7.0.0' eslint-plugin-simple-import-sort@12.1.1: - resolution: - { - integrity: sha512-6nuzu4xwQtE3332Uz0to+TxDQYRLTKRESSc2hefVT48Zc8JthmN23Gx9lnYhu0FtkRSL1oxny3kJ2aveVhmOVA==, - } + resolution: {integrity: sha512-6nuzu4xwQtE3332Uz0to+TxDQYRLTKRESSc2hefVT48Zc8JthmN23Gx9lnYhu0FtkRSL1oxny3kJ2aveVhmOVA==} peerDependencies: eslint: '>=5.0.0' eslint-plugin-unused-imports@4.3.0: - resolution: - { - integrity: sha512-ZFBmXMGBYfHttdRtOG9nFFpmUvMtbHSjsKrS20vdWdbfiVYsO3yA2SGYy9i9XmZJDfMGBflZGBCm70SEnFQtOA==, - } + resolution: {integrity: sha512-ZFBmXMGBYfHttdRtOG9nFFpmUvMtbHSjsKrS20vdWdbfiVYsO3yA2SGYy9i9XmZJDfMGBflZGBCm70SEnFQtOA==} peerDependencies: '@typescript-eslint/eslint-plugin': ^8.0.0-0 || ^7.0.0 || ^6.0.0 || ^5.0.0 eslint: ^9.0.0 || ^8.0.0 @@ -8927,32 +6423,20 @@ packages: optional: true eslint-scope@8.4.0: - resolution: - { - integrity: sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==, - } - engines: { node: ^18.18.0 || ^20.9.0 || >=21.1.0 } + resolution: {integrity: sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} eslint-visitor-keys@3.4.3: - resolution: - { - integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==, - } - engines: { node: ^12.22.0 || ^14.17.0 || >=16.0.0 } + resolution: {integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} eslint-visitor-keys@4.2.1: - resolution: - { - integrity: sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==, - } - engines: { node: ^18.18.0 || ^20.9.0 || >=21.1.0 } + resolution: {integrity: sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} eslint@9.39.2: - resolution: - { - integrity: sha512-LEyamqS7W5HB3ujJyvi0HQK/dtVINZvd5mAAp9eT5S/ujByGjiZLCzPcHVzuXbpJDJF/cxwHlfceVUDZ2lnSTw==, - } - engines: { node: ^18.18.0 || ^20.9.0 || >=21.1.0 } + resolution: {integrity: sha512-LEyamqS7W5HB3ujJyvi0HQK/dtVINZvd5mAAp9eT5S/ujByGjiZLCzPcHVzuXbpJDJF/cxwHlfceVUDZ2lnSTw==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} hasBin: true peerDependencies: jiti: '*' @@ -8961,177 +6445,99 @@ packages: optional: true espree@10.4.0: - resolution: - { - integrity: sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==, - } - engines: { node: ^18.18.0 || ^20.9.0 || >=21.1.0 } + resolution: {integrity: sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} esprima@4.0.1: - resolution: - { - integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==, - } - engines: { node: '>=4' } + resolution: {integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==} + engines: {node: '>=4'} hasBin: true esquery@1.6.0: - resolution: - { - integrity: sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==, - } - engines: { node: '>=0.10' } + resolution: {integrity: sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==} + engines: {node: '>=0.10'} esrecurse@4.3.0: - resolution: - { - integrity: sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==, - } - engines: { node: '>=4.0' } + resolution: {integrity: sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==} + engines: {node: '>=4.0'} estraverse@5.3.0: - resolution: - { - integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==, - } - engines: { node: '>=4.0' } + resolution: {integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==} + engines: {node: '>=4.0'} esutils@2.0.3: - resolution: - { - integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==, - } - engines: { node: '>=0.10.0' } + resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==} + engines: {node: '>=0.10.0'} etag@1.8.1: - resolution: - { - integrity: sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==, - } - engines: { node: '>= 0.6' } + resolution: {integrity: sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==} + engines: {node: '>= 0.6'} eventemitter3@4.0.7: - resolution: - { - integrity: sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==, - } + resolution: {integrity: sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==} eventemitter3@5.0.4: - resolution: - { - integrity: sha512-mlsTRyGaPBjPedk6Bvw+aqbsXDtoAyAzm5MO7JgU+yVRyMQ5O8bD4Kcci7BS85f93veegeCPkL8R4GLClnjLFw==, - } + resolution: {integrity: sha512-mlsTRyGaPBjPedk6Bvw+aqbsXDtoAyAzm5MO7JgU+yVRyMQ5O8bD4Kcci7BS85f93veegeCPkL8R4GLClnjLFw==} events@3.3.0: - resolution: - { - integrity: sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==, - } - engines: { node: '>=0.8.x' } + resolution: {integrity: sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==} + engines: {node: '>=0.8.x'} execa@5.0.0: - resolution: - { - integrity: sha512-ov6w/2LCiuyO4RLYGdpFGjkcs0wMTgGE8PrkTHikeUy5iJekXyPIKUjifk5CsE0pt7sMCrMZ3YNqoCj6idQOnQ==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-ov6w/2LCiuyO4RLYGdpFGjkcs0wMTgGE8PrkTHikeUy5iJekXyPIKUjifk5CsE0pt7sMCrMZ3YNqoCj6idQOnQ==} + engines: {node: '>=10'} execa@5.1.1: - resolution: - { - integrity: sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==} + engines: {node: '>=10'} exit-x@0.2.2: - resolution: - { - integrity: sha512-+I6B/IkJc1o/2tiURyz/ivu/O0nKNEArIUB5O7zBrlDVJr22SCLH3xTeEry428LvFhRzIA1g8izguxJ/gbNcVQ==, - } - engines: { node: '>= 0.8.0' } + resolution: {integrity: sha512-+I6B/IkJc1o/2tiURyz/ivu/O0nKNEArIUB5O7zBrlDVJr22SCLH3xTeEry428LvFhRzIA1g8izguxJ/gbNcVQ==} + engines: {node: '>= 0.8.0'} expect@30.2.0: - resolution: - { - integrity: sha512-u/feCi0GPsI+988gU2FLcsHyAHTU0MX1Wg68NhAnN7z/+C5wqG+CY8J53N9ioe8RXgaoz0nBR/TYMf3AycUuPw==, - } - engines: { node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0 } + resolution: {integrity: sha512-u/feCi0GPsI+988gU2FLcsHyAHTU0MX1Wg68NhAnN7z/+C5wqG+CY8J53N9ioe8RXgaoz0nBR/TYMf3AycUuPw==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} exponential-backoff@3.1.3: - resolution: - { - integrity: sha512-ZgEeZXj30q+I0EN+CbSSpIyPaJ5HVQD18Z1m+u1FXbAeT94mr1zw50q4q6jiiC447Nl/YTcIYSAftiGqetwXCA==, - } + resolution: {integrity: sha512-ZgEeZXj30q+I0EN+CbSSpIyPaJ5HVQD18Z1m+u1FXbAeT94mr1zw50q4q6jiiC447Nl/YTcIYSAftiGqetwXCA==} express@5.2.1: - resolution: - { - integrity: sha512-hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw==, - } - engines: { node: '>= 18' } + resolution: {integrity: sha512-hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw==} + engines: {node: '>= 18'} fast-deep-equal@3.1.3: - resolution: - { - integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==, - } + resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} fast-glob@3.3.3: - resolution: - { - integrity: sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==, - } - engines: { node: '>=8.6.0' } + resolution: {integrity: sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==} + engines: {node: '>=8.6.0'} fast-json-stable-stringify@2.1.0: - resolution: - { - integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==, - } + resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==} fast-levenshtein@2.0.6: - resolution: - { - integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==, - } + resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==} fast-safe-stringify@2.1.1: - resolution: - { - integrity: sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==, - } + resolution: {integrity: sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==} fast-uri@3.1.0: - resolution: - { - integrity: sha512-iPeeDKJSWf4IEOasVVrknXpaBV0IApz/gp7S2bb7Z4Lljbl2MGJRqInZiUrQwV16cpzw/D3S5j5Julj/gT52AA==, - } + resolution: {integrity: sha512-iPeeDKJSWf4IEOasVVrknXpaBV0IApz/gp7S2bb7Z4Lljbl2MGJRqInZiUrQwV16cpzw/D3S5j5Julj/gT52AA==} fast-xml-parser@5.2.5: - resolution: - { - integrity: sha512-pfX9uG9Ki0yekDHx2SiuRIyFdyAr1kMIMitPvb0YBo8SUfKvia7w7FIyd/l6av85pFYRhZscS75MwMnbvY+hcQ==, - } + resolution: {integrity: sha512-pfX9uG9Ki0yekDHx2SiuRIyFdyAr1kMIMitPvb0YBo8SUfKvia7w7FIyd/l6av85pFYRhZscS75MwMnbvY+hcQ==} hasBin: true fastq@1.20.1: - resolution: - { - integrity: sha512-GGToxJ/w1x32s/D2EKND7kTil4n8OVk/9mycTc4VDza13lOvpUZTGX3mFSCtV9ksdGBVzvsyAVLM6mHFThxXxw==, - } + resolution: {integrity: sha512-GGToxJ/w1x32s/D2EKND7kTil4n8OVk/9mycTc4VDza13lOvpUZTGX3mFSCtV9ksdGBVzvsyAVLM6mHFThxXxw==} fb-watchman@2.0.2: - resolution: - { - integrity: sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==, - } + resolution: {integrity: sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==} fdir@6.5.0: - resolution: - { - integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==, - } - engines: { node: '>=12.0.0' } + resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==} + engines: {node: '>=12.0.0'} peerDependencies: picomatch: ^3 || ^4 peerDependenciesMeta: @@ -9139,98 +6545,56 @@ packages: optional: true figures@3.2.0: - resolution: - { - integrity: sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==} + engines: {node: '>=8'} file-entry-cache@8.0.0: - resolution: - { - integrity: sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==, - } - engines: { node: '>=16.0.0' } + resolution: {integrity: sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==} + engines: {node: '>=16.0.0'} filelist@1.0.4: - resolution: - { - integrity: sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q==, - } + resolution: {integrity: sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q==} fill-range@7.1.1: - resolution: - { - integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==} + engines: {node: '>=8'} finalhandler@2.1.1: - resolution: - { - integrity: sha512-S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA==, - } - engines: { node: '>= 18.0.0' } + resolution: {integrity: sha512-S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA==} + engines: {node: '>= 18.0.0'} find-and-require-package-json@0.9.0: - resolution: - { - integrity: sha512-e7+fnRvphmWHHgOdVQct5yLEmw38GD3wpX8CMONT/qn/BLK6F0ft/iPicNKJMX6U4GlTEFzreYbLf+FlCYh4lQ==, - } + resolution: {integrity: sha512-e7+fnRvphmWHHgOdVQct5yLEmw38GD3wpX8CMONT/qn/BLK6F0ft/iPicNKJMX6U4GlTEFzreYbLf+FlCYh4lQ==} find-and-require-package-json@0.9.1: - resolution: - { - integrity: sha512-jFpCL0XgjipSk109viUtfp+NyR/oW6a4Xus4tV3UYkmCbsjisEeZD1x5QnD1NDDK/hXas1WFs4yO13L4TPXWlQ==, - } + resolution: {integrity: sha512-jFpCL0XgjipSk109viUtfp+NyR/oW6a4Xus4tV3UYkmCbsjisEeZD1x5QnD1NDDK/hXas1WFs4yO13L4TPXWlQ==} find-up@2.1.0: - resolution: - { - integrity: sha512-NWzkk0jSJtTt08+FBFMvXoeZnOJD+jTtsRmBYbAIzJdX6l7dLgR7CTubCM5/eDdPUBvLCeVasP1brfVR/9/EZQ==, - } - engines: { node: '>=4' } + resolution: {integrity: sha512-NWzkk0jSJtTt08+FBFMvXoeZnOJD+jTtsRmBYbAIzJdX6l7dLgR7CTubCM5/eDdPUBvLCeVasP1brfVR/9/EZQ==} + engines: {node: '>=4'} find-up@4.1.0: - resolution: - { - integrity: sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==} + engines: {node: '>=8'} find-up@5.0.0: - resolution: - { - integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==} + engines: {node: '>=10'} flat-cache@4.0.1: - resolution: - { - integrity: sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==, - } - engines: { node: '>=16' } + resolution: {integrity: sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==} + engines: {node: '>=16'} flat@5.0.2: - resolution: - { - integrity: sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==, - } + resolution: {integrity: sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==} hasBin: true flatted@3.3.3: - resolution: - { - integrity: sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==, - } + resolution: {integrity: sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==} follow-redirects@1.15.11: - resolution: - { - integrity: sha512-deG2P0JfjrTxl50XGCDyfI97ZGVCxIpfKYmfyrQ54n5FO/0gfIES8C/Psl6kWVDolizcaaxZJnTS0QSMxvnsBQ==, - } - engines: { node: '>=4.0' } + resolution: {integrity: sha512-deG2P0JfjrTxl50XGCDyfI97ZGVCxIpfKYmfyrQ54n5FO/0gfIES8C/Psl6kWVDolizcaaxZJnTS0QSMxvnsBQ==} + engines: {node: '>=4.0'} peerDependencies: debug: '*' peerDependenciesMeta: @@ -9238,38 +6602,23 @@ packages: optional: true foreground-child@3.3.1: - resolution: - { - integrity: sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==, - } - engines: { node: '>=14' } + resolution: {integrity: sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==} + engines: {node: '>=14'} form-data@4.0.5: - resolution: - { - integrity: sha512-8RipRLol37bNs2bhoV67fiTEvdTrbMUYcFTiy3+wuuOnUog2QBHCZWXDRijWQfAkhBj2Uf5UnVaiWwA5vdd82w==, - } - engines: { node: '>= 6' } + resolution: {integrity: sha512-8RipRLol37bNs2bhoV67fiTEvdTrbMUYcFTiy3+wuuOnUog2QBHCZWXDRijWQfAkhBj2Uf5UnVaiWwA5vdd82w==} + engines: {node: '>= 6'} formidable@3.5.4: - resolution: - { - integrity: sha512-YikH+7CUTOtP44ZTnUhR7Ic2UASBPOqmaRkRKxRbywPTe5VxF7RRCck4af9wutiZ/QKM5nME9Bie2fFaPz5Gug==, - } - engines: { node: '>=14.0.0' } + resolution: {integrity: sha512-YikH+7CUTOtP44ZTnUhR7Ic2UASBPOqmaRkRKxRbywPTe5VxF7RRCck4af9wutiZ/QKM5nME9Bie2fFaPz5Gug==} + engines: {node: '>=14.0.0'} forwarded@0.2.0: - resolution: - { - integrity: sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==, - } - engines: { node: '>= 0.6' } + resolution: {integrity: sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==} + engines: {node: '>= 0.6'} framer-motion@12.34.0: - resolution: - { - integrity: sha512-+/H49owhzkzQyxtn7nZeF4kdH++I2FWrESQ184Zbcw5cEqNHYkE5yxWxcTLSj5lNx3NWdbIRy5FHqUvetD8FWg==, - } + resolution: {integrity: sha512-+/H49owhzkzQyxtn7nZeF4kdH++I2FWrESQ184Zbcw5cEqNHYkE5yxWxcTLSj5lNx3NWdbIRy5FHqUvetD8FWg==} peerDependencies: '@emotion/is-prop-valid': '*' react: ^18.0.0 || ^19.0.0 @@ -9283,297 +6632,171 @@ packages: optional: true fresh@2.0.0: - resolution: - { - integrity: sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==, - } - engines: { node: '>= 0.8' } + resolution: {integrity: sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==} + engines: {node: '>= 0.8'} front-matter@4.0.2: - resolution: - { - integrity: sha512-I8ZuJ/qG92NWX8i5x1Y8qyj3vizhXS31OxjKDu3LKP+7/qBgfIKValiZIEwoVoJKUHlhWtYrktkxV1XsX+pPlg==, - } + resolution: {integrity: sha512-I8ZuJ/qG92NWX8i5x1Y8qyj3vizhXS31OxjKDu3LKP+7/qBgfIKValiZIEwoVoJKUHlhWtYrktkxV1XsX+pPlg==} fs-capacitor@6.2.0: - resolution: - { - integrity: sha512-nKcE1UduoSKX27NSZlg879LdQc94OtbOsEmKMN2MBNudXREvijRKx2GEBsTMTfws+BrbkJoEuynbGSVRSpauvw==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-nKcE1UduoSKX27NSZlg879LdQc94OtbOsEmKMN2MBNudXREvijRKx2GEBsTMTfws+BrbkJoEuynbGSVRSpauvw==} + engines: {node: '>=10'} fs-capacitor@8.0.0: - resolution: - { - integrity: sha512-+Lk6iSKajdGw+7XYxUkwIzreJ2G1JFlYOdnKJv5PzwFLVsoJYBpCuS7WPIUSNT1IbQaEWT1nhYU63Ud03DyzLA==, - } - engines: { node: ^14.17.0 || >=16.0.0 } + resolution: {integrity: sha512-+Lk6iSKajdGw+7XYxUkwIzreJ2G1JFlYOdnKJv5PzwFLVsoJYBpCuS7WPIUSNT1IbQaEWT1nhYU63Ud03DyzLA==} + engines: {node: ^14.17.0 || >=16.0.0} fs-constants@1.0.0: - resolution: - { - integrity: sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==, - } + resolution: {integrity: sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==} fs-extra@11.3.3: - resolution: - { - integrity: sha512-VWSRii4t0AFm6ixFFmLLx1t7wS1gh+ckoa84aOeapGum0h+EZd1EhEumSB+ZdDLnEPuucsVB9oB7cxJHap6Afg==, - } - engines: { node: '>=14.14' } + resolution: {integrity: sha512-VWSRii4t0AFm6ixFFmLLx1t7wS1gh+ckoa84aOeapGum0h+EZd1EhEumSB+ZdDLnEPuucsVB9oB7cxJHap6Afg==} + engines: {node: '>=14.14'} fs-minipass@2.1.0: - resolution: - { - integrity: sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==, - } - engines: { node: '>= 8' } + resolution: {integrity: sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==} + engines: {node: '>= 8'} fs-minipass@3.0.3: - resolution: - { - integrity: sha512-XUBA9XClHbnJWSfBzjkm6RvPsyg3sryZt06BEQoXcF7EK/xpGaQYJgQKDJSUH5SGZ76Y7pFx1QBnXz09rU5Fbw==, - } - engines: { node: ^14.17.0 || ^16.13.0 || >=18.0.0 } + resolution: {integrity: sha512-XUBA9XClHbnJWSfBzjkm6RvPsyg3sryZt06BEQoXcF7EK/xpGaQYJgQKDJSUH5SGZ76Y7pFx1QBnXz09rU5Fbw==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} fs.realpath@1.0.0: - resolution: - { - integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==, - } + resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==} fsevents@2.3.2: - resolution: - { - integrity: sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==, - } - engines: { node: ^8.16.0 || ^10.6.0 || >=11.0.0 } + resolution: {integrity: sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==} + engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} os: [darwin] fsevents@2.3.3: - resolution: - { - integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==, - } - engines: { node: ^8.16.0 || ^10.6.0 || >=11.0.0 } + resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} + engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} os: [darwin] function-bind@1.1.2: - resolution: - { - integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==, - } + resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==} genomic@5.3.0: - resolution: - { - integrity: sha512-59rZ++BMgR4/rbh/j55n0BCYAZI/KrP9l7IgxdOHT+HEMAADA6kGaPOhDBltekw2QpHOAUeOXoRiTvntM7b1Ug==, - } + resolution: {integrity: sha512-59rZ++BMgR4/rbh/j55n0BCYAZI/KrP9l7IgxdOHT+HEMAADA6kGaPOhDBltekw2QpHOAUeOXoRiTvntM7b1Ug==} gensync@1.0.0-beta.2: - resolution: - { - integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==, - } - engines: { node: '>=6.9.0' } + resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==} + engines: {node: '>=6.9.0'} get-caller-file@2.0.5: - resolution: - { - integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==, - } - engines: { node: 6.* || 8.* || >= 10.* } + resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==} + engines: {node: 6.* || 8.* || >= 10.*} get-intrinsic@1.3.0: - resolution: - { - integrity: sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==, - } - engines: { node: '>= 0.4' } + resolution: {integrity: sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==} + engines: {node: '>= 0.4'} get-nonce@1.0.1: - resolution: - { - integrity: sha512-FJhYRoDaiatfEkUK8HKlicmu/3SGFD51q3itKDGoSTysQJBnfOcxU5GxnhE1E6soB76MbT0MBtnKJuXyAx+96Q==, - } - engines: { node: '>=6' } + resolution: {integrity: sha512-FJhYRoDaiatfEkUK8HKlicmu/3SGFD51q3itKDGoSTysQJBnfOcxU5GxnhE1E6soB76MbT0MBtnKJuXyAx+96Q==} + engines: {node: '>=6'} get-package-type@0.1.0: - resolution: - { - integrity: sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==, - } - engines: { node: '>=8.0.0' } + resolution: {integrity: sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==} + engines: {node: '>=8.0.0'} get-pkg-repo@4.2.1: - resolution: - { - integrity: sha512-2+QbHjFRfGB74v/pYWjd5OhU3TDIC2Gv/YKUTk/tCvAz0pkn/Mz6P3uByuBimLOcPvN2jYdScl3xGFSrx0jEcA==, - } - engines: { node: '>=6.9.0' } + resolution: {integrity: sha512-2+QbHjFRfGB74v/pYWjd5OhU3TDIC2Gv/YKUTk/tCvAz0pkn/Mz6P3uByuBimLOcPvN2jYdScl3xGFSrx0jEcA==} + engines: {node: '>=6.9.0'} hasBin: true get-port@5.1.1: - resolution: - { - integrity: sha512-g/Q1aTSDOxFpchXC4i8ZWvxA1lnPqx/JHqcpIw0/LX9T8x/GBbi6YnlN5nhaKIFkT8oFsscUKgDJYxfwfS6QsQ==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-g/Q1aTSDOxFpchXC4i8ZWvxA1lnPqx/JHqcpIw0/LX9T8x/GBbi6YnlN5nhaKIFkT8oFsscUKgDJYxfwfS6QsQ==} + engines: {node: '>=8'} get-proto@1.0.1: - resolution: - { - integrity: sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==, - } - engines: { node: '>= 0.4' } + resolution: {integrity: sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==} + engines: {node: '>= 0.4'} get-stream@6.0.0: - resolution: - { - integrity: sha512-A1B3Bh1UmL0bidM/YX2NsCOTnGJePL9rO/M+Mw3m9f2gUpfokS0hi5Eah0WSUEWZdZhIZtMjkIYS7mDfOqNHbg==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-A1B3Bh1UmL0bidM/YX2NsCOTnGJePL9rO/M+Mw3m9f2gUpfokS0hi5Eah0WSUEWZdZhIZtMjkIYS7mDfOqNHbg==} + engines: {node: '>=10'} get-stream@6.0.1: - resolution: - { - integrity: sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==} + engines: {node: '>=10'} get-tsconfig@4.13.0: - resolution: - { - integrity: sha512-1VKTZJCwBrvbd+Wn3AOgQP/2Av+TfTCOlE4AcRJE72W1ksZXbAx8PPBR9RzgTeSPzlPMHrbANMH3LbltH73wxQ==, - } + resolution: {integrity: sha512-1VKTZJCwBrvbd+Wn3AOgQP/2Av+TfTCOlE4AcRJE72W1ksZXbAx8PPBR9RzgTeSPzlPMHrbANMH3LbltH73wxQ==} get-value@3.0.1: - resolution: - { - integrity: sha512-mKZj9JLQrwMBtj5wxi6MH8Z5eSKaERpAwjg43dPtlGI1ZVEgH/qC7T8/6R2OBSUA+zzHBZgICsVJaEIV2tKTDA==, - } - engines: { node: '>=6.0' } + resolution: {integrity: sha512-mKZj9JLQrwMBtj5wxi6MH8Z5eSKaERpAwjg43dPtlGI1ZVEgH/qC7T8/6R2OBSUA+zzHBZgICsVJaEIV2tKTDA==} + engines: {node: '>=6.0'} git-raw-commits@3.0.0: - resolution: - { - integrity: sha512-b5OHmZ3vAgGrDn/X0kS+9qCfNKWe4K/jFnhwzVWWg0/k5eLa3060tZShrRg8Dja5kPc+YjS0Gc6y7cRr44Lpjw==, - } - engines: { node: '>=14' } + resolution: {integrity: sha512-b5OHmZ3vAgGrDn/X0kS+9qCfNKWe4K/jFnhwzVWWg0/k5eLa3060tZShrRg8Dja5kPc+YjS0Gc6y7cRr44Lpjw==} + engines: {node: '>=14'} hasBin: true git-remote-origin-url@2.0.0: - resolution: - { - integrity: sha512-eU+GGrZgccNJcsDH5LkXR3PB9M958hxc7sbA8DFJjrv9j4L2P/eZfKhM+QD6wyzpiv+b1BpK0XrYCxkovtjSLw==, - } - engines: { node: '>=4' } + resolution: {integrity: sha512-eU+GGrZgccNJcsDH5LkXR3PB9M958hxc7sbA8DFJjrv9j4L2P/eZfKhM+QD6wyzpiv+b1BpK0XrYCxkovtjSLw==} + engines: {node: '>=4'} git-semver-tags@5.0.1: - resolution: - { - integrity: sha512-hIvOeZwRbQ+7YEUmCkHqo8FOLQZCEn18yevLHADlFPZY02KJGsu5FZt9YW/lybfK2uhWFI7Qg/07LekJiTv7iA==, - } - engines: { node: '>=14' } + resolution: {integrity: sha512-hIvOeZwRbQ+7YEUmCkHqo8FOLQZCEn18yevLHADlFPZY02KJGsu5FZt9YW/lybfK2uhWFI7Qg/07LekJiTv7iA==} + engines: {node: '>=14'} hasBin: true git-up@7.0.0: - resolution: - { - integrity: sha512-ONdIrbBCFusq1Oy0sC71F5azx8bVkvtZtMJAsv+a6lz5YAmbNnLD6HAB4gptHZVLPR8S2/kVN6Gab7lryq5+lQ==, - } + resolution: {integrity: sha512-ONdIrbBCFusq1Oy0sC71F5azx8bVkvtZtMJAsv+a6lz5YAmbNnLD6HAB4gptHZVLPR8S2/kVN6Gab7lryq5+lQ==} git-url-parse@14.0.0: - resolution: - { - integrity: sha512-NnLweV+2A4nCvn4U/m2AoYu0pPKlsmhK9cknG7IMwsjFY1S2jxM+mAhsDxyxfCIGfGaD+dozsyX4b6vkYc83yQ==, - } + resolution: {integrity: sha512-NnLweV+2A4nCvn4U/m2AoYu0pPKlsmhK9cknG7IMwsjFY1S2jxM+mAhsDxyxfCIGfGaD+dozsyX4b6vkYc83yQ==} gitconfiglocal@1.0.0: - resolution: - { - integrity: sha512-spLUXeTAVHxDtKsJc8FkFVgFtMdEN9qPGpL23VfSHx4fP4+Ds097IXLvymbnDH8FnmxX5Nr9bPw3A+AQ6mWEaQ==, - } + resolution: {integrity: sha512-spLUXeTAVHxDtKsJc8FkFVgFtMdEN9qPGpL23VfSHx4fP4+Ds097IXLvymbnDH8FnmxX5Nr9bPw3A+AQ6mWEaQ==} glob-parent@5.1.2: - resolution: - { - integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==, - } - engines: { node: '>= 6' } + resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} + engines: {node: '>= 6'} glob-parent@6.0.2: - resolution: - { - integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==, - } - engines: { node: '>=10.13.0' } + resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==} + engines: {node: '>=10.13.0'} glob@10.5.0: - resolution: - { - integrity: sha512-DfXN8DfhJ7NH3Oe7cFmu3NCu1wKbkReJ8TorzSAFbSKrlNaQSKfIzqYqVY8zlbs2NLBbWpRiU52GX2PbaBVNkg==, - } + resolution: {integrity: sha512-DfXN8DfhJ7NH3Oe7cFmu3NCu1wKbkReJ8TorzSAFbSKrlNaQSKfIzqYqVY8zlbs2NLBbWpRiU52GX2PbaBVNkg==} deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me hasBin: true glob@11.1.0: - resolution: - { - integrity: sha512-vuNwKSaKiqm7g0THUBu2x7ckSs3XJLXE+2ssL7/MfTGPLLcrJQ/4Uq1CjPTtO5cCIiRxqvN6Twy1qOwhL0Xjcw==, - } - engines: { node: 20 || >=22 } + resolution: {integrity: sha512-vuNwKSaKiqm7g0THUBu2x7ckSs3XJLXE+2ssL7/MfTGPLLcrJQ/4Uq1CjPTtO5cCIiRxqvN6Twy1qOwhL0Xjcw==} + engines: {node: 20 || >=22} deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me hasBin: true glob@13.0.0: - resolution: - { - integrity: sha512-tvZgpqk6fz4BaNZ66ZsRaZnbHvP/jG3uKJvAZOwEVUL4RTA5nJeeLYfyN9/VA8NX/V3IBG+hkeuGpKjvELkVhA==, - } - engines: { node: 20 || >=22 } + resolution: {integrity: sha512-tvZgpqk6fz4BaNZ66ZsRaZnbHvP/jG3uKJvAZOwEVUL4RTA5nJeeLYfyN9/VA8NX/V3IBG+hkeuGpKjvELkVhA==} + engines: {node: 20 || >=22} glob@7.2.3: - resolution: - { - integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==, - } + resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me glob@9.3.5: - resolution: - { - integrity: sha512-e1LleDykUz2Iu+MTYdkSsuWX8lvAjAcs0Xef0lNIu0S2wOAzuTxCJtcd9S3cijlwYF18EsU3rzb8jPVobxDh9Q==, - } - engines: { node: '>=16 || 14 >=14.17' } + resolution: {integrity: sha512-e1LleDykUz2Iu+MTYdkSsuWX8lvAjAcs0Xef0lNIu0S2wOAzuTxCJtcd9S3cijlwYF18EsU3rzb8jPVobxDh9Q==} + engines: {node: '>=16 || 14 >=14.17'} deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me globals@14.0.0: - resolution: - { - integrity: sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==} + engines: {node: '>=18'} gopd@1.2.0: - resolution: - { - integrity: sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==, - } - engines: { node: '>= 0.4' } + resolution: {integrity: sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==} + engines: {node: '>= 0.4'} graceful-fs@4.2.11: - resolution: - { - integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==, - } + resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} grafast@1.0.0-rc.7: - resolution: - { - integrity: sha512-MZSg/6vFhs3FS2oe8XHsH2rcQ+ASnwNdomgDUI4SqIh8/qO4WkZVOn/iwyDO2sBgsT1Ck2Wovy8PkDUpMYt8JQ==, - } - engines: { node: '>=22' } + resolution: {integrity: sha512-MZSg/6vFhs3FS2oe8XHsH2rcQ+ASnwNdomgDUI4SqIh8/qO4WkZVOn/iwyDO2sBgsT1Ck2Wovy8PkDUpMYt8JQ==} + engines: {node: '>=22'} peerDependencies: '@envelop/core': ^5.0.0 graphql: ^16.9.0 @@ -9582,11 +6805,8 @@ packages: optional: true grafserv@1.0.0-rc.6: - resolution: - { - integrity: sha512-1ZM4ZBLN7SxG1genI3k19RePjA4FsWCPH+RYW3DV/4im/27zbAQurj7DgK/5IoNXXBax6OCXezX1lx2aDEMnDw==, - } - engines: { node: '>=22' } + resolution: {integrity: sha512-1ZM4ZBLN7SxG1genI3k19RePjA4FsWCPH+RYW3DV/4im/27zbAQurj7DgK/5IoNXXBax6OCXezX1lx2aDEMnDw==} + engines: {node: '>=22'} peerDependencies: '@envelop/core': ^5.0.0 '@whatwg-node/server': ^0.9.64 @@ -9609,11 +6829,8 @@ packages: optional: true graphile-build-pg@5.0.0-rc.5: - resolution: - { - integrity: sha512-fUGPju4HeHt+XeA0Ci2pBlnfN/qUuurZOShPiLK7CcjnRCCmWJmsJhFvLwkKg/dLdsEfchVrVdY2FrvhAXgaww==, - } - engines: { node: '>=22' } + resolution: {integrity: sha512-fUGPju4HeHt+XeA0Ci2pBlnfN/qUuurZOShPiLK7CcjnRCCmWJmsJhFvLwkKg/dLdsEfchVrVdY2FrvhAXgaww==} + engines: {node: '>=22'} peerDependencies: '@dataplan/pg': ^1.0.0-rc.5 grafast: ^1.0.0-rc.7 @@ -9628,29 +6845,20 @@ packages: optional: true graphile-build@5.0.0-rc.4: - resolution: - { - integrity: sha512-LOzqlccyOuYIK/+3239+FChTfDdysJBg1dB0oJrf5mHzxrcMCPFaUau+usgRRPrOYmBp4R9SJM75SnIQQqStMQ==, - } - engines: { node: '>=22' } + resolution: {integrity: sha512-LOzqlccyOuYIK/+3239+FChTfDdysJBg1dB0oJrf5mHzxrcMCPFaUau+usgRRPrOYmBp4R9SJM75SnIQQqStMQ==} + engines: {node: '>=22'} peerDependencies: grafast: ^1.0.0-rc.5 graphile-config: ^1.0.0-rc.4 graphql: ^16.9.0 graphile-config@1.0.0-rc.5: - resolution: - { - integrity: sha512-NKUREBAEVxe4/YNClbW9F95cosykbVxO3k5suDlfA8VKQzzembhiz3sJvE03PoII1Qetf4RpprZCIZNMd5h/QA==, - } - engines: { node: '>=22' } + resolution: {integrity: sha512-NKUREBAEVxe4/YNClbW9F95cosykbVxO3k5suDlfA8VKQzzembhiz3sJvE03PoII1Qetf4RpprZCIZNMd5h/QA==} + engines: {node: '>=22'} graphile-utils@5.0.0-rc.5: - resolution: - { - integrity: sha512-oXPLOU7N7Rc6wJoixIHtant2LITVoVMgUcytT8cp/KgpYJ7KHabiCHW90rBqaq9fy2+XaemTHEjpb+r2/3FzUw==, - } - engines: { node: '>=22' } + resolution: {integrity: sha512-oXPLOU7N7Rc6wJoixIHtant2LITVoVMgUcytT8cp/KgpYJ7KHabiCHW90rBqaq9fy2+XaemTHEjpb+r2/3FzUw==} + engines: {node: '>=22'} peerDependencies: '@dataplan/pg': ^1.0.0-rc.4 grafast: ^1.0.0-rc.6 @@ -9664,11 +6872,8 @@ packages: optional: true graphile-utils@5.0.0-rc.6: - resolution: - { - integrity: sha512-CTvHAvQd4nwAvEldaRIiGFClOjb8I1IIv8x55tcSDLdjuPsVlldWA6nOfdTypdZE7vcc2YrMt6xAU9mwjeOo6g==, - } - engines: { node: '>=22' } + resolution: {integrity: sha512-CTvHAvQd4nwAvEldaRIiGFClOjb8I1IIv8x55tcSDLdjuPsVlldWA6nOfdTypdZE7vcc2YrMt6xAU9mwjeOo6g==} + engines: {node: '>=22'} peerDependencies: '@dataplan/pg': ^1.0.0-rc.5 grafast: ^1.0.0-rc.7 @@ -9682,56 +6887,38 @@ packages: optional: true graphiql@5.2.2: - resolution: - { - integrity: sha512-qYhw7e2QPLPEIdJXqlLa/XkZtEu2SVYyD71abOpPnrzmJzTdB+QsEswFIMg9u1WGkEtp/wi8epCsuKeA/chRcg==, - } + resolution: {integrity: sha512-qYhw7e2QPLPEIdJXqlLa/XkZtEu2SVYyD71abOpPnrzmJzTdB+QsEswFIMg9u1WGkEtp/wi8epCsuKeA/chRcg==} peerDependencies: graphql: ^15.5.0 || ^16.0.0 || ^17.0.0 react: ^18 || ^19 react-dom: ^18 || ^19 graphql-language-service@5.5.0: - resolution: - { - integrity: sha512-9EvWrLLkF6Y5e29/2cmFoAO6hBPPAZlCyjznmpR11iFtRydfkss+9m6x+htA8h7YznGam+TtJwS6JuwoWWgb2Q==, - } + resolution: {integrity: sha512-9EvWrLLkF6Y5e29/2cmFoAO6hBPPAZlCyjznmpR11iFtRydfkss+9m6x+htA8h7YznGam+TtJwS6JuwoWWgb2Q==} hasBin: true peerDependencies: graphql: ^15.5.0 || ^16.0.0 || ^17.0.0 graphql-request@7.4.0: - resolution: - { - integrity: sha512-xfr+zFb/QYbs4l4ty0dltqiXIp07U6sl+tOKAb0t50/EnQek6CVVBLjETXi+FghElytvgaAWtIOt3EV7zLzIAQ==, - } + resolution: {integrity: sha512-xfr+zFb/QYbs4l4ty0dltqiXIp07U6sl+tOKAb0t50/EnQek6CVVBLjETXi+FghElytvgaAWtIOt3EV7zLzIAQ==} peerDependencies: graphql: 14 - 16 graphql-tag@2.12.6: - resolution: - { - integrity: sha512-FdSNcu2QQcWnM2VNvSCCDCVS5PpPqpzgFT8+GXzqJuoDd0CBncxCY278u4mhRO7tMgo2JjgJA5aZ+nWSQ/Z+xg==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-FdSNcu2QQcWnM2VNvSCCDCVS5PpPqpzgFT8+GXzqJuoDd0CBncxCY278u4mhRO7tMgo2JjgJA5aZ+nWSQ/Z+xg==} + engines: {node: '>=10'} peerDependencies: graphql: ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 graphql-upload@13.0.0: - resolution: - { - integrity: sha512-YKhx8m/uOtKu4Y1UzBFJhbBGJTlk7k4CydlUUiNrtxnwZv0WigbRHP+DVhRNKt7u7DXOtcKZeYJlGtnMXvreXA==, - } - engines: { node: ^12.22.0 || ^14.17.0 || >= 16.0.0 } + resolution: {integrity: sha512-YKhx8m/uOtKu4Y1UzBFJhbBGJTlk7k4CydlUUiNrtxnwZv0WigbRHP+DVhRNKt7u7DXOtcKZeYJlGtnMXvreXA==} + engines: {node: ^12.22.0 || ^14.17.0 || >= 16.0.0} peerDependencies: graphql: 0.13.1 - 16 graphql-ws@6.0.7: - resolution: - { - integrity: sha512-yoLRW+KRlDmnnROdAu7sX77VNLC0bsFoZyGQJLy1cF+X/SkLg/fWkRGrEEYQK8o2cafJ2wmEaMqMEZB3U3DYDg==, - } - engines: { node: '>=20' } + resolution: {integrity: sha512-yoLRW+KRlDmnnROdAu7sX77VNLC0bsFoZyGQJLy1cF+X/SkLg/fWkRGrEEYQK8o2cafJ2wmEaMqMEZB3U3DYDg==} + engines: {node: '>=20'} peerDependencies: '@fastify/websocket': ^10 || ^11 crossws: ~0.3 @@ -9746,642 +6933,360 @@ packages: optional: true graphql@15.10.1: - resolution: - { - integrity: sha512-BL/Xd/T9baO6NFzoMpiMD7YUZ62R6viR5tp/MULVEnbYJXZA//kRNW7J0j1w/wXArgL0sCxhDfK5dczSKn3+cg==, - } - engines: { node: '>= 10.x' } + resolution: {integrity: sha512-BL/Xd/T9baO6NFzoMpiMD7YUZ62R6viR5tp/MULVEnbYJXZA//kRNW7J0j1w/wXArgL0sCxhDfK5dczSKn3+cg==} + engines: {node: '>= 10.x'} graphql@16.12.0: - resolution: - { - integrity: sha512-DKKrynuQRne0PNpEbzuEdHlYOMksHSUI8Zc9Unei5gTsMNA2/vMpoMz/yKba50pejK56qj98qM0SjYxAKi13gQ==, - } - engines: { node: ^12.22.0 || ^14.16.0 || ^16.0.0 || >=17.0.0 } + resolution: {integrity: sha512-DKKrynuQRne0PNpEbzuEdHlYOMksHSUI8Zc9Unei5gTsMNA2/vMpoMz/yKba50pejK56qj98qM0SjYxAKi13gQ==} + engines: {node: ^12.22.0 || ^14.16.0 || ^16.0.0 || >=17.0.0} handlebars@4.7.8: - resolution: - { - integrity: sha512-vafaFqs8MZkRrSX7sFVUdo3ap/eNiLnb4IakshzvP56X5Nr1iGKAIqdX6tMlm6HcNRIkr6AxO5jFEoJzzpT8aQ==, - } - engines: { node: '>=0.4.7' } + resolution: {integrity: sha512-vafaFqs8MZkRrSX7sFVUdo3ap/eNiLnb4IakshzvP56X5Nr1iGKAIqdX6tMlm6HcNRIkr6AxO5jFEoJzzpT8aQ==} + engines: {node: '>=0.4.7'} hasBin: true hard-rejection@2.1.0: - resolution: - { - integrity: sha512-VIZB+ibDhx7ObhAe7OVtoEbuP4h/MuOTHJ+J8h/eBXotJYl0fBgR72xDFCKgIh22OJZIOVNxBMWuhAr10r8HdA==, - } - engines: { node: '>=6' } + resolution: {integrity: sha512-VIZB+ibDhx7ObhAe7OVtoEbuP4h/MuOTHJ+J8h/eBXotJYl0fBgR72xDFCKgIh22OJZIOVNxBMWuhAr10r8HdA==} + engines: {node: '>=6'} has-flag@3.0.0: - resolution: - { - integrity: sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==, - } - engines: { node: '>=4' } + resolution: {integrity: sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==} + engines: {node: '>=4'} has-flag@4.0.0: - resolution: - { - integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} + engines: {node: '>=8'} has-symbols@1.1.0: - resolution: - { - integrity: sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==, - } - engines: { node: '>= 0.4' } + resolution: {integrity: sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==} + engines: {node: '>= 0.4'} has-tostringtag@1.0.2: - resolution: - { - integrity: sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==, - } - engines: { node: '>= 0.4' } + resolution: {integrity: sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==} + engines: {node: '>= 0.4'} has-unicode@2.0.1: - resolution: - { - integrity: sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==, - } + resolution: {integrity: sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==} hasown@2.0.2: - resolution: - { - integrity: sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==, - } - engines: { node: '>= 0.4' } + resolution: {integrity: sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==} + engines: {node: '>= 0.4'} he@1.2.0: - resolution: - { - integrity: sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==, - } + resolution: {integrity: sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==} hasBin: true hoist-non-react-statics@3.3.2: - resolution: - { - integrity: sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==, - } + resolution: {integrity: sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==} hosted-git-info@2.8.9: - resolution: - { - integrity: sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==, - } + resolution: {integrity: sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==} hosted-git-info@4.1.0: - resolution: - { - integrity: sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA==} + engines: {node: '>=10'} hosted-git-info@7.0.2: - resolution: - { - integrity: sha512-puUZAUKT5m8Zzvs72XWy3HtvVbTWljRE66cP60bxJzAqf2DgICo7lYTY2IHUmLnNpjYvw5bvmoHvPc0QO2a62w==, - } - engines: { node: ^16.14.0 || >=18.0.0 } + resolution: {integrity: sha512-puUZAUKT5m8Zzvs72XWy3HtvVbTWljRE66cP60bxJzAqf2DgICo7lYTY2IHUmLnNpjYvw5bvmoHvPc0QO2a62w==} + engines: {node: ^16.14.0 || >=18.0.0} html-escaper@2.0.2: - resolution: - { - integrity: sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==, - } + resolution: {integrity: sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==} html-minifier@3.5.21: - resolution: - { - integrity: sha512-LKUKwuJDhxNa3uf/LPR/KVjm/l3rBqtYeCOAekvG8F1vItxMUpueGd94i/asDDr8/1u7InxzFA5EeGjhhG5mMA==, - } - engines: { node: '>=4' } + resolution: {integrity: sha512-LKUKwuJDhxNa3uf/LPR/KVjm/l3rBqtYeCOAekvG8F1vItxMUpueGd94i/asDDr8/1u7InxzFA5EeGjhhG5mMA==} + engines: {node: '>=4'} hasBin: true htmlparser2@10.0.0: - resolution: - { - integrity: sha512-TwAZM+zE5Tq3lrEHvOlvwgj1XLWQCtaaibSN11Q+gGBAS7Y1uZSWwXXRe4iF6OXnaq1riyQAPFOBtYc77Mxq0g==, - } + resolution: {integrity: sha512-TwAZM+zE5Tq3lrEHvOlvwgj1XLWQCtaaibSN11Q+gGBAS7Y1uZSWwXXRe4iF6OXnaq1riyQAPFOBtYc77Mxq0g==} htmlparser2@3.10.1: - resolution: - { - integrity: sha512-IgieNijUMbkDovyoKObU1DUhm1iwNYE/fuifEoEHfd1oZKZDaONBSkal7Y01shxsM49R4XaMdGez3WnF9UfiCQ==, - } + resolution: {integrity: sha512-IgieNijUMbkDovyoKObU1DUhm1iwNYE/fuifEoEHfd1oZKZDaONBSkal7Y01shxsM49R4XaMdGez3WnF9UfiCQ==} htmlparser2@4.1.0: - resolution: - { - integrity: sha512-4zDq1a1zhE4gQso/c5LP1OtrhYTncXNSpvJYtWJBtXAETPlMfi3IFNjGuQbYLuVY4ZR0QMqRVvo4Pdy9KLyP8Q==, - } + resolution: {integrity: sha512-4zDq1a1zhE4gQso/c5LP1OtrhYTncXNSpvJYtWJBtXAETPlMfi3IFNjGuQbYLuVY4ZR0QMqRVvo4Pdy9KLyP8Q==} http-cache-semantics@4.2.0: - resolution: - { - integrity: sha512-dTxcvPXqPvXBQpq5dUr6mEMJX4oIEFv6bwom3FDwKRDsuIjjJGANqhBuoAn9c1RQJIdAKav33ED65E2ys+87QQ==, - } + resolution: {integrity: sha512-dTxcvPXqPvXBQpq5dUr6mEMJX4oIEFv6bwom3FDwKRDsuIjjJGANqhBuoAn9c1RQJIdAKav33ED65E2ys+87QQ==} http-errors@1.8.1: - resolution: - { - integrity: sha512-Kpk9Sm7NmI+RHhnj6OIWDI1d6fIoFAtFt9RLaTMRlg/8w49juAStsrBgp0Dp4OdxdVbRIeKhtCUvoi/RuAhO4g==, - } - engines: { node: '>= 0.6' } + resolution: {integrity: sha512-Kpk9Sm7NmI+RHhnj6OIWDI1d6fIoFAtFt9RLaTMRlg/8w49juAStsrBgp0Dp4OdxdVbRIeKhtCUvoi/RuAhO4g==} + engines: {node: '>= 0.6'} http-errors@2.0.1: - resolution: - { - integrity: sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==, - } - engines: { node: '>= 0.8' } + resolution: {integrity: sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==} + engines: {node: '>= 0.8'} http-proxy-agent@7.0.2: - resolution: - { - integrity: sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==, - } - engines: { node: '>= 14' } + resolution: {integrity: sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==} + engines: {node: '>= 14'} http-proxy@1.18.1: - resolution: - { - integrity: sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ==, - } - engines: { node: '>=8.0.0' } + resolution: {integrity: sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ==} + engines: {node: '>=8.0.0'} https-proxy-agent@7.0.6: - resolution: - { - integrity: sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==, - } - engines: { node: '>= 14' } + resolution: {integrity: sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==} + engines: {node: '>= 14'} human-signals@2.1.0: - resolution: - { - integrity: sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==, - } - engines: { node: '>=10.17.0' } + resolution: {integrity: sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==} + engines: {node: '>=10.17.0'} iconv-lite@0.6.3: - resolution: - { - integrity: sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==, - } - engines: { node: '>=0.10.0' } + resolution: {integrity: sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==} + engines: {node: '>=0.10.0'} iconv-lite@0.7.1: - resolution: - { - integrity: sha512-2Tth85cXwGFHfvRgZWszZSvdo+0Xsqmw8k8ZwxScfcBneNUraK+dxRxRm24nszx80Y0TVio8kKLt5sLE7ZCLlw==, - } - engines: { node: '>=0.10.0' } + resolution: {integrity: sha512-2Tth85cXwGFHfvRgZWszZSvdo+0Xsqmw8k8ZwxScfcBneNUraK+dxRxRm24nszx80Y0TVio8kKLt5sLE7ZCLlw==} + engines: {node: '>=0.10.0'} ieee754@1.2.1: - resolution: - { - integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==, - } + resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==} ignore-by-default@1.0.1: - resolution: - { - integrity: sha512-Ius2VYcGNk7T90CppJqcIkS5ooHUZyIQK+ClZfMfMNFEF9VSE73Fq+906u/CWu92x4gzZMWOwfFYckPObzdEbA==, - } + resolution: {integrity: sha512-Ius2VYcGNk7T90CppJqcIkS5ooHUZyIQK+ClZfMfMNFEF9VSE73Fq+906u/CWu92x4gzZMWOwfFYckPObzdEbA==} ignore-walk@6.0.5: - resolution: - { - integrity: sha512-VuuG0wCnjhnylG1ABXT3dAuIpTNDs/G8jlpmwXY03fXoXy/8ZK8/T+hMzt8L4WnrLCJgdybqgPagnF/f97cg3A==, - } - engines: { node: ^14.17.0 || ^16.13.0 || >=18.0.0 } + resolution: {integrity: sha512-VuuG0wCnjhnylG1ABXT3dAuIpTNDs/G8jlpmwXY03fXoXy/8ZK8/T+hMzt8L4WnrLCJgdybqgPagnF/f97cg3A==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} ignore@5.3.2: - resolution: - { - integrity: sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==, - } - engines: { node: '>= 4' } + resolution: {integrity: sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==} + engines: {node: '>= 4'} ignore@7.0.5: - resolution: - { - integrity: sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==, - } - engines: { node: '>= 4' } + resolution: {integrity: sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==} + engines: {node: '>= 4'} import-fresh@3.3.1: - resolution: - { - integrity: sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==, - } - engines: { node: '>=6' } + resolution: {integrity: sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==} + engines: {node: '>=6'} import-local@3.1.0: - resolution: - { - integrity: sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==} + engines: {node: '>=8'} hasBin: true import-local@3.2.0: - resolution: - { - integrity: sha512-2SPlun1JUPWoM6t3F0dw0FkCF/jWY8kttcY4f599GLTSjh2OCuuhdTkJQsEcZzBqbXZGKMK2OqW1oZsjtf/gQA==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-2SPlun1JUPWoM6t3F0dw0FkCF/jWY8kttcY4f599GLTSjh2OCuuhdTkJQsEcZzBqbXZGKMK2OqW1oZsjtf/gQA==} + engines: {node: '>=8'} hasBin: true imurmurhash@0.1.4: - resolution: - { - integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==, - } - engines: { node: '>=0.8.19' } + resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==} + engines: {node: '>=0.8.19'} indent-string@4.0.0: - resolution: - { - integrity: sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==} + engines: {node: '>=8'} inflection@3.0.2: - resolution: - { - integrity: sha512-+Bg3+kg+J6JUWn8J6bzFmOWkTQ6L/NHfDRSYU+EVvuKHDxUDHAXgqixHfVlzuBQaPOTac8hn43aPhMNk6rMe3g==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-+Bg3+kg+J6JUWn8J6bzFmOWkTQ6L/NHfDRSYU+EVvuKHDxUDHAXgqixHfVlzuBQaPOTac8hn43aPhMNk6rMe3g==} + engines: {node: '>=18.0.0'} inflekt@0.3.1: - resolution: - { - integrity: sha512-z5jvjelE61KiWinkjlainPDROpO3u0NqlUsCoSTxrSV7yNhcnaIb71ckx3utm8GZ2wifjqGFyaqyYomSXEgMfQ==, - } + resolution: {integrity: sha512-z5jvjelE61KiWinkjlainPDROpO3u0NqlUsCoSTxrSV7yNhcnaIb71ckx3utm8GZ2wifjqGFyaqyYomSXEgMfQ==} inflight@1.0.6: - resolution: - { - integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==, - } + resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==} deprecated: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. inherits@2.0.4: - resolution: - { - integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==, - } + resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} ini@1.3.8: - resolution: - { - integrity: sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==, - } + resolution: {integrity: sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==} ini@4.1.3: - resolution: - { - integrity: sha512-X7rqawQBvfdjS10YU1y1YVreA3SsLrW9dX2CewP2EbBJM4ypVNLDkO5y04gejPwKIY9lR+7r9gn3rFPt/kmWFg==, - } - engines: { node: ^14.17.0 || ^16.13.0 || >=18.0.0 } + resolution: {integrity: sha512-X7rqawQBvfdjS10YU1y1YVreA3SsLrW9dX2CewP2EbBJM4ypVNLDkO5y04gejPwKIY9lR+7r9gn3rFPt/kmWFg==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} init-package-json@6.0.3: - resolution: - { - integrity: sha512-Zfeb5ol+H+eqJWHTaGca9BovufyGeIfr4zaaBorPmJBMrJ+KBnN+kQx2ZtXdsotUTgldHmHQV44xvUWOUA7E2w==, - } - engines: { node: ^16.14.0 || >=18.0.0 } + resolution: {integrity: sha512-Zfeb5ol+H+eqJWHTaGca9BovufyGeIfr4zaaBorPmJBMrJ+KBnN+kQx2ZtXdsotUTgldHmHQV44xvUWOUA7E2w==} + engines: {node: ^16.14.0 || >=18.0.0} inquirer@8.2.7: - resolution: - { - integrity: sha512-UjOaSel/iddGZJ5xP/Eixh6dY1XghiBw4XK13rCCIJcJfyhhoul/7KhLLUGtebEj6GDYM6Vnx/mVsjx2L/mFIA==, - } - engines: { node: '>=12.0.0' } + resolution: {integrity: sha512-UjOaSel/iddGZJ5xP/Eixh6dY1XghiBw4XK13rCCIJcJfyhhoul/7KhLLUGtebEj6GDYM6Vnx/mVsjx2L/mFIA==} + engines: {node: '>=12.0.0'} inquirerer@4.4.0: - resolution: - { - integrity: sha512-zra0M4Oh+rzgr7PMJy9cNi/LbkJbtB6QRABou65nN6NTwb368/lMJ8ACHXozM7bw3+t5SOI0TP3gxKAyT0BCRw==, - } + resolution: {integrity: sha512-zra0M4Oh+rzgr7PMJy9cNi/LbkJbtB6QRABou65nN6NTwb368/lMJ8ACHXozM7bw3+t5SOI0TP3gxKAyT0BCRw==} inquirerer@4.5.0: - resolution: - { - integrity: sha512-ULWscyMV6Y/OH1XRODvunrQH1EO4r7q+UV/boWFiVIt9h2UZ7wa/Qc+ZpAqUaWynKUhDtY3UqZV4MVrRcEkmNg==, - } + resolution: {integrity: sha512-ULWscyMV6Y/OH1XRODvunrQH1EO4r7q+UV/boWFiVIt9h2UZ7wa/Qc+ZpAqUaWynKUhDtY3UqZV4MVrRcEkmNg==} inquirerer@4.5.1: - resolution: - { - integrity: sha512-/Cis0BNeqdgcXJt3loHKt7PbfawPG7fLTQHr29IfpOHCRaLACmf5737PAHakVU1rBflCNNMo4lpdso6t4FHpjg==, - } + resolution: {integrity: sha512-/Cis0BNeqdgcXJt3loHKt7PbfawPG7fLTQHr29IfpOHCRaLACmf5737PAHakVU1rBflCNNMo4lpdso6t4FHpjg==} interpret@3.1.1: - resolution: - { - integrity: sha512-6xwYfHbajpoF0xLW+iwLkhwgvLoZDfjYfoFNu8ftMoXINzwuymNLd9u/KmwtdT2GbR+/Cz66otEGEVVUHX9QLQ==, - } - engines: { node: '>=10.13.0' } + resolution: {integrity: sha512-6xwYfHbajpoF0xLW+iwLkhwgvLoZDfjYfoFNu8ftMoXINzwuymNLd9u/KmwtdT2GbR+/Cz66otEGEVVUHX9QLQ==} + engines: {node: '>=10.13.0'} ip-address@10.1.0: - resolution: - { - integrity: sha512-XXADHxXmvT9+CRxhXg56LJovE+bmWnEWB78LB83VZTprKTmaC5QfruXocxzTZ2Kl0DNwKuBdlIhjL8LeY8Sf8Q==, - } - engines: { node: '>= 12' } + resolution: {integrity: sha512-XXADHxXmvT9+CRxhXg56LJovE+bmWnEWB78LB83VZTprKTmaC5QfruXocxzTZ2Kl0DNwKuBdlIhjL8LeY8Sf8Q==} + engines: {node: '>= 12'} ipaddr.js@1.9.1: - resolution: - { - integrity: sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==, - } - engines: { node: '>= 0.10' } + resolution: {integrity: sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==} + engines: {node: '>= 0.10'} ipv6-normalize@1.0.1: - resolution: - { - integrity: sha512-Bm6H79i01DjgGTCWjUuCjJ6QDo1HB96PT/xCYuyJUP9WFbVDrLSbG4EZCvOCun2rNswZb0c3e4Jt/ws795esHA==, - } + resolution: {integrity: sha512-Bm6H79i01DjgGTCWjUuCjJ6QDo1HB96PT/xCYuyJUP9WFbVDrLSbG4EZCvOCun2rNswZb0c3e4Jt/ws795esHA==} is-arrayish@0.2.1: - resolution: - { - integrity: sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==, - } + resolution: {integrity: sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==} is-binary-path@2.1.0: - resolution: - { - integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==} + engines: {node: '>=8'} is-ci@3.0.1: - resolution: - { - integrity: sha512-ZYvCgrefwqoQ6yTyYUbQu64HsITZ3NfKX1lzaEYdkTDcfKzzCI/wthRRYKkdjHKFVgNiXKAKm65Zo1pk2as/QQ==, - } + resolution: {integrity: sha512-ZYvCgrefwqoQ6yTyYUbQu64HsITZ3NfKX1lzaEYdkTDcfKzzCI/wthRRYKkdjHKFVgNiXKAKm65Zo1pk2as/QQ==} hasBin: true is-core-module@2.16.1: - resolution: - { - integrity: sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==, - } - engines: { node: '>= 0.4' } + resolution: {integrity: sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==} + engines: {node: '>= 0.4'} is-docker@2.2.1: - resolution: - { - integrity: sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==} + engines: {node: '>=8'} hasBin: true is-extglob@2.1.1: - resolution: - { - integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==, - } - engines: { node: '>=0.10.0' } + resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==} + engines: {node: '>=0.10.0'} is-fullwidth-code-point@3.0.0: - resolution: - { - integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==} + engines: {node: '>=8'} is-generator-fn@2.1.0: - resolution: - { - integrity: sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==, - } - engines: { node: '>=6' } + resolution: {integrity: sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==} + engines: {node: '>=6'} is-glob@4.0.3: - resolution: - { - integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==, - } - engines: { node: '>=0.10.0' } + resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} + engines: {node: '>=0.10.0'} is-interactive@1.0.0: - resolution: - { - integrity: sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==} + engines: {node: '>=8'} is-lambda@1.0.1: - resolution: - { - integrity: sha512-z7CMFGNrENq5iFB9Bqo64Xk6Y9sg+epq1myIcdHaGnbMTYOxvzsEtdYqQUylB7LxfkvgrrjP32T6Ywciio9UIQ==, - } + resolution: {integrity: sha512-z7CMFGNrENq5iFB9Bqo64Xk6Y9sg+epq1myIcdHaGnbMTYOxvzsEtdYqQUylB7LxfkvgrrjP32T6Ywciio9UIQ==} is-number@7.0.0: - resolution: - { - integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==, - } - engines: { node: '>=0.12.0' } + resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} + engines: {node: '>=0.12.0'} is-obj@2.0.0: - resolution: - { - integrity: sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==} + engines: {node: '>=8'} is-plain-obj@1.1.0: - resolution: - { - integrity: sha512-yvkRyxmFKEOQ4pNXCmJG5AEQNlXJS5LaONXo5/cLdTZdWvsZ1ioJEonLGAosKlMWE8lwUy/bJzMjcw8az73+Fg==, - } - engines: { node: '>=0.10.0' } + resolution: {integrity: sha512-yvkRyxmFKEOQ4pNXCmJG5AEQNlXJS5LaONXo5/cLdTZdWvsZ1ioJEonLGAosKlMWE8lwUy/bJzMjcw8az73+Fg==} + engines: {node: '>=0.10.0'} is-plain-object@2.0.4: - resolution: - { - integrity: sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==, - } - engines: { node: '>=0.10.0' } + resolution: {integrity: sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==} + engines: {node: '>=0.10.0'} is-primitive@3.0.1: - resolution: - { - integrity: sha512-GljRxhWvlCNRfZyORiH77FwdFwGcMO620o37EOYC0ORWdq+WYNVqW0w2Juzew4M+L81l6/QS3t5gkkihyRqv9w==, - } - engines: { node: '>=0.10.0' } + resolution: {integrity: sha512-GljRxhWvlCNRfZyORiH77FwdFwGcMO620o37EOYC0ORWdq+WYNVqW0w2Juzew4M+L81l6/QS3t5gkkihyRqv9w==} + engines: {node: '>=0.10.0'} is-promise@4.0.0: - resolution: - { - integrity: sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==, - } + resolution: {integrity: sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==} is-ssh@1.4.1: - resolution: - { - integrity: sha512-JNeu1wQsHjyHgn9NcWTaXq6zWSR6hqE0++zhfZlkFBbScNkyvxCdeV8sRkSBaeLKxmbpR21brail63ACNxJ0Tg==, - } + resolution: {integrity: sha512-JNeu1wQsHjyHgn9NcWTaXq6zWSR6hqE0++zhfZlkFBbScNkyvxCdeV8sRkSBaeLKxmbpR21brail63ACNxJ0Tg==} is-stream@2.0.0: - resolution: - { - integrity: sha512-XCoy+WlUr7d1+Z8GgSuXmpuUFC9fOhRXglJMx+dwLKTkL44Cjd4W1Z5P+BQZpr+cR93aGP4S/s7Ftw6Nd/kiEw==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-XCoy+WlUr7d1+Z8GgSuXmpuUFC9fOhRXglJMx+dwLKTkL44Cjd4W1Z5P+BQZpr+cR93aGP4S/s7Ftw6Nd/kiEw==} + engines: {node: '>=8'} is-stream@2.0.1: - resolution: - { - integrity: sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==} + engines: {node: '>=8'} is-text-path@1.0.1: - resolution: - { - integrity: sha512-xFuJpne9oFz5qDaodwmmG08e3CawH/2ZV8Qqza1Ko7Sk8POWbkRdwIoAWVhqvq0XeUzANEhKo2n0IXUGBm7A/w==, - } - engines: { node: '>=0.10.0' } + resolution: {integrity: sha512-xFuJpne9oFz5qDaodwmmG08e3CawH/2ZV8Qqza1Ko7Sk8POWbkRdwIoAWVhqvq0XeUzANEhKo2n0IXUGBm7A/w==} + engines: {node: '>=0.10.0'} is-unicode-supported@0.1.0: - resolution: - { - integrity: sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==} + engines: {node: '>=10'} is-wsl@2.2.0: - resolution: - { - integrity: sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==} + engines: {node: '>=8'} isarray@0.0.1: - resolution: - { - integrity: sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==, - } + resolution: {integrity: sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==} isarray@1.0.0: - resolution: - { - integrity: sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==, - } + resolution: {integrity: sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==} isexe@2.0.0: - resolution: - { - integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==, - } + resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} isexe@3.1.1: - resolution: - { - integrity: sha512-LpB/54B+/2J5hqQ7imZHfdU31OlgQqx7ZicVlkm9kzg9/w8GKLEcFfJl/t7DCEDueOyBAD6zCCwTO6Fzs0NoEQ==, - } - engines: { node: '>=16' } + resolution: {integrity: sha512-LpB/54B+/2J5hqQ7imZHfdU31OlgQqx7ZicVlkm9kzg9/w8GKLEcFfJl/t7DCEDueOyBAD6zCCwTO6Fzs0NoEQ==} + engines: {node: '>=16'} isobject@3.0.1: - resolution: - { - integrity: sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==, - } - engines: { node: '>=0.10.0' } + resolution: {integrity: sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==} + engines: {node: '>=0.10.0'} istanbul-lib-coverage@3.2.2: - resolution: - { - integrity: sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==} + engines: {node: '>=8'} istanbul-lib-instrument@6.0.3: - resolution: - { - integrity: sha512-Vtgk7L/R2JHyyGW07spoFlB8/lpjiOLTjMdms6AFMraYt3BaJauod/NGrfnVG/y4Ix1JEuMRPDPEj2ua+zz1/Q==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-Vtgk7L/R2JHyyGW07spoFlB8/lpjiOLTjMdms6AFMraYt3BaJauod/NGrfnVG/y4Ix1JEuMRPDPEj2ua+zz1/Q==} + engines: {node: '>=10'} istanbul-lib-report@3.0.1: - resolution: - { - integrity: sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==} + engines: {node: '>=10'} istanbul-lib-source-maps@5.0.6: - resolution: - { - integrity: sha512-yg2d+Em4KizZC5niWhQaIomgf5WlL4vOOjZ5xGCmF8SnPE/mDWWXgvRExdcpCgh9lLRRa1/fSYp2ymmbJ1pI+A==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-yg2d+Em4KizZC5niWhQaIomgf5WlL4vOOjZ5xGCmF8SnPE/mDWWXgvRExdcpCgh9lLRRa1/fSYp2ymmbJ1pI+A==} + engines: {node: '>=10'} istanbul-reports@3.2.0: - resolution: - { - integrity: sha512-HGYWWS/ehqTV3xN10i23tkPkpH46MLCIMFNCaaKNavAXTF1RkqxawEPtnjnGZ6XKSInBKkiOA5BKS+aZiY3AvA==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-HGYWWS/ehqTV3xN10i23tkPkpH46MLCIMFNCaaKNavAXTF1RkqxawEPtnjnGZ6XKSInBKkiOA5BKS+aZiY3AvA==} + engines: {node: '>=8'} iterall@1.3.0: - resolution: - { - integrity: sha512-QZ9qOMdF+QLHxy1QIpUHUU1D5pS2CG2P69LF6L6CPjPYA/XMOmKV3PZpawHoAjHNyB0swdVTRxdYT4tbBbxqwg==, - } + resolution: {integrity: sha512-QZ9qOMdF+QLHxy1QIpUHUU1D5pS2CG2P69LF6L6CPjPYA/XMOmKV3PZpawHoAjHNyB0swdVTRxdYT4tbBbxqwg==} jackspeak@3.4.3: - resolution: - { - integrity: sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==, - } + resolution: {integrity: sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==} jackspeak@4.2.3: - resolution: - { - integrity: sha512-ykkVRwrYvFm1nb2AJfKKYPr0emF6IiXDYUaFx4Zn9ZuIH7MrzEZ3sD5RlqGXNRpHtvUHJyOnCEFxOlNDtGo7wg==, - } - engines: { node: 20 || >=22 } + resolution: {integrity: sha512-ykkVRwrYvFm1nb2AJfKKYPr0emF6IiXDYUaFx4Zn9ZuIH7MrzEZ3sD5RlqGXNRpHtvUHJyOnCEFxOlNDtGo7wg==} + engines: {node: 20 || >=22} jake@10.9.4: - resolution: - { - integrity: sha512-wpHYzhxiVQL+IV05BLE2Xn34zW1S223hvjtqk0+gsPrwd/8JNLXJgZZM/iPFsYc1xyphF+6M6EvdE5E9MBGkDA==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-wpHYzhxiVQL+IV05BLE2Xn34zW1S223hvjtqk0+gsPrwd/8JNLXJgZZM/iPFsYc1xyphF+6M6EvdE5E9MBGkDA==} + engines: {node: '>=10'} hasBin: true jest-changed-files@30.2.0: - resolution: - { - integrity: sha512-L8lR1ChrRnSdfeOvTrwZMlnWV8G/LLjQ0nG9MBclwWZidA2N5FviRki0Bvh20WRMOX31/JYvzdqTJrk5oBdydQ==, - } - engines: { node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0 } + resolution: {integrity: sha512-L8lR1ChrRnSdfeOvTrwZMlnWV8G/LLjQ0nG9MBclwWZidA2N5FviRki0Bvh20WRMOX31/JYvzdqTJrk5oBdydQ==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} jest-circus@30.2.0: - resolution: - { - integrity: sha512-Fh0096NC3ZkFx05EP2OXCxJAREVxj1BcW/i6EWqqymcgYKWjyyDpral3fMxVcHXg6oZM7iULer9wGRFvfpl+Tg==, - } - engines: { node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0 } + resolution: {integrity: sha512-Fh0096NC3ZkFx05EP2OXCxJAREVxj1BcW/i6EWqqymcgYKWjyyDpral3fMxVcHXg6oZM7iULer9wGRFvfpl+Tg==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} jest-cli@30.2.0: - resolution: - { - integrity: sha512-Os9ukIvADX/A9sLt6Zse3+nmHtHaE6hqOsjQtNiugFTbKRHYIYtZXNGNK9NChseXy7djFPjndX1tL0sCTlfpAA==, - } - engines: { node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0 } + resolution: {integrity: sha512-Os9ukIvADX/A9sLt6Zse3+nmHtHaE6hqOsjQtNiugFTbKRHYIYtZXNGNK9NChseXy7djFPjndX1tL0sCTlfpAA==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} hasBin: true peerDependencies: node-notifier: ^8.0.1 || ^9.0.0 || ^10.0.0 @@ -10390,11 +7295,8 @@ packages: optional: true jest-config@30.2.0: - resolution: - { - integrity: sha512-g4WkyzFQVWHtu6uqGmQR4CQxz/CH3yDSlhzXMWzNjDx843gYjReZnMRanjRCq5XZFuQrGDxgUaiYWE8BRfVckA==, - } - engines: { node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0 } + resolution: {integrity: sha512-g4WkyzFQVWHtu6uqGmQR4CQxz/CH3yDSlhzXMWzNjDx843gYjReZnMRanjRCq5XZFuQrGDxgUaiYWE8BRfVckA==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} peerDependencies: '@types/node': '*' esbuild-register: '>=3.4.0' @@ -10408,95 +7310,56 @@ packages: optional: true jest-diff@29.7.0: - resolution: - { - integrity: sha512-LMIgiIrhigmPrs03JHpxUh2yISK3vLFPkAodPeo0+BuF7wA2FoQbkEg1u8gBYBThncu7e1oEDUfIXVuTqLRUjw==, - } - engines: { node: ^14.15.0 || ^16.10.0 || >=18.0.0 } + resolution: {integrity: sha512-LMIgiIrhigmPrs03JHpxUh2yISK3vLFPkAodPeo0+BuF7wA2FoQbkEg1u8gBYBThncu7e1oEDUfIXVuTqLRUjw==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} jest-diff@30.2.0: - resolution: - { - integrity: sha512-dQHFo3Pt4/NLlG5z4PxZ/3yZTZ1C7s9hveiOj+GCN+uT109NC2QgsoVZsVOAvbJ3RgKkvyLGXZV9+piDpWbm6A==, - } - engines: { node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0 } + resolution: {integrity: sha512-dQHFo3Pt4/NLlG5z4PxZ/3yZTZ1C7s9hveiOj+GCN+uT109NC2QgsoVZsVOAvbJ3RgKkvyLGXZV9+piDpWbm6A==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} jest-docblock@30.2.0: - resolution: - { - integrity: sha512-tR/FFgZKS1CXluOQzZvNH3+0z9jXr3ldGSD8bhyuxvlVUwbeLOGynkunvlTMxchC5urrKndYiwCFC0DLVjpOCA==, - } - engines: { node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0 } + resolution: {integrity: sha512-tR/FFgZKS1CXluOQzZvNH3+0z9jXr3ldGSD8bhyuxvlVUwbeLOGynkunvlTMxchC5urrKndYiwCFC0DLVjpOCA==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} jest-each@30.2.0: - resolution: - { - integrity: sha512-lpWlJlM7bCUf1mfmuqTA8+j2lNURW9eNafOy99knBM01i5CQeY5UH1vZjgT9071nDJac1M4XsbyI44oNOdhlDQ==, - } - engines: { node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0 } + resolution: {integrity: sha512-lpWlJlM7bCUf1mfmuqTA8+j2lNURW9eNafOy99knBM01i5CQeY5UH1vZjgT9071nDJac1M4XsbyI44oNOdhlDQ==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} jest-environment-node@30.2.0: - resolution: - { - integrity: sha512-ElU8v92QJ9UrYsKrxDIKCxu6PfNj4Hdcktcn0JX12zqNdqWHB0N+hwOnnBBXvjLd2vApZtuLUGs1QSY+MsXoNA==, - } - engines: { node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0 } + resolution: {integrity: sha512-ElU8v92QJ9UrYsKrxDIKCxu6PfNj4Hdcktcn0JX12zqNdqWHB0N+hwOnnBBXvjLd2vApZtuLUGs1QSY+MsXoNA==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} jest-get-type@29.6.3: - resolution: - { - integrity: sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw==, - } - engines: { node: ^14.15.0 || ^16.10.0 || >=18.0.0 } + resolution: {integrity: sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} jest-haste-map@30.2.0: - resolution: - { - integrity: sha512-sQA/jCb9kNt+neM0anSj6eZhLZUIhQgwDt7cPGjumgLM4rXsfb9kpnlacmvZz3Q5tb80nS+oG/if+NBKrHC+Xw==, - } - engines: { node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0 } + resolution: {integrity: sha512-sQA/jCb9kNt+neM0anSj6eZhLZUIhQgwDt7cPGjumgLM4rXsfb9kpnlacmvZz3Q5tb80nS+oG/if+NBKrHC+Xw==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} jest-in-case@1.0.2: - resolution: - { - integrity: sha512-2DE6Gdwnh5jkCYTePWoQinF+zne3lCADibXoYJEt8PS84JaRug0CyAOrEgzMxbzln3YcSY2PBeru7ct4tbflYA==, - } - engines: { node: '>=4' } + resolution: {integrity: sha512-2DE6Gdwnh5jkCYTePWoQinF+zne3lCADibXoYJEt8PS84JaRug0CyAOrEgzMxbzln3YcSY2PBeru7ct4tbflYA==} + engines: {node: '>=4'} jest-leak-detector@30.2.0: - resolution: - { - integrity: sha512-M6jKAjyzjHG0SrQgwhgZGy9hFazcudwCNovY/9HPIicmNSBuockPSedAP9vlPK6ONFJ1zfyH/M2/YYJxOz5cdQ==, - } - engines: { node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0 } + resolution: {integrity: sha512-M6jKAjyzjHG0SrQgwhgZGy9hFazcudwCNovY/9HPIicmNSBuockPSedAP9vlPK6ONFJ1zfyH/M2/YYJxOz5cdQ==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} jest-matcher-utils@30.2.0: - resolution: - { - integrity: sha512-dQ94Nq4dbzmUWkQ0ANAWS9tBRfqCrn0bV9AMYdOi/MHW726xn7eQmMeRTpX2ViC00bpNaWXq+7o4lIQ3AX13Hg==, - } - engines: { node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0 } + resolution: {integrity: sha512-dQ94Nq4dbzmUWkQ0ANAWS9tBRfqCrn0bV9AMYdOi/MHW726xn7eQmMeRTpX2ViC00bpNaWXq+7o4lIQ3AX13Hg==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} jest-message-util@30.2.0: - resolution: - { - integrity: sha512-y4DKFLZ2y6DxTWD4cDe07RglV88ZiNEdlRfGtqahfbIjfsw1nMCPx49Uev4IA/hWn3sDKyAnSPwoYSsAEdcimw==, - } - engines: { node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0 } + resolution: {integrity: sha512-y4DKFLZ2y6DxTWD4cDe07RglV88ZiNEdlRfGtqahfbIjfsw1nMCPx49Uev4IA/hWn3sDKyAnSPwoYSsAEdcimw==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} jest-mock@30.2.0: - resolution: - { - integrity: sha512-JNNNl2rj4b5ICpmAcq+WbLH83XswjPbjH4T7yvGzfAGCPh1rw+xVNbtk+FnRslvt9lkCcdn9i1oAoKUuFsOxRw==, - } - engines: { node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0 } + resolution: {integrity: sha512-JNNNl2rj4b5ICpmAcq+WbLH83XswjPbjH4T7yvGzfAGCPh1rw+xVNbtk+FnRslvt9lkCcdn9i1oAoKUuFsOxRw==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} jest-pnp-resolver@1.2.3: - resolution: - { - integrity: sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==, - } - engines: { node: '>=6' } + resolution: {integrity: sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==} + engines: {node: '>=6'} peerDependencies: jest-resolve: '*' peerDependenciesMeta: @@ -10504,81 +7367,48 @@ packages: optional: true jest-regex-util@30.0.1: - resolution: - { - integrity: sha512-jHEQgBXAgc+Gh4g0p3bCevgRCVRkB4VB70zhoAE48gxeSr1hfUOsM/C2WoJgVL7Eyg//hudYENbm3Ne+/dRVVA==, - } - engines: { node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0 } + resolution: {integrity: sha512-jHEQgBXAgc+Gh4g0p3bCevgRCVRkB4VB70zhoAE48gxeSr1hfUOsM/C2WoJgVL7Eyg//hudYENbm3Ne+/dRVVA==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} jest-resolve-dependencies@30.2.0: - resolution: - { - integrity: sha512-xTOIGug/0RmIe3mmCqCT95yO0vj6JURrn1TKWlNbhiAefJRWINNPgwVkrVgt/YaerPzY3iItufd80v3lOrFJ2w==, - } - engines: { node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0 } + resolution: {integrity: sha512-xTOIGug/0RmIe3mmCqCT95yO0vj6JURrn1TKWlNbhiAefJRWINNPgwVkrVgt/YaerPzY3iItufd80v3lOrFJ2w==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} jest-resolve@30.2.0: - resolution: - { - integrity: sha512-TCrHSxPlx3tBY3hWNtRQKbtgLhsXa1WmbJEqBlTBrGafd5fiQFByy2GNCEoGR+Tns8d15GaL9cxEzKOO3GEb2A==, - } - engines: { node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0 } + resolution: {integrity: sha512-TCrHSxPlx3tBY3hWNtRQKbtgLhsXa1WmbJEqBlTBrGafd5fiQFByy2GNCEoGR+Tns8d15GaL9cxEzKOO3GEb2A==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} jest-runner@30.2.0: - resolution: - { - integrity: sha512-PqvZ2B2XEyPEbclp+gV6KO/F1FIFSbIwewRgmROCMBo/aZ6J1w8Qypoj2pEOcg3G2HzLlaP6VUtvwCI8dM3oqQ==, - } - engines: { node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0 } + resolution: {integrity: sha512-PqvZ2B2XEyPEbclp+gV6KO/F1FIFSbIwewRgmROCMBo/aZ6J1w8Qypoj2pEOcg3G2HzLlaP6VUtvwCI8dM3oqQ==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} jest-runtime@30.2.0: - resolution: - { - integrity: sha512-p1+GVX/PJqTucvsmERPMgCPvQJpFt4hFbM+VN3n8TMo47decMUcJbt+rgzwrEme0MQUA/R+1de2axftTHkKckg==, - } - engines: { node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0 } + resolution: {integrity: sha512-p1+GVX/PJqTucvsmERPMgCPvQJpFt4hFbM+VN3n8TMo47decMUcJbt+rgzwrEme0MQUA/R+1de2axftTHkKckg==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} jest-snapshot@30.2.0: - resolution: - { - integrity: sha512-5WEtTy2jXPFypadKNpbNkZ72puZCa6UjSr/7djeecHWOu7iYhSXSnHScT8wBz3Rn8Ena5d5RYRcsyKIeqG1IyA==, - } - engines: { node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0 } + resolution: {integrity: sha512-5WEtTy2jXPFypadKNpbNkZ72puZCa6UjSr/7djeecHWOu7iYhSXSnHScT8wBz3Rn8Ena5d5RYRcsyKIeqG1IyA==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} jest-util@30.2.0: - resolution: - { - integrity: sha512-QKNsM0o3Xe6ISQU869e+DhG+4CK/48aHYdJZGlFQVTjnbvgpcKyxpzk29fGiO7i/J8VENZ+d2iGnSsvmuHywlA==, - } - engines: { node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0 } + resolution: {integrity: sha512-QKNsM0o3Xe6ISQU869e+DhG+4CK/48aHYdJZGlFQVTjnbvgpcKyxpzk29fGiO7i/J8VENZ+d2iGnSsvmuHywlA==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} jest-validate@30.2.0: - resolution: - { - integrity: sha512-FBGWi7dP2hpdi8nBoWxSsLvBFewKAg0+uSQwBaof4Y4DPgBabXgpSYC5/lR7VmnIlSpASmCi/ntRWPbv7089Pw==, - } - engines: { node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0 } + resolution: {integrity: sha512-FBGWi7dP2hpdi8nBoWxSsLvBFewKAg0+uSQwBaof4Y4DPgBabXgpSYC5/lR7VmnIlSpASmCi/ntRWPbv7089Pw==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} jest-watcher@30.2.0: - resolution: - { - integrity: sha512-PYxa28dxJ9g777pGm/7PrbnMeA0Jr7osHP9bS7eJy9DuAjMgdGtxgf0uKMyoIsTWAkIbUW5hSDdJ3urmgXBqxg==, - } - engines: { node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0 } + resolution: {integrity: sha512-PYxa28dxJ9g777pGm/7PrbnMeA0Jr7osHP9bS7eJy9DuAjMgdGtxgf0uKMyoIsTWAkIbUW5hSDdJ3urmgXBqxg==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} jest-worker@30.2.0: - resolution: - { - integrity: sha512-0Q4Uk8WF7BUwqXHuAjc23vmopWJw5WH7w2tqBoUOZpOjW/ZnR44GXXd1r82RvnmI2GZge3ivrYXk/BE2+VtW2g==, - } - engines: { node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0 } + resolution: {integrity: sha512-0Q4Uk8WF7BUwqXHuAjc23vmopWJw5WH7w2tqBoUOZpOjW/ZnR44GXXd1r82RvnmI2GZge3ivrYXk/BE2+VtW2g==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} jest@30.2.0: - resolution: - { - integrity: sha512-F26gjC0yWN8uAA5m5Ss8ZQf5nDHWGlN/xWZIh8S5SRbsEKBovwZhxGd6LJlbZYxBgCYOtreSUyb8hpXyGC5O4A==, - } - engines: { node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0 } + resolution: {integrity: sha512-F26gjC0yWN8uAA5m5Ss8ZQf5nDHWGlN/xWZIh8S5SRbsEKBovwZhxGd6LJlbZYxBgCYOtreSUyb8hpXyGC5O4A==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} hasBin: true peerDependencies: node-notifier: ^8.0.1 || ^9.0.0 || ^10.0.0 @@ -10587,594 +7417,324 @@ packages: optional: true jiti@2.6.1: - resolution: - { - integrity: sha512-ekilCSN1jwRvIbgeg/57YFh8qQDNbwDb9xT/qu2DAHbFFZUicIl4ygVaAvzveMhMVr3LnpSKTNnwt8PoOfmKhQ==, - } + resolution: {integrity: sha512-ekilCSN1jwRvIbgeg/57YFh8qQDNbwDb9xT/qu2DAHbFFZUicIl4ygVaAvzveMhMVr3LnpSKTNnwt8PoOfmKhQ==} hasBin: true js-beautify@1.15.4: - resolution: - { - integrity: sha512-9/KXeZUKKJwqCXUdBxFJ3vPh467OCckSBmYDwSK/EtV090K+iMJ7zx2S3HLVDIWFQdqMIsZWbnaGiba18aWhaA==, - } - engines: { node: '>=14' } + resolution: {integrity: sha512-9/KXeZUKKJwqCXUdBxFJ3vPh467OCckSBmYDwSK/EtV090K+iMJ7zx2S3HLVDIWFQdqMIsZWbnaGiba18aWhaA==} + engines: {node: '>=14'} hasBin: true js-cookie@3.0.5: - resolution: - { - integrity: sha512-cEiJEAEoIbWfCZYKWhVwFuvPX1gETRYPw6LlaTKoxD3s2AkXzkCjnp6h0V77ozyqj0jakteJ4YqDJT830+lVGw==, - } - engines: { node: '>=14' } + resolution: {integrity: sha512-cEiJEAEoIbWfCZYKWhVwFuvPX1gETRYPw6LlaTKoxD3s2AkXzkCjnp6h0V77ozyqj0jakteJ4YqDJT830+lVGw==} + engines: {node: '>=14'} js-sha3@0.8.0: - resolution: - { - integrity: sha512-gF1cRrHhIzNfToc802P800N8PpXS+evLLXfsVpowqmAFR9uwbi89WvXg2QspOmXL8QL86J4T1EpFu+yUkwJY3Q==, - } + resolution: {integrity: sha512-gF1cRrHhIzNfToc802P800N8PpXS+evLLXfsVpowqmAFR9uwbi89WvXg2QspOmXL8QL86J4T1EpFu+yUkwJY3Q==} js-tokens@4.0.0: - resolution: - { - integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==, - } + resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} js-yaml@3.14.2: - resolution: - { - integrity: sha512-PMSmkqxr106Xa156c2M265Z+FTrPl+oxd/rgOQy2tijQeK5TxQ43psO1ZCwhVOSdnn+RzkzlRz/eY4BgJBYVpg==, - } + resolution: {integrity: sha512-PMSmkqxr106Xa156c2M265Z+FTrPl+oxd/rgOQy2tijQeK5TxQ43psO1ZCwhVOSdnn+RzkzlRz/eY4BgJBYVpg==} hasBin: true js-yaml@4.1.0: - resolution: - { - integrity: sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==, - } + resolution: {integrity: sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==} hasBin: true js-yaml@4.1.1: - resolution: - { - integrity: sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==, - } + resolution: {integrity: sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==} hasBin: true jsesc@3.1.0: - resolution: - { - integrity: sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==, - } - engines: { node: '>=6' } + resolution: {integrity: sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==} + engines: {node: '>=6'} hasBin: true json-buffer@3.0.1: - resolution: - { - integrity: sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==, - } + resolution: {integrity: sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==} json-parse-better-errors@1.0.2: - resolution: - { - integrity: sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==, - } + resolution: {integrity: sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==} json-parse-even-better-errors@2.3.1: - resolution: - { - integrity: sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==, - } + resolution: {integrity: sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==} json-parse-even-better-errors@3.0.2: - resolution: - { - integrity: sha512-fi0NG4bPjCHunUJffmLd0gxssIgkNmArMvis4iNah6Owg1MCJjWhEcDLmsK6iGkJq3tHwbDkTlce70/tmXN4cQ==, - } - engines: { node: ^14.17.0 || ^16.13.0 || >=18.0.0 } + resolution: {integrity: sha512-fi0NG4bPjCHunUJffmLd0gxssIgkNmArMvis4iNah6Owg1MCJjWhEcDLmsK6iGkJq3tHwbDkTlce70/tmXN4cQ==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} json-schema-traverse@0.4.1: - resolution: - { - integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==, - } + resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==} json-schema-traverse@1.0.0: - resolution: - { - integrity: sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==, - } + resolution: {integrity: sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==} json-stable-stringify-without-jsonify@1.0.1: - resolution: - { - integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==, - } + resolution: {integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==} json-stringify-nice@1.1.4: - resolution: - { - integrity: sha512-5Z5RFW63yxReJ7vANgW6eZFGWaQvnPE3WNmZoOJrSkGju2etKA2L5rrOa1sm877TVTFt57A80BH1bArcmlLfPw==, - } + resolution: {integrity: sha512-5Z5RFW63yxReJ7vANgW6eZFGWaQvnPE3WNmZoOJrSkGju2etKA2L5rrOa1sm877TVTFt57A80BH1bArcmlLfPw==} json-stringify-safe@5.0.1: - resolution: - { - integrity: sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==, - } + resolution: {integrity: sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==} json5@2.2.3: - resolution: - { - integrity: sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==, - } - engines: { node: '>=6' } + resolution: {integrity: sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==} + engines: {node: '>=6'} hasBin: true jsonc-parser@3.2.0: - resolution: - { - integrity: sha512-gfFQZrcTc8CnKXp6Y4/CBT3fTc0OVuDofpre4aEeEpSBPV5X5v4+Vmx+8snU7RLPrNHPKSgLxGo9YuQzz20o+w==, - } + resolution: {integrity: sha512-gfFQZrcTc8CnKXp6Y4/CBT3fTc0OVuDofpre4aEeEpSBPV5X5v4+Vmx+8snU7RLPrNHPKSgLxGo9YuQzz20o+w==} jsonc-parser@3.3.1: - resolution: - { - integrity: sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ==, - } + resolution: {integrity: sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ==} jsonfile@6.2.0: - resolution: - { - integrity: sha512-FGuPw30AdOIUTRMC2OMRtQV+jkVj2cfPqSeWXv1NEAJ1qZ5zb1X6z1mFhbfOB/iy3ssJCD+3KuZ8r8C3uVFlAg==, - } + resolution: {integrity: sha512-FGuPw30AdOIUTRMC2OMRtQV+jkVj2cfPqSeWXv1NEAJ1qZ5zb1X6z1mFhbfOB/iy3ssJCD+3KuZ8r8C3uVFlAg==} jsonparse@1.3.1: - resolution: - { - integrity: sha512-POQXvpdL69+CluYsillJ7SUhKvytYjW9vG/GKpnf+xP8UWgYEM/RaMzHHofbALDiKbbP1W8UEYmgGl39WkPZsg==, - } - engines: { '0': node >= 0.2.0 } + resolution: {integrity: sha512-POQXvpdL69+CluYsillJ7SUhKvytYjW9vG/GKpnf+xP8UWgYEM/RaMzHHofbALDiKbbP1W8UEYmgGl39WkPZsg==} + engines: {'0': node >= 0.2.0} jsonwebtoken@9.0.3: - resolution: - { - integrity: sha512-MT/xP0CrubFRNLNKvxJ2BYfy53Zkm++5bX9dtuPbqAeQpTVe0MQTFhao8+Cp//EmJp244xt6Drw/GVEGCUj40g==, - } - engines: { node: '>=12', npm: '>=6' } + resolution: {integrity: sha512-MT/xP0CrubFRNLNKvxJ2BYfy53Zkm++5bX9dtuPbqAeQpTVe0MQTFhao8+Cp//EmJp244xt6Drw/GVEGCUj40g==} + engines: {node: '>=12', npm: '>=6'} juice@7.0.0: - resolution: - { - integrity: sha512-AjKQX31KKN+uJs+zaf+GW8mBO/f/0NqSh2moTMyvwBY+4/lXIYTU8D8I2h6BAV3Xnz6GGsbalUyFqbYMe+Vh+Q==, - } - engines: { node: '>=10.0.0' } + resolution: {integrity: sha512-AjKQX31KKN+uJs+zaf+GW8mBO/f/0NqSh2moTMyvwBY+4/lXIYTU8D8I2h6BAV3Xnz6GGsbalUyFqbYMe+Vh+Q==} + engines: {node: '>=10.0.0'} hasBin: true just-diff-apply@5.5.0: - resolution: - { - integrity: sha512-OYTthRfSh55WOItVqwpefPtNt2VdKsq5AnAK6apdtR6yCH8pr0CmSr710J0Mf+WdQy7K/OzMy7K2MgAfdQURDw==, - } + resolution: {integrity: sha512-OYTthRfSh55WOItVqwpefPtNt2VdKsq5AnAK6apdtR6yCH8pr0CmSr710J0Mf+WdQy7K/OzMy7K2MgAfdQURDw==} just-diff@6.0.2: - resolution: - { - integrity: sha512-S59eriX5u3/QhMNq3v/gm8Kd0w8OS6Tz2FS1NG4blv+z0MuQcBRJyFWjdovM0Rad4/P4aUPFtnkNjMjyMlMSYA==, - } + resolution: {integrity: sha512-S59eriX5u3/QhMNq3v/gm8Kd0w8OS6Tz2FS1NG4blv+z0MuQcBRJyFWjdovM0Rad4/P4aUPFtnkNjMjyMlMSYA==} jwa@2.0.1: - resolution: - { - integrity: sha512-hRF04fqJIP8Abbkq5NKGN0Bbr3JxlQ+qhZufXVr0DvujKy93ZCbXZMHDL4EOtodSbCWxOqR8MS1tXA5hwqCXDg==, - } + resolution: {integrity: sha512-hRF04fqJIP8Abbkq5NKGN0Bbr3JxlQ+qhZufXVr0DvujKy93ZCbXZMHDL4EOtodSbCWxOqR8MS1tXA5hwqCXDg==} jws@4.0.1: - resolution: - { - integrity: sha512-EKI/M/yqPncGUUh44xz0PxSidXFr/+r0pA70+gIYhjv+et7yxM+s29Y+VGDkovRofQem0fs7Uvf4+YmAdyRduA==, - } + resolution: {integrity: sha512-EKI/M/yqPncGUUh44xz0PxSidXFr/+r0pA70+gIYhjv+et7yxM+s29Y+VGDkovRofQem0fs7Uvf4+YmAdyRduA==} keyv@4.5.4: - resolution: - { - integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==, - } + resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==} kind-of@6.0.3: - resolution: - { - integrity: sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==, - } - engines: { node: '>=0.10.0' } + resolution: {integrity: sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==} + engines: {node: '>=0.10.0'} komoji@0.8.0: - resolution: - { - integrity: sha512-+Ud4ubAJhhTWneLv8V/1OyrQMwrK7ZCHDY7QJJBjaypvTCM8+ECCfKWVZrYz5NIcswuBfiYsDNYJ5kxGUwsoOw==, - } + resolution: {integrity: sha512-+Ud4ubAJhhTWneLv8V/1OyrQMwrK7ZCHDY7QJJBjaypvTCM8+ECCfKWVZrYz5NIcswuBfiYsDNYJ5kxGUwsoOw==} lerna@8.2.4: - resolution: - { - integrity: sha512-0gaVWDIVT7fLfprfwpYcQajb7dBJv3EGavjG7zvJ+TmGx3/wovl5GklnSwM2/WeE0Z2wrIz7ndWhBcDUHVjOcQ==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-0gaVWDIVT7fLfprfwpYcQajb7dBJv3EGavjG7zvJ+TmGx3/wovl5GklnSwM2/WeE0Z2wrIz7ndWhBcDUHVjOcQ==} + engines: {node: '>=18.0.0'} hasBin: true leven@3.1.0: - resolution: - { - integrity: sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==, - } - engines: { node: '>=6' } + resolution: {integrity: sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==} + engines: {node: '>=6'} levn@0.4.1: - resolution: - { - integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==, - } - engines: { node: '>= 0.8.0' } + resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==} + engines: {node: '>= 0.8.0'} libnpmaccess@8.0.6: - resolution: - { - integrity: sha512-uM8DHDEfYG6G5gVivVl+yQd4pH3uRclHC59lzIbSvy7b5FEwR+mU49Zq1jEyRtRFv7+M99mUW9S0wL/4laT4lw==, - } - engines: { node: ^16.14.0 || >=18.0.0 } + resolution: {integrity: sha512-uM8DHDEfYG6G5gVivVl+yQd4pH3uRclHC59lzIbSvy7b5FEwR+mU49Zq1jEyRtRFv7+M99mUW9S0wL/4laT4lw==} + engines: {node: ^16.14.0 || >=18.0.0} libnpmpublish@9.0.9: - resolution: - { - integrity: sha512-26zzwoBNAvX9AWOPiqqF6FG4HrSCPsHFkQm7nT+xU1ggAujL/eae81RnCv4CJ2In9q9fh10B88sYSzKCUh/Ghg==, - } - engines: { node: ^16.14.0 || >=18.0.0 } + resolution: {integrity: sha512-26zzwoBNAvX9AWOPiqqF6FG4HrSCPsHFkQm7nT+xU1ggAujL/eae81RnCv4CJ2In9q9fh10B88sYSzKCUh/Ghg==} + engines: {node: ^16.14.0 || >=18.0.0} libpg-query@17.7.3: - resolution: - { - integrity: sha512-lHKBvoWRsXt/9bJxpAeFxkLu0CA6tELusqy3o1z6/DwGXSETxhKJDaNlNdrNV8msvXDLBhpg/4RE/fKKs5rYFA==, - } + resolution: {integrity: sha512-lHKBvoWRsXt/9bJxpAeFxkLu0CA6tELusqy3o1z6/DwGXSETxhKJDaNlNdrNV8msvXDLBhpg/4RE/fKKs5rYFA==} lines-and-columns@1.2.4: - resolution: - { - integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==, - } + resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==} lines-and-columns@2.0.3: - resolution: - { - integrity: sha512-cNOjgCnLB+FnvWWtyRTzmB3POJ+cXxTA81LoW7u8JdmhfXzriropYwpjShnz1QLLWsQwY7nIxoDmcPTwphDK9w==, - } - engines: { node: ^12.20.0 || ^14.13.1 || >=16.0.0 } + resolution: {integrity: sha512-cNOjgCnLB+FnvWWtyRTzmB3POJ+cXxTA81LoW7u8JdmhfXzriropYwpjShnz1QLLWsQwY7nIxoDmcPTwphDK9w==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} linkify-it@5.0.0: - resolution: - { - integrity: sha512-5aHCbzQRADcdP+ATqnDuhhJ/MRIqDkZX5pyjFHRRysS8vZ5AbqGEoFIb6pYHPZ+L/OC2Lc+xT8uHVVR5CAK/wQ==, - } + resolution: {integrity: sha512-5aHCbzQRADcdP+ATqnDuhhJ/MRIqDkZX5pyjFHRRysS8vZ5AbqGEoFIb6pYHPZ+L/OC2Lc+xT8uHVVR5CAK/wQ==} load-json-file@4.0.0: - resolution: - { - integrity: sha512-Kx8hMakjX03tiGTLAIdJ+lL0htKnXjEZN6hk/tozf/WOuYGdZBJrZ+rCJRbVCugsjB3jMLn9746NsQIf5VjBMw==, - } - engines: { node: '>=4' } + resolution: {integrity: sha512-Kx8hMakjX03tiGTLAIdJ+lL0htKnXjEZN6hk/tozf/WOuYGdZBJrZ+rCJRbVCugsjB3jMLn9746NsQIf5VjBMw==} + engines: {node: '>=4'} load-json-file@6.2.0: - resolution: - { - integrity: sha512-gUD/epcRms75Cw8RT1pUdHugZYM5ce64ucs2GEISABwkRsOQr0q2wm/MV2TKThycIe5e0ytRweW2RZxclogCdQ==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-gUD/epcRms75Cw8RT1pUdHugZYM5ce64ucs2GEISABwkRsOQr0q2wm/MV2TKThycIe5e0ytRweW2RZxclogCdQ==} + engines: {node: '>=8'} locate-path@2.0.0: - resolution: - { - integrity: sha512-NCI2kiDkyR7VeEKm27Kda/iQHyKJe1Bu0FlTbYp3CqJu+9IFe9bLyAjMxf5ZDDbEg+iMPzB5zYyUTSm8wVTKmA==, - } - engines: { node: '>=4' } + resolution: {integrity: sha512-NCI2kiDkyR7VeEKm27Kda/iQHyKJe1Bu0FlTbYp3CqJu+9IFe9bLyAjMxf5ZDDbEg+iMPzB5zYyUTSm8wVTKmA==} + engines: {node: '>=4'} locate-path@5.0.0: - resolution: - { - integrity: sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==} + engines: {node: '>=8'} locate-path@6.0.0: - resolution: - { - integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==} + engines: {node: '>=10'} lodash.includes@4.3.0: - resolution: - { - integrity: sha512-W3Bx6mdkRTGtlJISOvVD/lbqjTlPPUDTMnlXZFnVwi9NKJ6tiAk6LVdlhZMm17VZisqhKcgzpO5Wz91PCt5b0w==, - } + resolution: {integrity: sha512-W3Bx6mdkRTGtlJISOvVD/lbqjTlPPUDTMnlXZFnVwi9NKJ6tiAk6LVdlhZMm17VZisqhKcgzpO5Wz91PCt5b0w==} lodash.isboolean@3.0.3: - resolution: - { - integrity: sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg==, - } + resolution: {integrity: sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg==} lodash.isinteger@4.0.4: - resolution: - { - integrity: sha512-DBwtEWN2caHQ9/imiNeEA5ys1JoRtRfY3d7V9wkqtbycnAmTvRRmbHKDV4a0EYc678/dia0jrte4tjYwVBaZUA==, - } + resolution: {integrity: sha512-DBwtEWN2caHQ9/imiNeEA5ys1JoRtRfY3d7V9wkqtbycnAmTvRRmbHKDV4a0EYc678/dia0jrte4tjYwVBaZUA==} lodash.ismatch@4.4.0: - resolution: - { - integrity: sha512-fPMfXjGQEV9Xsq/8MTSgUf255gawYRbjwMyDbcvDhXgV7enSZA0hynz6vMPnpAb5iONEzBHBPsT+0zes5Z301g==, - } + resolution: {integrity: sha512-fPMfXjGQEV9Xsq/8MTSgUf255gawYRbjwMyDbcvDhXgV7enSZA0hynz6vMPnpAb5iONEzBHBPsT+0zes5Z301g==} lodash.isnumber@3.0.3: - resolution: - { - integrity: sha512-QYqzpfwO3/CWf3XP+Z+tkQsfaLL/EnUlXWVkIk5FUPc4sBdTehEqZONuyRt2P67PXAk+NXmTBcc97zw9t1FQrw==, - } + resolution: {integrity: sha512-QYqzpfwO3/CWf3XP+Z+tkQsfaLL/EnUlXWVkIk5FUPc4sBdTehEqZONuyRt2P67PXAk+NXmTBcc97zw9t1FQrw==} lodash.isplainobject@4.0.6: - resolution: - { - integrity: sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==, - } + resolution: {integrity: sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==} lodash.isstring@4.0.1: - resolution: - { - integrity: sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw==, - } + resolution: {integrity: sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw==} lodash.memoize@4.1.2: - resolution: - { - integrity: sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==, - } + resolution: {integrity: sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==} lodash.merge@4.6.2: - resolution: - { - integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==, - } + resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==} lodash.once@4.1.1: - resolution: - { - integrity: sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg==, - } + resolution: {integrity: sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg==} lodash@4.17.21: - resolution: - { - integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==, - } + resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==} lodash@4.17.23: - resolution: - { - integrity: sha512-LgVTMpQtIopCi79SJeDiP0TfWi5CNEc/L/aRdTh3yIvmZXTnheWpKjSZhnvMl8iXbC1tFg9gdHHDMLoV7CnG+w==, - } + resolution: {integrity: sha512-LgVTMpQtIopCi79SJeDiP0TfWi5CNEc/L/aRdTh3yIvmZXTnheWpKjSZhnvMl8iXbC1tFg9gdHHDMLoV7CnG+w==} log-symbols@4.1.0: - resolution: - { - integrity: sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==} + engines: {node: '>=10'} long-timeout@0.1.1: - resolution: - { - integrity: sha512-BFRuQUqc7x2NWxfJBCyUrN8iYUYznzL9JROmRz1gZ6KlOIgmoD+njPVbb+VNn2nGMKggMsK79iUNErillsrx7w==, - } + resolution: {integrity: sha512-BFRuQUqc7x2NWxfJBCyUrN8iYUYznzL9JROmRz1gZ6KlOIgmoD+njPVbb+VNn2nGMKggMsK79iUNErillsrx7w==} long@5.3.2: - resolution: - { - integrity: sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA==, - } + resolution: {integrity: sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA==} loose-envify@1.4.0: - resolution: - { - integrity: sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==, - } + resolution: {integrity: sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==} hasBin: true lower-case@1.1.4: - resolution: - { - integrity: sha512-2Fgx1Ycm599x+WGpIYwJOvsjmXFzTSc34IwDWALRA/8AopUKAVPwfJ+h5+f85BCp0PWmmJcWzEpxOpoXycMpdA==, - } + resolution: {integrity: sha512-2Fgx1Ycm599x+WGpIYwJOvsjmXFzTSc34IwDWALRA/8AopUKAVPwfJ+h5+f85BCp0PWmmJcWzEpxOpoXycMpdA==} lru-cache@10.4.3: - resolution: - { - integrity: sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==, - } + resolution: {integrity: sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==} lru-cache@11.2.4: - resolution: - { - integrity: sha512-B5Y16Jr9LB9dHVkh6ZevG+vAbOsNOYCX+sXvFWFu7B3Iz5mijW3zdbMyhsh8ANd2mSWBYdJgnqi+mL7/LrOPYg==, - } - engines: { node: 20 || >=22 } + resolution: {integrity: sha512-B5Y16Jr9LB9dHVkh6ZevG+vAbOsNOYCX+sXvFWFu7B3Iz5mijW3zdbMyhsh8ANd2mSWBYdJgnqi+mL7/LrOPYg==} + engines: {node: 20 || >=22} lru-cache@5.1.1: - resolution: - { - integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==, - } + resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==} lru-cache@6.0.0: - resolution: - { - integrity: sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==} + engines: {node: '>=10'} luxon@3.7.2: - resolution: - { - integrity: sha512-vtEhXh/gNjI9Yg1u4jX/0YVPMvxzHuGgCm6tC5kZyb08yjGWGnqAjGJvcXbqQR2P3MyMEFnRbpcdFS6PBcLqew==, - } - engines: { node: '>=12' } + resolution: {integrity: sha512-vtEhXh/gNjI9Yg1u4jX/0YVPMvxzHuGgCm6tC5kZyb08yjGWGnqAjGJvcXbqQR2P3MyMEFnRbpcdFS6PBcLqew==} + engines: {node: '>=12'} lz-string@1.5.0: - resolution: - { - integrity: sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==, - } + resolution: {integrity: sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==} hasBin: true mailgun.js@10.4.0: - resolution: - { - integrity: sha512-YrdaZEAJwwjXGBTfZTNQ1LM7tmkdUaz2NpZEu7+zULcG4Wrlhd7cWSNZW0bxT3bP48k5N0mZWz8C2f9gc2+Geg==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-YrdaZEAJwwjXGBTfZTNQ1LM7tmkdUaz2NpZEu7+zULcG4Wrlhd7cWSNZW0bxT3bP48k5N0mZWz8C2f9gc2+Geg==} + engines: {node: '>=18.0.0'} makage@0.1.12: - resolution: - { - integrity: sha512-R3bITl50Ts2GzoaErywe8n24Iu2qbvbNOqOyidjDjh6iqK0CAj2VzIk3xRS4z8Q4xDQzaJrcb2+dGDjqRj6ChA==, - } + resolution: {integrity: sha512-R3bITl50Ts2GzoaErywe8n24Iu2qbvbNOqOyidjDjh6iqK0CAj2VzIk3xRS4z8Q4xDQzaJrcb2+dGDjqRj6ChA==} hasBin: true make-dir@2.1.0: - resolution: - { - integrity: sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==, - } - engines: { node: '>=6' } + resolution: {integrity: sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==} + engines: {node: '>=6'} make-dir@4.0.0: - resolution: - { - integrity: sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==} + engines: {node: '>=10'} make-error@1.3.6: - resolution: - { - integrity: sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==, - } + resolution: {integrity: sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==} make-fetch-happen@13.0.1: - resolution: - { - integrity: sha512-cKTUFc/rbKUd/9meOvgrpJ2WrNzymt6jfRDdwg5UCnVzv9dTpEj9JS5m3wtziXVCjluIXyL8pcaukYqezIzZQA==, - } - engines: { node: ^16.14.0 || >=18.0.0 } + resolution: {integrity: sha512-cKTUFc/rbKUd/9meOvgrpJ2WrNzymt6jfRDdwg5UCnVzv9dTpEj9JS5m3wtziXVCjluIXyL8pcaukYqezIzZQA==} + engines: {node: ^16.14.0 || >=18.0.0} makeerror@1.0.12: - resolution: - { - integrity: sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==, - } + resolution: {integrity: sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==} map-obj@1.0.1: - resolution: - { - integrity: sha512-7N/q3lyZ+LVCp7PzuxrJr4KMbBE2hW7BT7YNia330OFxIf4d3r5zVpicP2650l7CPN6RM9zOJRl3NGpqSiw3Eg==, - } - engines: { node: '>=0.10.0' } + resolution: {integrity: sha512-7N/q3lyZ+LVCp7PzuxrJr4KMbBE2hW7BT7YNia330OFxIf4d3r5zVpicP2650l7CPN6RM9zOJRl3NGpqSiw3Eg==} + engines: {node: '>=0.10.0'} map-obj@4.3.0: - resolution: - { - integrity: sha512-hdN1wVrZbb29eBGiGjJbeP8JbKjq1urkHJ/LIP/NY48MZ1QVXUsQBV1G1zvYFHn1XE06cwjBsOI2K3Ulnj1YXQ==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-hdN1wVrZbb29eBGiGjJbeP8JbKjq1urkHJ/LIP/NY48MZ1QVXUsQBV1G1zvYFHn1XE06cwjBsOI2K3Ulnj1YXQ==} + engines: {node: '>=8'} markdown-it@14.1.1: - resolution: - { - integrity: sha512-BuU2qnTti9YKgK5N+IeMubp14ZUKUUw7yeJbkjtosvHiP0AZ5c8IAgEMk79D0eC8F23r4Ac/q8cAIFdm2FtyoA==, - } + resolution: {integrity: sha512-BuU2qnTti9YKgK5N+IeMubp14ZUKUUw7yeJbkjtosvHiP0AZ5c8IAgEMk79D0eC8F23r4Ac/q8cAIFdm2FtyoA==} hasBin: true match-sorter@6.3.4: - resolution: - { - integrity: sha512-jfZW7cWS5y/1xswZo8VBOdudUiSd9nifYRWphc9M5D/ee4w4AoXLgBEdRbgVaxbMuagBPeUC5y2Hi8DO6o9aDg==, - } + resolution: {integrity: sha512-jfZW7cWS5y/1xswZo8VBOdudUiSd9nifYRWphc9M5D/ee4w4AoXLgBEdRbgVaxbMuagBPeUC5y2Hi8DO6o9aDg==} math-intrinsics@1.1.0: - resolution: - { - integrity: sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==, - } - engines: { node: '>= 0.4' } + resolution: {integrity: sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==} + engines: {node: '>= 0.4'} mdurl@2.0.0: - resolution: - { - integrity: sha512-Lf+9+2r+Tdp5wXDXC4PcIBjTDtq4UKjCPMQhKIuzpJNW0b96kVqSwW0bT7FhRSfmAiFYgP+SCRvdrDozfh0U5w==, - } + resolution: {integrity: sha512-Lf+9+2r+Tdp5wXDXC4PcIBjTDtq4UKjCPMQhKIuzpJNW0b96kVqSwW0bT7FhRSfmAiFYgP+SCRvdrDozfh0U5w==} media-typer@0.3.0: - resolution: - { - integrity: sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==, - } - engines: { node: '>= 0.6' } + resolution: {integrity: sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==} + engines: {node: '>= 0.6'} media-typer@1.1.0: - resolution: - { - integrity: sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw==, - } - engines: { node: '>= 0.8' } + resolution: {integrity: sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw==} + engines: {node: '>= 0.8'} mensch@0.3.4: - resolution: - { - integrity: sha512-IAeFvcOnV9V0Yk+bFhYR07O3yNina9ANIN5MoXBKYJ/RLYPurd2d0yw14MDhpr9/momp0WofT1bPUh3hkzdi/g==, - } + resolution: {integrity: sha512-IAeFvcOnV9V0Yk+bFhYR07O3yNina9ANIN5MoXBKYJ/RLYPurd2d0yw14MDhpr9/momp0WofT1bPUh3hkzdi/g==} meow@8.1.2: - resolution: - { - integrity: sha512-r85E3NdZ+mpYk1C6RjPFEMSE+s1iZMuHtsHAqY0DT3jZczl0diWUZ8g6oU7h0M9cD2EL+PzaYghhCLzR0ZNn5Q==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-r85E3NdZ+mpYk1C6RjPFEMSE+s1iZMuHtsHAqY0DT3jZczl0diWUZ8g6oU7h0M9cD2EL+PzaYghhCLzR0ZNn5Q==} + engines: {node: '>=10'} merge-descriptors@2.0.0: - resolution: - { - integrity: sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==} + engines: {node: '>=18'} merge-stream@2.0.0: - resolution: - { - integrity: sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==, - } + resolution: {integrity: sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==} merge2@1.4.1: - resolution: - { - integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==, - } - engines: { node: '>= 8' } + resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==} + engines: {node: '>= 8'} meros@1.3.2: - resolution: - { - integrity: sha512-Q3mobPbvEx7XbwhnC1J1r60+5H6EZyNccdzSz0eGexJRwouUtTZxPVRGdqKtxlpD84ScK4+tIGldkqDtCKdI0A==, - } - engines: { node: '>=13' } + resolution: {integrity: sha512-Q3mobPbvEx7XbwhnC1J1r60+5H6EZyNccdzSz0eGexJRwouUtTZxPVRGdqKtxlpD84ScK4+tIGldkqDtCKdI0A==} + engines: {node: '>=13'} peerDependencies: '@types/node': '>=13' peerDependenciesMeta: @@ -11182,585 +7742,321 @@ packages: optional: true methods@1.1.2: - resolution: - { - integrity: sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==, - } - engines: { node: '>= 0.6' } + resolution: {integrity: sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==} + engines: {node: '>= 0.6'} micromatch@4.0.8: - resolution: - { - integrity: sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==, - } - engines: { node: '>=8.6' } + resolution: {integrity: sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==} + engines: {node: '>=8.6'} microseconds@0.2.0: - resolution: - { - integrity: sha512-n7DHHMjR1avBbSpsTBj6fmMGh2AGrifVV4e+WYc3Q9lO+xnSZ3NyhcBND3vzzatt05LFhoKFRxrIyklmLlUtyA==, - } + resolution: {integrity: sha512-n7DHHMjR1avBbSpsTBj6fmMGh2AGrifVV4e+WYc3Q9lO+xnSZ3NyhcBND3vzzatt05LFhoKFRxrIyklmLlUtyA==} mime-db@1.52.0: - resolution: - { - integrity: sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==, - } - engines: { node: '>= 0.6' } + resolution: {integrity: sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==} + engines: {node: '>= 0.6'} mime-db@1.54.0: - resolution: - { - integrity: sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==, - } - engines: { node: '>= 0.6' } + resolution: {integrity: sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==} + engines: {node: '>= 0.6'} mime-types@2.1.35: - resolution: - { - integrity: sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==, - } - engines: { node: '>= 0.6' } + resolution: {integrity: sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==} + engines: {node: '>= 0.6'} mime-types@3.0.2: - resolution: - { - integrity: sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==} + engines: {node: '>=18'} mime@2.6.0: - resolution: - { - integrity: sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==, - } - engines: { node: '>=4.0.0' } + resolution: {integrity: sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==} + engines: {node: '>=4.0.0'} hasBin: true mimic-fn@2.1.0: - resolution: - { - integrity: sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==, - } - engines: { node: '>=6' } + resolution: {integrity: sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==} + engines: {node: '>=6'} min-indent@1.0.1: - resolution: - { - integrity: sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==, - } - engines: { node: '>=4' } + resolution: {integrity: sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==} + engines: {node: '>=4'} minimatch@10.1.1: - resolution: - { - integrity: sha512-enIvLvRAFZYXJzkCYG5RKmPfrFArdLv+R+lbQ53BmIMLIry74bjKzX6iHAm8WYamJkhSSEabrWN5D97XnKObjQ==, - } - engines: { node: 20 || >=22 } + resolution: {integrity: sha512-enIvLvRAFZYXJzkCYG5RKmPfrFArdLv+R+lbQ53BmIMLIry74bjKzX6iHAm8WYamJkhSSEabrWN5D97XnKObjQ==} + engines: {node: 20 || >=22} minimatch@10.1.2: - resolution: - { - integrity: sha512-fu656aJ0n2kcXwsnwnv9g24tkU5uSmOlTjd6WyyaKm2Z+h1qmY6bAjrcaIxF/BslFqbZ8UBtbJi7KgQOZD2PTw==, - } - engines: { node: 20 || >=22 } + resolution: {integrity: sha512-fu656aJ0n2kcXwsnwnv9g24tkU5uSmOlTjd6WyyaKm2Z+h1qmY6bAjrcaIxF/BslFqbZ8UBtbJi7KgQOZD2PTw==} + engines: {node: 20 || >=22} minimatch@3.0.5: - resolution: - { - integrity: sha512-tUpxzX0VAzJHjLu0xUfFv1gwVp9ba3IOuRAVH2EGuRW8a5emA2FlACLqiT/lDVtS1W+TGNwqz3sWaNyLgDJWuw==, - } + resolution: {integrity: sha512-tUpxzX0VAzJHjLu0xUfFv1gwVp9ba3IOuRAVH2EGuRW8a5emA2FlACLqiT/lDVtS1W+TGNwqz3sWaNyLgDJWuw==} minimatch@3.1.2: - resolution: - { - integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==, - } + resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==} minimatch@5.1.6: - resolution: - { - integrity: sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==} + engines: {node: '>=10'} minimatch@8.0.4: - resolution: - { - integrity: sha512-W0Wvr9HyFXZRGIDgCicunpQ299OKXs9RgZfaukz4qAW/pJhcpUfupc9c+OObPOFueNy8VSrZgEmDtk6Kh4WzDA==, - } - engines: { node: '>=16 || 14 >=14.17' } + resolution: {integrity: sha512-W0Wvr9HyFXZRGIDgCicunpQ299OKXs9RgZfaukz4qAW/pJhcpUfupc9c+OObPOFueNy8VSrZgEmDtk6Kh4WzDA==} + engines: {node: '>=16 || 14 >=14.17'} minimatch@9.0.1: - resolution: - { - integrity: sha512-0jWhJpD/MdhPXwPuiRkCbfYfSKp2qnn2eOc279qI7f+osl/l+prKSrvhg157zSYvx/1nmgn2NqdT6k2Z7zSH9w==, - } - engines: { node: '>=16 || 14 >=14.17' } + resolution: {integrity: sha512-0jWhJpD/MdhPXwPuiRkCbfYfSKp2qnn2eOc279qI7f+osl/l+prKSrvhg157zSYvx/1nmgn2NqdT6k2Z7zSH9w==} + engines: {node: '>=16 || 14 >=14.17'} minimatch@9.0.3: - resolution: - { - integrity: sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==, - } - engines: { node: '>=16 || 14 >=14.17' } + resolution: {integrity: sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==} + engines: {node: '>=16 || 14 >=14.17'} minimatch@9.0.5: - resolution: - { - integrity: sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==, - } - engines: { node: '>=16 || 14 >=14.17' } + resolution: {integrity: sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==} + engines: {node: '>=16 || 14 >=14.17'} minimist-options@4.1.0: - resolution: - { - integrity: sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A==, - } - engines: { node: '>= 6' } + resolution: {integrity: sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A==} + engines: {node: '>= 6'} minimist@1.2.8: - resolution: - { - integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==, - } + resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==} minipass-collect@2.0.1: - resolution: - { - integrity: sha512-D7V8PO9oaz7PWGLbCACuI1qEOsq7UKfLotx/C0Aet43fCUB/wfQ7DYeq2oR/svFJGYDHPr38SHATeaj/ZoKHKw==, - } - engines: { node: '>=16 || 14 >=14.17' } + resolution: {integrity: sha512-D7V8PO9oaz7PWGLbCACuI1qEOsq7UKfLotx/C0Aet43fCUB/wfQ7DYeq2oR/svFJGYDHPr38SHATeaj/ZoKHKw==} + engines: {node: '>=16 || 14 >=14.17'} minipass-fetch@3.0.5: - resolution: - { - integrity: sha512-2N8elDQAtSnFV0Dk7gt15KHsS0Fyz6CbYZ360h0WTYV1Ty46li3rAXVOQj1THMNLdmrD9Vt5pBPtWtVkpwGBqg==, - } - engines: { node: ^14.17.0 || ^16.13.0 || >=18.0.0 } + resolution: {integrity: sha512-2N8elDQAtSnFV0Dk7gt15KHsS0Fyz6CbYZ360h0WTYV1Ty46li3rAXVOQj1THMNLdmrD9Vt5pBPtWtVkpwGBqg==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} minipass-flush@1.0.5: - resolution: - { - integrity: sha512-JmQSYYpPUqX5Jyn1mXaRwOda1uQ8HP5KAT/oDSLCzt1BYRhQU0/hDtsB1ufZfEEzMZ9aAVmsBw8+FWsIXlClWw==, - } - engines: { node: '>= 8' } + resolution: {integrity: sha512-JmQSYYpPUqX5Jyn1mXaRwOda1uQ8HP5KAT/oDSLCzt1BYRhQU0/hDtsB1ufZfEEzMZ9aAVmsBw8+FWsIXlClWw==} + engines: {node: '>= 8'} minipass-pipeline@1.2.4: - resolution: - { - integrity: sha512-xuIq7cIOt09RPRJ19gdi4b+RiNvDFYe5JH+ggNvBqGqpQXcru3PcRmOZuHBKWK1Txf9+cQ+HMVN4d6z46LZP7A==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-xuIq7cIOt09RPRJ19gdi4b+RiNvDFYe5JH+ggNvBqGqpQXcru3PcRmOZuHBKWK1Txf9+cQ+HMVN4d6z46LZP7A==} + engines: {node: '>=8'} minipass-sized@1.0.3: - resolution: - { - integrity: sha512-MbkQQ2CTiBMlA2Dm/5cY+9SWFEN8pzzOXi6rlM5Xxq0Yqbda5ZQy9sU75a673FE9ZK0Zsbr6Y5iP6u9nktfg2g==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-MbkQQ2CTiBMlA2Dm/5cY+9SWFEN8pzzOXi6rlM5Xxq0Yqbda5ZQy9sU75a673FE9ZK0Zsbr6Y5iP6u9nktfg2g==} + engines: {node: '>=8'} minipass@3.3.6: - resolution: - { - integrity: sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==} + engines: {node: '>=8'} minipass@4.2.8: - resolution: - { - integrity: sha512-fNzuVyifolSLFL4NzpF+wEF4qrgqaaKX0haXPQEdQ7NKAN+WecoKMHV09YcuL/DHxrUsYQOK3MiuDf7Ip2OXfQ==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-fNzuVyifolSLFL4NzpF+wEF4qrgqaaKX0haXPQEdQ7NKAN+WecoKMHV09YcuL/DHxrUsYQOK3MiuDf7Ip2OXfQ==} + engines: {node: '>=8'} minipass@5.0.0: - resolution: - { - integrity: sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==} + engines: {node: '>=8'} minipass@7.1.2: - resolution: - { - integrity: sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==, - } - engines: { node: '>=16 || 14 >=14.17' } + resolution: {integrity: sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==} + engines: {node: '>=16 || 14 >=14.17'} minizlib@2.1.2: - resolution: - { - integrity: sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==, - } - engines: { node: '>= 8' } + resolution: {integrity: sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==} + engines: {node: '>= 8'} mjml-accordion@4.7.1: - resolution: - { - integrity: sha512-oYwC/CLOUWJ6pRt2saDHj/HytGOHO5B5lKNqUAhKPye5HFNZykKEV5ChmZ2NfGsGU+9BhQ7H5DaCafp4fDmPAg==, - } + resolution: {integrity: sha512-oYwC/CLOUWJ6pRt2saDHj/HytGOHO5B5lKNqUAhKPye5HFNZykKEV5ChmZ2NfGsGU+9BhQ7H5DaCafp4fDmPAg==} mjml-body@4.7.1: - resolution: - { - integrity: sha512-JCrkit+kjCfQyKuVyWSOonM2LGs/o3+63R9l2SleFeXf3+0CaKWaZr/Exzvaeo28c+1o3yRqXbJIpD22SEtJfQ==, - } + resolution: {integrity: sha512-JCrkit+kjCfQyKuVyWSOonM2LGs/o3+63R9l2SleFeXf3+0CaKWaZr/Exzvaeo28c+1o3yRqXbJIpD22SEtJfQ==} mjml-button@4.7.1: - resolution: - { - integrity: sha512-N3WkTMPOvKw2y6sakt1YfYDbOB8apumm1OApPG6J18CHcrX03BwhHPrdfu1JwlRNGwx4kCDdb6zNCGPwuZxkCg==, - } + resolution: {integrity: sha512-N3WkTMPOvKw2y6sakt1YfYDbOB8apumm1OApPG6J18CHcrX03BwhHPrdfu1JwlRNGwx4kCDdb6zNCGPwuZxkCg==} mjml-carousel@4.7.1: - resolution: - { - integrity: sha512-eH3rRyX23ES0BKOn+UUV39+yGNmZVApBVVV0A5znDaNWskCg6/g6ZhEHi4nkWpj+aP2lJKI0HX1nrMfJg0Mxhg==, - } + resolution: {integrity: sha512-eH3rRyX23ES0BKOn+UUV39+yGNmZVApBVVV0A5znDaNWskCg6/g6ZhEHi4nkWpj+aP2lJKI0HX1nrMfJg0Mxhg==} mjml-cli@4.7.1: - resolution: - { - integrity: sha512-xzCtJVKYVhGorvTmnbcMUfZlmJdBnu1UBD9A1H8UUBGMNE/Hs9QpHs9PLCMp8JR/uhSu15IgVjhFN0oSVndMRQ==, - } + resolution: {integrity: sha512-xzCtJVKYVhGorvTmnbcMUfZlmJdBnu1UBD9A1H8UUBGMNE/Hs9QpHs9PLCMp8JR/uhSu15IgVjhFN0oSVndMRQ==} hasBin: true mjml-column@4.7.1: - resolution: - { - integrity: sha512-CGw81TnGiuPR1GblLOez8xeoeAz1SEFjMpqapazjgXUuF5xUxg3qH55Wt4frpXe3VypeZWVYeumr6CwoNaPbKg==, - } + resolution: {integrity: sha512-CGw81TnGiuPR1GblLOez8xeoeAz1SEFjMpqapazjgXUuF5xUxg3qH55Wt4frpXe3VypeZWVYeumr6CwoNaPbKg==} mjml-core@4.7.1: - resolution: - { - integrity: sha512-AMACoq/h440m7SM86As8knW0bNQgjNIzsP/cMF6X9RO07GfszgbaWUq/XCaRNi+q8bWvBJSCXbngDJySVc5ALw==, - } + resolution: {integrity: sha512-AMACoq/h440m7SM86As8knW0bNQgjNIzsP/cMF6X9RO07GfszgbaWUq/XCaRNi+q8bWvBJSCXbngDJySVc5ALw==} mjml-divider@4.7.1: - resolution: - { - integrity: sha512-7+uCUJdqEr6w8AzpF8lhRheelYEgOwiK0KJGlAQN3LF+h2S1rTPEzEB67qL2x5cU+80kPlxtxoQWImDBy0vXqg==, - } + resolution: {integrity: sha512-7+uCUJdqEr6w8AzpF8lhRheelYEgOwiK0KJGlAQN3LF+h2S1rTPEzEB67qL2x5cU+80kPlxtxoQWImDBy0vXqg==} mjml-group@4.7.1: - resolution: - { - integrity: sha512-mAYdhocCzetdhPSws/9/sQ4hcz4kQPX2dNitQmbxNVwoMFYXjp/WcLEfGc5u13Ue7dPfcV6c9lB/Uu5o3NmRvw==, - } + resolution: {integrity: sha512-mAYdhocCzetdhPSws/9/sQ4hcz4kQPX2dNitQmbxNVwoMFYXjp/WcLEfGc5u13Ue7dPfcV6c9lB/Uu5o3NmRvw==} mjml-head-attributes@4.7.1: - resolution: - { - integrity: sha512-nB/bQ3I98Dvy/IkI4nqxTCnLonULkIKc8KrieRTrtPkUV3wskBzngpCgnjKvFPbHWiGlwjHDzcFJc7G0uWeqog==, - } + resolution: {integrity: sha512-nB/bQ3I98Dvy/IkI4nqxTCnLonULkIKc8KrieRTrtPkUV3wskBzngpCgnjKvFPbHWiGlwjHDzcFJc7G0uWeqog==} mjml-head-breakpoint@4.7.1: - resolution: - { - integrity: sha512-0KB5SweIWDvwHkn4VCUsEhCQgfY/0wkNUnSXNoftaRujv0NQFQfOOH4eINy0NZYfDfrE4WYe08z+olHprp+T2A==, - } + resolution: {integrity: sha512-0KB5SweIWDvwHkn4VCUsEhCQgfY/0wkNUnSXNoftaRujv0NQFQfOOH4eINy0NZYfDfrE4WYe08z+olHprp+T2A==} mjml-head-font@4.7.1: - resolution: - { - integrity: sha512-9YGzBcQ2htZ6j266fiLLfzcxqDEDLTvfKtypTjaeRb1w3N8S5wL+/zJA5ZjRL6r39Ij5ZPQSlSDC32KPiwhGkA==, - } + resolution: {integrity: sha512-9YGzBcQ2htZ6j266fiLLfzcxqDEDLTvfKtypTjaeRb1w3N8S5wL+/zJA5ZjRL6r39Ij5ZPQSlSDC32KPiwhGkA==} mjml-head-html-attributes@4.7.1: - resolution: - { - integrity: sha512-2TK2nGpq4rGaghbVx2UNm5TXeZ5BTGYEvtSPoYPNu02KRCj6tb+uedAgFXwJpX+ogRfIfPK50ih+9ZMoHwf2IQ==, - } + resolution: {integrity: sha512-2TK2nGpq4rGaghbVx2UNm5TXeZ5BTGYEvtSPoYPNu02KRCj6tb+uedAgFXwJpX+ogRfIfPK50ih+9ZMoHwf2IQ==} mjml-head-preview@4.7.1: - resolution: - { - integrity: sha512-UHlvvgldiPDODq/5zKMsmXgRb/ZyKygKDUVQSM5bm3HvpKXeyYxJZazcIGmlGICEqv1ced1WGINhCg72dSfN+Q==, - } + resolution: {integrity: sha512-UHlvvgldiPDODq/5zKMsmXgRb/ZyKygKDUVQSM5bm3HvpKXeyYxJZazcIGmlGICEqv1ced1WGINhCg72dSfN+Q==} mjml-head-style@4.7.1: - resolution: - { - integrity: sha512-8Gij99puN1SoOx5tGBjgkh4iCpI+zbwGBiB2Y8VwJrwXQxdJ1Qa902dQP5djoFFG39Bthii/48cS/d1bHigGPQ==, - } + resolution: {integrity: sha512-8Gij99puN1SoOx5tGBjgkh4iCpI+zbwGBiB2Y8VwJrwXQxdJ1Qa902dQP5djoFFG39Bthii/48cS/d1bHigGPQ==} mjml-head-title@4.7.1: - resolution: - { - integrity: sha512-vK3r+DApTXw2EoK/fh8dQOsO438Z7Ksy6iBIb7h04x33d4Z41r6+jtgxGXoKFXnjgr8MyLX5HZyyie5obW+hZg==, - } + resolution: {integrity: sha512-vK3r+DApTXw2EoK/fh8dQOsO438Z7Ksy6iBIb7h04x33d4Z41r6+jtgxGXoKFXnjgr8MyLX5HZyyie5obW+hZg==} mjml-head@4.7.1: - resolution: - { - integrity: sha512-jUcJ674CT1oT8NTQWTjQQBFZu4yklK0oppfGFJ1cq76ze3isMiyhSnGnOHw6FkjLnZtb3gXXaGKX7UZM+UMk/w==, - } + resolution: {integrity: sha512-jUcJ674CT1oT8NTQWTjQQBFZu4yklK0oppfGFJ1cq76ze3isMiyhSnGnOHw6FkjLnZtb3gXXaGKX7UZM+UMk/w==} mjml-hero@4.7.1: - resolution: - { - integrity: sha512-x+29V8zJAs8EV/eTtGbR921pCpitMQOAkyvNANW/3JLDTL2Oio1OYvGPVC3z1wOT9LKuRTxVzNHVt/bBw02CSQ==, - } + resolution: {integrity: sha512-x+29V8zJAs8EV/eTtGbR921pCpitMQOAkyvNANW/3JLDTL2Oio1OYvGPVC3z1wOT9LKuRTxVzNHVt/bBw02CSQ==} mjml-image@4.7.1: - resolution: - { - integrity: sha512-l3uRR2jaM0Bpz4ctdWuxQUFgg+ol6Nt+ODOrnHsGMwpmFOh4hTPTky6KaF0LCXxYmGbI0FoGBna+hVNnkBsQCA==, - } + resolution: {integrity: sha512-l3uRR2jaM0Bpz4ctdWuxQUFgg+ol6Nt+ODOrnHsGMwpmFOh4hTPTky6KaF0LCXxYmGbI0FoGBna+hVNnkBsQCA==} mjml-migrate@4.7.1: - resolution: - { - integrity: sha512-RgrJ9fHg6iRHC2H4pjRDWilBQ1eTH2jRu1ayDplbnepGoql83vLZaYaWc5Q+J+NsaNI16x+bgNB3fQdBiK+mng==, - } + resolution: {integrity: sha512-RgrJ9fHg6iRHC2H4pjRDWilBQ1eTH2jRu1ayDplbnepGoql83vLZaYaWc5Q+J+NsaNI16x+bgNB3fQdBiK+mng==} hasBin: true mjml-navbar@4.7.1: - resolution: - { - integrity: sha512-awdu8zT7xhS+9aCVunqtocUs8KA2xb+UhJ8UGbxVBpYbTNj3rCL9aWUXqWVwMk1la+3ypCkFuDuTl6dIoWPWlA==, - } + resolution: {integrity: sha512-awdu8zT7xhS+9aCVunqtocUs8KA2xb+UhJ8UGbxVBpYbTNj3rCL9aWUXqWVwMk1la+3ypCkFuDuTl6dIoWPWlA==} mjml-parser-xml@4.7.1: - resolution: - { - integrity: sha512-UWfuRpN45k3GUEv2yl8n5Uf98Tg6FyCsyRnqZGo83mgZzlJRDYTdKII9RjZM646/S8+Q8e9qxi3AsL00j6sZsQ==, - } + resolution: {integrity: sha512-UWfuRpN45k3GUEv2yl8n5Uf98Tg6FyCsyRnqZGo83mgZzlJRDYTdKII9RjZM646/S8+Q8e9qxi3AsL00j6sZsQ==} mjml-raw@4.7.1: - resolution: - { - integrity: sha512-mCQFEXINTkC8i7ydP1Km99e0FaZTeu79AoYnTBAILd4QO+RuD3n/PimBGrcGrOUex0JIKa2jyVQOcSCBuG4WpA==, - } + resolution: {integrity: sha512-mCQFEXINTkC8i7ydP1Km99e0FaZTeu79AoYnTBAILd4QO+RuD3n/PimBGrcGrOUex0JIKa2jyVQOcSCBuG4WpA==} mjml-react@1.0.59: - resolution: - { - integrity: sha512-W1ULnMlxJHE0kNpInu+u3CHr6+QcvhoLJ2ov93Pzt2A1wXAv4CJ9T/P5h/BhZn8vvCXgGizcwHv8sfANfQONVw==, - } + resolution: {integrity: sha512-W1ULnMlxJHE0kNpInu+u3CHr6+QcvhoLJ2ov93Pzt2A1wXAv4CJ9T/P5h/BhZn8vvCXgGizcwHv8sfANfQONVw==} peerDependencies: mjml: ^4.1.2 react: ^16.4.0 react-dom: ^16.4.0 mjml-section@4.7.1: - resolution: - { - integrity: sha512-PlhCMsl/bpFwwgQGUopi9OgOGWgRPpEJVKE8hk4He8GXzbfIuDj4DZ9QJSkwIoZ0fZtcgz11Wwb19i9BZcozVw==, - } + resolution: {integrity: sha512-PlhCMsl/bpFwwgQGUopi9OgOGWgRPpEJVKE8hk4He8GXzbfIuDj4DZ9QJSkwIoZ0fZtcgz11Wwb19i9BZcozVw==} mjml-social@4.7.1: - resolution: - { - integrity: sha512-tN/6V3m59izO9rqWpUokHxhwkk2GHkltzIlhI936hAJHh8hFyEO6+ZwQBZm738G00qgfICmQvX5FNq4upkCYjw==, - } + resolution: {integrity: sha512-tN/6V3m59izO9rqWpUokHxhwkk2GHkltzIlhI936hAJHh8hFyEO6+ZwQBZm738G00qgfICmQvX5FNq4upkCYjw==} mjml-spacer@4.7.1: - resolution: - { - integrity: sha512-gQu1+nA9YGnoolfNPvzfVe/RJ8WqS8ho0hthlhiLOC2RnEnmqH7HHSzCFXm4OeN0VgvDQsM7mfYQGl82O58Y+g==, - } + resolution: {integrity: sha512-gQu1+nA9YGnoolfNPvzfVe/RJ8WqS8ho0hthlhiLOC2RnEnmqH7HHSzCFXm4OeN0VgvDQsM7mfYQGl82O58Y+g==} mjml-table@4.7.1: - resolution: - { - integrity: sha512-rPkOtufMiVreb7I7vXk6rDm9i1DXncODnM5JJNhA9Z1dAQwXiz6V5904gAi2cEYfe0M2m0XQ8P5ZCtvqxGkfGA==, - } + resolution: {integrity: sha512-rPkOtufMiVreb7I7vXk6rDm9i1DXncODnM5JJNhA9Z1dAQwXiz6V5904gAi2cEYfe0M2m0XQ8P5ZCtvqxGkfGA==} mjml-text@4.7.1: - resolution: - { - integrity: sha512-hrjxbY59v6hu/Pn0NO+6TMlrdAlRa3M7GVALx/YWYV3hi59zjYfot8Au7Xq64XdcbcI4eiBVbP/AVr8w03HsOw==, - } + resolution: {integrity: sha512-hrjxbY59v6hu/Pn0NO+6TMlrdAlRa3M7GVALx/YWYV3hi59zjYfot8Au7Xq64XdcbcI4eiBVbP/AVr8w03HsOw==} mjml-validator@4.7.1: - resolution: - { - integrity: sha512-Qxubbz5WE182iLSTd/XRuezMr6UE7/u73grDCw0bTIcQsaTAIkWQn2tBI3jj0chWOw+sxwK2C6zPm9B0Cv7BGA==, - } + resolution: {integrity: sha512-Qxubbz5WE182iLSTd/XRuezMr6UE7/u73grDCw0bTIcQsaTAIkWQn2tBI3jj0chWOw+sxwK2C6zPm9B0Cv7BGA==} mjml-wrapper@4.7.1: - resolution: - { - integrity: sha512-6i+ZATUyqIO5YBnx+RFKZ3+6mg3iOCS/EdXGYZSonZ/EHqlt+RJa3fG2BB4dacXqAjghfl6Lk+bLoR47P3xYIQ==, - } + resolution: {integrity: sha512-6i+ZATUyqIO5YBnx+RFKZ3+6mg3iOCS/EdXGYZSonZ/EHqlt+RJa3fG2BB4dacXqAjghfl6Lk+bLoR47P3xYIQ==} mjml@4.7.1: - resolution: - { - integrity: sha512-nwMrmhTI+Aeh9Gav9LHX/i8k8yDi/QpX5h535BlT5oP4NaAUmyxP/UeYUn9yxtPcIzDlM5ullFnRv/71jyHpkQ==, - } + resolution: {integrity: sha512-nwMrmhTI+Aeh9Gav9LHX/i8k8yDi/QpX5h535BlT5oP4NaAUmyxP/UeYUn9yxtPcIzDlM5ullFnRv/71jyHpkQ==} hasBin: true mkdirp@0.5.6: - resolution: - { - integrity: sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==, - } + resolution: {integrity: sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==} hasBin: true mkdirp@1.0.4: - resolution: - { - integrity: sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==} + engines: {node: '>=10'} hasBin: true mock-req@0.2.0: - resolution: - { - integrity: sha512-IUuwS0W5GjoPyjhuXPQJXpaHfHW7UYFRia8Cchm/xRuyDDclpSQdEoakt3krOpSYvgVlQsbnf0ePDsTRDfp7Dg==, - } + resolution: {integrity: sha512-IUuwS0W5GjoPyjhuXPQJXpaHfHW7UYFRia8Cchm/xRuyDDclpSQdEoakt3krOpSYvgVlQsbnf0ePDsTRDfp7Dg==} modify-values@1.0.1: - resolution: - { - integrity: sha512-xV2bxeN6F7oYjZWTe/YPAy6MN2M+sL4u/Rlm2AHCIVGfo2p1yGmBHQ6vHehl4bRTZBdHu3TSkWdYgkwpYzAGSw==, - } - engines: { node: '>=0.10.0' } + resolution: {integrity: sha512-xV2bxeN6F7oYjZWTe/YPAy6MN2M+sL4u/Rlm2AHCIVGfo2p1yGmBHQ6vHehl4bRTZBdHu3TSkWdYgkwpYzAGSw==} + engines: {node: '>=0.10.0'} monaco-editor@0.52.2: - resolution: - { - integrity: sha512-GEQWEZmfkOGLdd3XK8ryrfWz3AIP8YymVXiPHEdewrUq7mh0qrKrfHLNCXcbB6sTnMLnOZ3ztSiKcciFUkIJwQ==, - } + resolution: {integrity: sha512-GEQWEZmfkOGLdd3XK8ryrfWz3AIP8YymVXiPHEdewrUq7mh0qrKrfHLNCXcbB6sTnMLnOZ3ztSiKcciFUkIJwQ==} monaco-graphql@1.7.3: - resolution: - { - integrity: sha512-6LAIcg/vT2NGLjHnT+5iIZONsZCaCuz2orbg7qD/u4Ry9R7rDotLh0HAzIF/yKdzEA5fTZC+TofSx2O+Zi+0ow==, - } + resolution: {integrity: sha512-6LAIcg/vT2NGLjHnT+5iIZONsZCaCuz2orbg7qD/u4Ry9R7rDotLh0HAzIF/yKdzEA5fTZC+TofSx2O+Zi+0ow==} peerDependencies: graphql: ^15.5.0 || ^16.0.0 || ^17.0.0 monaco-editor: '>= 0.20.0 < 0.53' prettier: ^2.8.0 || ^3.0.0 motion-dom@12.34.0: - resolution: - { - integrity: sha512-Lql3NuEcScRDxTAO6GgUsRHBZOWI/3fnMlkMcH5NftzcN37zJta+bpbMAV9px4Nj057TuvRooMK7QrzMCgtz6Q==, - } + resolution: {integrity: sha512-Lql3NuEcScRDxTAO6GgUsRHBZOWI/3fnMlkMcH5NftzcN37zJta+bpbMAV9px4Nj057TuvRooMK7QrzMCgtz6Q==} motion-utils@12.29.2: - resolution: - { - integrity: sha512-G3kc34H2cX2gI63RqU+cZq+zWRRPSsNIOjpdl9TN4AQwC4sgwYPl/Q/Obf/d53nOm569T0fYK+tcoSV50BWx8A==, - } + resolution: {integrity: sha512-G3kc34H2cX2gI63RqU+cZq+zWRRPSsNIOjpdl9TN4AQwC4sgwYPl/Q/Obf/d53nOm569T0fYK+tcoSV50BWx8A==} ms@2.1.3: - resolution: - { - integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==, - } + resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} multer@2.0.2: - resolution: - { - integrity: sha512-u7f2xaZ/UG8oLXHvtF/oWTRvT44p9ecwBBqTwgJVq0+4BW1g8OW01TyMEGWBHbyMOYVHXslaut7qEQ1meATXgw==, - } - engines: { node: '>= 10.16.0' } + resolution: {integrity: sha512-u7f2xaZ/UG8oLXHvtF/oWTRvT44p9ecwBBqTwgJVq0+4BW1g8OW01TyMEGWBHbyMOYVHXslaut7qEQ1meATXgw==} + engines: {node: '>= 10.16.0'} multimatch@5.0.0: - resolution: - { - integrity: sha512-ypMKuglUrZUD99Tk2bUQ+xNQj43lPEfAeX2o9cTteAmShXy2VHDJpuwu1o0xqoKCt9jLVAvwyFKdLTPXKAfJyA==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-ypMKuglUrZUD99Tk2bUQ+xNQj43lPEfAeX2o9cTteAmShXy2VHDJpuwu1o0xqoKCt9jLVAvwyFKdLTPXKAfJyA==} + engines: {node: '>=10'} mute-stream@0.0.8: - resolution: - { - integrity: sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==, - } + resolution: {integrity: sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==} mute-stream@1.0.0: - resolution: - { - integrity: sha512-avsJQhyd+680gKXyG/sQc0nXaC6rBkPOfyHYcFb9+hdkqQkR9bdnkJ0AMZhke0oesPqIO+mFFJ+IdBc7mst4IA==, - } - engines: { node: ^14.17.0 || ^16.13.0 || >=18.0.0 } + resolution: {integrity: sha512-avsJQhyd+680gKXyG/sQc0nXaC6rBkPOfyHYcFb9+hdkqQkR9bdnkJ0AMZhke0oesPqIO+mFFJ+IdBc7mst4IA==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} nano-time@1.0.0: - resolution: - { - integrity: sha512-flnngywOoQ0lLQOTRNexn2gGSNuM9bKj9RZAWSzhQ+UJYaAFG9bac4DW9VHjUAzrOaIcajHybCTHe/bkvozQqA==, - } + resolution: {integrity: sha512-flnngywOoQ0lLQOTRNexn2gGSNuM9bKj9RZAWSzhQ+UJYaAFG9bac4DW9VHjUAzrOaIcajHybCTHe/bkvozQqA==} nanoid@3.3.11: - resolution: - { - integrity: sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==, - } - engines: { node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1 } + resolution: {integrity: sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==} + engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} hasBin: true napi-postinstall@0.3.4: - resolution: - { - integrity: sha512-PHI5f1O0EP5xJ9gQmFGMS6IZcrVvTjpXjz7Na41gTE7eE2hK11lg04CECCYEEjdc17EV4DO+fkGEtt7TpTaTiQ==, - } - engines: { node: ^12.20.0 || ^14.18.0 || >=16.0.0 } + resolution: {integrity: sha512-PHI5f1O0EP5xJ9gQmFGMS6IZcrVvTjpXjz7Na41gTE7eE2hK11lg04CECCYEEjdc17EV4DO+fkGEtt7TpTaTiQ==} + engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0} hasBin: true natural-compare@1.4.0: - resolution: - { - integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==, - } + resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} negotiator@0.6.4: - resolution: - { - integrity: sha512-myRT3DiWPHqho5PrJaIRyaMv2kgYf0mUVgBNOYMuCH5Ki1yEiQaf/ZJuQ62nvpc44wL5WDbTX7yGJi1Neevw8w==, - } - engines: { node: '>= 0.6' } + resolution: {integrity: sha512-myRT3DiWPHqho5PrJaIRyaMv2kgYf0mUVgBNOYMuCH5Ki1yEiQaf/ZJuQ62nvpc44wL5WDbTX7yGJi1Neevw8w==} + engines: {node: '>= 0.6'} negotiator@1.0.0: - resolution: - { - integrity: sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==, - } - engines: { node: '>= 0.6' } + resolution: {integrity: sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==} + engines: {node: '>= 0.6'} neo-async@2.6.2: - resolution: - { - integrity: sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==, - } + resolution: {integrity: sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==} nested-obj@0.1.10: - resolution: - { - integrity: sha512-5V2kUPrBee/tmoS2p0IJ35BcaJuW1p1yXF5GP8JpXIkDoPbaYeYypAHizUeZkAUxcC7Rago7izWmEq7qa8+Mhw==, - } + resolution: {integrity: sha512-5V2kUPrBee/tmoS2p0IJ35BcaJuW1p1yXF5GP8JpXIkDoPbaYeYypAHizUeZkAUxcC7Rago7izWmEq7qa8+Mhw==} nested-obj@0.1.5: - resolution: - { - integrity: sha512-04Y7qDMlI8RbYTn0cJAKaw/mLrO9UmLj3xbrjTZKDfOn9f3b/RXEQFIIpveJlwn8KfPwdVFWLZUaL5gNuQ7G0w==, - } + resolution: {integrity: sha512-04Y7qDMlI8RbYTn0cJAKaw/mLrO9UmLj3xbrjTZKDfOn9f3b/RXEQFIIpveJlwn8KfPwdVFWLZUaL5gNuQ7G0w==} nested-obj@0.2.0: - resolution: - { - integrity: sha512-uPzih1V6f7yb563xUkFA/oainPdrlc0ojpV8OuRAg4qWK70TPt14D5hWuU3ta1eVacJQv+VVuMJRqFRyTgYZ0Q==, - } + resolution: {integrity: sha512-uPzih1V6f7yb563xUkFA/oainPdrlc0ojpV8OuRAg4qWK70TPt14D5hWuU3ta1eVacJQv+VVuMJRqFRyTgYZ0Q==} no-case@2.3.2: - resolution: - { - integrity: sha512-rmTZ9kz+f3rCvK2TD1Ue/oZlns7OGoIWP4fc3llxxRXlOkHKoWPPWJOfFYpITabSow43QJbRIoHQXtt10VldyQ==, - } + resolution: {integrity: sha512-rmTZ9kz+f3rCvK2TD1Ue/oZlns7OGoIWP4fc3llxxRXlOkHKoWPPWJOfFYpITabSow43QJbRIoHQXtt10VldyQ==} node-fetch@2.6.7: - resolution: - { - integrity: sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==, - } - engines: { node: 4.x || >=6.0.0 } + resolution: {integrity: sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==} + engines: {node: 4.x || >=6.0.0} peerDependencies: encoding: ^0.1.0 peerDependenciesMeta: @@ -11768,11 +8064,8 @@ packages: optional: true node-fetch@2.7.0: - resolution: - { - integrity: sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==, - } - engines: { node: 4.x || >=6.0.0 } + resolution: {integrity: sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==} + engines: {node: 4.x || >=6.0.0} peerDependencies: encoding: ^0.1.0 peerDependenciesMeta: @@ -11780,180 +8073,102 @@ packages: optional: true node-gyp@10.3.1: - resolution: - { - integrity: sha512-Pp3nFHBThHzVtNY7U6JfPjvT/DTE8+o/4xKsLQtBoU+j2HLsGlhcfzflAoUreaJbNmYnX+LlLi0qjV8kpyO6xQ==, - } - engines: { node: ^16.14.0 || >=18.0.0 } + resolution: {integrity: sha512-Pp3nFHBThHzVtNY7U6JfPjvT/DTE8+o/4xKsLQtBoU+j2HLsGlhcfzflAoUreaJbNmYnX+LlLi0qjV8kpyO6xQ==} + engines: {node: ^16.14.0 || >=18.0.0} hasBin: true node-int64@0.4.0: - resolution: - { - integrity: sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==, - } + resolution: {integrity: sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==} node-machine-id@1.1.12: - resolution: - { - integrity: sha512-QNABxbrPa3qEIfrE6GOJ7BYIuignnJw7iQ2YPbc3Nla1HzRJjXzZOiikfF8m7eAMfichLt3M4VgLOetqgDmgGQ==, - } + resolution: {integrity: sha512-QNABxbrPa3qEIfrE6GOJ7BYIuignnJw7iQ2YPbc3Nla1HzRJjXzZOiikfF8m7eAMfichLt3M4VgLOetqgDmgGQ==} node-releases@2.0.27: - resolution: - { - integrity: sha512-nmh3lCkYZ3grZvqcCH+fjmQ7X+H0OeZgP40OierEaAptX4XofMh5kwNbWh7lBduUzCcV/8kZ+NDLCwm2iorIlA==, - } + resolution: {integrity: sha512-nmh3lCkYZ3grZvqcCH+fjmQ7X+H0OeZgP40OierEaAptX4XofMh5kwNbWh7lBduUzCcV/8kZ+NDLCwm2iorIlA==} node-schedule@2.1.1: - resolution: - { - integrity: sha512-OXdegQq03OmXEjt2hZP33W2YPs/E5BcFQks46+G2gAxs4gHOIVD1u7EqlYLYSKsaIpyKCK9Gbk0ta1/gjRSMRQ==, - } - engines: { node: '>=6' } + resolution: {integrity: sha512-OXdegQq03OmXEjt2hZP33W2YPs/E5BcFQks46+G2gAxs4gHOIVD1u7EqlYLYSKsaIpyKCK9Gbk0ta1/gjRSMRQ==} + engines: {node: '>=6'} nodemailer@6.10.1: - resolution: - { - integrity: sha512-Z+iLaBGVaSjbIzQ4pX6XV41HrooLsQ10ZWPUehGmuantvzWoDVBnmsdUcOIDM1t+yPor5pDhVlDESgOMEGxhHA==, - } - engines: { node: '>=6.0.0' } + resolution: {integrity: sha512-Z+iLaBGVaSjbIzQ4pX6XV41HrooLsQ10ZWPUehGmuantvzWoDVBnmsdUcOIDM1t+yPor5pDhVlDESgOMEGxhHA==} + engines: {node: '>=6.0.0'} nodemailer@7.0.11: - resolution: - { - integrity: sha512-gnXhNRE0FNhD7wPSCGhdNh46Hs6nm+uTyg+Kq0cZukNQiYdnCsoQjodNP9BQVG9XrcK/v6/MgpAPBUFyzh9pvw==, - } - engines: { node: '>=6.0.0' } + resolution: {integrity: sha512-gnXhNRE0FNhD7wPSCGhdNh46Hs6nm+uTyg+Kq0cZukNQiYdnCsoQjodNP9BQVG9XrcK/v6/MgpAPBUFyzh9pvw==} + engines: {node: '>=6.0.0'} nodemon@3.1.11: - resolution: - { - integrity: sha512-is96t8F/1//UHAjNPHpbsNY46ELPpftGUoSVNXwUfMk/qdjSylYrWSu1XavVTBOn526kFiOR733ATgNBCQyH0g==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-is96t8F/1//UHAjNPHpbsNY46ELPpftGUoSVNXwUfMk/qdjSylYrWSu1XavVTBOn526kFiOR733ATgNBCQyH0g==} + engines: {node: '>=10'} hasBin: true noms@0.0.0: - resolution: - { - integrity: sha512-lNDU9VJaOPxUmXcLb+HQFeUgQQPtMI24Gt6hgfuMHRJgMRHMF/qZ4HJD3GDru4sSw9IQl2jPjAYnQrdIeLbwow==, - } + resolution: {integrity: sha512-lNDU9VJaOPxUmXcLb+HQFeUgQQPtMI24Gt6hgfuMHRJgMRHMF/qZ4HJD3GDru4sSw9IQl2jPjAYnQrdIeLbwow==} nopt@7.2.1: - resolution: - { - integrity: sha512-taM24ViiimT/XntxbPyJQzCG+p4EKOpgD3mxFwW38mGjVUrfERQOeY4EDHjdnptttfHuHQXFx+lTP08Q+mLa/w==, - } - engines: { node: ^14.17.0 || ^16.13.0 || >=18.0.0 } + resolution: {integrity: sha512-taM24ViiimT/XntxbPyJQzCG+p4EKOpgD3mxFwW38mGjVUrfERQOeY4EDHjdnptttfHuHQXFx+lTP08Q+mLa/w==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} hasBin: true normalize-package-data@2.5.0: - resolution: - { - integrity: sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==, - } + resolution: {integrity: sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==} normalize-package-data@3.0.3: - resolution: - { - integrity: sha512-p2W1sgqij3zMMyRC067Dg16bfzVH+w7hyegmpIvZ4JNjqtGOVAIvLmjBx3yP7YTe9vKJgkoNOPjwQGogDoMXFA==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-p2W1sgqij3zMMyRC067Dg16bfzVH+w7hyegmpIvZ4JNjqtGOVAIvLmjBx3yP7YTe9vKJgkoNOPjwQGogDoMXFA==} + engines: {node: '>=10'} normalize-package-data@6.0.2: - resolution: - { - integrity: sha512-V6gygoYb/5EmNI+MEGrWkC+e6+Rr7mTmfHrxDbLzxQogBkgzo76rkok0Am6thgSF7Mv2nLOajAJj5vDJZEFn7g==, - } - engines: { node: ^16.14.0 || >=18.0.0 } + resolution: {integrity: sha512-V6gygoYb/5EmNI+MEGrWkC+e6+Rr7mTmfHrxDbLzxQogBkgzo76rkok0Am6thgSF7Mv2nLOajAJj5vDJZEFn7g==} + engines: {node: ^16.14.0 || >=18.0.0} normalize-path@3.0.0: - resolution: - { - integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==, - } - engines: { node: '>=0.10.0' } + resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==} + engines: {node: '>=0.10.0'} npm-bundled@3.0.1: - resolution: - { - integrity: sha512-+AvaheE/ww1JEwRHOrn4WHNzOxGtVp+adrg2AeZS/7KuxGUYFuBta98wYpfHBbJp6Tg6j1NKSEVHNcfZzJHQwQ==, - } - engines: { node: ^14.17.0 || ^16.13.0 || >=18.0.0 } + resolution: {integrity: sha512-+AvaheE/ww1JEwRHOrn4WHNzOxGtVp+adrg2AeZS/7KuxGUYFuBta98wYpfHBbJp6Tg6j1NKSEVHNcfZzJHQwQ==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} npm-install-checks@6.3.0: - resolution: - { - integrity: sha512-W29RiK/xtpCGqn6f3ixfRYGk+zRyr+Ew9F2E20BfXxT5/euLdA/Nm7fO7OeTGuAmTs30cpgInyJ0cYe708YTZw==, - } - engines: { node: ^14.17.0 || ^16.13.0 || >=18.0.0 } + resolution: {integrity: sha512-W29RiK/xtpCGqn6f3ixfRYGk+zRyr+Ew9F2E20BfXxT5/euLdA/Nm7fO7OeTGuAmTs30cpgInyJ0cYe708YTZw==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} npm-normalize-package-bin@3.0.1: - resolution: - { - integrity: sha512-dMxCf+zZ+3zeQZXKxmyuCKlIDPGuv8EF940xbkC4kQVDTtqoh6rJFO+JTKSA6/Rwi0getWmtuy4Itup0AMcaDQ==, - } - engines: { node: ^14.17.0 || ^16.13.0 || >=18.0.0 } + resolution: {integrity: sha512-dMxCf+zZ+3zeQZXKxmyuCKlIDPGuv8EF940xbkC4kQVDTtqoh6rJFO+JTKSA6/Rwi0getWmtuy4Itup0AMcaDQ==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} npm-package-arg@11.0.2: - resolution: - { - integrity: sha512-IGN0IAwmhDJwy13Wc8k+4PEbTPhpJnMtfR53ZbOyjkvmEcLS4nCwp6mvMWjS5sUjeiW3mpx6cHmuhKEu9XmcQw==, - } - engines: { node: ^16.14.0 || >=18.0.0 } + resolution: {integrity: sha512-IGN0IAwmhDJwy13Wc8k+4PEbTPhpJnMtfR53ZbOyjkvmEcLS4nCwp6mvMWjS5sUjeiW3mpx6cHmuhKEu9XmcQw==} + engines: {node: ^16.14.0 || >=18.0.0} npm-packlist@8.0.2: - resolution: - { - integrity: sha512-shYrPFIS/JLP4oQmAwDyk5HcyysKW8/JLTEA32S0Z5TzvpaeeX2yMFfoK1fjEBnCBvVyIB/Jj/GBFdm0wsgzbA==, - } - engines: { node: ^14.17.0 || ^16.13.0 || >=18.0.0 } + resolution: {integrity: sha512-shYrPFIS/JLP4oQmAwDyk5HcyysKW8/JLTEA32S0Z5TzvpaeeX2yMFfoK1fjEBnCBvVyIB/Jj/GBFdm0wsgzbA==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} npm-pick-manifest@9.1.0: - resolution: - { - integrity: sha512-nkc+3pIIhqHVQr085X9d2JzPzLyjzQS96zbruppqC9aZRm/x8xx6xhI98gHtsfELP2bE+loHq8ZaHFHhe+NauA==, - } - engines: { node: ^16.14.0 || >=18.0.0 } + resolution: {integrity: sha512-nkc+3pIIhqHVQr085X9d2JzPzLyjzQS96zbruppqC9aZRm/x8xx6xhI98gHtsfELP2bE+loHq8ZaHFHhe+NauA==} + engines: {node: ^16.14.0 || >=18.0.0} npm-registry-fetch@17.1.0: - resolution: - { - integrity: sha512-5+bKQRH0J1xG1uZ1zMNvxW0VEyoNWgJpY9UDuluPFLKDfJ9u2JmmjmTJV1srBGQOROfdBMiVvnH2Zvpbm+xkVA==, - } - engines: { node: ^16.14.0 || >=18.0.0 } + resolution: {integrity: sha512-5+bKQRH0J1xG1uZ1zMNvxW0VEyoNWgJpY9UDuluPFLKDfJ9u2JmmjmTJV1srBGQOROfdBMiVvnH2Zvpbm+xkVA==} + engines: {node: ^16.14.0 || >=18.0.0} npm-run-path@4.0.1: - resolution: - { - integrity: sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==} + engines: {node: '>=8'} nth-check@1.0.2: - resolution: - { - integrity: sha512-WeBOdju8SnzPN5vTUJYxYUxLeXpCaVP5i5e0LF8fg7WORF2Wd7wFX/pk0tYZk7s8T+J7VLy0Da6J1+wCT0AtHg==, - } + resolution: {integrity: sha512-WeBOdju8SnzPN5vTUJYxYUxLeXpCaVP5i5e0LF8fg7WORF2Wd7wFX/pk0tYZk7s8T+J7VLy0Da6J1+wCT0AtHg==} nth-check@2.1.1: - resolution: - { - integrity: sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==, - } + resolution: {integrity: sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==} nullthrows@1.1.1: - resolution: - { - integrity: sha512-2vPPEi+Z7WqML2jZYddDIfy5Dqb0r2fze2zTxNNknZaFpVHU3mFB3R+DWeJWGVx0ecvttSGlJTI+WG+8Z4cDWw==, - } + resolution: {integrity: sha512-2vPPEi+Z7WqML2jZYddDIfy5Dqb0r2fze2zTxNNknZaFpVHU3mFB3R+DWeJWGVx0ecvttSGlJTI+WG+8Z4cDWw==} nx@20.8.3: - resolution: - { - integrity: sha512-8w815WSMWar3A/LFzwtmEY+E8cVW62lMiFuPDXje+C8O8hFndfvscP56QHNMn2Zdhz3q0+BZUe+se4Em1BKYdA==, - } + resolution: {integrity: sha512-8w815WSMWar3A/LFzwtmEY+E8cVW62lMiFuPDXje+C8O8hFndfvscP56QHNMn2Zdhz3q0+BZUe+se4Em1BKYdA==} hasBin: true peerDependencies: '@swc-node/register': ^1.8.0 @@ -11965,436 +8180,244 @@ packages: optional: true object-assign@4.1.1: - resolution: - { - integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==, - } - engines: { node: '>=0.10.0' } + resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==} + engines: {node: '>=0.10.0'} object-inspect@1.13.4: - resolution: - { - integrity: sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==, - } - engines: { node: '>= 0.4' } + resolution: {integrity: sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==} + engines: {node: '>= 0.4'} object-path@0.11.8: - resolution: - { - integrity: sha512-YJjNZrlXJFM42wTBn6zgOJVar9KFJvzx6sTWDte8sWZF//cnjl0BxHNpfZx+ZffXX63A9q0b1zsFiBX4g4X5KA==, - } - engines: { node: '>= 10.12.0' } + resolution: {integrity: sha512-YJjNZrlXJFM42wTBn6zgOJVar9KFJvzx6sTWDte8sWZF//cnjl0BxHNpfZx+ZffXX63A9q0b1zsFiBX4g4X5KA==} + engines: {node: '>= 10.12.0'} oblivious-set@1.0.0: - resolution: - { - integrity: sha512-z+pI07qxo4c2CulUHCDf9lcqDlMSo72N/4rLUpRXf6fu+q8vjt8y0xS+Tlf8NTJDdTXHbdeO1n3MlbctwEoXZw==, - } + resolution: {integrity: sha512-z+pI07qxo4c2CulUHCDf9lcqDlMSo72N/4rLUpRXf6fu+q8vjt8y0xS+Tlf8NTJDdTXHbdeO1n3MlbctwEoXZw==} on-finished@2.4.1: - resolution: - { - integrity: sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==, - } - engines: { node: '>= 0.8' } + resolution: {integrity: sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==} + engines: {node: '>= 0.8'} once@1.4.0: - resolution: - { - integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==, - } + resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==} onetime@5.1.2: - resolution: - { - integrity: sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==, - } - engines: { node: '>=6' } + resolution: {integrity: sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==} + engines: {node: '>=6'} open@8.4.2: - resolution: - { - integrity: sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==, - } - engines: { node: '>=12' } + resolution: {integrity: sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==} + engines: {node: '>=12'} optionator@0.9.4: - resolution: - { - integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==, - } - engines: { node: '>= 0.8.0' } + resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==} + engines: {node: '>= 0.8.0'} ora@5.3.0: - resolution: - { - integrity: sha512-zAKMgGXUim0Jyd6CXK9lraBnD3H5yPGBPPOkC23a2BG6hsm4Zu6OQSjQuEtV0BHDf4aKHcUFvJiGRrFuW3MG8g==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-zAKMgGXUim0Jyd6CXK9lraBnD3H5yPGBPPOkC23a2BG6hsm4Zu6OQSjQuEtV0BHDf4aKHcUFvJiGRrFuW3MG8g==} + engines: {node: '>=10'} ora@5.4.1: - resolution: - { - integrity: sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==} + engines: {node: '>=10'} oxfmt@0.26.0: - resolution: - { - integrity: sha512-UDD1wFNwfeorMm2ZY0xy1KRAAvJ5NjKBfbDmiMwGP7baEHTq65cYpC0aPP+BGHc8weXUbSZaK8MdGyvuRUvS4Q==, - } - engines: { node: ^20.19.0 || >=22.12.0 } + resolution: {integrity: sha512-UDD1wFNwfeorMm2ZY0xy1KRAAvJ5NjKBfbDmiMwGP7baEHTq65cYpC0aPP+BGHc8weXUbSZaK8MdGyvuRUvS4Q==} + engines: {node: ^20.19.0 || >=22.12.0} hasBin: true p-finally@1.0.0: - resolution: - { - integrity: sha512-LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow==, - } - engines: { node: '>=4' } + resolution: {integrity: sha512-LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow==} + engines: {node: '>=4'} p-limit@1.3.0: - resolution: - { - integrity: sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==, - } - engines: { node: '>=4' } + resolution: {integrity: sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==} + engines: {node: '>=4'} p-limit@2.3.0: - resolution: - { - integrity: sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==, - } - engines: { node: '>=6' } + resolution: {integrity: sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==} + engines: {node: '>=6'} p-limit@3.1.0: - resolution: - { - integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==} + engines: {node: '>=10'} p-locate@2.0.0: - resolution: - { - integrity: sha512-nQja7m7gSKuewoVRen45CtVfODR3crN3goVQ0DDZ9N3yHxgpkuBhZqsaiotSQRrADUrne346peY7kT3TSACykg==, - } - engines: { node: '>=4' } + resolution: {integrity: sha512-nQja7m7gSKuewoVRen45CtVfODR3crN3goVQ0DDZ9N3yHxgpkuBhZqsaiotSQRrADUrne346peY7kT3TSACykg==} + engines: {node: '>=4'} p-locate@4.1.0: - resolution: - { - integrity: sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==} + engines: {node: '>=8'} p-locate@5.0.0: - resolution: - { - integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==} + engines: {node: '>=10'} p-map-series@2.1.0: - resolution: - { - integrity: sha512-RpYIIK1zXSNEOdwxcfe7FdvGcs7+y5n8rifMhMNWvaxRNMPINJHF5GDeuVxWqnfrcHPSCnp7Oo5yNXHId9Av2Q==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-RpYIIK1zXSNEOdwxcfe7FdvGcs7+y5n8rifMhMNWvaxRNMPINJHF5GDeuVxWqnfrcHPSCnp7Oo5yNXHId9Av2Q==} + engines: {node: '>=8'} p-map@4.0.0: - resolution: - { - integrity: sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==} + engines: {node: '>=10'} p-pipe@3.1.0: - resolution: - { - integrity: sha512-08pj8ATpzMR0Y80x50yJHn37NF6vjrqHutASaX5LiH5npS9XPvrUmscd9MF5R4fuYRHOxQR1FfMIlF7AzwoPqw==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-08pj8ATpzMR0Y80x50yJHn37NF6vjrqHutASaX5LiH5npS9XPvrUmscd9MF5R4fuYRHOxQR1FfMIlF7AzwoPqw==} + engines: {node: '>=8'} p-queue@6.6.2: - resolution: - { - integrity: sha512-RwFpb72c/BhQLEXIZ5K2e+AhgNVmIejGlTgiB9MzZ0e93GRvqZ7uSi0dvRF7/XIXDeNkra2fNHBxTyPDGySpjQ==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-RwFpb72c/BhQLEXIZ5K2e+AhgNVmIejGlTgiB9MzZ0e93GRvqZ7uSi0dvRF7/XIXDeNkra2fNHBxTyPDGySpjQ==} + engines: {node: '>=8'} p-reduce@2.1.0: - resolution: - { - integrity: sha512-2USApvnsutq8uoxZBGbbWM0JIYLiEMJ9RlaN7fAzVNb9OZN0SHjjTTfIcb667XynS5Y1VhwDJVDa72TnPzAYWw==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-2USApvnsutq8uoxZBGbbWM0JIYLiEMJ9RlaN7fAzVNb9OZN0SHjjTTfIcb667XynS5Y1VhwDJVDa72TnPzAYWw==} + engines: {node: '>=8'} p-timeout@3.2.0: - resolution: - { - integrity: sha512-rhIwUycgwwKcP9yTOOFK/AKsAopjjCakVqLHePO3CC6Mir1Z99xT+R63jZxAT5lFZLa2inS5h+ZS2GvR99/FBg==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-rhIwUycgwwKcP9yTOOFK/AKsAopjjCakVqLHePO3CC6Mir1Z99xT+R63jZxAT5lFZLa2inS5h+ZS2GvR99/FBg==} + engines: {node: '>=8'} p-try@1.0.0: - resolution: - { - integrity: sha512-U1etNYuMJoIz3ZXSrrySFjsXQTWOx2/jdi86L+2pRvph/qMKL6sbcCYdH23fqsbm8TH2Gn0OybpT4eSFlCVHww==, - } - engines: { node: '>=4' } + resolution: {integrity: sha512-U1etNYuMJoIz3ZXSrrySFjsXQTWOx2/jdi86L+2pRvph/qMKL6sbcCYdH23fqsbm8TH2Gn0OybpT4eSFlCVHww==} + engines: {node: '>=4'} p-try@2.2.0: - resolution: - { - integrity: sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==, - } - engines: { node: '>=6' } + resolution: {integrity: sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==} + engines: {node: '>=6'} p-waterfall@2.1.1: - resolution: - { - integrity: sha512-RRTnDb2TBG/epPRI2yYXsimO0v3BXC8Yd3ogr1545IaqKK17VGhbWVeGGN+XfCm/08OK8635nH31c8bATkHuSw==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-RRTnDb2TBG/epPRI2yYXsimO0v3BXC8Yd3ogr1545IaqKK17VGhbWVeGGN+XfCm/08OK8635nH31c8bATkHuSw==} + engines: {node: '>=8'} package-json-from-dist@1.0.1: - resolution: - { - integrity: sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==, - } + resolution: {integrity: sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==} pacote@18.0.6: - resolution: - { - integrity: sha512-+eK3G27SMwsB8kLIuj4h1FUhHtwiEUo21Tw8wNjmvdlpOEr613edv+8FUsTj/4F/VN5ywGE19X18N7CC2EJk6A==, - } - engines: { node: ^16.14.0 || >=18.0.0 } + resolution: {integrity: sha512-+eK3G27SMwsB8kLIuj4h1FUhHtwiEUo21Tw8wNjmvdlpOEr613edv+8FUsTj/4F/VN5ywGE19X18N7CC2EJk6A==} + engines: {node: ^16.14.0 || >=18.0.0} hasBin: true param-case@2.1.1: - resolution: - { - integrity: sha512-eQE845L6ot89sk2N8liD8HAuH4ca6Vvr7VWAWwt7+kvvG5aBcPmmphQ68JsEG2qa9n1TykS2DLeMt363AAH8/w==, - } + resolution: {integrity: sha512-eQE845L6ot89sk2N8liD8HAuH4ca6Vvr7VWAWwt7+kvvG5aBcPmmphQ68JsEG2qa9n1TykS2DLeMt363AAH8/w==} parent-module@1.0.1: - resolution: - { - integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==, - } - engines: { node: '>=6' } + resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==} + engines: {node: '>=6'} parse-conflict-json@3.0.1: - resolution: - { - integrity: sha512-01TvEktc68vwbJOtWZluyWeVGWjP+bZwXtPDMQVbBKzbJ/vZBif0L69KH1+cHv1SZ6e0FKLvjyHe8mqsIqYOmw==, - } - engines: { node: ^14.17.0 || ^16.13.0 || >=18.0.0 } + resolution: {integrity: sha512-01TvEktc68vwbJOtWZluyWeVGWjP+bZwXtPDMQVbBKzbJ/vZBif0L69KH1+cHv1SZ6e0FKLvjyHe8mqsIqYOmw==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} parse-json@4.0.0: - resolution: - { - integrity: sha512-aOIos8bujGN93/8Ox/jPLh7RwVnPEysynVFE+fQZyg6jKELEHwzgKdLRFHUgXJL6kylijVSBC4BvN9OmsB48Rw==, - } - engines: { node: '>=4' } + resolution: {integrity: sha512-aOIos8bujGN93/8Ox/jPLh7RwVnPEysynVFE+fQZyg6jKELEHwzgKdLRFHUgXJL6kylijVSBC4BvN9OmsB48Rw==} + engines: {node: '>=4'} parse-json@5.2.0: - resolution: - { - integrity: sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==} + engines: {node: '>=8'} parse-package-name@1.0.0: - resolution: - { - integrity: sha512-kBeTUtcj+SkyfaW4+KBe0HtsloBJ/mKTPoxpVdA57GZiPerREsUWJOhVj9anXweFiJkm5y8FG1sxFZkZ0SN6wg==, - } + resolution: {integrity: sha512-kBeTUtcj+SkyfaW4+KBe0HtsloBJ/mKTPoxpVdA57GZiPerREsUWJOhVj9anXweFiJkm5y8FG1sxFZkZ0SN6wg==} parse-path@7.1.0: - resolution: - { - integrity: sha512-EuCycjZtfPcjWk7KTksnJ5xPMvWGA/6i4zrLYhRG0hGvC3GPU/jGUj3Cy+ZR0v30duV3e23R95T1lE2+lsndSw==, - } + resolution: {integrity: sha512-EuCycjZtfPcjWk7KTksnJ5xPMvWGA/6i4zrLYhRG0hGvC3GPU/jGUj3Cy+ZR0v30duV3e23R95T1lE2+lsndSw==} parse-url@8.1.0: - resolution: - { - integrity: sha512-xDvOoLU5XRrcOZvnI6b8zA6n9O9ejNk/GExuz1yBuWUGn9KA97GI6HTs6u02wKara1CeVmZhH+0TZFdWScR89w==, - } + resolution: {integrity: sha512-xDvOoLU5XRrcOZvnI6b8zA6n9O9ejNk/GExuz1yBuWUGn9KA97GI6HTs6u02wKara1CeVmZhH+0TZFdWScR89w==} parse5-htmlparser2-tree-adapter@7.1.0: - resolution: - { - integrity: sha512-ruw5xyKs6lrpo9x9rCZqZZnIUntICjQAd0Wsmp396Ul9lN/h+ifgVV1x1gZHi8euej6wTfpqX8j+BFQxF0NS/g==, - } + resolution: {integrity: sha512-ruw5xyKs6lrpo9x9rCZqZZnIUntICjQAd0Wsmp396Ul9lN/h+ifgVV1x1gZHi8euej6wTfpqX8j+BFQxF0NS/g==} parse5-parser-stream@7.1.2: - resolution: - { - integrity: sha512-JyeQc9iwFLn5TbvvqACIF/VXG6abODeB3Fwmv/TGdLk2LfbWkaySGY72at4+Ty7EkPZj854u4CrICqNk2qIbow==, - } + resolution: {integrity: sha512-JyeQc9iwFLn5TbvvqACIF/VXG6abODeB3Fwmv/TGdLk2LfbWkaySGY72at4+Ty7EkPZj854u4CrICqNk2qIbow==} parse5@3.0.3: - resolution: - { - integrity: sha512-rgO9Zg5LLLkfJF9E6CCmXlSE4UVceloys8JrFqCcHloC3usd/kJCyPDwH2SOlzix2j3xaP9sUX3e8+kvkuleAA==, - } + resolution: {integrity: sha512-rgO9Zg5LLLkfJF9E6CCmXlSE4UVceloys8JrFqCcHloC3usd/kJCyPDwH2SOlzix2j3xaP9sUX3e8+kvkuleAA==} parse5@7.3.0: - resolution: - { - integrity: sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw==, - } + resolution: {integrity: sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw==} parseurl@1.3.3: - resolution: - { - integrity: sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==, - } - engines: { node: '>= 0.8' } + resolution: {integrity: sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==} + engines: {node: '>= 0.8'} path-exists@3.0.0: - resolution: - { - integrity: sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==, - } - engines: { node: '>=4' } + resolution: {integrity: sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==} + engines: {node: '>=4'} path-exists@4.0.0: - resolution: - { - integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==} + engines: {node: '>=8'} path-is-absolute@1.0.1: - resolution: - { - integrity: sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==, - } - engines: { node: '>=0.10.0' } + resolution: {integrity: sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==} + engines: {node: '>=0.10.0'} path-key@3.1.1: - resolution: - { - integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==} + engines: {node: '>=8'} path-parse@1.0.7: - resolution: - { - integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==, - } + resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==} path-scurry@1.11.1: - resolution: - { - integrity: sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==, - } - engines: { node: '>=16 || 14 >=14.18' } + resolution: {integrity: sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==} + engines: {node: '>=16 || 14 >=14.18'} path-scurry@2.0.1: - resolution: - { - integrity: sha512-oWyT4gICAu+kaA7QWk/jvCHWarMKNs6pXOGWKDTr7cw4IGcUbW+PeTfbaQiLGheFRpjo6O9J0PmyMfQPjH71oA==, - } - engines: { node: 20 || >=22 } + resolution: {integrity: sha512-oWyT4gICAu+kaA7QWk/jvCHWarMKNs6pXOGWKDTr7cw4IGcUbW+PeTfbaQiLGheFRpjo6O9J0PmyMfQPjH71oA==} + engines: {node: 20 || >=22} path-to-regexp@8.3.0: - resolution: - { - integrity: sha512-7jdwVIRtsP8MYpdXSwOS0YdD0Du+qOoF/AEPIt88PcCFrZCzx41oxku1jD88hZBwbNUIEfpqvuhjFaMAqMTWnA==, - } + resolution: {integrity: sha512-7jdwVIRtsP8MYpdXSwOS0YdD0Du+qOoF/AEPIt88PcCFrZCzx41oxku1jD88hZBwbNUIEfpqvuhjFaMAqMTWnA==} path-type@3.0.0: - resolution: - { - integrity: sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==, - } - engines: { node: '>=4' } + resolution: {integrity: sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==} + engines: {node: '>=4'} pg-cloudflare@1.3.0: - resolution: - { - integrity: sha512-6lswVVSztmHiRtD6I8hw4qP/nDm1EJbKMRhf3HCYaqud7frGysPv7FYJ5noZQdhQtN2xJnimfMtvQq21pdbzyQ==, - } + resolution: {integrity: sha512-6lswVVSztmHiRtD6I8hw4qP/nDm1EJbKMRhf3HCYaqud7frGysPv7FYJ5noZQdhQtN2xJnimfMtvQq21pdbzyQ==} pg-connection-string@2.10.0: - resolution: - { - integrity: sha512-ur/eoPKzDx2IjPaYyXS6Y8NSblxM7X64deV2ObV57vhjsWiwLvUD6meukAzogiOsu60GO8m/3Cb6FdJsWNjwXg==, - } + resolution: {integrity: sha512-ur/eoPKzDx2IjPaYyXS6Y8NSblxM7X64deV2ObV57vhjsWiwLvUD6meukAzogiOsu60GO8m/3Cb6FdJsWNjwXg==} pg-copy-streams@7.0.0: - resolution: - { - integrity: sha512-zBvnY6wtaBRE2ae2xXWOOGMaNVPkXh1vhypAkNSKgMdciJeTyIQAHZaEeRAxUjs/p1El5jgzYmwG5u871Zj3dQ==, - } + resolution: {integrity: sha512-zBvnY6wtaBRE2ae2xXWOOGMaNVPkXh1vhypAkNSKgMdciJeTyIQAHZaEeRAxUjs/p1El5jgzYmwG5u871Zj3dQ==} pg-int8@1.0.1: - resolution: - { - integrity: sha512-WCtabS6t3c8SkpDBUlb1kjOs7l66xsGdKpIPZsg4wR+B3+u9UAum2odSsF9tnvxg80h4ZxLWMy4pRjOsFIqQpw==, - } - engines: { node: '>=4.0.0' } + resolution: {integrity: sha512-WCtabS6t3c8SkpDBUlb1kjOs7l66xsGdKpIPZsg4wR+B3+u9UAum2odSsF9tnvxg80h4ZxLWMy4pRjOsFIqQpw==} + engines: {node: '>=4.0.0'} pg-introspection@1.0.0-rc.4: - resolution: - { - integrity: sha512-Cz5HZz4IbJN2wj9ow13dzco/HZ7UUi9qq0PYyjE4+hHgI8yxNLfXk9TqcJA+zgv7KR43QzGlx7yYcC25jTcFDw==, - } - engines: { node: '>=22' } + resolution: {integrity: sha512-Cz5HZz4IbJN2wj9ow13dzco/HZ7UUi9qq0PYyjE4+hHgI8yxNLfXk9TqcJA+zgv7KR43QzGlx7yYcC25jTcFDw==} + engines: {node: '>=22'} pg-pool@3.11.0: - resolution: - { - integrity: sha512-MJYfvHwtGp870aeusDh+hg9apvOe2zmpZJpyt+BMtzUWlVqbhFmMK6bOBXLBUPd7iRtIF9fZplDc7KrPN3PN7w==, - } + resolution: {integrity: sha512-MJYfvHwtGp870aeusDh+hg9apvOe2zmpZJpyt+BMtzUWlVqbhFmMK6bOBXLBUPd7iRtIF9fZplDc7KrPN3PN7w==} peerDependencies: pg: '>=8.0' pg-proto-parser@1.30.4: - resolution: - { - integrity: sha512-+9/n8zfYQVNRc8KGhxxNXO8NA5OKni01IPtit6+C3sLMtcRVVFCj4W0XtrEGFivNjz2qwUtFmRhG8OGMTxs6hg==, - } + resolution: {integrity: sha512-+9/n8zfYQVNRc8KGhxxNXO8NA5OKni01IPtit6+C3sLMtcRVVFCj4W0XtrEGFivNjz2qwUtFmRhG8OGMTxs6hg==} pg-protocol@1.10.3: - resolution: - { - integrity: sha512-6DIBgBQaTKDJyxnXaLiLR8wBpQQcGWuAESkRBX/t6OwA8YsqP+iVSiond2EDy6Y/dsGk8rh/jtax3js5NeV7JQ==, - } + resolution: {integrity: sha512-6DIBgBQaTKDJyxnXaLiLR8wBpQQcGWuAESkRBX/t6OwA8YsqP+iVSiond2EDy6Y/dsGk8rh/jtax3js5NeV7JQ==} pg-protocol@1.11.0: - resolution: - { - integrity: sha512-pfsxk2M9M3BuGgDOfuy37VNRRX3jmKgMjcvAcWqNDpZSf4cUmv8HSOl5ViRQFsfARFn0KuUQTgLxVMbNq5NW3g==, - } + resolution: {integrity: sha512-pfsxk2M9M3BuGgDOfuy37VNRRX3jmKgMjcvAcWqNDpZSf4cUmv8HSOl5ViRQFsfARFn0KuUQTgLxVMbNq5NW3g==} pg-sql2@5.0.0-rc.4: - resolution: - { - integrity: sha512-f8um4jNwumksk39zhkdps9jXeCkM3SY22gPjAcq45D/ZTIw2zWHMdsS6H5DE3XdeHy6pyGUzY0urmCgwuhiywg==, - } - engines: { node: '>=22' } + resolution: {integrity: sha512-f8um4jNwumksk39zhkdps9jXeCkM3SY22gPjAcq45D/ZTIw2zWHMdsS6H5DE3XdeHy6pyGUzY0urmCgwuhiywg==} + engines: {node: '>=22'} pg-types@2.2.0: - resolution: - { - integrity: sha512-qTAAlrEsl8s4OiEQY69wDvcMIdQN6wdz5ojQiOy6YRMuynxenON0O5oCpJI6lshc6scgAY8qvJ2On/p+CXY0GA==, - } - engines: { node: '>=4' } + resolution: {integrity: sha512-qTAAlrEsl8s4OiEQY69wDvcMIdQN6wdz5ojQiOy6YRMuynxenON0O5oCpJI6lshc6scgAY8qvJ2On/p+CXY0GA==} + engines: {node: '>=4'} pg@8.17.1: - resolution: - { - integrity: sha512-EIR+jXdYNSMOrpRp7g6WgQr7SaZNZfS7IzZIO0oTNEeibq956JxeD15t3Jk3zZH0KH8DmOIx38qJfQenoE8bXQ==, - } - engines: { node: '>= 16.0.0' } + resolution: {integrity: sha512-EIR+jXdYNSMOrpRp7g6WgQr7SaZNZfS7IzZIO0oTNEeibq956JxeD15t3Jk3zZH0KH8DmOIx38qJfQenoE8bXQ==} + engines: {node: '>= 16.0.0'} peerDependencies: pg-native: '>=3.0.1' peerDependenciesMeta: @@ -12402,147 +8425,84 @@ packages: optional: true pgpass@1.0.5: - resolution: - { - integrity: sha512-FdW9r/jQZhSeohs1Z3sI1yxFQNFvMcnmfuj4WBMUTxOrAyLMaTcE1aAMBiTlbMNaXvBCQuVi0R7hd8udDSP7ug==, - } + resolution: {integrity: sha512-FdW9r/jQZhSeohs1Z3sI1yxFQNFvMcnmfuj4WBMUTxOrAyLMaTcE1aAMBiTlbMNaXvBCQuVi0R7hd8udDSP7ug==} pgsql-deparser@17.17.2: - resolution: - { - integrity: sha512-FCjqKY3Sdmce3VUd3CxCXF0kqaZ0s4a6yIMT5UJ9vETh0cF54A8Tpqjn0qBKaPUD8xqTKeLdS+SfiwjAC64wrA==, - } + resolution: {integrity: sha512-FCjqKY3Sdmce3VUd3CxCXF0kqaZ0s4a6yIMT5UJ9vETh0cF54A8Tpqjn0qBKaPUD8xqTKeLdS+SfiwjAC64wrA==} pgsql-parser@17.9.11: - resolution: - { - integrity: sha512-Bqp9uLvJK0Qht9PXzI6eC/Fn+lFRL+2eMvXss4D4qt7lxPLIHS8FMKYOHUQNTI3m6ylExSOdNXhx/DL5UGm3xg==, - } + resolution: {integrity: sha512-Bqp9uLvJK0Qht9PXzI6eC/Fn+lFRL+2eMvXss4D4qt7lxPLIHS8FMKYOHUQNTI3m6ylExSOdNXhx/DL5UGm3xg==} picocolors@1.1.1: - resolution: - { - integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==, - } + resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} picomatch-browser@2.2.6: - resolution: - { - integrity: sha512-0ypsOQt9D4e3hziV8O4elD9uN0z/jtUEfxVRtNaAAtXIyUx9m/SzlO020i8YNL2aL/E6blOvvHQcin6HZlFy/w==, - } - engines: { node: '>=8.6' } + resolution: {integrity: sha512-0ypsOQt9D4e3hziV8O4elD9uN0z/jtUEfxVRtNaAAtXIyUx9m/SzlO020i8YNL2aL/E6blOvvHQcin6HZlFy/w==} + engines: {node: '>=8.6'} picomatch@2.3.1: - resolution: - { - integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==, - } - engines: { node: '>=8.6' } + resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==} + engines: {node: '>=8.6'} picomatch@4.0.3: - resolution: - { - integrity: sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==, - } - engines: { node: '>=12' } + resolution: {integrity: sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==} + engines: {node: '>=12'} pify@2.3.0: - resolution: - { - integrity: sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==, - } - engines: { node: '>=0.10.0' } + resolution: {integrity: sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==} + engines: {node: '>=0.10.0'} pify@3.0.0: - resolution: - { - integrity: sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==, - } - engines: { node: '>=4' } + resolution: {integrity: sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==} + engines: {node: '>=4'} pify@4.0.1: - resolution: - { - integrity: sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==, - } - engines: { node: '>=6' } + resolution: {integrity: sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==} + engines: {node: '>=6'} pify@5.0.0: - resolution: - { - integrity: sha512-eW/gHNMlxdSP6dmG6uJip6FXN0EQBwm2clYYd8Wul42Cwu/DK8HEftzsapcNdYe2MfLiIwZqsDk2RDEsTE79hA==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-eW/gHNMlxdSP6dmG6uJip6FXN0EQBwm2clYYd8Wul42Cwu/DK8HEftzsapcNdYe2MfLiIwZqsDk2RDEsTE79hA==} + engines: {node: '>=10'} pirates@4.0.7: - resolution: - { - integrity: sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==, - } - engines: { node: '>= 6' } + resolution: {integrity: sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==} + engines: {node: '>= 6'} pkg-dir@4.2.0: - resolution: - { - integrity: sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==} + engines: {node: '>=8'} playwright-core@1.57.0: - resolution: - { - integrity: sha512-agTcKlMw/mjBWOnD6kFZttAAGHgi/Nw0CZ2o6JqWSbMlI219lAFLZZCyqByTsvVAJq5XA5H8cA6PrvBRpBWEuQ==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-agTcKlMw/mjBWOnD6kFZttAAGHgi/Nw0CZ2o6JqWSbMlI219lAFLZZCyqByTsvVAJq5XA5H8cA6PrvBRpBWEuQ==} + engines: {node: '>=18'} hasBin: true playwright@1.57.0: - resolution: - { - integrity: sha512-ilYQj1s8sr2ppEJ2YVadYBN0Mb3mdo9J0wQ+UuDhzYqURwSoW4n1Xs5vs7ORwgDGmyEh33tRMeS8KhdkMoLXQw==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-ilYQj1s8sr2ppEJ2YVadYBN0Mb3mdo9J0wQ+UuDhzYqURwSoW4n1Xs5vs7ORwgDGmyEh33tRMeS8KhdkMoLXQw==} + engines: {node: '>=18'} hasBin: true pluralize@7.0.0: - resolution: - { - integrity: sha512-ARhBOdzS3e41FbkW/XWrTEtukqqLoK5+Z/4UeDaLuSW+39JPeFgs4gCGqsrJHVZX0fUrx//4OF0K1CUGwlIFow==, - } - engines: { node: '>=4' } + resolution: {integrity: sha512-ARhBOdzS3e41FbkW/XWrTEtukqqLoK5+Z/4UeDaLuSW+39JPeFgs4gCGqsrJHVZX0fUrx//4OF0K1CUGwlIFow==} + engines: {node: '>=4'} postcss-selector-parser@6.1.2: - resolution: - { - integrity: sha512-Q8qQfPiZ+THO/3ZrOrO0cJJKfpYCagtMUkXbnEfmgUjwXg6z/WBeOyS9APBBPCTSiDV+s4SwQGu8yFsiMRIudg==, - } - engines: { node: '>=4' } + resolution: {integrity: sha512-Q8qQfPiZ+THO/3ZrOrO0cJJKfpYCagtMUkXbnEfmgUjwXg6z/WBeOyS9APBBPCTSiDV+s4SwQGu8yFsiMRIudg==} + engines: {node: '>=4'} postcss-value-parser@4.2.0: - resolution: - { - integrity: sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==, - } + resolution: {integrity: sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==} postcss@8.5.6: - resolution: - { - integrity: sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==, - } - engines: { node: ^10 || ^12 || >=14 } + resolution: {integrity: sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==} + engines: {node: ^10 || ^12 || >=14} postgraphile-plugin-connection-filter@3.0.0-rc.1: - resolution: - { - integrity: sha512-gVzLoY+OGAVhUWdcbtY4Hu2zSup8qZB+wlH54RgIa+tQSysWDDh5S3Opaz5uPwY6etcmzR5JjcApOmb1YYIzlA==, - } + resolution: {integrity: sha512-gVzLoY+OGAVhUWdcbtY4Hu2zSup8qZB+wlH54RgIa+tQSysWDDh5S3Opaz5uPwY6etcmzR5JjcApOmb1YYIzlA==} postgraphile@5.0.0-rc.7: - resolution: - { - integrity: sha512-sUjq9c2Q53TWs8fuoohStSAZwvkbnAvtgwqZTDzPP6OL2OI0ymv10qtnBzHwJh+dTrWEM/isqgVH29IEPG+LVQ==, - } - engines: { node: '>=22' } + resolution: {integrity: sha512-sUjq9c2Q53TWs8fuoohStSAZwvkbnAvtgwqZTDzPP6OL2OI0ymv10qtnBzHwJh+dTrWEM/isqgVH29IEPG+LVQ==} + engines: {node: '>=22'} hasBin: true peerDependencies: '@dataplan/json': 1.0.0-rc.5 @@ -12562,119 +8522,68 @@ packages: optional: true postgres-array@2.0.0: - resolution: - { - integrity: sha512-VpZrUqU5A69eQyW2c5CA1jtLecCsN2U/bD6VilrFDWq5+5UIEVO7nazS3TEcHf1zuPYO/sqGvUvW62g86RXZuA==, - } - engines: { node: '>=4' } + resolution: {integrity: sha512-VpZrUqU5A69eQyW2c5CA1jtLecCsN2U/bD6VilrFDWq5+5UIEVO7nazS3TEcHf1zuPYO/sqGvUvW62g86RXZuA==} + engines: {node: '>=4'} postgres-array@3.0.4: - resolution: - { - integrity: sha512-nAUSGfSDGOaOAEGwqsRY27GPOea7CNipJPOA7lPbdEpx5Kg3qzdP0AaWC5MlhTWV9s4hFX39nomVZ+C4tnGOJQ==, - } - engines: { node: '>=12' } + resolution: {integrity: sha512-nAUSGfSDGOaOAEGwqsRY27GPOea7CNipJPOA7lPbdEpx5Kg3qzdP0AaWC5MlhTWV9s4hFX39nomVZ+C4tnGOJQ==} + engines: {node: '>=12'} postgres-bytea@1.0.1: - resolution: - { - integrity: sha512-5+5HqXnsZPE65IJZSMkZtURARZelel2oXUEO8rH83VS/hxH5vv1uHquPg5wZs8yMAfdv971IU+kcPUczi7NVBQ==, - } - engines: { node: '>=0.10.0' } + resolution: {integrity: sha512-5+5HqXnsZPE65IJZSMkZtURARZelel2oXUEO8rH83VS/hxH5vv1uHquPg5wZs8yMAfdv971IU+kcPUczi7NVBQ==} + engines: {node: '>=0.10.0'} postgres-date@1.0.7: - resolution: - { - integrity: sha512-suDmjLVQg78nMK2UZ454hAG+OAW+HQPZ6n++TNDUX+L0+uUlLywnoxJKDou51Zm+zTCjrCl0Nq6J9C5hP9vK/Q==, - } - engines: { node: '>=0.10.0' } + resolution: {integrity: sha512-suDmjLVQg78nMK2UZ454hAG+OAW+HQPZ6n++TNDUX+L0+uUlLywnoxJKDou51Zm+zTCjrCl0Nq6J9C5hP9vK/Q==} + engines: {node: '>=0.10.0'} postgres-interval@1.2.0: - resolution: - { - integrity: sha512-9ZhXKM/rw350N1ovuWHbGxnGh/SNJ4cnxHiM0rxE4VN41wsg8P8zWn9hv/buK00RP4WvlOyr/RBDiptyxVbkZQ==, - } - engines: { node: '>=0.10.0' } + resolution: {integrity: sha512-9ZhXKM/rw350N1ovuWHbGxnGh/SNJ4cnxHiM0rxE4VN41wsg8P8zWn9hv/buK00RP4WvlOyr/RBDiptyxVbkZQ==} + engines: {node: '>=0.10.0'} postgres-range@1.1.4: - resolution: - { - integrity: sha512-i/hbxIE9803Alj/6ytL7UHQxRvZkI9O4Sy+J3HGc4F4oo/2eQAjTSNJ0bfxyse3bH0nuVesCk+3IRLaMtG3H6w==, - } + resolution: {integrity: sha512-i/hbxIE9803Alj/6ytL7UHQxRvZkI9O4Sy+J3HGc4F4oo/2eQAjTSNJ0bfxyse3bH0nuVesCk+3IRLaMtG3H6w==} prelude-ls@1.2.1: - resolution: - { - integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==, - } - engines: { node: '>= 0.8.0' } + resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} + engines: {node: '>= 0.8.0'} prettier@3.8.0: - resolution: - { - integrity: sha512-yEPsovQfpxYfgWNhCfECjG5AQaO+K3dp6XERmOepyPDVqcJm+bjyCVO3pmU+nAPe0N5dDvekfGezt/EIiRe1TA==, - } - engines: { node: '>=14' } + resolution: {integrity: sha512-yEPsovQfpxYfgWNhCfECjG5AQaO+K3dp6XERmOepyPDVqcJm+bjyCVO3pmU+nAPe0N5dDvekfGezt/EIiRe1TA==} + engines: {node: '>=14'} hasBin: true pretty-format@26.6.2: - resolution: - { - integrity: sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg==, - } - engines: { node: '>= 10' } + resolution: {integrity: sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg==} + engines: {node: '>= 10'} pretty-format@29.7.0: - resolution: - { - integrity: sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==, - } - engines: { node: ^14.15.0 || ^16.10.0 || >=18.0.0 } + resolution: {integrity: sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} pretty-format@30.2.0: - resolution: - { - integrity: sha512-9uBdv/B4EefsuAL+pWqueZyZS2Ba+LxfFeQ9DN14HU4bN8bhaxKdkpjpB6fs9+pSjIBu+FXQHImEg8j/Lw0+vA==, - } - engines: { node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0 } + resolution: {integrity: sha512-9uBdv/B4EefsuAL+pWqueZyZS2Ba+LxfFeQ9DN14HU4bN8bhaxKdkpjpB6fs9+pSjIBu+FXQHImEg8j/Lw0+vA==} + engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} proc-log@4.2.0: - resolution: - { - integrity: sha512-g8+OnU/L2v+wyiVK+D5fA34J7EH8jZ8DDlvwhRCMxmMj7UCBvxiO1mGeN+36JXIKF4zevU4kRBd8lVgG9vLelA==, - } - engines: { node: ^14.17.0 || ^16.13.0 || >=18.0.0 } + resolution: {integrity: sha512-g8+OnU/L2v+wyiVK+D5fA34J7EH8jZ8DDlvwhRCMxmMj7UCBvxiO1mGeN+36JXIKF4zevU4kRBd8lVgG9vLelA==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} process-nextick-args@2.0.1: - resolution: - { - integrity: sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==, - } + resolution: {integrity: sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==} proggy@2.0.0: - resolution: - { - integrity: sha512-69agxLtnI8xBs9gUGqEnK26UfiexpHy+KUpBQWabiytQjnn5wFY8rklAi7GRfABIuPNnQ/ik48+LGLkYYJcy4A==, - } - engines: { node: ^14.17.0 || ^16.13.0 || >=18.0.0 } + resolution: {integrity: sha512-69agxLtnI8xBs9gUGqEnK26UfiexpHy+KUpBQWabiytQjnn5wFY8rklAi7GRfABIuPNnQ/ik48+LGLkYYJcy4A==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} promise-all-reject-late@1.0.1: - resolution: - { - integrity: sha512-vuf0Lf0lOxyQREH7GDIOUMLS7kz+gs8i6B+Yi8dC68a2sychGrHTJYghMBD6k7eUcH0H5P73EckCA48xijWqXw==, - } + resolution: {integrity: sha512-vuf0Lf0lOxyQREH7GDIOUMLS7kz+gs8i6B+Yi8dC68a2sychGrHTJYghMBD6k7eUcH0H5P73EckCA48xijWqXw==} promise-call-limit@3.0.2: - resolution: - { - integrity: sha512-mRPQO2T1QQVw11E7+UdCJu7S61eJVWknzml9sC1heAdj1jxl0fWMBypIt9ZOcLFf8FkG995ZD7RnVk7HH72fZw==, - } + resolution: {integrity: sha512-mRPQO2T1QQVw11E7+UdCJu7S61eJVWknzml9sC1heAdj1jxl0fWMBypIt9ZOcLFf8FkG995ZD7RnVk7HH72fZw==} promise-inflight@1.0.1: - resolution: - { - integrity: sha512-6zWPyEOFaQBJYcGMHBKTKJ3u6TBsnMFOIZSa6ce1e/ZrrsOlnHRHbabMjLiBYKp+n44X9eUI6VUPaukCXHuG4g==, - } + resolution: {integrity: sha512-6zWPyEOFaQBJYcGMHBKTKJ3u6TBsnMFOIZSa6ce1e/ZrrsOlnHRHbabMjLiBYKp+n44X9eUI6VUPaukCXHuG4g==} peerDependencies: bluebird: '*' peerDependenciesMeta: @@ -12682,156 +8591,87 @@ packages: optional: true promise-retry@2.0.1: - resolution: - { - integrity: sha512-y+WKFlBR8BGXnsNlIHFGPZmyDf3DFMoLhaflAnyZgV6rG6xu+JwesTo2Q9R6XwYmtmwAFCkAk3e35jEdoeh/3g==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-y+WKFlBR8BGXnsNlIHFGPZmyDf3DFMoLhaflAnyZgV6rG6xu+JwesTo2Q9R6XwYmtmwAFCkAk3e35jEdoeh/3g==} + engines: {node: '>=10'} promzard@1.0.2: - resolution: - { - integrity: sha512-2FPputGL+mP3jJ3UZg/Dl9YOkovB7DX0oOr+ck5QbZ5MtORtds8k/BZdn+02peDLI8/YWbmzx34k5fA+fHvCVQ==, - } - engines: { node: ^14.17.0 || ^16.13.0 || >=18.0.0 } + resolution: {integrity: sha512-2FPputGL+mP3jJ3UZg/Dl9YOkovB7DX0oOr+ck5QbZ5MtORtds8k/BZdn+02peDLI8/YWbmzx34k5fA+fHvCVQ==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} proto-list@1.2.4: - resolution: - { - integrity: sha512-vtK/94akxsTMhe0/cbfpR+syPuszcuwhqVjJq26CuNDgFGj682oRBXOP5MJpv2r7JtE8MsiepGIqvvOTBwn2vA==, - } + resolution: {integrity: sha512-vtK/94akxsTMhe0/cbfpR+syPuszcuwhqVjJq26CuNDgFGj682oRBXOP5MJpv2r7JtE8MsiepGIqvvOTBwn2vA==} protocols@2.0.2: - resolution: - { - integrity: sha512-hHVTzba3wboROl0/aWRRG9dMytgH6ow//STBZh43l/wQgmMhYhOFi0EHWAPtoCz9IAUymsyP0TSBHkhgMEGNnQ==, - } + resolution: {integrity: sha512-hHVTzba3wboROl0/aWRRG9dMytgH6ow//STBZh43l/wQgmMhYhOFi0EHWAPtoCz9IAUymsyP0TSBHkhgMEGNnQ==} proxy-addr@2.0.7: - resolution: - { - integrity: sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==, - } - engines: { node: '>= 0.10' } + resolution: {integrity: sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==} + engines: {node: '>= 0.10'} proxy-from-env@1.1.0: - resolution: - { - integrity: sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==, - } + resolution: {integrity: sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==} pstree.remy@1.1.8: - resolution: - { - integrity: sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w==, - } + resolution: {integrity: sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w==} punycode.js@2.3.1: - resolution: - { - integrity: sha512-uxFIHU0YlHYhDQtV4R9J6a52SLx28BCjT+4ieh7IGbgwVJWO+km431c4yRlREUAsAmt/uMjQUyQHNEPf0M39CA==, - } - engines: { node: '>=6' } + resolution: {integrity: sha512-uxFIHU0YlHYhDQtV4R9J6a52SLx28BCjT+4ieh7IGbgwVJWO+km431c4yRlREUAsAmt/uMjQUyQHNEPf0M39CA==} + engines: {node: '>=6'} punycode@2.3.1: - resolution: - { - integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==, - } - engines: { node: '>=6' } + resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==} + engines: {node: '>=6'} pure-rand@7.0.1: - resolution: - { - integrity: sha512-oTUZM/NAZS8p7ANR3SHh30kXB+zK2r2BPcEn/awJIbOvq82WoMN4p62AWWp3Hhw50G0xMsw1mhIBLqHw64EcNQ==, - } + resolution: {integrity: sha512-oTUZM/NAZS8p7ANR3SHh30kXB+zK2r2BPcEn/awJIbOvq82WoMN4p62AWWp3Hhw50G0xMsw1mhIBLqHw64EcNQ==} qs@6.14.0: - resolution: - { - integrity: sha512-YWWTjgABSKcvs/nWBi9PycY/JiPJqOD4JA6o9Sej2AtvSGarXxKC3OQSk4pAarbdQlKAh5D4FCQkJNkW+GAn3w==, - } - engines: { node: '>=0.6' } + resolution: {integrity: sha512-YWWTjgABSKcvs/nWBi9PycY/JiPJqOD4JA6o9Sej2AtvSGarXxKC3OQSk4pAarbdQlKAh5D4FCQkJNkW+GAn3w==} + engines: {node: '>=0.6'} qs@6.14.1: - resolution: - { - integrity: sha512-4EK3+xJl8Ts67nLYNwqw/dsFVnCf+qR7RgXSK9jEEm9unao3njwMDdmsdvoKBKHzxd7tCYz5e5M+SnMjdtXGQQ==, - } - engines: { node: '>=0.6' } + resolution: {integrity: sha512-4EK3+xJl8Ts67nLYNwqw/dsFVnCf+qR7RgXSK9jEEm9unao3njwMDdmsdvoKBKHzxd7tCYz5e5M+SnMjdtXGQQ==} + engines: {node: '>=0.6'} queue-microtask@1.2.3: - resolution: - { - integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==, - } + resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} quick-lru@4.0.1: - resolution: - { - integrity: sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g==} + engines: {node: '>=8'} range-parser@1.2.1: - resolution: - { - integrity: sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==, - } - engines: { node: '>= 0.6' } + resolution: {integrity: sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==} + engines: {node: '>= 0.6'} raw-body@3.0.2: - resolution: - { - integrity: sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA==, - } - engines: { node: '>= 0.10' } + resolution: {integrity: sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA==} + engines: {node: '>= 0.10'} react-compiler-runtime@19.1.0-rc.1: - resolution: - { - integrity: sha512-wCt6g+cRh8g32QT18/9blfQHywGjYu+4FlEc3CW1mx3pPxYzZZl1y+VtqxRgnKKBCFLIGUYxog4j4rs5YS86hw==, - } + resolution: {integrity: sha512-wCt6g+cRh8g32QT18/9blfQHywGjYu+4FlEc3CW1mx3pPxYzZZl1y+VtqxRgnKKBCFLIGUYxog4j4rs5YS86hw==} peerDependencies: react: ^17.0.0 || ^18.0.0 || ^19.0.0 || ^0.0.0-experimental react-dom@19.2.3: - resolution: - { - integrity: sha512-yELu4WmLPw5Mr/lmeEpox5rw3RETacE++JgHqQzd2dg+YbJuat3jH4ingc+WPZhxaoFzdv9y33G+F7Nl5O0GBg==, - } + resolution: {integrity: sha512-yELu4WmLPw5Mr/lmeEpox5rw3RETacE++JgHqQzd2dg+YbJuat3jH4ingc+WPZhxaoFzdv9y33G+F7Nl5O0GBg==} peerDependencies: react: ^19.2.3 react-is@16.13.1: - resolution: - { - integrity: sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==, - } + resolution: {integrity: sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==} react-is@17.0.2: - resolution: - { - integrity: sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==, - } + resolution: {integrity: sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==} react-is@18.3.1: - resolution: - { - integrity: sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==, - } + resolution: {integrity: sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==} react-is@19.2.4: - resolution: - { - integrity: sha512-W+EWGn2v0ApPKgKKCy/7s7WHXkboGcsrXE+2joLyVxkbyVQfO3MUEaUQDHoSmb8TFFrSKYa9mw64WZHNHSDzYA==, - } + resolution: {integrity: sha512-W+EWGn2v0ApPKgKKCy/7s7WHXkboGcsrXE+2joLyVxkbyVQfO3MUEaUQDHoSmb8TFFrSKYa9mw64WZHNHSDzYA==} react-query@3.39.3: - resolution: - { - integrity: sha512-nLfLz7GiohKTJDuT4us4X3h/8unOh+00MLb2yJoGTPjxKs2bc1iDhkNx2bd5MKklXnOD3NrVZ+J2UXujA5In4g==, - } + resolution: {integrity: sha512-nLfLz7GiohKTJDuT4us4X3h/8unOh+00MLb2yJoGTPjxKs2bc1iDhkNx2bd5MKklXnOD3NrVZ+J2UXujA5In4g==} peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 react-dom: '*' @@ -12843,18 +8683,12 @@ packages: optional: true react-refresh@0.17.0: - resolution: - { - integrity: sha512-z6F7K9bV85EfseRCp2bzrpyQ0Gkw1uLoCel9XBVWPg/TjRj94SkJzUTGfOa4bs7iJvBWtQG0Wq7wnI0syw3EBQ==, - } - engines: { node: '>=0.10.0' } + resolution: {integrity: sha512-z6F7K9bV85EfseRCp2bzrpyQ0Gkw1uLoCel9XBVWPg/TjRj94SkJzUTGfOa4bs7iJvBWtQG0Wq7wnI0syw3EBQ==} + engines: {node: '>=0.10.0'} react-remove-scroll-bar@2.3.8: - resolution: - { - integrity: sha512-9r+yi9+mgU33AKcj6IbT9oRCO78WriSj6t/cF8DWBZJ9aOGPOTEDvdUDz1FwKim7QXWwmHqtdHnRJfhAxEG46Q==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-9r+yi9+mgU33AKcj6IbT9oRCO78WriSj6t/cF8DWBZJ9aOGPOTEDvdUDz1FwKim7QXWwmHqtdHnRJfhAxEG46Q==} + engines: {node: '>=10'} peerDependencies: '@types/react': '*' react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 @@ -12863,11 +8697,8 @@ packages: optional: true react-remove-scroll@2.7.2: - resolution: - { - integrity: sha512-Iqb9NjCCTt6Hf+vOdNIZGdTiH1QSqr27H/Ek9sv/a97gfueI/5h1s3yRi1nngzMUaOOToin5dI1dXKdXiF+u0Q==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-Iqb9NjCCTt6Hf+vOdNIZGdTiH1QSqr27H/Ek9sv/a97gfueI/5h1s3yRi1nngzMUaOOToin5dI1dXKdXiF+u0Q==} + engines: {node: '>=10'} peerDependencies: '@types/react': '*' react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc @@ -12876,11 +8707,8 @@ packages: optional: true react-style-singleton@2.2.3: - resolution: - { - integrity: sha512-b6jSvxvVnyptAiLjbkWLE/lOnR4lfTtDAl+eUC7RZy+QQWc6wRzIV2CE6xBuMmDxc2qIihtDCZD5NPOFl7fRBQ==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-b6jSvxvVnyptAiLjbkWLE/lOnR4lfTtDAl+eUC7RZy+QQWc6wRzIV2CE6xBuMmDxc2qIihtDCZD5NPOFl7fRBQ==} + engines: {node: '>=10'} peerDependencies: '@types/react': '*' react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc @@ -12889,238 +8717,136 @@ packages: optional: true react-test-renderer@19.2.3: - resolution: - { - integrity: sha512-TMR1LnSFiWZMJkCgNf5ATSvAheTT2NvKIwiVwdBPHxjBI7n/JbWd4gaZ16DVd9foAXdvDz+sB5yxZTwMjPRxpw==, - } + resolution: {integrity: sha512-TMR1LnSFiWZMJkCgNf5ATSvAheTT2NvKIwiVwdBPHxjBI7n/JbWd4gaZ16DVd9foAXdvDz+sB5yxZTwMjPRxpw==} peerDependencies: react: ^19.2.3 react@19.2.3: - resolution: - { - integrity: sha512-Ku/hhYbVjOQnXDZFv2+RibmLFGwFdeeKHFcOTlrt7xplBnya5OGn/hIRDsqDiSUcfORsDC7MPxwork8jBwsIWA==, - } - engines: { node: '>=0.10.0' } + resolution: {integrity: sha512-Ku/hhYbVjOQnXDZFv2+RibmLFGwFdeeKHFcOTlrt7xplBnya5OGn/hIRDsqDiSUcfORsDC7MPxwork8jBwsIWA==} + engines: {node: '>=0.10.0'} read-cmd-shim@4.0.0: - resolution: - { - integrity: sha512-yILWifhaSEEytfXI76kB9xEEiG1AiozaCJZ83A87ytjRiN+jVibXjedjCRNjoZviinhG+4UkalO3mWTd8u5O0Q==, - } - engines: { node: ^14.17.0 || ^16.13.0 || >=18.0.0 } + resolution: {integrity: sha512-yILWifhaSEEytfXI76kB9xEEiG1AiozaCJZ83A87ytjRiN+jVibXjedjCRNjoZviinhG+4UkalO3mWTd8u5O0Q==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} read-package-json-fast@3.0.2: - resolution: - { - integrity: sha512-0J+Msgym3vrLOUB3hzQCuZHII0xkNGCtz/HJH9xZshwv9DbDwkw1KaE3gx/e2J5rpEY5rtOy6cyhKOPrkP7FZw==, - } - engines: { node: ^14.17.0 || ^16.13.0 || >=18.0.0 } + resolution: {integrity: sha512-0J+Msgym3vrLOUB3hzQCuZHII0xkNGCtz/HJH9xZshwv9DbDwkw1KaE3gx/e2J5rpEY5rtOy6cyhKOPrkP7FZw==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} read-pkg-up@3.0.0: - resolution: - { - integrity: sha512-YFzFrVvpC6frF1sz8psoHDBGF7fLPc+llq/8NB43oagqWkx8ar5zYtsTORtOjw9W2RHLpWP+zTWwBvf1bCmcSw==, - } - engines: { node: '>=4' } + resolution: {integrity: sha512-YFzFrVvpC6frF1sz8psoHDBGF7fLPc+llq/8NB43oagqWkx8ar5zYtsTORtOjw9W2RHLpWP+zTWwBvf1bCmcSw==} + engines: {node: '>=4'} read-pkg-up@7.0.1: - resolution: - { - integrity: sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==} + engines: {node: '>=8'} read-pkg@3.0.0: - resolution: - { - integrity: sha512-BLq/cCO9two+lBgiTYNqD6GdtK8s4NpaWrl6/rCO9w0TUS8oJl7cmToOZfRYllKTISY6nt1U7jQ53brmKqY6BA==, - } - engines: { node: '>=4' } + resolution: {integrity: sha512-BLq/cCO9two+lBgiTYNqD6GdtK8s4NpaWrl6/rCO9w0TUS8oJl7cmToOZfRYllKTISY6nt1U7jQ53brmKqY6BA==} + engines: {node: '>=4'} read-pkg@5.2.0: - resolution: - { - integrity: sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==} + engines: {node: '>=8'} read@3.0.1: - resolution: - { - integrity: sha512-SLBrDU/Srs/9EoWhU5GdbAoxG1GzpQHo/6qiGItaoLJ1thmYpcNIM1qISEUvyHBzfGlWIyd6p2DNi1oV1VmAuw==, - } - engines: { node: ^14.17.0 || ^16.13.0 || >=18.0.0 } + resolution: {integrity: sha512-SLBrDU/Srs/9EoWhU5GdbAoxG1GzpQHo/6qiGItaoLJ1thmYpcNIM1qISEUvyHBzfGlWIyd6p2DNi1oV1VmAuw==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} readable-stream@1.0.34: - resolution: - { - integrity: sha512-ok1qVCJuRkNmvebYikljxJA/UEsKwLl2nI1OmaqAu4/UE+h0wKCHok4XkL/gvi39OacXvw59RJUOFUkDib2rHg==, - } + resolution: {integrity: sha512-ok1qVCJuRkNmvebYikljxJA/UEsKwLl2nI1OmaqAu4/UE+h0wKCHok4XkL/gvi39OacXvw59RJUOFUkDib2rHg==} readable-stream@2.3.8: - resolution: - { - integrity: sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==, - } + resolution: {integrity: sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==} readable-stream@3.6.2: - resolution: - { - integrity: sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==, - } - engines: { node: '>= 6' } + resolution: {integrity: sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==} + engines: {node: '>= 6'} readdirp@3.6.0: - resolution: - { - integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==, - } - engines: { node: '>=8.10.0' } + resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==} + engines: {node: '>=8.10.0'} redent@3.0.0: - resolution: - { - integrity: sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==} + engines: {node: '>=8'} regenerator-runtime@0.10.5: - resolution: - { - integrity: sha512-02YopEIhAgiBHWeoTiA8aitHDt8z6w+rQqNuIftlM+ZtvSl/brTouaU7DW6GO/cHtvxJvS4Hwv2ibKdxIRi24w==, - } + resolution: {integrity: sha512-02YopEIhAgiBHWeoTiA8aitHDt8z6w+rQqNuIftlM+ZtvSl/brTouaU7DW6GO/cHtvxJvS4Hwv2ibKdxIRi24w==} relateurl@0.2.7: - resolution: - { - integrity: sha512-G08Dxvm4iDN3MLM0EsP62EDV9IuhXPR6blNz6Utcp7zyV3tr4HVNINt6MpaRWbxoOHT3Q7YN2P+jaHX8vUbgog==, - } - engines: { node: '>= 0.10' } + resolution: {integrity: sha512-G08Dxvm4iDN3MLM0EsP62EDV9IuhXPR6blNz6Utcp7zyV3tr4HVNINt6MpaRWbxoOHT3Q7YN2P+jaHX8vUbgog==} + engines: {node: '>= 0.10'} remove-accents@0.5.0: - resolution: - { - integrity: sha512-8g3/Otx1eJaVD12e31UbJj1YzdtVvzH85HV7t+9MJYk/u3XmkOUJ5Ys9wQrf9PCPK8+xn4ymzqYCiZl6QWKn+A==, - } + resolution: {integrity: sha512-8g3/Otx1eJaVD12e31UbJj1YzdtVvzH85HV7t+9MJYk/u3XmkOUJ5Ys9wQrf9PCPK8+xn4ymzqYCiZl6QWKn+A==} request-ip@3.3.0: - resolution: - { - integrity: sha512-cA6Xh6e0fDBBBwH77SLJaJPBmD3nWVAcF9/XAcsrIHdjhFzFiB5aNQFytdjCGPezU3ROwrR11IddKAM08vohxA==, - } + resolution: {integrity: sha512-cA6Xh6e0fDBBBwH77SLJaJPBmD3nWVAcF9/XAcsrIHdjhFzFiB5aNQFytdjCGPezU3ROwrR11IddKAM08vohxA==} require-directory@2.1.1: - resolution: - { - integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==, - } - engines: { node: '>=0.10.0' } + resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==} + engines: {node: '>=0.10.0'} require-from-string@2.0.2: - resolution: - { - integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==, - } - engines: { node: '>=0.10.0' } + resolution: {integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==} + engines: {node: '>=0.10.0'} require-main-filename@2.0.0: - resolution: - { - integrity: sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==, - } + resolution: {integrity: sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==} requires-port@1.0.0: - resolution: - { - integrity: sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==, - } + resolution: {integrity: sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==} resolve-cwd@3.0.0: - resolution: - { - integrity: sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==} + engines: {node: '>=8'} resolve-from@4.0.0: - resolution: - { - integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==, - } - engines: { node: '>=4' } + resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==} + engines: {node: '>=4'} resolve-from@5.0.0: - resolution: - { - integrity: sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==} + engines: {node: '>=8'} resolve-pkg-maps@1.0.0: - resolution: - { - integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==, - } + resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==} resolve.exports@2.0.3: - resolution: - { - integrity: sha512-OcXjMsGdhL4XnbShKpAcSqPMzQoYkYyhbEaeSko47MjRP9NfEQMhZkXL1DoFlt9LWQn4YttrdnV6X2OiyzBi+A==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-OcXjMsGdhL4XnbShKpAcSqPMzQoYkYyhbEaeSko47MjRP9NfEQMhZkXL1DoFlt9LWQn4YttrdnV6X2OiyzBi+A==} + engines: {node: '>=10'} resolve@1.22.11: - resolution: - { - integrity: sha512-RfqAvLnMl313r7c9oclB1HhUEAezcpLjz95wFH4LVuhk9JF/r22qmVP9AMmOU4vMX7Q8pN8jwNg/CSpdFnMjTQ==, - } - engines: { node: '>= 0.4' } + resolution: {integrity: sha512-RfqAvLnMl313r7c9oclB1HhUEAezcpLjz95wFH4LVuhk9JF/r22qmVP9AMmOU4vMX7Q8pN8jwNg/CSpdFnMjTQ==} + engines: {node: '>= 0.4'} hasBin: true restore-cursor@3.1.0: - resolution: - { - integrity: sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==} + engines: {node: '>=8'} retry@0.12.0: - resolution: - { - integrity: sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==, - } - engines: { node: '>= 4' } + resolution: {integrity: sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==} + engines: {node: '>= 4'} reusify@1.1.0: - resolution: - { - integrity: sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==, - } - engines: { iojs: '>=1.0.0', node: '>=0.10.0' } + resolution: {integrity: sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==} + engines: {iojs: '>=1.0.0', node: '>=0.10.0'} rimraf@3.0.2: - resolution: - { - integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==, - } + resolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==} deprecated: Rimraf versions prior to v4 are no longer supported hasBin: true rimraf@4.4.1: - resolution: - { - integrity: sha512-Gk8NlF062+T9CqNGn6h4tls3k6T1+/nXdOcSZVikNVtlRdYpA7wRJJMoXmuvOnLW844rPjdQ7JgXCYM6PPC/og==, - } - engines: { node: '>=14' } + resolution: {integrity: sha512-Gk8NlF062+T9CqNGn6h4tls3k6T1+/nXdOcSZVikNVtlRdYpA7wRJJMoXmuvOnLW844rPjdQ7JgXCYM6PPC/og==} + engines: {node: '>=14'} hasBin: true rollup-plugin-visualizer@6.0.5: - resolution: - { - integrity: sha512-9+HlNgKCVbJDs8tVtjQ43US12eqaiHyyiLMdBwQ7vSZPiHMysGNo2E88TAp1si5wx8NAoYriI2A5kuKfIakmJg==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-9+HlNgKCVbJDs8tVtjQ43US12eqaiHyyiLMdBwQ7vSZPiHMysGNo2E88TAp1si5wx8NAoYriI2A5kuKfIakmJg==} + engines: {node: '>=18'} hasBin: true peerDependencies: rolldown: 1.x || ^1.0.0-beta @@ -13132,39 +8858,24 @@ packages: optional: true rollup@4.57.1: - resolution: - { - integrity: sha512-oQL6lgK3e2QZeQ7gcgIkS2YZPg5slw37hYufJ3edKlfQSGGm8ICoxswK15ntSzF/a8+h7ekRy7k7oWc3BQ7y8A==, - } - engines: { node: '>=18.0.0', npm: '>=8.0.0' } + resolution: {integrity: sha512-oQL6lgK3e2QZeQ7gcgIkS2YZPg5slw37hYufJ3edKlfQSGGm8ICoxswK15ntSzF/a8+h7ekRy7k7oWc3BQ7y8A==} + engines: {node: '>=18.0.0', npm: '>=8.0.0'} hasBin: true router@2.2.0: - resolution: - { - integrity: sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==, - } - engines: { node: '>= 18' } + resolution: {integrity: sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==} + engines: {node: '>= 18'} run-async@2.4.1: - resolution: - { - integrity: sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ==, - } - engines: { node: '>=0.12.0' } + resolution: {integrity: sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ==} + engines: {node: '>=0.12.0'} run-parallel@1.2.0: - resolution: - { - integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==, - } + resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} ruru-types@2.0.0-rc.5: - resolution: - { - integrity: sha512-ttaNhhJ/piofg4ZDsGlHeMmqiE1k/zcbrH3d/FAdZL9dvp4k59KbGaGJvqyRUEaLwO45F1rQV0Ws+30HFGdKTg==, - } - engines: { node: '>=22' } + resolution: {integrity: sha512-ttaNhhJ/piofg4ZDsGlHeMmqiE1k/zcbrH3d/FAdZL9dvp4k59KbGaGJvqyRUEaLwO45F1rQV0Ws+30HFGdKTg==} + engines: {node: '>=22'} peerDependencies: graphql: ^16.9.0 react: ^18 || ^19 @@ -13176,11 +8887,8 @@ packages: optional: true ruru@2.0.0-rc.6: - resolution: - { - integrity: sha512-+xqJhDxDs3wEtT8GG0PYjYIZo92JHcpfntbVzTrXC9pAof93Zcm1bsnBv7PdXaJqLEEwRFZhO4mdm0EbJ4Lrhg==, - } - engines: { node: '>=22' } + resolution: {integrity: sha512-+xqJhDxDs3wEtT8GG0PYjYIZo92JHcpfntbVzTrXC9pAof93Zcm1bsnBv7PdXaJqLEEwRFZhO4mdm0EbJ4Lrhg==} + engines: {node: '>=22'} hasBin: true peerDependencies: graphile-config: ^1.0.0-rc.5 @@ -13194,703 +8902,394 @@ packages: optional: true rxjs@7.8.2: - resolution: - { - integrity: sha512-dhKf903U/PQZY6boNNtAGdWbG85WAbjT/1xYoZIC7FAY0yWapOBQVsVrDl58W86//e1VpMNBtRV4MaXfdMySFA==, - } + resolution: {integrity: sha512-dhKf903U/PQZY6boNNtAGdWbG85WAbjT/1xYoZIC7FAY0yWapOBQVsVrDl58W86//e1VpMNBtRV4MaXfdMySFA==} safe-buffer@5.1.2: - resolution: - { - integrity: sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==, - } + resolution: {integrity: sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==} safe-buffer@5.2.1: - resolution: - { - integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==, - } + resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==} safer-buffer@2.1.2: - resolution: - { - integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==, - } + resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} scheduler@0.27.0: - resolution: - { - integrity: sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==, - } + resolution: {integrity: sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==} semver@5.7.2: - resolution: - { - integrity: sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==, - } + resolution: {integrity: sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==} hasBin: true semver@6.3.1: - resolution: - { - integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==, - } + resolution: {integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==} hasBin: true semver@7.7.3: - resolution: - { - integrity: sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q==} + engines: {node: '>=10'} hasBin: true semver@7.7.4: - resolution: - { - integrity: sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==} + engines: {node: '>=10'} hasBin: true send@1.2.1: - resolution: - { - integrity: sha512-1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ==, - } - engines: { node: '>= 18' } + resolution: {integrity: sha512-1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ==} + engines: {node: '>= 18'} serve-static@2.2.1: - resolution: - { - integrity: sha512-xRXBn0pPqQTVQiC8wyQrKs2MOlX24zQ0POGaj0kultvoOCstBQM5yvOhAVSUwOMjQtTvsPWoNCHfPGwaaQJhTw==, - } - engines: { node: '>= 18' } + resolution: {integrity: sha512-xRXBn0pPqQTVQiC8wyQrKs2MOlX24zQ0POGaj0kultvoOCstBQM5yvOhAVSUwOMjQtTvsPWoNCHfPGwaaQJhTw==} + engines: {node: '>= 18'} set-blocking@2.0.0: - resolution: - { - integrity: sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==, - } + resolution: {integrity: sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==} set-value@4.1.0: - resolution: - { - integrity: sha512-zTEg4HL0RwVrqcWs3ztF+x1vkxfm0lP+MQQFPiMJTKVceBwEV0A569Ou8l9IYQG8jOZdMVI1hGsc0tmeD2o/Lw==, - } - engines: { node: '>=11.0' } + resolution: {integrity: sha512-zTEg4HL0RwVrqcWs3ztF+x1vkxfm0lP+MQQFPiMJTKVceBwEV0A569Ou8l9IYQG8jOZdMVI1hGsc0tmeD2o/Lw==} + engines: {node: '>=11.0'} setprototypeof@1.2.0: - resolution: - { - integrity: sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==, - } + resolution: {integrity: sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==} shallow-clone@3.0.1: - resolution: - { - integrity: sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==} + engines: {node: '>=8'} shallowequal@1.1.0: - resolution: - { - integrity: sha512-y0m1JoUZSlPAjXVtPPW70aZWfIL/dSP7AFkRnniLCrK/8MDKog3TySTBmckD+RObVxH0v4Tox67+F14PdED2oQ==, - } + resolution: {integrity: sha512-y0m1JoUZSlPAjXVtPPW70aZWfIL/dSP7AFkRnniLCrK/8MDKog3TySTBmckD+RObVxH0v4Tox67+F14PdED2oQ==} shebang-command@2.0.0: - resolution: - { - integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==} + engines: {node: '>=8'} shebang-regex@3.0.0: - resolution: - { - integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} + engines: {node: '>=8'} shelljs@0.10.0: - resolution: - { - integrity: sha512-Jex+xw5Mg2qMZL3qnzXIfaxEtBaC4n7xifqaqtrZDdlheR70OGkydrPJWT0V1cA1k3nanC86x9FwAmQl6w3Klw==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-Jex+xw5Mg2qMZL3qnzXIfaxEtBaC4n7xifqaqtrZDdlheR70OGkydrPJWT0V1cA1k3nanC86x9FwAmQl6w3Klw==} + engines: {node: '>=18'} side-channel-list@1.0.0: - resolution: - { - integrity: sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==, - } - engines: { node: '>= 0.4' } + resolution: {integrity: sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==} + engines: {node: '>= 0.4'} side-channel-map@1.0.1: - resolution: - { - integrity: sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==, - } - engines: { node: '>= 0.4' } + resolution: {integrity: sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==} + engines: {node: '>= 0.4'} side-channel-weakmap@1.0.2: - resolution: - { - integrity: sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==, - } - engines: { node: '>= 0.4' } + resolution: {integrity: sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==} + engines: {node: '>= 0.4'} side-channel@1.1.0: - resolution: - { - integrity: sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==, - } - engines: { node: '>= 0.4' } + resolution: {integrity: sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==} + engines: {node: '>= 0.4'} signal-exit@3.0.7: - resolution: - { - integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==, - } + resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==} signal-exit@4.1.0: - resolution: - { - integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==, - } - engines: { node: '>=14' } + resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} + engines: {node: '>=14'} sigstore@2.3.1: - resolution: - { - integrity: sha512-8G+/XDU8wNsJOQS5ysDVO0Etg9/2uA5gR9l4ZwijjlwxBcrU6RPfwi2+jJmbP+Ap1Hlp/nVAaEO4Fj22/SL2gQ==, - } - engines: { node: ^16.14.0 || >=18.0.0 } + resolution: {integrity: sha512-8G+/XDU8wNsJOQS5ysDVO0Etg9/2uA5gR9l4ZwijjlwxBcrU6RPfwi2+jJmbP+Ap1Hlp/nVAaEO4Fj22/SL2gQ==} + engines: {node: ^16.14.0 || >=18.0.0} simple-update-notifier@2.0.0: - resolution: - { - integrity: sha512-a2B9Y0KlNXl9u/vsW6sTIu9vGEpfKu2wRV6l1H3XEas/0gUIzGzBoP/IouTcUQbm9JWZLH3COxyn03TYlFax6w==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-a2B9Y0KlNXl9u/vsW6sTIu9vGEpfKu2wRV6l1H3XEas/0gUIzGzBoP/IouTcUQbm9JWZLH3COxyn03TYlFax6w==} + engines: {node: '>=10'} slash@3.0.0: - resolution: - { - integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==} + engines: {node: '>=8'} slick@1.12.2: - resolution: - { - integrity: sha512-4qdtOGcBjral6YIBCWJ0ljFSKNLz9KkhbWtuGvUyRowl1kxfuE1x/Z/aJcaiilpb3do9bl5K7/1h9XC5wWpY/A==, - } + resolution: {integrity: sha512-4qdtOGcBjral6YIBCWJ0ljFSKNLz9KkhbWtuGvUyRowl1kxfuE1x/Z/aJcaiilpb3do9bl5K7/1h9XC5wWpY/A==} smart-buffer@4.2.0: - resolution: - { - integrity: sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==, - } - engines: { node: '>= 6.0.0', npm: '>= 3.0.0' } + resolution: {integrity: sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==} + engines: {node: '>= 6.0.0', npm: '>= 3.0.0'} smtp-server@3.18.0: - resolution: - { - integrity: sha512-xINTnh0H8JDAKOAGSnFX8mgXB/L4Oz8dG4P0EgKAzJEszngxEEx4vOys+yNpsUc6yIyTKS8m2BcIffq4Htma/w==, - } - engines: { node: '>=18.18.0' } + resolution: {integrity: sha512-xINTnh0H8JDAKOAGSnFX8mgXB/L4Oz8dG4P0EgKAzJEszngxEEx4vOys+yNpsUc6yIyTKS8m2BcIffq4Htma/w==} + engines: {node: '>=18.18.0'} socks-proxy-agent@8.0.5: - resolution: - { - integrity: sha512-HehCEsotFqbPW9sJ8WVYB6UbmIMv7kUUORIF2Nncq4VQvBfNBLibW9YZR5dlYCSUhwcD628pRllm7n+E+YTzJw==, - } - engines: { node: '>= 14' } + resolution: {integrity: sha512-HehCEsotFqbPW9sJ8WVYB6UbmIMv7kUUORIF2Nncq4VQvBfNBLibW9YZR5dlYCSUhwcD628pRllm7n+E+YTzJw==} + engines: {node: '>= 14'} socks@2.8.7: - resolution: - { - integrity: sha512-HLpt+uLy/pxB+bum/9DzAgiKS8CX1EvbWxI4zlmgGCExImLdiad2iCwXT5Z4c9c3Eq8rP2318mPW2c+QbtjK8A==, - } - engines: { node: '>= 10.0.0', npm: '>= 3.0.0' } + resolution: {integrity: sha512-HLpt+uLy/pxB+bum/9DzAgiKS8CX1EvbWxI4zlmgGCExImLdiad2iCwXT5Z4c9c3Eq8rP2318mPW2c+QbtjK8A==} + engines: {node: '>= 10.0.0', npm: '>= 3.0.0'} sort-keys@2.0.0: - resolution: - { - integrity: sha512-/dPCrG1s3ePpWm6yBbxZq5Be1dXGLyLn9Z791chDC3NFrpkVbWGzkBwPN1knaciexFXgRJ7hzdnwZ4stHSDmjg==, - } - engines: { node: '>=4' } + resolution: {integrity: sha512-/dPCrG1s3ePpWm6yBbxZq5Be1dXGLyLn9Z791chDC3NFrpkVbWGzkBwPN1knaciexFXgRJ7hzdnwZ4stHSDmjg==} + engines: {node: '>=4'} sorted-array-functions@1.3.0: - resolution: - { - integrity: sha512-2sqgzeFlid6N4Z2fUQ1cvFmTOLRi/sEDzSQ0OKYchqgoPmQBVyM3959qYx3fpS6Esef80KjmpgPeEr028dP3OA==, - } + resolution: {integrity: sha512-2sqgzeFlid6N4Z2fUQ1cvFmTOLRi/sEDzSQ0OKYchqgoPmQBVyM3959qYx3fpS6Esef80KjmpgPeEr028dP3OA==} source-map-js@1.2.1: - resolution: - { - integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==, - } - engines: { node: '>=0.10.0' } + resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==} + engines: {node: '>=0.10.0'} source-map-resolve@0.6.0: - resolution: - { - integrity: sha512-KXBr9d/fO/bWo97NXsPIAW1bFSBOuCnjbNTBMO7N59hsv5i9yzRDfcYwwt0l04+VqnKC+EwzvJZIP/qkuMgR/w==, - } + resolution: {integrity: sha512-KXBr9d/fO/bWo97NXsPIAW1bFSBOuCnjbNTBMO7N59hsv5i9yzRDfcYwwt0l04+VqnKC+EwzvJZIP/qkuMgR/w==} deprecated: See https://github.com/lydell/source-map-resolve#deprecated source-map-support@0.5.13: - resolution: - { - integrity: sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==, - } + resolution: {integrity: sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==} source-map@0.6.1: - resolution: - { - integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==, - } - engines: { node: '>=0.10.0' } + resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==} + engines: {node: '>=0.10.0'} source-map@0.7.6: - resolution: - { - integrity: sha512-i5uvt8C3ikiWeNZSVZNWcfZPItFQOsYTUAOkcUPGd8DqDy1uOUikjt5dG+uRlwyvR108Fb9DOd4GvXfT0N2/uQ==, - } - engines: { node: '>= 12' } + resolution: {integrity: sha512-i5uvt8C3ikiWeNZSVZNWcfZPItFQOsYTUAOkcUPGd8DqDy1uOUikjt5dG+uRlwyvR108Fb9DOd4GvXfT0N2/uQ==} + engines: {node: '>= 12'} spdx-correct@3.2.0: - resolution: - { - integrity: sha512-kN9dJbvnySHULIluDHy32WHRUu3Og7B9sbY7tsFLctQkIqnMh3hErYgdMjTYuqmcXX+lK5T1lnUt3G7zNswmZA==, - } + resolution: {integrity: sha512-kN9dJbvnySHULIluDHy32WHRUu3Og7B9sbY7tsFLctQkIqnMh3hErYgdMjTYuqmcXX+lK5T1lnUt3G7zNswmZA==} spdx-exceptions@2.5.0: - resolution: - { - integrity: sha512-PiU42r+xO4UbUS1buo3LPJkjlO7430Xn5SVAhdpzzsPHsjbYVflnnFdATgabnLude+Cqu25p6N+g2lw/PFsa4w==, - } + resolution: {integrity: sha512-PiU42r+xO4UbUS1buo3LPJkjlO7430Xn5SVAhdpzzsPHsjbYVflnnFdATgabnLude+Cqu25p6N+g2lw/PFsa4w==} spdx-expression-parse@3.0.1: - resolution: - { - integrity: sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==, - } + resolution: {integrity: sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==} spdx-license-ids@3.0.22: - resolution: - { - integrity: sha512-4PRT4nh1EImPbt2jASOKHX7PB7I+e4IWNLvkKFDxNhJlfjbYlleYQh285Z/3mPTHSAK/AvdMmw5BNNuYH8ShgQ==, - } + resolution: {integrity: sha512-4PRT4nh1EImPbt2jASOKHX7PB7I+e4IWNLvkKFDxNhJlfjbYlleYQh285Z/3mPTHSAK/AvdMmw5BNNuYH8ShgQ==} split2@3.2.2: - resolution: - { - integrity: sha512-9NThjpgZnifTkJpzTZ7Eue85S49QwpNhZTq6GRJwObb6jnLFNGB7Qm73V5HewTROPyxD0C29xqmaI68bQtV+hg==, - } + resolution: {integrity: sha512-9NThjpgZnifTkJpzTZ7Eue85S49QwpNhZTq6GRJwObb6jnLFNGB7Qm73V5HewTROPyxD0C29xqmaI68bQtV+hg==} split2@4.2.0: - resolution: - { - integrity: sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==, - } - engines: { node: '>= 10.x' } + resolution: {integrity: sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==} + engines: {node: '>= 10.x'} split@1.0.1: - resolution: - { - integrity: sha512-mTyOoPbrivtXnwnIxZRFYRrPNtEFKlpB2fvjSnCQUiAA6qAZzqwna5envK4uk6OIeP17CsdF3rSBGYVBsU0Tkg==, - } + resolution: {integrity: sha512-mTyOoPbrivtXnwnIxZRFYRrPNtEFKlpB2fvjSnCQUiAA6qAZzqwna5envK4uk6OIeP17CsdF3rSBGYVBsU0Tkg==} sprintf-js@1.0.3: - resolution: - { - integrity: sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==, - } + resolution: {integrity: sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==} ssri@10.0.6: - resolution: - { - integrity: sha512-MGrFH9Z4NP9Iyhqn16sDtBpRRNJ0Y2hNa6D65h736fVSaPCHr4DM4sWUNvVaSuC+0OBGhwsrydQwmgfg5LncqQ==, - } - engines: { node: ^14.17.0 || ^16.13.0 || >=18.0.0 } + resolution: {integrity: sha512-MGrFH9Z4NP9Iyhqn16sDtBpRRNJ0Y2hNa6D65h736fVSaPCHr4DM4sWUNvVaSuC+0OBGhwsrydQwmgfg5LncqQ==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} stack-utils@2.0.6: - resolution: - { - integrity: sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==} + engines: {node: '>=10'} statuses@1.5.0: - resolution: - { - integrity: sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==, - } - engines: { node: '>= 0.6' } + resolution: {integrity: sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==} + engines: {node: '>= 0.6'} statuses@2.0.2: - resolution: - { - integrity: sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==, - } - engines: { node: '>= 0.8' } + resolution: {integrity: sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==} + engines: {node: '>= 0.8'} stream-browserify@3.0.0: - resolution: - { - integrity: sha512-H73RAHsVBapbim0tU2JwwOiXUj+fikfiaoYAKHF3VJfA0pe2BCzkhAHBlLG6REzE+2WNZcxOXjK7lkso+9euLA==, - } + resolution: {integrity: sha512-H73RAHsVBapbim0tU2JwwOiXUj+fikfiaoYAKHF3VJfA0pe2BCzkhAHBlLG6REzE+2WNZcxOXjK7lkso+9euLA==} streamsearch@0.1.2: - resolution: - { - integrity: sha512-jos8u++JKm0ARcSUTAZXOVC0mSox7Bhn6sBgty73P1f3JGf7yG2clTbBNHUdde/kdvP2FESam+vM6l8jBrNxHA==, - } - engines: { node: '>=0.8.0' } + resolution: {integrity: sha512-jos8u++JKm0ARcSUTAZXOVC0mSox7Bhn6sBgty73P1f3JGf7yG2clTbBNHUdde/kdvP2FESam+vM6l8jBrNxHA==} + engines: {node: '>=0.8.0'} streamsearch@1.1.0: - resolution: - { - integrity: sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==, - } - engines: { node: '>=10.0.0' } + resolution: {integrity: sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==} + engines: {node: '>=10.0.0'} strfy-js@3.1.10: - resolution: - { - integrity: sha512-KQXNrvhnWpn4ya25WSG6EvJC6oqdeXlwMoitGl3qEJ2wnELV/sQO6uBy6CsIWTsVOMAt0B7/xvM40ucu5c8AuA==, - } + resolution: {integrity: sha512-KQXNrvhnWpn4ya25WSG6EvJC6oqdeXlwMoitGl3qEJ2wnELV/sQO6uBy6CsIWTsVOMAt0B7/xvM40ucu5c8AuA==} string-length@4.0.2: - resolution: - { - integrity: sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==} + engines: {node: '>=10'} string-width@4.2.3: - resolution: - { - integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==} + engines: {node: '>=8'} string-width@5.1.2: - resolution: - { - integrity: sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==, - } - engines: { node: '>=12' } + resolution: {integrity: sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==} + engines: {node: '>=12'} string_decoder@0.10.31: - resolution: - { - integrity: sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ==, - } + resolution: {integrity: sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ==} string_decoder@1.1.1: - resolution: - { - integrity: sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==, - } + resolution: {integrity: sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==} string_decoder@1.3.0: - resolution: - { - integrity: sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==, - } + resolution: {integrity: sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==} strip-ansi@6.0.1: - resolution: - { - integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==} + engines: {node: '>=8'} strip-ansi@7.1.2: - resolution: - { - integrity: sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA==, - } - engines: { node: '>=12' } + resolution: {integrity: sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA==} + engines: {node: '>=12'} strip-bom@3.0.0: - resolution: - { - integrity: sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==, - } - engines: { node: '>=4' } + resolution: {integrity: sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==} + engines: {node: '>=4'} strip-bom@4.0.0: - resolution: - { - integrity: sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==} + engines: {node: '>=8'} strip-final-newline@2.0.0: - resolution: - { - integrity: sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==, - } - engines: { node: '>=6' } + resolution: {integrity: sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==} + engines: {node: '>=6'} strip-indent@3.0.0: - resolution: - { - integrity: sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==} + engines: {node: '>=8'} strip-json-comments@3.1.1: - resolution: - { - integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==} + engines: {node: '>=8'} strnum@2.1.2: - resolution: - { - integrity: sha512-l63NF9y/cLROq/yqKXSLtcMeeyOfnSQlfMSlzFt/K73oIaD8DGaQWd7Z34X9GPiKqP5rbSh84Hl4bOlLcjiSrQ==, - } + resolution: {integrity: sha512-l63NF9y/cLROq/yqKXSLtcMeeyOfnSQlfMSlzFt/K73oIaD8DGaQWd7Z34X9GPiKqP5rbSh84Hl4bOlLcjiSrQ==} styled-components@5.3.11: - resolution: - { - integrity: sha512-uuzIIfnVkagcVHv9nE0VPlHPSCmXIUGKfJ42LNjxCCTDTL5sgnJ8Z7GZBq0EnLYGln77tPpEpExt2+qa+cZqSw==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-uuzIIfnVkagcVHv9nE0VPlHPSCmXIUGKfJ42LNjxCCTDTL5sgnJ8Z7GZBq0EnLYGln77tPpEpExt2+qa+cZqSw==} + engines: {node: '>=10'} peerDependencies: react: '>= 16.8.0' react-dom: '>= 16.8.0' react-is: '>= 16.8.0' styled-system@5.1.5: - resolution: - { - integrity: sha512-7VoD0o2R3RKzOzPK0jYrVnS8iJdfkKsQJNiLRDjikOpQVqQHns/DXWaPZOH4tIKkhAT7I6wIsy9FWTWh2X3q+A==, - } + resolution: {integrity: sha512-7VoD0o2R3RKzOzPK0jYrVnS8iJdfkKsQJNiLRDjikOpQVqQHns/DXWaPZOH4tIKkhAT7I6wIsy9FWTWh2X3q+A==} superagent@10.3.0: - resolution: - { - integrity: sha512-B+4Ik7ROgVKrQsXTV0Jwp2u+PXYLSlqtDAhYnkkD+zn3yg8s/zjA2MeGayPoY/KICrbitwneDHrjSotxKL+0XQ==, - } - engines: { node: '>=14.18.0' } + resolution: {integrity: sha512-B+4Ik7ROgVKrQsXTV0Jwp2u+PXYLSlqtDAhYnkkD+zn3yg8s/zjA2MeGayPoY/KICrbitwneDHrjSotxKL+0XQ==} + engines: {node: '>=14.18.0'} supertest@7.2.2: - resolution: - { - integrity: sha512-oK8WG9diS3DlhdUkcFn4tkNIiIbBx9lI2ClF8K+b2/m8Eyv47LSawxUzZQSNKUrVb2KsqeTDCcjAAVPYaSLVTA==, - } - engines: { node: '>=14.18.0' } + resolution: {integrity: sha512-oK8WG9diS3DlhdUkcFn4tkNIiIbBx9lI2ClF8K+b2/m8Eyv47LSawxUzZQSNKUrVb2KsqeTDCcjAAVPYaSLVTA==} + engines: {node: '>=14.18.0'} supports-color@5.5.0: - resolution: - { - integrity: sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==, - } - engines: { node: '>=4' } + resolution: {integrity: sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==} + engines: {node: '>=4'} supports-color@7.2.0: - resolution: - { - integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} + engines: {node: '>=8'} supports-color@8.1.1: - resolution: - { - integrity: sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==} + engines: {node: '>=10'} supports-preserve-symlinks-flag@1.0.0: - resolution: - { - integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==, - } - engines: { node: '>= 0.4' } + resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} + engines: {node: '>= 0.4'} synckit@0.11.12: - resolution: - { - integrity: sha512-Bh7QjT8/SuKUIfObSXNHNSK6WHo6J1tHCqJsuaFDP7gP0fkzSfTxI8y85JrppZ0h8l0maIgc2tfuZQ6/t3GtnQ==, - } - engines: { node: ^14.18.0 || >=16.0.0 } + resolution: {integrity: sha512-Bh7QjT8/SuKUIfObSXNHNSK6WHo6J1tHCqJsuaFDP7gP0fkzSfTxI8y85JrppZ0h8l0maIgc2tfuZQ6/t3GtnQ==} + engines: {node: ^14.18.0 || >=16.0.0} tabbable@6.4.0: - resolution: - { - integrity: sha512-05PUHKSNE8ou2dwIxTngl4EzcnsCDZGJ/iCLtDflR/SHB/ny14rXc+qU5P4mG9JkusiV7EivzY9Mhm55AzAvCg==, - } + resolution: {integrity: sha512-05PUHKSNE8ou2dwIxTngl4EzcnsCDZGJ/iCLtDflR/SHB/ny14rXc+qU5P4mG9JkusiV7EivzY9Mhm55AzAvCg==} tamedevil@0.1.0-rc.4: - resolution: - { - integrity: sha512-w6gmlfoKCBfOTjLzTVcUmEPuhWEes2lFZkC+y+KLsP3AUNiRZcyAgefosCaxOEehlHB6Rt4jRbFDSMBxQbGsug==, - } - engines: { node: '>=22' } + resolution: {integrity: sha512-w6gmlfoKCBfOTjLzTVcUmEPuhWEes2lFZkC+y+KLsP3AUNiRZcyAgefosCaxOEehlHB6Rt4jRbFDSMBxQbGsug==} + engines: {node: '>=22'} tar-stream@2.2.0: - resolution: - { - integrity: sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==, - } - engines: { node: '>=6' } + resolution: {integrity: sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==} + engines: {node: '>=6'} tar@6.2.1: - resolution: - { - integrity: sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A==} + engines: {node: '>=10'} deprecated: Old versions of tar are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me temp-dir@1.0.0: - resolution: - { - integrity: sha512-xZFXEGbG7SNC3itwBzI3RYjq/cEhBkx2hJuKGIUOcEULmkQExXiHat2z/qkISYsuR+IKumhEfKKbV5qXmhICFQ==, - } - engines: { node: '>=4' } + resolution: {integrity: sha512-xZFXEGbG7SNC3itwBzI3RYjq/cEhBkx2hJuKGIUOcEULmkQExXiHat2z/qkISYsuR+IKumhEfKKbV5qXmhICFQ==} + engines: {node: '>=4'} test-exclude@6.0.0: - resolution: - { - integrity: sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==} + engines: {node: '>=8'} text-extensions@1.9.0: - resolution: - { - integrity: sha512-wiBrwC1EhBelW12Zy26JeOUkQ5mRu+5o8rpsJk5+2t+Y5vE7e842qtZDQ2g1NpX/29HdyFeJ4nSIhI47ENSxlQ==, - } - engines: { node: '>=0.10' } + resolution: {integrity: sha512-wiBrwC1EhBelW12Zy26JeOUkQ5mRu+5o8rpsJk5+2t+Y5vE7e842qtZDQ2g1NpX/29HdyFeJ4nSIhI47ENSxlQ==} + engines: {node: '>=0.10'} through2@2.0.5: - resolution: - { - integrity: sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==, - } + resolution: {integrity: sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==} through2@3.0.2: - resolution: - { - integrity: sha512-enaDQ4MUyP2W6ZyT6EsMzqBPZaM/avg8iuo+l2d3QCs0J+6RaqkHV/2/lOwDTueBHeJ/2LG9lrLW3d5rWPucuQ==, - } + resolution: {integrity: sha512-enaDQ4MUyP2W6ZyT6EsMzqBPZaM/avg8iuo+l2d3QCs0J+6RaqkHV/2/lOwDTueBHeJ/2LG9lrLW3d5rWPucuQ==} through@2.3.8: - resolution: - { - integrity: sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==, - } + resolution: {integrity: sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==} tinyglobby@0.2.12: - resolution: - { - integrity: sha512-qkf4trmKSIiMTs/E63cxH+ojC2unam7rJ0WrauAzpT3ECNTxGRMlaXxVbfxMUC/w0LaYk6jQ4y/nGR9uBO3tww==, - } - engines: { node: '>=12.0.0' } + resolution: {integrity: sha512-qkf4trmKSIiMTs/E63cxH+ojC2unam7rJ0WrauAzpT3ECNTxGRMlaXxVbfxMUC/w0LaYk6jQ4y/nGR9uBO3tww==} + engines: {node: '>=12.0.0'} tinyglobby@0.2.15: - resolution: - { - integrity: sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==, - } - engines: { node: '>=12.0.0' } + resolution: {integrity: sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==} + engines: {node: '>=12.0.0'} tinypool@2.0.0: - resolution: - { - integrity: sha512-/RX9RzeH2xU5ADE7n2Ykvmi9ED3FBGPAjw9u3zucrNNaEBIO0HPSYgL0NT7+3p147ojeSdaVu08F6hjpv31HJg==, - } - engines: { node: ^20.0.0 || >=22.0.0 } + resolution: {integrity: sha512-/RX9RzeH2xU5ADE7n2Ykvmi9ED3FBGPAjw9u3zucrNNaEBIO0HPSYgL0NT7+3p147ojeSdaVu08F6hjpv31HJg==} + engines: {node: ^20.0.0 || >=22.0.0} tmp@0.2.5: - resolution: - { - integrity: sha512-voyz6MApa1rQGUxT3E+BK7/ROe8itEx7vD8/HEvt4xwXucvQ5G5oeEiHkmHZJuBO21RpOf+YYm9MOivj709jow==, - } - engines: { node: '>=14.14' } + resolution: {integrity: sha512-voyz6MApa1rQGUxT3E+BK7/ROe8itEx7vD8/HEvt4xwXucvQ5G5oeEiHkmHZJuBO21RpOf+YYm9MOivj709jow==} + engines: {node: '>=14.14'} tmpl@1.0.5: - resolution: - { - integrity: sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==, - } + resolution: {integrity: sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==} to-regex-range@5.0.1: - resolution: - { - integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==, - } - engines: { node: '>=8.0' } + resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} + engines: {node: '>=8.0'} toidentifier@1.0.1: - resolution: - { - integrity: sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==, - } - engines: { node: '>=0.6' } + resolution: {integrity: sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==} + engines: {node: '>=0.6'} touch@3.1.1: - resolution: - { - integrity: sha512-r0eojU4bI8MnHr8c5bNo7lJDdI2qXlWWJk6a9EAFG7vbhTjElYhBVS3/miuE0uOuoLdb8Mc/rVfsmm6eo5o9GA==, - } + resolution: {integrity: sha512-r0eojU4bI8MnHr8c5bNo7lJDdI2qXlWWJk6a9EAFG7vbhTjElYhBVS3/miuE0uOuoLdb8Mc/rVfsmm6eo5o9GA==} hasBin: true tr46@0.0.3: - resolution: - { - integrity: sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==, - } + resolution: {integrity: sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==} transliteration@2.6.1: - resolution: - { - integrity: sha512-hJ9BhrQAOnNTbpOr1MxsNjZISkn7ppvF5TKUeFmTE1mG4ZPD/XVxF0L0LUoIUCWmQyxH0gJpVtfYLAWf298U9w==, - } - engines: { node: '>=20.0.0' } + resolution: {integrity: sha512-hJ9BhrQAOnNTbpOr1MxsNjZISkn7ppvF5TKUeFmTE1mG4ZPD/XVxF0L0LUoIUCWmQyxH0gJpVtfYLAWf298U9w==} + engines: {node: '>=20.0.0'} hasBin: true treeverse@3.0.0: - resolution: - { - integrity: sha512-gcANaAnd2QDZFmHFEOF4k7uc1J/6a6z3DJMd/QwEyxLoKGiptJRwid582r7QIsFlFMIZ3SnxfS52S4hm2DHkuQ==, - } - engines: { node: ^14.17.0 || ^16.13.0 || >=18.0.0 } + resolution: {integrity: sha512-gcANaAnd2QDZFmHFEOF4k7uc1J/6a6z3DJMd/QwEyxLoKGiptJRwid582r7QIsFlFMIZ3SnxfS52S4hm2DHkuQ==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} trim-newlines@3.0.1: - resolution: - { - integrity: sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw==} + engines: {node: '>=8'} ts-api-utils@2.4.0: - resolution: - { - integrity: sha512-3TaVTaAv2gTiMB35i3FiGJaRfwb3Pyn/j3m/bfAvGe8FB7CF6u+LMYqYlDh7reQf7UNvoTvdfAqHGmPGOSsPmA==, - } - engines: { node: '>=18.12' } + resolution: {integrity: sha512-3TaVTaAv2gTiMB35i3FiGJaRfwb3Pyn/j3m/bfAvGe8FB7CF6u+LMYqYlDh7reQf7UNvoTvdfAqHGmPGOSsPmA==} + engines: {node: '>=18.12'} peerDependencies: typescript: '>=4.8.4' ts-jest@29.4.6: - resolution: - { - integrity: sha512-fSpWtOO/1AjSNQguk43hb/JCo16oJDnMJf3CdEGNkqsEX3t0KX96xvyX1D7PfLCpVoKu4MfVrqUkFyblYoY4lA==, - } - engines: { node: ^14.15.0 || ^16.10.0 || ^18.0.0 || >=20.0.0 } + resolution: {integrity: sha512-fSpWtOO/1AjSNQguk43hb/JCo16oJDnMJf3CdEGNkqsEX3t0KX96xvyX1D7PfLCpVoKu4MfVrqUkFyblYoY4lA==} + engines: {node: ^14.15.0 || ^16.10.0 || ^18.0.0 || >=20.0.0} hasBin: true peerDependencies: '@babel/core': '>=7.0.0-beta.0 <8' @@ -13916,10 +9315,7 @@ packages: optional: true ts-node@10.9.2: - resolution: - { - integrity: sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==, - } + resolution: {integrity: sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==} hasBin: true peerDependencies: '@swc/core': '>=1.2.50' @@ -13933,264 +9329,150 @@ packages: optional: true tsconfig-paths@4.2.0: - resolution: - { - integrity: sha512-NoZ4roiN7LnbKn9QqE1amc9DJfzvZXxF4xDavcOWt1BPkdx+m+0gJuPM+S0vCe7zTJMYUP0R8pO2XMr+Y8oLIg==, - } - engines: { node: '>=6' } + resolution: {integrity: sha512-NoZ4roiN7LnbKn9QqE1amc9DJfzvZXxF4xDavcOWt1BPkdx+m+0gJuPM+S0vCe7zTJMYUP0R8pO2XMr+Y8oLIg==} + engines: {node: '>=6'} tslib@2.8.1: - resolution: - { - integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==, - } + resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==} tsx@4.21.0: - resolution: - { - integrity: sha512-5C1sg4USs1lfG0GFb2RLXsdpXqBSEhAaA/0kPL01wxzpMqLILNxIxIOKiILz+cdg/pLnOUxFYOR5yhHU666wbw==, - } - engines: { node: '>=18.0.0' } + resolution: {integrity: sha512-5C1sg4USs1lfG0GFb2RLXsdpXqBSEhAaA/0kPL01wxzpMqLILNxIxIOKiILz+cdg/pLnOUxFYOR5yhHU666wbw==} + engines: {node: '>=18.0.0'} hasBin: true tuf-js@2.2.1: - resolution: - { - integrity: sha512-GwIJau9XaA8nLVbUXsN3IlFi7WmQ48gBUrl3FTkkL/XLu/POhBzfmX9hd33FNMX1qAsfl6ozO1iMmW9NC8YniA==, - } - engines: { node: ^16.14.0 || >=18.0.0 } + resolution: {integrity: sha512-GwIJau9XaA8nLVbUXsN3IlFi7WmQ48gBUrl3FTkkL/XLu/POhBzfmX9hd33FNMX1qAsfl6ozO1iMmW9NC8YniA==} + engines: {node: ^16.14.0 || >=18.0.0} type-check@0.4.0: - resolution: - { - integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==, - } - engines: { node: '>= 0.8.0' } + resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} + engines: {node: '>= 0.8.0'} type-detect@4.0.8: - resolution: - { - integrity: sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==, - } - engines: { node: '>=4' } + resolution: {integrity: sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==} + engines: {node: '>=4'} type-fest@0.18.1: - resolution: - { - integrity: sha512-OIAYXk8+ISY+qTOwkHtKqzAuxchoMiD9Udx+FSGQDuiRR+PJKJHc2NJAXlbhkGwTt/4/nKZxELY1w3ReWOL8mw==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-OIAYXk8+ISY+qTOwkHtKqzAuxchoMiD9Udx+FSGQDuiRR+PJKJHc2NJAXlbhkGwTt/4/nKZxELY1w3ReWOL8mw==} + engines: {node: '>=10'} type-fest@0.21.3: - resolution: - { - integrity: sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==} + engines: {node: '>=10'} type-fest@0.4.1: - resolution: - { - integrity: sha512-IwzA/LSfD2vC1/YDYMv/zHP4rDF1usCwllsDpbolT3D4fUepIO7f9K70jjmUewU/LmGUKJcwcVtDCpnKk4BPMw==, - } - engines: { node: '>=6' } + resolution: {integrity: sha512-IwzA/LSfD2vC1/YDYMv/zHP4rDF1usCwllsDpbolT3D4fUepIO7f9K70jjmUewU/LmGUKJcwcVtDCpnKk4BPMw==} + engines: {node: '>=6'} type-fest@0.6.0: - resolution: - { - integrity: sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==} + engines: {node: '>=8'} type-fest@0.8.1: - resolution: - { - integrity: sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==} + engines: {node: '>=8'} type-fest@4.41.0: - resolution: - { - integrity: sha512-TeTSQ6H5YHvpqVwBRcnLDCBnDOHWYu7IvGbHT6N8AOymcr9PJGjc1GTtiWZTYg0NCgYwvnYWEkVChQAr9bjfwA==, - } - engines: { node: '>=16' } + resolution: {integrity: sha512-TeTSQ6H5YHvpqVwBRcnLDCBnDOHWYu7IvGbHT6N8AOymcr9PJGjc1GTtiWZTYg0NCgYwvnYWEkVChQAr9bjfwA==} + engines: {node: '>=16'} type-is@1.6.18: - resolution: - { - integrity: sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==, - } - engines: { node: '>= 0.6' } + resolution: {integrity: sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==} + engines: {node: '>= 0.6'} type-is@2.0.1: - resolution: - { - integrity: sha512-OZs6gsjF4vMp32qrCbiVSkrFmXtG/AZhY3t0iAMrMBiAZyV9oALtXO8hsrHbMXF9x6L3grlFuwW2oAz7cav+Gw==, - } - engines: { node: '>= 0.6' } + resolution: {integrity: sha512-OZs6gsjF4vMp32qrCbiVSkrFmXtG/AZhY3t0iAMrMBiAZyV9oALtXO8hsrHbMXF9x6L3grlFuwW2oAz7cav+Gw==} + engines: {node: '>= 0.6'} typedarray@0.0.6: - resolution: - { - integrity: sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==, - } + resolution: {integrity: sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==} typescript@5.9.3: - resolution: - { - integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==, - } - engines: { node: '>=14.17' } + resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==} + engines: {node: '>=14.17'} hasBin: true uc.micro@2.1.0: - resolution: - { - integrity: sha512-ARDJmphmdvUk6Glw7y9DQ2bFkKBHwQHLi2lsaH6PPmz/Ka9sFOBsBluozhDltWmnv9u/cF6Rt87znRTPV+yp/A==, - } + resolution: {integrity: sha512-ARDJmphmdvUk6Glw7y9DQ2bFkKBHwQHLi2lsaH6PPmz/Ka9sFOBsBluozhDltWmnv9u/cF6Rt87znRTPV+yp/A==} uglify-js@3.19.3: - resolution: - { - integrity: sha512-v3Xu+yuwBXisp6QYTcH4UbH+xYJXqnq2m/LtQVWKWzYc1iehYnLixoQDN9FH6/j9/oybfd6W9Ghwkl8+UMKTKQ==, - } - engines: { node: '>=0.8.0' } + resolution: {integrity: sha512-v3Xu+yuwBXisp6QYTcH4UbH+xYJXqnq2m/LtQVWKWzYc1iehYnLixoQDN9FH6/j9/oybfd6W9Ghwkl8+UMKTKQ==} + engines: {node: '>=0.8.0'} hasBin: true uglify-js@3.4.10: - resolution: - { - integrity: sha512-Y2VsbPVs0FIshJztycsO2SfPk7/KAF/T72qzv9u5EpQ4kB2hQoHlhNQTsNyy6ul7lQtqJN/AoWeS23OzEiEFxw==, - } - engines: { node: '>=0.8.0' } + resolution: {integrity: sha512-Y2VsbPVs0FIshJztycsO2SfPk7/KAF/T72qzv9u5EpQ4kB2hQoHlhNQTsNyy6ul7lQtqJN/AoWeS23OzEiEFxw==} + engines: {node: '>=0.8.0'} hasBin: true undefsafe@2.0.5: - resolution: - { - integrity: sha512-WxONCrssBM8TSPRqN5EmsjVrsv4A8X12J4ArBiiayv3DyyG3ZlIg6yysuuSYdZsVz3TKcTg2fd//Ujd4CHV1iA==, - } + resolution: {integrity: sha512-WxONCrssBM8TSPRqN5EmsjVrsv4A8X12J4ArBiiayv3DyyG3ZlIg6yysuuSYdZsVz3TKcTg2fd//Ujd4CHV1iA==} undici-types@5.26.5: - resolution: - { - integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==, - } + resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} undici-types@6.21.0: - resolution: - { - integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==, - } + resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==} undici@7.16.0: - resolution: - { - integrity: sha512-QEg3HPMll0o3t2ourKwOeUAZ159Kn9mx5pnzHRQO8+Wixmh88YdZRiIwat0iNzNNXn0yoEtXJqFpyW7eM8BV7g==, - } - engines: { node: '>=20.18.1' } + resolution: {integrity: sha512-QEg3HPMll0o3t2ourKwOeUAZ159Kn9mx5pnzHRQO8+Wixmh88YdZRiIwat0iNzNNXn0yoEtXJqFpyW7eM8BV7g==} + engines: {node: '>=20.18.1'} undici@7.19.0: - resolution: - { - integrity: sha512-Heho1hJD81YChi+uS2RkSjcVO+EQLmLSyUlHyp7Y/wFbxQaGb4WXVKD073JytrjXJVkSZVzoE2MCSOKugFGtOQ==, - } - engines: { node: '>=20.18.1' } + resolution: {integrity: sha512-Heho1hJD81YChi+uS2RkSjcVO+EQLmLSyUlHyp7Y/wFbxQaGb4WXVKD073JytrjXJVkSZVzoE2MCSOKugFGtOQ==} + engines: {node: '>=20.18.1'} unique-filename@3.0.0: - resolution: - { - integrity: sha512-afXhuC55wkAmZ0P18QsVE6kp8JaxrEokN2HGIoIVv2ijHQd419H0+6EigAFcIzXeMIkcIkNBpB3L/DXB3cTS/g==, - } - engines: { node: ^14.17.0 || ^16.13.0 || >=18.0.0 } + resolution: {integrity: sha512-afXhuC55wkAmZ0P18QsVE6kp8JaxrEokN2HGIoIVv2ijHQd419H0+6EigAFcIzXeMIkcIkNBpB3L/DXB3cTS/g==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} unique-slug@4.0.0: - resolution: - { - integrity: sha512-WrcA6AyEfqDX5bWige/4NQfPZMtASNVxdmWR76WESYQVAACSgWcR6e9i0mofqqBxYFtL4oAxPIptY73/0YE1DQ==, - } - engines: { node: ^14.17.0 || ^16.13.0 || >=18.0.0 } + resolution: {integrity: sha512-WrcA6AyEfqDX5bWige/4NQfPZMtASNVxdmWR76WESYQVAACSgWcR6e9i0mofqqBxYFtL4oAxPIptY73/0YE1DQ==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} universal-user-agent@6.0.1: - resolution: - { - integrity: sha512-yCzhz6FN2wU1NiiQRogkTQszlQSlpWaw8SvVegAc+bDxbzHgh1vX8uIe8OYyMH6DwH+sdTJsgMl36+mSMdRJIQ==, - } + resolution: {integrity: sha512-yCzhz6FN2wU1NiiQRogkTQszlQSlpWaw8SvVegAc+bDxbzHgh1vX8uIe8OYyMH6DwH+sdTJsgMl36+mSMdRJIQ==} universalify@2.0.1: - resolution: - { - integrity: sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==, - } - engines: { node: '>= 10.0.0' } + resolution: {integrity: sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==} + engines: {node: '>= 10.0.0'} unload@2.2.0: - resolution: - { - integrity: sha512-B60uB5TNBLtN6/LsgAf3udH9saB5p7gqJwcFfbOEZ8BcBHnGwCf6G/TGiEqkRAxX7zAFIUtzdrXQSdL3Q/wqNA==, - } + resolution: {integrity: sha512-B60uB5TNBLtN6/LsgAf3udH9saB5p7gqJwcFfbOEZ8BcBHnGwCf6G/TGiEqkRAxX7zAFIUtzdrXQSdL3Q/wqNA==} unpipe@1.0.0: - resolution: - { - integrity: sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==, - } - engines: { node: '>= 0.8' } + resolution: {integrity: sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==} + engines: {node: '>= 0.8'} unrs-resolver@1.11.1: - resolution: - { - integrity: sha512-bSjt9pjaEBnNiGgc9rUiHGKv5l4/TGzDmYw3RhnkJGtLhbnnA/5qJj7x3dNDCRx/PJxu774LlH8lCOlB4hEfKg==, - } + resolution: {integrity: sha512-bSjt9pjaEBnNiGgc9rUiHGKv5l4/TGzDmYw3RhnkJGtLhbnnA/5qJj7x3dNDCRx/PJxu774LlH8lCOlB4hEfKg==} untildify@4.0.0: - resolution: - { - integrity: sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw==} + engines: {node: '>=8'} upath@2.0.1: - resolution: - { - integrity: sha512-1uEe95xksV1O0CYKXo8vQvN1JEbtJp7lb7C5U9HMsIp6IVwntkH/oNUzyVNQSd4S1sYk2FpSSW44FqMc8qee5w==, - } - engines: { node: '>=4' } + resolution: {integrity: sha512-1uEe95xksV1O0CYKXo8vQvN1JEbtJp7lb7C5U9HMsIp6IVwntkH/oNUzyVNQSd4S1sYk2FpSSW44FqMc8qee5w==} + engines: {node: '>=4'} update-browserslist-db@1.2.3: - resolution: - { - integrity: sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==, - } + resolution: {integrity: sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==} hasBin: true peerDependencies: browserslist: '>= 4.21.0' upper-case@1.1.3: - resolution: - { - integrity: sha512-WRbjgmYzgXkCV7zNVpy5YgrHgbBv126rMALQQMrmzOVC4GM2waQ9x7xtm8VU+1yF2kWyPzI9zbZ48n4vSxwfSA==, - } + resolution: {integrity: sha512-WRbjgmYzgXkCV7zNVpy5YgrHgbBv126rMALQQMrmzOVC4GM2waQ9x7xtm8VU+1yF2kWyPzI9zbZ48n4vSxwfSA==} uri-js@4.4.1: - resolution: - { - integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==, - } + resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} url-join@4.0.1: - resolution: - { - integrity: sha512-jk1+QP6ZJqyOiuEI9AEWQfju/nB2Pw466kbA0LEZljHwKeMgd9WrAEgEGxjPDD2+TNbbb37rTyhEfrCXfuKXnA==, - } + resolution: {integrity: sha512-jk1+QP6ZJqyOiuEI9AEWQfju/nB2Pw466kbA0LEZljHwKeMgd9WrAEgEGxjPDD2+TNbbb37rTyhEfrCXfuKXnA==} use-callback-ref@1.3.3: - resolution: - { - integrity: sha512-jQL3lRnocaFtu3V00JToYz/4QkNWswxijDaCVNZRiRTO3HQDLsdu1ZtmIUvV4yPp+rvWm5j0y0TG/S61cuijTg==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-jQL3lRnocaFtu3V00JToYz/4QkNWswxijDaCVNZRiRTO3HQDLsdu1ZtmIUvV4yPp+rvWm5j0y0TG/S61cuijTg==} + engines: {node: '>=10'} peerDependencies: '@types/react': '*' react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc @@ -14199,11 +9481,8 @@ packages: optional: true use-sidecar@1.1.3: - resolution: - { - integrity: sha512-Fedw0aZvkhynoPYlA5WXrMCAMm+nSWdZt6lzJQ7Ok8S6Q+VsHmHpRWndVRJ8Be0ZbkfPc5LRYH+5XrzXcEeLRQ==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-Fedw0aZvkhynoPYlA5WXrMCAMm+nSWdZt6lzJQ7Ok8S6Q+VsHmHpRWndVRJ8Be0ZbkfPc5LRYH+5XrzXcEeLRQ==} + engines: {node: '>=10'} peerDependencies: '@types/react': '*' react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc @@ -14212,72 +9491,42 @@ packages: optional: true use-sync-external-store@1.6.0: - resolution: - { - integrity: sha512-Pp6GSwGP/NrPIrxVFAIkOQeyw8lFenOHijQWkUTrDvrF4ALqylP2C/KCkeS9dpUM3KvYRQhna5vt7IL95+ZQ9w==, - } + resolution: {integrity: sha512-Pp6GSwGP/NrPIrxVFAIkOQeyw8lFenOHijQWkUTrDvrF4ALqylP2C/KCkeS9dpUM3KvYRQhna5vt7IL95+ZQ9w==} peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 util-deprecate@1.0.2: - resolution: - { - integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==, - } + resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} uuid@10.0.0: - resolution: - { - integrity: sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ==, - } + resolution: {integrity: sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ==} hasBin: true v8-compile-cache-lib@3.0.1: - resolution: - { - integrity: sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==, - } + resolution: {integrity: sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==} v8-to-istanbul@9.3.0: - resolution: - { - integrity: sha512-kiGUalWN+rgBJ/1OHZsBtU4rXZOfj/7rKQxULKlIzwzQSvMJUUNgPwJEEh7gU6xEVxC0ahoOBvN2YI8GH6FNgA==, - } - engines: { node: '>=10.12.0' } + resolution: {integrity: sha512-kiGUalWN+rgBJ/1OHZsBtU4rXZOfj/7rKQxULKlIzwzQSvMJUUNgPwJEEh7gU6xEVxC0ahoOBvN2YI8GH6FNgA==} + engines: {node: '>=10.12.0'} valid-data-url@3.0.1: - resolution: - { - integrity: sha512-jOWVmzVceKlVVdwjNSenT4PbGghU0SBIizAev8ofZVgivk/TVHXSbNL8LP6M3spZvkR9/QolkyJavGSX5Cs0UA==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-jOWVmzVceKlVVdwjNSenT4PbGghU0SBIizAev8ofZVgivk/TVHXSbNL8LP6M3spZvkR9/QolkyJavGSX5Cs0UA==} + engines: {node: '>=10'} validate-npm-package-license@3.0.4: - resolution: - { - integrity: sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==, - } + resolution: {integrity: sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==} validate-npm-package-name@5.0.1: - resolution: - { - integrity: sha512-OljLrQ9SQdOUqTaQxqL5dEfZWrXExyyWsozYlAWFawPVNuD83igl7uJD2RTkNMbniIYgt8l81eCJGIdQF7avLQ==, - } - engines: { node: ^14.17.0 || ^16.13.0 || >=18.0.0 } + resolution: {integrity: sha512-OljLrQ9SQdOUqTaQxqL5dEfZWrXExyyWsozYlAWFawPVNuD83igl7uJD2RTkNMbniIYgt8l81eCJGIdQF7avLQ==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} vary@1.1.2: - resolution: - { - integrity: sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==, - } - engines: { node: '>= 0.8' } + resolution: {integrity: sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==} + engines: {node: '>= 0.8'} vite@6.4.1: - resolution: - { - integrity: sha512-+Oxm7q9hDoLMyJOYfUYBuHQo+dkAloi33apOPP56pzj+vsdJDzr+j1NISE5pyaAuKL4A3UD34qd0lx5+kfKp2g==, - } - engines: { node: ^18.0.0 || ^20.0.0 || >=22.0.0 } + resolution: {integrity: sha512-+Oxm7q9hDoLMyJOYfUYBuHQo+dkAloi33apOPP56pzj+vsdJDzr+j1NISE5pyaAuKL4A3UD34qd0lx5+kfKp2g==} + engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0} hasBin: true peerDependencies: '@types/node': ^18.0.0 || ^20.0.0 || >=22.0.0 @@ -14316,170 +9565,95 @@ packages: optional: true vscode-languageserver-types@3.17.5: - resolution: - { - integrity: sha512-Ld1VelNuX9pdF39h2Hgaeb5hEZM2Z3jUrrMgWQAu82jMtZp7p3vJT3BzToKtZI7NgQssZje5o0zryOrhQvzQAg==, - } + resolution: {integrity: sha512-Ld1VelNuX9pdF39h2Hgaeb5hEZM2Z3jUrrMgWQAu82jMtZp7p3vJT3BzToKtZI7NgQssZje5o0zryOrhQvzQAg==} walk-up-path@3.0.1: - resolution: - { - integrity: sha512-9YlCL/ynK3CTlrSRrDxZvUauLzAswPCrsaCgilqFevUYpeEW0/3ScEjaa3kbW/T0ghhkEr7mv+fpjqn1Y1YuTA==, - } + resolution: {integrity: sha512-9YlCL/ynK3CTlrSRrDxZvUauLzAswPCrsaCgilqFevUYpeEW0/3ScEjaa3kbW/T0ghhkEr7mv+fpjqn1Y1YuTA==} walker@1.0.8: - resolution: - { - integrity: sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==, - } + resolution: {integrity: sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==} warning@3.0.0: - resolution: - { - integrity: sha512-jMBt6pUrKn5I+OGgtQ4YZLdhIeJmObddh6CsibPxyQ5yPZm1XExSyzC1LCNX7BzhxWgiHmizBWJTHJIjMjTQYQ==, - } + resolution: {integrity: sha512-jMBt6pUrKn5I+OGgtQ4YZLdhIeJmObddh6CsibPxyQ5yPZm1XExSyzC1LCNX7BzhxWgiHmizBWJTHJIjMjTQYQ==} wcwidth@1.0.1: - resolution: - { - integrity: sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==, - } + resolution: {integrity: sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==} web-resource-inliner@5.0.0: - resolution: - { - integrity: sha512-AIihwH+ZmdHfkJm7BjSXiEClVt4zUFqX4YlFAzjL13wLtDuUneSaFvDBTbdYRecs35SiU7iNKbMnN+++wVfb6A==, - } - engines: { node: '>=10.0.0' } + resolution: {integrity: sha512-AIihwH+ZmdHfkJm7BjSXiEClVt4zUFqX4YlFAzjL13wLtDuUneSaFvDBTbdYRecs35SiU7iNKbMnN+++wVfb6A==} + engines: {node: '>=10.0.0'} webidl-conversions@3.0.1: - resolution: - { - integrity: sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==, - } + resolution: {integrity: sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==} whatwg-encoding@3.1.1: - resolution: - { - integrity: sha512-6qN4hJdMwfYBtE3YBTTHhoeuUrDBPZmbQaxWAqSALV/MeEnR5z1xd8UKud2RAkFoPkmB+hli1TZSnyi84xz1vQ==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-6qN4hJdMwfYBtE3YBTTHhoeuUrDBPZmbQaxWAqSALV/MeEnR5z1xd8UKud2RAkFoPkmB+hli1TZSnyi84xz1vQ==} + engines: {node: '>=18'} deprecated: Use @exodus/bytes instead for a more spec-conformant and faster implementation whatwg-mimetype@4.0.0: - resolution: - { - integrity: sha512-QaKxh0eNIi2mE9p2vEdzfagOKHCcj1pJ56EEHGQOVxp8r9/iszLUUV7v89x9O1p/T+NlTM5W7jW6+cz4Fq1YVg==, - } - engines: { node: '>=18' } + resolution: {integrity: sha512-QaKxh0eNIi2mE9p2vEdzfagOKHCcj1pJ56EEHGQOVxp8r9/iszLUUV7v89x9O1p/T+NlTM5W7jW6+cz4Fq1YVg==} + engines: {node: '>=18'} whatwg-url@5.0.0: - resolution: - { - integrity: sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==, - } + resolution: {integrity: sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==} which-module@2.0.1: - resolution: - { - integrity: sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==, - } + resolution: {integrity: sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==} which@2.0.2: - resolution: - { - integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==, - } - engines: { node: '>= 8' } + resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} + engines: {node: '>= 8'} hasBin: true which@4.0.0: - resolution: - { - integrity: sha512-GlaYyEb07DPxYCKhKzplCWBJtvxZcZMrL+4UkrTSJHHPyZU4mYYTv3qaOe77H7EODLSSopAUFAc6W8U4yqvscg==, - } - engines: { node: ^16.13.0 || >=18.0.0 } + resolution: {integrity: sha512-GlaYyEb07DPxYCKhKzplCWBJtvxZcZMrL+4UkrTSJHHPyZU4mYYTv3qaOe77H7EODLSSopAUFAc6W8U4yqvscg==} + engines: {node: ^16.13.0 || >=18.0.0} hasBin: true wide-align@1.1.5: - resolution: - { - integrity: sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==, - } + resolution: {integrity: sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==} word-wrap@1.2.5: - resolution: - { - integrity: sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==, - } - engines: { node: '>=0.10.0' } + resolution: {integrity: sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==} + engines: {node: '>=0.10.0'} wordwrap@1.0.0: - resolution: - { - integrity: sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==, - } + resolution: {integrity: sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==} wrap-ansi@6.2.0: - resolution: - { - integrity: sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==} + engines: {node: '>=8'} wrap-ansi@7.0.0: - resolution: - { - integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==} + engines: {node: '>=10'} wrap-ansi@8.1.0: - resolution: - { - integrity: sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==, - } - engines: { node: '>=12' } + resolution: {integrity: sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==} + engines: {node: '>=12'} wrappy@1.0.2: - resolution: - { - integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==, - } + resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==} write-file-atomic@2.4.3: - resolution: - { - integrity: sha512-GaETH5wwsX+GcnzhPgKcKjJ6M2Cq3/iZp1WyY/X1CSqrW+jVNM9Y7D8EC2sM4ZG/V8wZlSniJnCKWPmBYAucRQ==, - } + resolution: {integrity: sha512-GaETH5wwsX+GcnzhPgKcKjJ6M2Cq3/iZp1WyY/X1CSqrW+jVNM9Y7D8EC2sM4ZG/V8wZlSniJnCKWPmBYAucRQ==} write-file-atomic@5.0.1: - resolution: - { - integrity: sha512-+QU2zd6OTD8XWIJCbffaiQeH9U73qIqafo1x6V1snCWYGJf6cVE0cDR4D8xRzcEnfI21IFrUPzPGtcPf8AC+Rw==, - } - engines: { node: ^14.17.0 || ^16.13.0 || >=18.0.0 } + resolution: {integrity: sha512-+QU2zd6OTD8XWIJCbffaiQeH9U73qIqafo1x6V1snCWYGJf6cVE0cDR4D8xRzcEnfI21IFrUPzPGtcPf8AC+Rw==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} write-json-file@3.2.0: - resolution: - { - integrity: sha512-3xZqT7Byc2uORAatYiP3DHUUAVEkNOswEWNs9H5KXiicRTvzYzYqKjYc4G7p+8pltvAw641lVByKVtMpf+4sYQ==, - } - engines: { node: '>=6' } + resolution: {integrity: sha512-3xZqT7Byc2uORAatYiP3DHUUAVEkNOswEWNs9H5KXiicRTvzYzYqKjYc4G7p+8pltvAw641lVByKVtMpf+4sYQ==} + engines: {node: '>=6'} write-pkg@4.0.0: - resolution: - { - integrity: sha512-v2UQ+50TNf2rNHJ8NyWttfm/EJUBWMJcx6ZTYZr6Qp52uuegWw/lBkCtCbnYZEmPRNL61m+u67dAmGxo+HTULA==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-v2UQ+50TNf2rNHJ8NyWttfm/EJUBWMJcx6ZTYZr6Qp52uuegWw/lBkCtCbnYZEmPRNL61m+u67dAmGxo+HTULA==} + engines: {node: '>=8'} ws@8.19.0: - resolution: - { - integrity: sha512-blAT2mjOEIi0ZzruJfIhb3nps74PRWTCz1IjglWEEpQl5XS/UNama6u2/rjFkDDouqr4L67ry+1aGIALViWjDg==, - } - engines: { node: '>=10.0.0' } + resolution: {integrity: sha512-blAT2mjOEIi0ZzruJfIhb3nps74PRWTCz1IjglWEEpQl5XS/UNama6u2/rjFkDDouqr4L67ry+1aGIALViWjDg==} + engines: {node: '>=10.0.0'} peerDependencies: bufferutil: ^4.0.1 utf-8-validate: '>=5.0.2' @@ -14490,119 +9664,68 @@ packages: optional: true xtend@4.0.2: - resolution: - { - integrity: sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==, - } - engines: { node: '>=0.4' } + resolution: {integrity: sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==} + engines: {node: '>=0.4'} y18n@4.0.3: - resolution: - { - integrity: sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==, - } + resolution: {integrity: sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==} y18n@5.0.8: - resolution: - { - integrity: sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==} + engines: {node: '>=10'} yallist@3.1.1: - resolution: - { - integrity: sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==, - } + resolution: {integrity: sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==} yallist@4.0.0: - resolution: - { - integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==, - } + resolution: {integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==} yaml@2.8.2: - resolution: - { - integrity: sha512-mplynKqc1C2hTVYxd0PU2xQAc22TI1vShAYGksCCfxbn/dFwnHTNi1bvYsBTkhdUNtGIf5xNOg938rrSSYvS9A==, - } - engines: { node: '>= 14.6' } + resolution: {integrity: sha512-mplynKqc1C2hTVYxd0PU2xQAc22TI1vShAYGksCCfxbn/dFwnHTNi1bvYsBTkhdUNtGIf5xNOg938rrSSYvS9A==} + engines: {node: '>= 14.6'} hasBin: true yanse@0.2.0: - resolution: - { - integrity: sha512-BN6WYjJRX3mw/LpEC4d2LAlLFFdoFKKYYbd9nvhTvbbEW+/mJJccBGy0DuvcYXg75Xed2ZT8euXtplfLKBfdHA==, - } + resolution: {integrity: sha512-BN6WYjJRX3mw/LpEC4d2LAlLFFdoFKKYYbd9nvhTvbbEW+/mJJccBGy0DuvcYXg75Xed2ZT8euXtplfLKBfdHA==} yanse@0.2.1: - resolution: - { - integrity: sha512-SMi3ZO1IqsvPLLXuy8LBCP1orqcjOT8VygiuyAlplaGeH2g+n4ZSSyWlA/BZjuUuN58TyOcz89mVkflSqIPxxQ==, - } + resolution: {integrity: sha512-SMi3ZO1IqsvPLLXuy8LBCP1orqcjOT8VygiuyAlplaGeH2g+n4ZSSyWlA/BZjuUuN58TyOcz89mVkflSqIPxxQ==} yargs-parser@18.1.3: - resolution: - { - integrity: sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==, - } - engines: { node: '>=6' } + resolution: {integrity: sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==} + engines: {node: '>=6'} yargs-parser@20.2.9: - resolution: - { - integrity: sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==} + engines: {node: '>=10'} yargs-parser@21.1.1: - resolution: - { - integrity: sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==, - } - engines: { node: '>=12' } + resolution: {integrity: sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==} + engines: {node: '>=12'} yargs@15.4.1: - resolution: - { - integrity: sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==, - } - engines: { node: '>=8' } + resolution: {integrity: sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==} + engines: {node: '>=8'} yargs@16.2.0: - resolution: - { - integrity: sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==} + engines: {node: '>=10'} yargs@17.7.2: - resolution: - { - integrity: sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==, - } - engines: { node: '>=12' } + resolution: {integrity: sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==} + engines: {node: '>=12'} yn@3.1.1: - resolution: - { - integrity: sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==, - } - engines: { node: '>=6' } + resolution: {integrity: sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==} + engines: {node: '>=6'} yocto-queue@0.1.0: - resolution: - { - integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==, - } - engines: { node: '>=10' } + resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} + engines: {node: '>=10'} zustand@5.0.11: - resolution: - { - integrity: sha512-fdZY+dk7zn/vbWNCYmzZULHRrss0jx5pPFiOuMZ/5HJN6Yv3u+1Wswy/4MpZEkEGhtNH+pwxZB8OKgUBPzYAGg==, - } - engines: { node: '>=12.20.0' } + resolution: {integrity: sha512-fdZY+dk7zn/vbWNCYmzZULHRrss0jx5pPFiOuMZ/5HJN6Yv3u+1Wswy/4MpZEkEGhtNH+pwxZB8OKgUBPzYAGg==} + engines: {node: '>=12.20.0'} peerDependencies: '@types/react': '>=18.0.0' immer: '>=9.0.6' @@ -14619,6 +9742,7 @@ packages: optional: true snapshots: + '@0no-co/graphql.web@1.2.0(graphql@15.10.1)': optionalDependencies: graphql: 15.10.1 @@ -15994,6 +11118,20 @@ snapshots: '@graphile/simplify-inflection@8.0.0-rc.3': {} + '@graphiql/plugin-doc-explorer@0.4.1(@graphiql/react@0.37.3(@emotion/is-prop-valid@1.4.0)(@types/node@20.19.27)(@types/react-dom@19.2.3(@types/react@19.2.13))(@types/react@19.2.13)(graphql-ws@6.0.7(graphql@16.12.0)(ws@8.19.0))(graphql@16.12.0)(react-compiler-runtime@19.1.0-rc.1(react@19.2.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(use-sync-external-store@1.6.0(react@19.2.3)))(@types/react@19.2.13)(graphql@16.12.0)(react-compiler-runtime@19.1.0-rc.1(react@19.2.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(use-sync-external-store@1.6.0(react@19.2.3))': + dependencies: + '@graphiql/react': 0.37.3(@emotion/is-prop-valid@1.4.0)(@types/node@20.19.27)(@types/react-dom@19.2.3(@types/react@19.2.13))(@types/react@19.2.13)(graphql-ws@6.0.7(graphql@16.12.0)(ws@8.19.0))(graphql@16.12.0)(react-compiler-runtime@19.1.0-rc.1(react@19.2.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(use-sync-external-store@1.6.0(react@19.2.3)) + '@headlessui/react': 2.2.9(react-dom@19.2.3(react@19.2.3))(react@19.2.3) + graphql: 16.12.0 + react: 19.2.3 + react-compiler-runtime: 19.1.0-rc.1(react@19.2.3) + react-dom: 19.2.3(react@19.2.3) + zustand: 5.0.11(@types/react@19.2.13)(react@19.2.3)(use-sync-external-store@1.6.0(react@19.2.3)) + transitivePeerDependencies: + - '@types/react' + - immer + - use-sync-external-store + '@graphiql/plugin-doc-explorer@0.4.1(@graphiql/react@0.37.3(@emotion/is-prop-valid@1.4.0)(@types/node@22.19.11)(@types/react-dom@19.2.3(@types/react@19.2.13))(@types/react@19.2.13)(graphql-ws@6.0.7(graphql@16.12.0)(ws@8.19.0))(graphql@16.12.0)(react-compiler-runtime@19.1.0-rc.1(react@19.2.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(use-sync-external-store@1.6.0(react@19.2.3)))(@types/react@19.2.13)(graphql@16.12.0)(react-compiler-runtime@19.1.0-rc.1(react@19.2.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(use-sync-external-store@1.6.0(react@19.2.3))': dependencies: '@graphiql/react': 0.37.3(@emotion/is-prop-valid@1.4.0)(@types/node@22.19.11)(@types/react-dom@19.2.3(@types/react@19.2.13))(@types/react@19.2.13)(graphql-ws@6.0.7(graphql@16.12.0)(ws@8.19.0))(graphql@16.12.0)(react-compiler-runtime@19.1.0-rc.1(react@19.2.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(use-sync-external-store@1.6.0(react@19.2.3)) @@ -16008,6 +11146,22 @@ snapshots: - immer - use-sync-external-store + '@graphiql/plugin-history@0.4.1(@graphiql/react@0.37.3(@emotion/is-prop-valid@1.4.0)(@types/node@20.19.27)(@types/react-dom@19.2.3(@types/react@19.2.13))(@types/react@19.2.13)(graphql-ws@6.0.7(graphql@16.12.0)(ws@8.19.0))(graphql@16.12.0)(react-compiler-runtime@19.1.0-rc.1(react@19.2.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(use-sync-external-store@1.6.0(react@19.2.3)))(@types/node@20.19.27)(@types/react@19.2.13)(graphql-ws@6.0.7(graphql@16.12.0)(ws@8.19.0))(graphql@16.12.0)(react-compiler-runtime@19.1.0-rc.1(react@19.2.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(use-sync-external-store@1.6.0(react@19.2.3))': + dependencies: + '@graphiql/react': 0.37.3(@emotion/is-prop-valid@1.4.0)(@types/node@20.19.27)(@types/react-dom@19.2.3(@types/react@19.2.13))(@types/react@19.2.13)(graphql-ws@6.0.7(graphql@16.12.0)(ws@8.19.0))(graphql@16.12.0)(react-compiler-runtime@19.1.0-rc.1(react@19.2.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(use-sync-external-store@1.6.0(react@19.2.3)) + '@graphiql/toolkit': 0.11.3(@types/node@20.19.27)(graphql-ws@6.0.7(graphql@16.12.0)(ws@8.19.0))(graphql@16.12.0) + react: 19.2.3 + react-compiler-runtime: 19.1.0-rc.1(react@19.2.3) + react-dom: 19.2.3(react@19.2.3) + zustand: 5.0.11(@types/react@19.2.13)(react@19.2.3)(use-sync-external-store@1.6.0(react@19.2.3)) + transitivePeerDependencies: + - '@types/node' + - '@types/react' + - graphql + - graphql-ws + - immer + - use-sync-external-store + '@graphiql/plugin-history@0.4.1(@graphiql/react@0.37.3(@emotion/is-prop-valid@1.4.0)(@types/node@22.19.11)(@types/react-dom@19.2.3(@types/react@19.2.13))(@types/react@19.2.13)(graphql-ws@6.0.7(graphql@16.12.0)(ws@8.19.0))(graphql@16.12.0)(react-compiler-runtime@19.1.0-rc.1(react@19.2.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(use-sync-external-store@1.6.0(react@19.2.3)))(@types/node@22.19.11)(@types/react@19.2.13)(graphql-ws@6.0.7(graphql@16.12.0)(ws@8.19.0))(graphql@16.12.0)(react-compiler-runtime@19.1.0-rc.1(react@19.2.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(use-sync-external-store@1.6.0(react@19.2.3))': dependencies: '@graphiql/react': 0.37.3(@emotion/is-prop-valid@1.4.0)(@types/node@22.19.11)(@types/react-dom@19.2.3(@types/react@19.2.13))(@types/react@19.2.13)(graphql-ws@6.0.7(graphql@16.12.0)(ws@8.19.0))(graphql@16.12.0)(react-compiler-runtime@19.1.0-rc.1(react@19.2.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(use-sync-external-store@1.6.0(react@19.2.3)) @@ -16024,6 +11178,37 @@ snapshots: - immer - use-sync-external-store + '@graphiql/react@0.37.3(@emotion/is-prop-valid@1.4.0)(@types/node@20.19.27)(@types/react-dom@19.2.3(@types/react@19.2.13))(@types/react@19.2.13)(graphql-ws@6.0.7(graphql@16.12.0)(ws@8.19.0))(graphql@16.12.0)(react-compiler-runtime@19.1.0-rc.1(react@19.2.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(use-sync-external-store@1.6.0(react@19.2.3))': + dependencies: + '@graphiql/toolkit': 0.11.3(@types/node@20.19.27)(graphql-ws@6.0.7(graphql@16.12.0)(ws@8.19.0))(graphql@16.12.0) + '@radix-ui/react-dialog': 1.1.15(@types/react-dom@19.2.3(@types/react@19.2.13))(@types/react@19.2.13)(react-dom@19.2.3(react@19.2.3))(react@19.2.3) + '@radix-ui/react-dropdown-menu': 2.1.16(@types/react-dom@19.2.3(@types/react@19.2.13))(@types/react@19.2.13)(react-dom@19.2.3(react@19.2.3))(react@19.2.3) + '@radix-ui/react-tooltip': 1.2.8(@types/react-dom@19.2.3(@types/react@19.2.13))(@types/react@19.2.13)(react-dom@19.2.3(react@19.2.3))(react@19.2.3) + '@radix-ui/react-visually-hidden': 1.2.4(@types/react-dom@19.2.3(@types/react@19.2.13))(@types/react@19.2.13)(react-dom@19.2.3(react@19.2.3))(react@19.2.3) + clsx: 1.2.1 + framer-motion: 12.34.0(@emotion/is-prop-valid@1.4.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3) + get-value: 3.0.1 + graphql: 16.12.0 + graphql-language-service: 5.5.0(graphql@16.12.0) + jsonc-parser: 3.3.1 + markdown-it: 14.1.1 + monaco-editor: 0.52.2 + monaco-graphql: 1.7.3(graphql@16.12.0)(monaco-editor@0.52.2)(prettier@3.8.0) + prettier: 3.8.0 + react: 19.2.3 + react-compiler-runtime: 19.1.0-rc.1(react@19.2.3) + react-dom: 19.2.3(react@19.2.3) + set-value: 4.1.0 + zustand: 5.0.11(@types/react@19.2.13)(react@19.2.3)(use-sync-external-store@1.6.0(react@19.2.3)) + transitivePeerDependencies: + - '@emotion/is-prop-valid' + - '@types/node' + - '@types/react' + - '@types/react-dom' + - graphql-ws + - immer + - use-sync-external-store + '@graphiql/react@0.37.3(@emotion/is-prop-valid@1.4.0)(@types/node@22.19.11)(@types/react-dom@19.2.3(@types/react@19.2.13))(@types/react@19.2.13)(graphql-ws@6.0.7(graphql@16.12.0)(ws@8.19.0))(graphql@16.12.0)(react-compiler-runtime@19.1.0-rc.1(react@19.2.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(use-sync-external-store@1.6.0(react@19.2.3))': dependencies: '@graphiql/toolkit': 0.11.3(@types/node@22.19.11)(graphql-ws@6.0.7(graphql@16.12.0)(ws@8.19.0))(graphql@16.12.0) @@ -16055,6 +11240,16 @@ snapshots: - immer - use-sync-external-store + '@graphiql/toolkit@0.11.3(@types/node@20.19.27)(graphql-ws@6.0.7(graphql@16.12.0)(ws@8.19.0))(graphql@16.12.0)': + dependencies: + '@n1ru4l/push-pull-async-iterable-iterator': 3.2.0 + graphql: 16.12.0 + meros: 1.3.2(@types/node@20.19.27) + optionalDependencies: + graphql-ws: 6.0.7(graphql@16.12.0)(ws@8.19.0) + transitivePeerDependencies: + - '@types/node' + '@graphiql/toolkit@0.11.3(@types/node@22.19.11)(graphql-ws@6.0.7(graphql@16.12.0)(ws@8.19.0))(graphql@16.12.0)': dependencies: '@n1ru4l/push-pull-async-iterable-iterator': 3.2.0 @@ -19878,6 +15073,31 @@ snapshots: transitivePeerDependencies: - supports-color + grafserv@1.0.0-rc.6(@types/node@20.19.27)(@types/react-dom@19.2.3(@types/react@19.2.13))(@types/react@19.2.13)(grafast@1.0.0-rc.7(graphql@16.12.0))(graphile-config@1.0.0-rc.5)(graphql@16.12.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(use-sync-external-store@1.6.0(react@19.2.3))(ws@8.19.0): + dependencies: + '@graphile/lru': 5.0.0-rc.4 + debug: 4.4.3(supports-color@5.5.0) + eventemitter3: 5.0.4 + grafast: 1.0.0-rc.7(graphql@16.12.0) + graphile-config: 1.0.0-rc.5 + graphql: 16.12.0 + graphql-ws: 6.0.7(graphql@16.12.0)(ws@8.19.0) + ruru: 2.0.0-rc.6(@types/node@20.19.27)(@types/react-dom@19.2.3(@types/react@19.2.13))(@types/react@19.2.13)(debug@4.4.3)(graphile-config@1.0.0-rc.5)(graphql-ws@6.0.7(graphql@16.12.0)(ws@8.19.0))(graphql@16.12.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(use-sync-external-store@1.6.0(react@19.2.3)) + tslib: 2.8.1 + optionalDependencies: + ws: 8.19.0 + transitivePeerDependencies: + - '@fastify/websocket' + - '@types/node' + - '@types/react' + - '@types/react-dom' + - crossws + - immer + - react + - react-dom + - supports-color + - use-sync-external-store + grafserv@1.0.0-rc.6(@types/node@22.19.11)(@types/react-dom@19.2.3(@types/react@19.2.13))(@types/react@19.2.13)(grafast@1.0.0-rc.7(graphql@16.12.0))(graphile-config@1.0.0-rc.5)(graphql@16.12.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(use-sync-external-store@1.6.0(react@19.2.3))(ws@8.19.0): dependencies: '@graphile/lru': 5.0.0-rc.4 @@ -19987,6 +15207,24 @@ snapshots: transitivePeerDependencies: - supports-color + graphiql@5.2.2(@emotion/is-prop-valid@1.4.0)(@types/node@20.19.27)(@types/react-dom@19.2.3(@types/react@19.2.13))(@types/react@19.2.13)(graphql-ws@6.0.7(graphql@16.12.0)(ws@8.19.0))(graphql@16.12.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(use-sync-external-store@1.6.0(react@19.2.3)): + dependencies: + '@graphiql/plugin-doc-explorer': 0.4.1(@graphiql/react@0.37.3(@emotion/is-prop-valid@1.4.0)(@types/node@20.19.27)(@types/react-dom@19.2.3(@types/react@19.2.13))(@types/react@19.2.13)(graphql-ws@6.0.7(graphql@16.12.0)(ws@8.19.0))(graphql@16.12.0)(react-compiler-runtime@19.1.0-rc.1(react@19.2.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(use-sync-external-store@1.6.0(react@19.2.3)))(@types/react@19.2.13)(graphql@16.12.0)(react-compiler-runtime@19.1.0-rc.1(react@19.2.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(use-sync-external-store@1.6.0(react@19.2.3)) + '@graphiql/plugin-history': 0.4.1(@graphiql/react@0.37.3(@emotion/is-prop-valid@1.4.0)(@types/node@20.19.27)(@types/react-dom@19.2.3(@types/react@19.2.13))(@types/react@19.2.13)(graphql-ws@6.0.7(graphql@16.12.0)(ws@8.19.0))(graphql@16.12.0)(react-compiler-runtime@19.1.0-rc.1(react@19.2.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(use-sync-external-store@1.6.0(react@19.2.3)))(@types/node@20.19.27)(@types/react@19.2.13)(graphql-ws@6.0.7(graphql@16.12.0)(ws@8.19.0))(graphql@16.12.0)(react-compiler-runtime@19.1.0-rc.1(react@19.2.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(use-sync-external-store@1.6.0(react@19.2.3)) + '@graphiql/react': 0.37.3(@emotion/is-prop-valid@1.4.0)(@types/node@20.19.27)(@types/react-dom@19.2.3(@types/react@19.2.13))(@types/react@19.2.13)(graphql-ws@6.0.7(graphql@16.12.0)(ws@8.19.0))(graphql@16.12.0)(react-compiler-runtime@19.1.0-rc.1(react@19.2.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(use-sync-external-store@1.6.0(react@19.2.3)) + graphql: 16.12.0 + react: 19.2.3 + react-compiler-runtime: 19.1.0-rc.1(react@19.2.3) + react-dom: 19.2.3(react@19.2.3) + transitivePeerDependencies: + - '@emotion/is-prop-valid' + - '@types/node' + - '@types/react' + - '@types/react-dom' + - graphql-ws + - immer + - use-sync-external-store + graphiql@5.2.2(@emotion/is-prop-valid@1.4.0)(@types/node@22.19.11)(@types/react-dom@19.2.3(@types/react@19.2.13))(@types/react@19.2.13)(graphql-ws@6.0.7(graphql@16.12.0)(ws@8.19.0))(graphql@16.12.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(use-sync-external-store@1.6.0(react@19.2.3)): dependencies: '@graphiql/plugin-doc-explorer': 0.4.1(@graphiql/react@0.37.3(@emotion/is-prop-valid@1.4.0)(@types/node@22.19.11)(@types/react-dom@19.2.3(@types/react@19.2.13))(@types/react@19.2.13)(graphql-ws@6.0.7(graphql@16.12.0)(ws@8.19.0))(graphql@16.12.0)(react-compiler-runtime@19.1.0-rc.1(react@19.2.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(use-sync-external-store@1.6.0(react@19.2.3)))(@types/react@19.2.13)(graphql@16.12.0)(react-compiler-runtime@19.1.0-rc.1(react@19.2.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(use-sync-external-store@1.6.0(react@19.2.3)) @@ -21140,6 +16378,10 @@ snapshots: merge2@1.4.1: {} + meros@1.3.2(@types/node@20.19.27): + optionalDependencies: + '@types/node': 20.19.27 + meros@1.3.2(@types/node@22.19.11): optionalDependencies: '@types/node': 22.19.11 @@ -22194,6 +17436,33 @@ snapshots: - supports-color - utf-8-validate + postgraphile@5.0.0-rc.7(4bdfc5e575b176d9ea8f7de07e7e5c7a): + dependencies: + '@dataplan/json': 1.0.0-rc.5(grafast@1.0.0-rc.7(graphql@16.12.0)) + '@dataplan/pg': 1.0.0-rc.5(@dataplan/json@1.0.0-rc.5(grafast@1.0.0-rc.7(graphql@16.12.0)))(grafast@1.0.0-rc.7(graphql@16.12.0))(graphile-config@1.0.0-rc.5)(graphql@16.12.0)(pg-sql2@5.0.0-rc.4)(pg@8.17.1) + '@graphile/lru': 5.0.0-rc.4 + '@types/node': 22.19.11 + '@types/pg': 8.16.0 + debug: 4.4.3(supports-color@5.5.0) + grafast: 1.0.0-rc.7(graphql@16.12.0) + grafserv: 1.0.0-rc.6(@types/node@20.19.27)(@types/react-dom@19.2.3(@types/react@19.2.13))(@types/react@19.2.13)(grafast@1.0.0-rc.7(graphql@16.12.0))(graphile-config@1.0.0-rc.5)(graphql@16.12.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(use-sync-external-store@1.6.0(react@19.2.3))(ws@8.19.0) + graphile-build: 5.0.0-rc.4(grafast@1.0.0-rc.7(graphql@16.12.0))(graphile-config@1.0.0-rc.5)(graphql@16.12.0) + graphile-build-pg: 5.0.0-rc.5(@dataplan/pg@1.0.0-rc.5(@dataplan/json@1.0.0-rc.5(grafast@1.0.0-rc.7(graphql@16.12.0)))(grafast@1.0.0-rc.7(graphql@16.12.0))(graphile-config@1.0.0-rc.5)(graphql@16.12.0)(pg-sql2@5.0.0-rc.4)(pg@8.17.1))(grafast@1.0.0-rc.7(graphql@16.12.0))(graphile-build@5.0.0-rc.4(grafast@1.0.0-rc.7(graphql@16.12.0))(graphile-config@1.0.0-rc.5)(graphql@16.12.0))(graphile-config@1.0.0-rc.5)(graphql@16.12.0)(pg-sql2@5.0.0-rc.4)(pg@8.17.1)(tamedevil@0.1.0-rc.4) + graphile-config: 1.0.0-rc.5 + graphile-utils: 5.0.0-rc.6(@dataplan/pg@1.0.0-rc.5(@dataplan/json@1.0.0-rc.5(grafast@1.0.0-rc.7(graphql@16.12.0)))(grafast@1.0.0-rc.7(graphql@16.12.0))(graphile-config@1.0.0-rc.5)(graphql@16.12.0)(pg-sql2@5.0.0-rc.4)(pg@8.17.1))(grafast@1.0.0-rc.7(graphql@16.12.0))(graphile-build-pg@5.0.0-rc.5(@dataplan/pg@1.0.0-rc.5(@dataplan/json@1.0.0-rc.5(grafast@1.0.0-rc.7(graphql@16.12.0)))(grafast@1.0.0-rc.7(graphql@16.12.0))(graphile-config@1.0.0-rc.5)(graphql@16.12.0)(pg-sql2@5.0.0-rc.4)(pg@8.17.1))(grafast@1.0.0-rc.7(graphql@16.12.0))(graphile-build@5.0.0-rc.4(grafast@1.0.0-rc.7(graphql@16.12.0))(graphile-config@1.0.0-rc.5)(graphql@16.12.0))(graphile-config@1.0.0-rc.5)(graphql@16.12.0)(pg-sql2@5.0.0-rc.4)(pg@8.17.1)(tamedevil@0.1.0-rc.4))(graphile-build@5.0.0-rc.4(grafast@1.0.0-rc.7(graphql@16.12.0))(graphile-config@1.0.0-rc.5)(graphql@16.12.0))(graphile-config@1.0.0-rc.5)(graphql@16.12.0)(tamedevil@0.1.0-rc.4) + graphql: 16.12.0 + iterall: 1.3.0 + jsonwebtoken: 9.0.3 + pg: 8.17.1 + pg-sql2: 5.0.0-rc.4 + tamedevil: 0.1.0-rc.4 + tslib: 2.8.1 + ws: 8.19.0 + transitivePeerDependencies: + - bufferutil + - supports-color + - utf-8-validate + postgres-array@2.0.0: {} postgres-array@3.0.4: {} @@ -22529,6 +17798,23 @@ snapshots: dependencies: queue-microtask: 1.2.3 + ruru-types@2.0.0-rc.5(@emotion/is-prop-valid@1.4.0)(@types/node@20.19.27)(@types/react-dom@19.2.3(@types/react@19.2.13))(@types/react@19.2.13)(graphql-ws@6.0.7(graphql@16.12.0)(ws@8.19.0))(graphql@16.12.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(use-sync-external-store@1.6.0(react@19.2.3)): + dependencies: + '@graphiql/toolkit': 0.11.3(@types/node@20.19.27)(graphql-ws@6.0.7(graphql@16.12.0)(ws@8.19.0))(graphql@16.12.0) + graphiql: 5.2.2(@emotion/is-prop-valid@1.4.0)(@types/node@20.19.27)(@types/react-dom@19.2.3(@types/react@19.2.13))(@types/react@19.2.13)(graphql-ws@6.0.7(graphql@16.12.0)(ws@8.19.0))(graphql@16.12.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(use-sync-external-store@1.6.0(react@19.2.3)) + graphql: 16.12.0 + optionalDependencies: + react: 19.2.3 + react-dom: 19.2.3(react@19.2.3) + transitivePeerDependencies: + - '@emotion/is-prop-valid' + - '@types/node' + - '@types/react' + - '@types/react-dom' + - graphql-ws + - immer + - use-sync-external-store + ruru-types@2.0.0-rc.5(@emotion/is-prop-valid@1.4.0)(@types/node@22.19.11)(@types/react-dom@19.2.3(@types/react@19.2.13))(@types/react@19.2.13)(graphql-ws@6.0.7(graphql@16.12.0)(ws@8.19.0))(graphql@16.12.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(use-sync-external-store@1.6.0(react@19.2.3)): dependencies: '@graphiql/toolkit': 0.11.3(@types/node@22.19.11)(graphql-ws@6.0.7(graphql@16.12.0)(ws@8.19.0))(graphql@16.12.0) @@ -22546,6 +17832,27 @@ snapshots: - immer - use-sync-external-store + ruru@2.0.0-rc.6(@types/node@20.19.27)(@types/react-dom@19.2.3(@types/react@19.2.13))(@types/react@19.2.13)(debug@4.4.3)(graphile-config@1.0.0-rc.5)(graphql-ws@6.0.7(graphql@16.12.0)(ws@8.19.0))(graphql@16.12.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(use-sync-external-store@1.6.0(react@19.2.3)): + dependencies: + '@emotion/is-prop-valid': 1.4.0 + graphile-config: 1.0.0-rc.5 + graphql: 16.12.0 + http-proxy: 1.18.1(debug@4.4.3) + ruru-types: 2.0.0-rc.5(@emotion/is-prop-valid@1.4.0)(@types/node@20.19.27)(@types/react-dom@19.2.3(@types/react@19.2.13))(@types/react@19.2.13)(graphql-ws@6.0.7(graphql@16.12.0)(ws@8.19.0))(graphql@16.12.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(use-sync-external-store@1.6.0(react@19.2.3)) + tslib: 2.8.1 + yargs: 17.7.2 + optionalDependencies: + react: 19.2.3 + react-dom: 19.2.3(react@19.2.3) + transitivePeerDependencies: + - '@types/node' + - '@types/react' + - '@types/react-dom' + - debug + - graphql-ws + - immer + - use-sync-external-store + ruru@2.0.0-rc.6(@types/node@22.19.11)(@types/react-dom@19.2.3(@types/react@19.2.13))(@types/react@19.2.13)(debug@4.4.3)(graphile-config@1.0.0-rc.5)(graphql-ws@6.0.7(graphql@16.12.0)(ws@8.19.0))(graphql@16.12.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(use-sync-external-store@1.6.0(react@19.2.3)): dependencies: '@emotion/is-prop-valid': 1.4.0 @@ -23027,24 +18334,6 @@ snapshots: v8-compile-cache-lib: 3.0.1 yn: 3.1.1 - ts-node@10.9.2(@types/node@22.19.11)(typescript@5.9.3): - dependencies: - '@cspotcode/source-map-support': 0.8.1 - '@tsconfig/node10': 1.0.12 - '@tsconfig/node12': 1.0.11 - '@tsconfig/node14': 1.0.3 - '@tsconfig/node16': 1.0.4 - '@types/node': 22.19.11 - acorn: 8.15.0 - acorn-walk: 8.3.4 - arg: 4.1.3 - create-require: 1.1.1 - diff: 4.0.2 - make-error: 1.3.6 - typescript: 5.9.3 - v8-compile-cache-lib: 3.0.1 - yn: 3.1.1 - tsconfig-paths@4.2.0: dependencies: json5: 2.2.3 diff --git a/sdk/constructive-react/README.md b/sdk/constructive-react/README.md new file mode 100644 index 000000000..9ec0d4202 --- /dev/null +++ b/sdk/constructive-react/README.md @@ -0,0 +1,26 @@ +# GraphQL SDK + +

+ +

+ + + +## APIs + +| API | Endpoint | Generators | Docs | +|-----|----------|------------|------| +| admin | - | React Query, ORM | [./src/admin/README.md](./src/admin/README.md) | +| auth | - | React Query, ORM | [./src/auth/README.md](./src/auth/README.md) | +| objects | - | React Query, ORM | [./src/objects/README.md](./src/objects/README.md) | +| public | - | React Query, ORM | [./src/public/README.md](./src/public/README.md) | + +--- + +Built by the [Constructive](https://constructive.io) team. + +## Disclaimer + +AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED "AS IS", AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND. + +No developer or entity involved in creating this software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the code, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value. diff --git a/sdk/constructive-react/package.json b/sdk/constructive-react/package.json new file mode 100644 index 000000000..db3a9bb32 --- /dev/null +++ b/sdk/constructive-react/package.json @@ -0,0 +1,61 @@ +{ + "name": "@constructive-io/react", + "version": "0.0.1", + "author": "Constructive ", + "description": "Constructive React - Auto-generated React Query hooks and ORM client", + "main": "index.js", + "module": "esm/index.js", + "types": "index.d.ts", + "homepage": "https://github.com/constructive-io/constructive", + "license": "MIT", + "publishConfig": { + "access": "public", + "directory": "dist" + }, + "repository": { + "type": "git", + "url": "https://github.com/constructive-io/constructive" + }, + "bugs": { + "url": "https://github.com/constructive-io/constructive/issues" + }, + "scripts": { + "clean": "makage clean", + "prepack": "npm run build", + "build": "makage build", + "build:dev": "makage build --dev", + "generate": "tsx scripts/generate-react.ts", + "lint": "eslint . --fix", + "test": "jest --passWithNoTests", + "test:watch": "jest --watch" + }, + "keywords": [ + "graphql", + "sdk", + "orm", + "react-query", + "tanstack-query", + "constructive", + "postgraphile", + "schema-dir" + ], + "dependencies": { + "@0no-co/graphql.web": "^1.1.2", + "@constructive-io/graphql-types": "workspace:^", + "@tanstack/react-query": "^5.90.19", + "gql-ast": "workspace:^", + "graphql": "^16.12.0" + }, + "peerDependencies": { + "react": "^18.0.0 || ^19.0.0" + }, + "devDependencies": { + "@constructive-io/graphql-codegen": "workspace:^", + "@types/node": "^20.12.7", + "@types/react": "^19.2.8", + "makage": "^0.1.12", + "react": "^19.2.3", + "tsx": "^4.19.0", + "typescript": "^5.9.3" + } +} diff --git a/sdk/constructive-react/scripts/generate-react.ts b/sdk/constructive-react/scripts/generate-react.ts new file mode 100644 index 000000000..f386f871d --- /dev/null +++ b/sdk/constructive-react/scripts/generate-react.ts @@ -0,0 +1,74 @@ +import { + generateMulti, + expandSchemaDirToMultiTarget, +} from '@constructive-io/graphql-codegen'; + +const SCHEMA_DIR = '../constructive-sdk/schemas'; + +const EXCLUDE_TARGETS = ['private']; + +async function main() { + console.log('Generating React SDK from schema files...'); + console.log(`Schema directory: ${SCHEMA_DIR}`); + + const baseConfig = { + schemaDir: SCHEMA_DIR, + output: './src', + orm: true, + reactQuery: true, + verbose: true, + docs: { + agents: false, + mcp: false, + skills: true + } + }; + + const expanded = expandSchemaDirToMultiTarget(baseConfig); + if (!expanded) { + console.error('No .graphql files found in schema directory.'); + console.error('Ensure .graphql schema files exist in the schemas/ directory.'); + process.exit(1); + } + + for (const target of EXCLUDE_TARGETS) { + if (target in expanded) { + delete expanded[target]; + console.log(`Excluding target: ${target}`); + } + } + + console.log(`Found targets: ${Object.keys(expanded).join(', ')}`); + + const { results, hasError } = await generateMulti({ + configs: expanded, + }); + + let realError = false; + + for (const { name, result } of results) { + if (result.success) { + console.log(`[${name}] ${result.message}`); + if (result.tables?.length) { + console.log(` Tables: ${result.tables.join(', ')}`); + } + } else if (result.message?.includes('No tables found')) { + console.log(`[${name}] SKIP: no tables (empty schema)`); + } else { + console.error(`[${name}] ERROR: ${result.message}`); + realError = true; + } + } + + if (realError) { + console.error('\nReact SDK generation failed for one or more targets'); + process.exit(1); + } + + console.log('\nReact SDK generation completed successfully!'); +} + +main().catch((err) => { + console.error('Fatal error:', err); + process.exit(1); +}); diff --git a/sdk/constructive-react/src/admin/README.md b/sdk/constructive-react/src/admin/README.md new file mode 100644 index 000000000..b5c432743 --- /dev/null +++ b/sdk/constructive-react/src/admin/README.md @@ -0,0 +1,54 @@ +# Generated GraphQL SDK + +

+ +

+ + + +## Overview + +- **Tables:** 28 +- **Custom queries:** 10 +- **Custom mutations:** 2 + +**Generators:** ORM, React Query + +## Modules + +### ORM Client (`./orm`) + +Prisma-like ORM client for programmatic GraphQL access. + +```typescript +import { createClient } from './orm'; + +const db = createClient({ + endpoint: 'https://api.example.com/graphql', +}); +``` + +See [orm/README.md](./orm/README.md) for full API reference. + +### React Query Hooks (`./hooks`) + +Type-safe React Query hooks for data fetching and mutations. + +```typescript +import { configure } from './hooks'; +import { useCarsQuery } from './hooks'; + +configure({ endpoint: 'https://api.example.com/graphql' }); +``` + +See [hooks/README.md](./hooks/README.md) for full hook reference. + +--- + +Built by the [Constructive](https://constructive.io) team. + +## Disclaimer + +AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED "AS IS", AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND. + +No developer or entity involved in creating this software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the code, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value. diff --git a/sdk/constructive-react/src/admin/hooks/README.md b/sdk/constructive-react/src/admin/hooks/README.md new file mode 100644 index 000000000..1f6aa0433 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/README.md @@ -0,0 +1,931 @@ +# React Query Hooks + +

+ +

+ + + +## Setup + +```typescript +import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; +import { configure } from './hooks'; + +configure({ + endpoint: 'https://api.example.com/graphql', + headers: { Authorization: 'Bearer ' }, +}); + +const queryClient = new QueryClient(); + +function App() { + return ( + + + + ); +} +``` + +## Hooks + +| 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 | List all appLevelRequirements | +| `useAppLevelRequirementQuery` | Query | Get one appLevelRequirement | +| `useCreateAppLevelRequirementMutation` | Mutation | Create a appLevelRequirement | +| `useUpdateAppLevelRequirementMutation` | Mutation | Update a appLevelRequirement | +| `useDeleteAppLevelRequirementMutation` | Mutation | Delete a appLevelRequirement | +| `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 | List all appAchievements | +| `useAppAchievementQuery` | Query | Get one appAchievement | +| `useCreateAppAchievementMutation` | Mutation | Create a appAchievement | +| `useUpdateAppAchievementMutation` | Mutation | Update a appAchievement | +| `useDeleteAppAchievementMutation` | Mutation | Delete a appAchievement | +| `useAppStepsQuery` | Query | List all appSteps | +| `useAppStepQuery` | Query | Get one appStep | +| `useCreateAppStepMutation` | Mutation | Create a appStep | +| `useUpdateAppStepMutation` | Mutation | Update a appStep | +| `useDeleteAppStepMutation` | Mutation | Delete a appStep | +| `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 | List all appLevels | +| `useAppLevelQuery` | Query | Get one appLevel | +| `useCreateAppLevelMutation` | Mutation | Create a appLevel | +| `useUpdateAppLevelMutation` | Mutation | Update a appLevel | +| `useDeleteAppLevelMutation` | Mutation | Delete a appLevel | +| `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 | +| `useAppPermissionsGetPaddedMaskQuery` | Query | appPermissionsGetPaddedMask | +| `useOrgPermissionsGetPaddedMaskQuery` | Query | orgPermissionsGetPaddedMask | +| `useStepsAchievedQuery` | Query | stepsAchieved | +| `useAppPermissionsGetMaskQuery` | Query | appPermissionsGetMask | +| `useOrgPermissionsGetMaskQuery` | Query | orgPermissionsGetMask | +| `useAppPermissionsGetMaskByNamesQuery` | Query | appPermissionsGetMaskByNames | +| `useOrgPermissionsGetMaskByNamesQuery` | Query | orgPermissionsGetMaskByNames | +| `useAppPermissionsGetByMaskQuery` | Query | Reads and enables pagination through a set of `AppPermission`. | +| `useOrgPermissionsGetByMaskQuery` | Query | Reads and enables pagination through a set of `OrgPermission`. | +| `useStepsRequiredQuery` | Query | Reads and enables pagination through a set of `AppLevelRequirement`. | +| `useSubmitInviteCodeMutation` | Mutation | submitInviteCode | +| `useSubmitOrgInviteCodeMutation` | Mutation | submitOrgInviteCode | + +## Table Hooks + +### AppPermission + +```typescript +// List all appPermissions +const { data, isLoading } = useAppPermissionsQuery({ + selection: { fields: { id: true, name: true, bitnum: true, bitstr: true, description: true } }, +}); + +// Get one appPermission +const { data: item } = useAppPermissionQuery({ + id: '', + selection: { fields: { id: true, name: true, bitnum: true, bitstr: true, description: true } }, +}); + +// Create a appPermission +const { mutate: create } = useCreateAppPermissionMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '', bitnum: '', bitstr: '', description: '' }); +``` + +### OrgPermission + +```typescript +// List all orgPermissions +const { data, isLoading } = useOrgPermissionsQuery({ + selection: { fields: { id: true, name: true, bitnum: true, bitstr: true, description: true } }, +}); + +// Get one orgPermission +const { data: item } = useOrgPermissionQuery({ + id: '', + selection: { fields: { id: true, name: true, bitnum: true, bitstr: true, description: true } }, +}); + +// Create a orgPermission +const { mutate: create } = useCreateOrgPermissionMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '', bitnum: '', bitstr: '', description: '' }); +``` + +### AppLevelRequirement + +```typescript +// List all appLevelRequirements +const { data, isLoading } = useAppLevelRequirementsQuery({ + selection: { fields: { id: true, name: true, level: true, description: true, requiredCount: true, priority: true, createdAt: true, updatedAt: true } }, +}); + +// Get one appLevelRequirement +const { data: item } = useAppLevelRequirementQuery({ + id: '', + selection: { fields: { id: true, name: true, level: true, description: true, requiredCount: true, priority: true, createdAt: true, updatedAt: true } }, +}); + +// Create a appLevelRequirement +const { mutate: create } = useCreateAppLevelRequirementMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '', level: '', description: '', requiredCount: '', priority: '' }); +``` + +### OrgMember + +```typescript +// List all orgMembers +const { data, isLoading } = useOrgMembersQuery({ + selection: { fields: { id: true, isAdmin: true, actorId: true, entityId: true } }, +}); + +// Get one orgMember +const { data: item } = useOrgMemberQuery({ + id: '', + selection: { fields: { id: true, isAdmin: true, actorId: true, entityId: true } }, +}); + +// Create a orgMember +const { mutate: create } = useCreateOrgMemberMutation({ + selection: { fields: { id: true } }, +}); +create({ isAdmin: '', actorId: '', 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: '' }); +``` + +### OrgPermissionDefault + +```typescript +// List all orgPermissionDefaults +const { data, isLoading } = useOrgPermissionDefaultsQuery({ + selection: { fields: { id: true, permissions: true, entityId: true } }, +}); + +// Get one orgPermissionDefault +const { data: item } = useOrgPermissionDefaultQuery({ + id: '', + selection: { fields: { id: true, permissions: true, entityId: true } }, +}); + +// Create a orgPermissionDefault +const { mutate: create } = useCreateOrgPermissionDefaultMutation({ + selection: { fields: { id: true } }, +}); +create({ permissions: '', entityId: '' }); +``` + +### AppAdminGrant + +```typescript +// List all appAdminGrants +const { data, isLoading } = useAppAdminGrantsQuery({ + selection: { fields: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }, +}); + +// Get one appAdminGrant +const { data: item } = useAppAdminGrantQuery({ + id: '', + selection: { fields: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }, +}); + +// Create a appAdminGrant +const { mutate: create } = useCreateAppAdminGrantMutation({ + selection: { fields: { id: true } }, +}); +create({ isGrant: '', actorId: '', grantorId: '' }); +``` + +### AppOwnerGrant + +```typescript +// List all appOwnerGrants +const { data, isLoading } = useAppOwnerGrantsQuery({ + selection: { fields: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }, +}); + +// Get one appOwnerGrant +const { data: item } = useAppOwnerGrantQuery({ + id: '', + selection: { fields: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }, +}); + +// Create a appOwnerGrant +const { mutate: create } = useCreateAppOwnerGrantMutation({ + selection: { fields: { id: true } }, +}); +create({ isGrant: '', actorId: '', grantorId: '' }); +``` + +### AppLimitDefault + +```typescript +// List all appLimitDefaults +const { data, isLoading } = useAppLimitDefaultsQuery({ + selection: { fields: { id: true, name: true, max: true } }, +}); + +// Get one appLimitDefault +const { data: item } = useAppLimitDefaultQuery({ + id: '', + selection: { fields: { id: true, name: true, max: true } }, +}); + +// Create a appLimitDefault +const { mutate: create } = useCreateAppLimitDefaultMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '', max: '' }); +``` + +### OrgLimitDefault + +```typescript +// List all orgLimitDefaults +const { data, isLoading } = useOrgLimitDefaultsQuery({ + selection: { fields: { id: true, name: true, max: true } }, +}); + +// Get one orgLimitDefault +const { data: item } = useOrgLimitDefaultQuery({ + id: '', + selection: { fields: { id: true, name: true, max: true } }, +}); + +// Create a orgLimitDefault +const { mutate: create } = useCreateOrgLimitDefaultMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '', max: '' }); +``` + +### OrgAdminGrant + +```typescript +// 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 orgAdminGrant +const { data: item } = useOrgAdminGrantQuery({ + id: '', + selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, +}); + +// Create a orgAdminGrant +const { mutate: create } = useCreateOrgAdminGrantMutation({ + selection: { fields: { id: true } }, +}); +create({ isGrant: '', actorId: '', entityId: '', grantorId: '' }); +``` + +### OrgOwnerGrant + +```typescript +// 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 orgOwnerGrant +const { data: item } = useOrgOwnerGrantQuery({ + id: '', + selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, +}); + +// Create a orgOwnerGrant +const { mutate: create } = useCreateOrgOwnerGrantMutation({ + selection: { fields: { id: true } }, +}); +create({ isGrant: '', actorId: '', entityId: '', grantorId: '' }); +``` + +### 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: '' }); +``` + +### AppLimit + +```typescript +// List all appLimits +const { data, isLoading } = useAppLimitsQuery({ + selection: { fields: { id: true, name: true, actorId: true, num: true, max: true } }, +}); + +// Get one appLimit +const { data: item } = useAppLimitQuery({ + id: '', + selection: { fields: { id: true, name: true, actorId: true, num: true, max: true } }, +}); + +// Create a appLimit +const { mutate: create } = useCreateAppLimitMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '', actorId: '', num: '', max: '' }); +``` + +### AppAchievement + +```typescript +// List all appAchievements +const { data, isLoading } = useAppAchievementsQuery({ + selection: { fields: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }, +}); + +// Get one appAchievement +const { data: item } = useAppAchievementQuery({ + id: '', + selection: { fields: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }, +}); + +// Create a appAchievement +const { mutate: create } = useCreateAppAchievementMutation({ + selection: { fields: { id: true } }, +}); +create({ actorId: '', name: '', count: '' }); +``` + +### AppStep + +```typescript +// List all appSteps +const { data, isLoading } = useAppStepsQuery({ + selection: { fields: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }, +}); + +// Get one appStep +const { data: item } = useAppStepQuery({ + id: '', + selection: { fields: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }, +}); + +// Create a appStep +const { mutate: create } = useCreateAppStepMutation({ + selection: { fields: { id: true } }, +}); +create({ actorId: '', name: '', count: '' }); +``` + +### ClaimedInvite + +```typescript +// List all claimedInvites +const { data, isLoading } = useClaimedInvitesQuery({ + selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }, +}); + +// Get one claimedInvite +const { data: item } = useClaimedInviteQuery({ + id: '', + selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }, +}); + +// Create a claimedInvite +const { mutate: create } = useCreateClaimedInviteMutation({ + selection: { fields: { id: true } }, +}); +create({ data: '', senderId: '', receiverId: '' }); +``` + +### AppGrant + +```typescript +// List all appGrants +const { data, isLoading } = useAppGrantsQuery({ + selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }, +}); + +// Get one appGrant +const { data: item } = useAppGrantQuery({ + id: '', + selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }, +}); + +// Create a appGrant +const { mutate: create } = useCreateAppGrantMutation({ + selection: { fields: { id: true } }, +}); +create({ permissions: '', isGrant: '', actorId: '', grantorId: '' }); +``` + +### 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: '' }); +``` + +### OrgLimit + +```typescript +// List all orgLimits +const { data, isLoading } = useOrgLimitsQuery({ + selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } }, +}); + +// Get one orgLimit +const { data: item } = useOrgLimitQuery({ + id: '', + selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } }, +}); + +// Create a orgLimit +const { mutate: create } = useCreateOrgLimitMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '', actorId: '', num: '', max: '', entityId: '' }); +``` + +### OrgClaimedInvite + +```typescript +// List all orgClaimedInvites +const { data, isLoading } = useOrgClaimedInvitesQuery({ + selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }, +}); + +// Get one orgClaimedInvite +const { data: item } = useOrgClaimedInviteQuery({ + id: '', + selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }, +}); + +// Create a orgClaimedInvite +const { mutate: create } = useCreateOrgClaimedInviteMutation({ + selection: { fields: { id: true } }, +}); +create({ data: '', senderId: '', receiverId: '', entityId: '' }); +``` + +### OrgGrant + +```typescript +// List all orgGrants +const { data, isLoading } = useOrgGrantsQuery({ + selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, +}); + +// Get one orgGrant +const { data: item } = useOrgGrantQuery({ + id: '', + selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, +}); + +// Create a orgGrant +const { mutate: create } = useCreateOrgGrantMutation({ + selection: { fields: { id: true } }, +}); +create({ permissions: '', isGrant: '', actorId: '', entityId: '', grantorId: '' }); +``` + +### OrgMembershipDefault + +```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 } }, +}); + +// Get one orgMembershipDefault +const { data: item } = useOrgMembershipDefaultQuery({ + id: '', + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true, deleteMemberCascadeGroups: true, createGroupsCascadeMembers: true } }, +}); + +// Create a orgMembershipDefault +const { mutate: create } = useCreateOrgMembershipDefaultMutation({ + selection: { fields: { id: true } }, +}); +create({ createdBy: '', updatedBy: '', isApproved: '', entityId: '', deleteMemberCascadeGroups: '', createGroupsCascadeMembers: '' }); +``` + +### 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: '' }); +``` + +### Invite + +```typescript +// List all invites +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 } }, +}); + +// Get one invite +const { data: item } = 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 } }, +}); + +// Create a invite +const { mutate: create } = useCreateInviteMutation({ + selection: { fields: { id: true } }, +}); +create({ email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '' }); +``` + +### 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 } }, +}); + +// 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 } }, +}); + +// Create a appMembership +const { mutate: create } = useCreateAppMembershipMutation({ + selection: { fields: { id: true } }, +}); +create({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '' }); +``` + +### OrgMembership + +```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 } }, +}); + +// 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 } }, +}); + +// Create a orgMembership +const { mutate: create } = useCreateOrgMembershipMutation({ + selection: { fields: { id: true } }, +}); +create({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '' }); +``` + +### OrgInvite + +```typescript +// List all orgInvites +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 } }, +}); + +// Get one orgInvite +const { data: item } = 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 } }, +}); + +// Create a orgInvite +const { mutate: create } = useCreateOrgInviteMutation({ + selection: { fields: { id: true } }, +}); +create({ email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '', entityId: '' }); +``` + +## Custom Operation Hooks + +### `useAppPermissionsGetPaddedMaskQuery` + +appPermissionsGetPaddedMask + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `mask` | BitString | + +### `useOrgPermissionsGetPaddedMaskQuery` + +orgPermissionsGetPaddedMask + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `mask` | BitString | + +### `useStepsAchievedQuery` + +stepsAchieved + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `vlevel` | String | + | `vroleId` | UUID | + +### `useAppPermissionsGetMaskQuery` + +appPermissionsGetMask + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `ids` | [UUID] | + +### `useOrgPermissionsGetMaskQuery` + +orgPermissionsGetMask + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `ids` | [UUID] | + +### `useAppPermissionsGetMaskByNamesQuery` + +appPermissionsGetMaskByNames + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `names` | [String] | + +### `useOrgPermissionsGetMaskByNamesQuery` + +orgPermissionsGetMaskByNames + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `names` | [String] | + +### `useAppPermissionsGetByMaskQuery` + +Reads and enables pagination through a set of `AppPermission`. + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `mask` | BitString | + | `first` | Int | + | `offset` | Int | + | `after` | Cursor | + +### `useOrgPermissionsGetByMaskQuery` + +Reads and enables pagination through a set of `OrgPermission`. + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `mask` | BitString | + | `first` | Int | + | `offset` | Int | + | `after` | Cursor | + +### `useStepsRequiredQuery` + +Reads and enables pagination through a set of `AppLevelRequirement`. + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `vlevel` | String | + | `vroleId` | UUID | + | `first` | Int | + | `offset` | Int | + | `after` | Cursor | + +### `useSubmitInviteCodeMutation` + +submitInviteCode + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SubmitInviteCodeInput (required) | + +### `useSubmitOrgInviteCodeMutation` + +submitOrgInviteCode + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SubmitOrgInviteCodeInput (required) | + +--- + +Built by the [Constructive](https://constructive.io) team. + +## Disclaimer + +AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED "AS IS", AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND. + +No developer or entity involved in creating this software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the code, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value. diff --git a/sdk/constructive-react/src/admin/hooks/client.ts b/sdk/constructive-react/src/admin/hooks/client.ts new file mode 100644 index 000000000..47b9aa63f --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/client.ts @@ -0,0 +1,42 @@ +/** + * ORM client wrapper for React Query hooks + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { createClient } from '../orm'; +import type { OrmClientConfig } from '../orm/client'; + +export type { OrmClientConfig } from '../orm/client'; +export type { GraphQLAdapter, GraphQLError, QueryResult } from '../orm/client'; +export { GraphQLRequestError } from '../orm/client'; + +type OrmClientInstance = ReturnType; +let client: OrmClientInstance | null = null; + +/** + * Configure the ORM client for React Query hooks + * + * @example + * ```ts + * import { configure } from './generated/hooks'; + * + * configure({ + * endpoint: 'https://api.example.com/graphql', + * headers: { Authorization: 'Bearer ' }, + * }); + * ``` + */ +export function configure(config: OrmClientConfig): void { + client = createClient(config); +} + +/** + * Get the configured ORM client instance + * @throws Error if configure() has not been called + */ +export function getClient(): OrmClientInstance { + if (!client) { + throw new Error('ORM client not configured. Call configure() before using hooks.'); + } + return client; +} diff --git a/sdk/constructive-react/src/admin/hooks/index.ts b/sdk/constructive-react/src/admin/hooks/index.ts new file mode 100644 index 000000000..25c7a8f3f --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/index.ts @@ -0,0 +1,39 @@ +/** + * 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 + * + * Usage: + * + * 1. Configure the client: + * ```ts + * import { configure } from './generated'; + * + * configure({ + * endpoint: 'https://api.example.com/graphql', + * headers: { Authorization: 'Bearer ' }, + * }); + * ``` + * + * 2. Use the hooks: + * ```tsx + * import { useCarsQuery, useCreateCarMutation } from './generated'; + * + * function MyComponent() { + * const { data, isLoading } = useCarsQuery({ + * selection: { fields: { id: true }, first: 10 }, + * }); + * const { mutate } = useCreateCarMutation({ + * selection: { fields: { id: true } }, + * }); + * // ... + * } + * ``` + */ +export * from './client'; +export * from './query-keys'; +export * from './mutation-keys'; +export * from './invalidation'; +export * from './queries'; +export * from './mutations'; diff --git a/sdk/constructive-react/src/admin/hooks/invalidation.ts b/sdk/constructive-react/src/admin/hooks/invalidation.ts new file mode 100644 index 000000000..5358dc6b0 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/invalidation.ts @@ -0,0 +1,732 @@ +/** + * Cache invalidation helpers + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +// ============================================================================ +// Type-safe cache invalidation utilities +// +// Features: +// - Simple invalidation helpers per entity +// - Cascade invalidation for parent-child relationships +// - Remove helpers for delete operations +// ============================================================================ + +import type { QueryClient } from '@tanstack/react-query'; +import { + appPermissionKeys, + orgPermissionKeys, + appLevelRequirementKeys, + orgMemberKeys, + appPermissionDefaultKeys, + orgPermissionDefaultKeys, + appAdminGrantKeys, + appOwnerGrantKeys, + appLimitDefaultKeys, + orgLimitDefaultKeys, + orgAdminGrantKeys, + orgOwnerGrantKeys, + membershipTypeKeys, + appLimitKeys, + appAchievementKeys, + appStepKeys, + claimedInviteKeys, + appGrantKeys, + appMembershipDefaultKeys, + orgLimitKeys, + orgClaimedInviteKeys, + orgGrantKeys, + orgMembershipDefaultKeys, + appLevelKeys, + inviteKeys, + appMembershipKeys, + orgMembershipKeys, + orgInviteKeys, +} from './query-keys'; +/** +// ============================================================================ +// Invalidation Helpers +// ============================================================================ + + * Type-safe query invalidation helpers + * + * @example + * ```ts + * // Invalidate all user queries + * invalidate.user.all(queryClient); + * + * // Invalidate user lists + * invalidate.user.lists(queryClient); + * + * // Invalidate specific user + * invalidate.user.detail(queryClient, userId); + * ``` + */ +export const invalidate = { + /** Invalidate appPermission queries */ appPermission: { + /** Invalidate all appPermission queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appPermissionKeys.all, + }), + /** Invalidate appPermission list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appPermissionKeys.lists(), + }), + /** Invalidate a specific appPermission */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: appPermissionKeys.detail(id), + }), + }, + /** Invalidate orgPermission queries */ orgPermission: { + /** Invalidate all orgPermission queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgPermissionKeys.all, + }), + /** Invalidate orgPermission list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgPermissionKeys.lists(), + }), + /** Invalidate a specific orgPermission */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: orgPermissionKeys.detail(id), + }), + }, + /** Invalidate appLevelRequirement queries */ appLevelRequirement: { + /** Invalidate all appLevelRequirement queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appLevelRequirementKeys.all, + }), + /** Invalidate appLevelRequirement list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appLevelRequirementKeys.lists(), + }), + /** Invalidate a specific appLevelRequirement */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: appLevelRequirementKeys.detail(id), + }), + }, + /** Invalidate orgMember queries */ orgMember: { + /** Invalidate all orgMember queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgMemberKeys.all, + }), + /** Invalidate orgMember list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgMemberKeys.lists(), + }), + /** Invalidate a specific orgMember */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: orgMemberKeys.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 orgPermissionDefault queries */ orgPermissionDefault: { + /** Invalidate all orgPermissionDefault queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgPermissionDefaultKeys.all, + }), + /** Invalidate orgPermissionDefault list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgPermissionDefaultKeys.lists(), + }), + /** Invalidate a specific orgPermissionDefault */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: orgPermissionDefaultKeys.detail(id), + }), + }, + /** Invalidate appAdminGrant queries */ appAdminGrant: { + /** Invalidate all appAdminGrant queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appAdminGrantKeys.all, + }), + /** Invalidate appAdminGrant list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appAdminGrantKeys.lists(), + }), + /** Invalidate a specific appAdminGrant */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: appAdminGrantKeys.detail(id), + }), + }, + /** Invalidate appOwnerGrant queries */ appOwnerGrant: { + /** Invalidate all appOwnerGrant queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appOwnerGrantKeys.all, + }), + /** Invalidate appOwnerGrant list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appOwnerGrantKeys.lists(), + }), + /** Invalidate a specific appOwnerGrant */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: appOwnerGrantKeys.detail(id), + }), + }, + /** Invalidate appLimitDefault queries */ appLimitDefault: { + /** Invalidate all appLimitDefault queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appLimitDefaultKeys.all, + }), + /** Invalidate appLimitDefault list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appLimitDefaultKeys.lists(), + }), + /** Invalidate a specific appLimitDefault */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: appLimitDefaultKeys.detail(id), + }), + }, + /** Invalidate orgLimitDefault queries */ orgLimitDefault: { + /** Invalidate all orgLimitDefault queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgLimitDefaultKeys.all, + }), + /** Invalidate orgLimitDefault list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgLimitDefaultKeys.lists(), + }), + /** Invalidate a specific orgLimitDefault */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: orgLimitDefaultKeys.detail(id), + }), + }, + /** Invalidate orgAdminGrant queries */ orgAdminGrant: { + /** Invalidate all orgAdminGrant queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgAdminGrantKeys.all, + }), + /** Invalidate orgAdminGrant list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgAdminGrantKeys.lists(), + }), + /** Invalidate a specific orgAdminGrant */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: orgAdminGrantKeys.detail(id), + }), + }, + /** Invalidate orgOwnerGrant queries */ orgOwnerGrant: { + /** Invalidate all orgOwnerGrant queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgOwnerGrantKeys.all, + }), + /** Invalidate orgOwnerGrant list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgOwnerGrantKeys.lists(), + }), + /** Invalidate a specific orgOwnerGrant */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: orgOwnerGrantKeys.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 appLimit queries */ appLimit: { + /** Invalidate all appLimit queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appLimitKeys.all, + }), + /** Invalidate appLimit list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appLimitKeys.lists(), + }), + /** Invalidate a specific appLimit */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: appLimitKeys.detail(id), + }), + }, + /** Invalidate appAchievement queries */ appAchievement: { + /** Invalidate all appAchievement queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appAchievementKeys.all, + }), + /** Invalidate appAchievement list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appAchievementKeys.lists(), + }), + /** Invalidate a specific appAchievement */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: appAchievementKeys.detail(id), + }), + }, + /** Invalidate appStep queries */ appStep: { + /** Invalidate all appStep queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appStepKeys.all, + }), + /** Invalidate appStep list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appStepKeys.lists(), + }), + /** Invalidate a specific appStep */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: appStepKeys.detail(id), + }), + }, + /** Invalidate claimedInvite queries */ claimedInvite: { + /** Invalidate all claimedInvite queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: claimedInviteKeys.all, + }), + /** Invalidate claimedInvite list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: claimedInviteKeys.lists(), + }), + /** Invalidate a specific claimedInvite */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: claimedInviteKeys.detail(id), + }), + }, + /** Invalidate appGrant queries */ appGrant: { + /** Invalidate all appGrant queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appGrantKeys.all, + }), + /** Invalidate appGrant list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appGrantKeys.lists(), + }), + /** Invalidate a specific appGrant */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: appGrantKeys.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 orgLimit queries */ orgLimit: { + /** Invalidate all orgLimit queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgLimitKeys.all, + }), + /** Invalidate orgLimit list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgLimitKeys.lists(), + }), + /** Invalidate a specific orgLimit */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: orgLimitKeys.detail(id), + }), + }, + /** Invalidate orgClaimedInvite queries */ orgClaimedInvite: { + /** Invalidate all orgClaimedInvite queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgClaimedInviteKeys.all, + }), + /** Invalidate orgClaimedInvite list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgClaimedInviteKeys.lists(), + }), + /** Invalidate a specific orgClaimedInvite */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: orgClaimedInviteKeys.detail(id), + }), + }, + /** Invalidate orgGrant queries */ orgGrant: { + /** Invalidate all orgGrant queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgGrantKeys.all, + }), + /** Invalidate orgGrant list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgGrantKeys.lists(), + }), + /** Invalidate a specific orgGrant */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: orgGrantKeys.detail(id), + }), + }, + /** Invalidate orgMembershipDefault queries */ orgMembershipDefault: { + /** Invalidate all orgMembershipDefault queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgMembershipDefaultKeys.all, + }), + /** Invalidate orgMembershipDefault list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgMembershipDefaultKeys.lists(), + }), + /** Invalidate a specific orgMembershipDefault */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: orgMembershipDefaultKeys.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 invite queries */ invite: { + /** Invalidate all invite queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: inviteKeys.all, + }), + /** Invalidate invite list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: inviteKeys.lists(), + }), + /** Invalidate a specific invite */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: inviteKeys.detail(id), + }), + }, + /** Invalidate appMembership queries */ appMembership: { + /** Invalidate all appMembership queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appMembershipKeys.all, + }), + /** Invalidate appMembership list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appMembershipKeys.lists(), + }), + /** Invalidate a specific appMembership */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: appMembershipKeys.detail(id), + }), + }, + /** Invalidate orgMembership queries */ orgMembership: { + /** Invalidate all orgMembership queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgMembershipKeys.all, + }), + /** Invalidate orgMembership list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgMembershipKeys.lists(), + }), + /** Invalidate a specific orgMembership */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: orgMembershipKeys.detail(id), + }), + }, + /** Invalidate orgInvite queries */ orgInvite: { + /** Invalidate all orgInvite queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgInviteKeys.all, + }), + /** Invalidate orgInvite list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgInviteKeys.lists(), + }), + /** Invalidate a specific orgInvite */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: orgInviteKeys.detail(id), + }), + }, +} as const; +/** + +// ============================================================================ +// Remove Helpers (for delete operations) +// ============================================================================ + + * Remove queries from cache (for delete operations) + * + * Use these when an entity is deleted to remove it from cache + * instead of just invalidating (which would trigger a refetch). + */ +export const remove = { + /** Remove appPermission from cache */ appPermission: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: appPermissionKeys.detail(id), + }); + }, + /** Remove orgPermission from cache */ orgPermission: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: orgPermissionKeys.detail(id), + }); + }, + /** Remove appLevelRequirement from cache */ appLevelRequirement: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: appLevelRequirementKeys.detail(id), + }); + }, + /** Remove orgMember from cache */ orgMember: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: orgMemberKeys.detail(id), + }); + }, + /** Remove appPermissionDefault from cache */ appPermissionDefault: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: appPermissionDefaultKeys.detail(id), + }); + }, + /** Remove orgPermissionDefault from cache */ orgPermissionDefault: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: orgPermissionDefaultKeys.detail(id), + }); + }, + /** Remove appAdminGrant from cache */ appAdminGrant: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: appAdminGrantKeys.detail(id), + }); + }, + /** Remove appOwnerGrant from cache */ appOwnerGrant: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: appOwnerGrantKeys.detail(id), + }); + }, + /** Remove appLimitDefault from cache */ appLimitDefault: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: appLimitDefaultKeys.detail(id), + }); + }, + /** Remove orgLimitDefault from cache */ orgLimitDefault: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: orgLimitDefaultKeys.detail(id), + }); + }, + /** Remove orgAdminGrant from cache */ orgAdminGrant: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: orgAdminGrantKeys.detail(id), + }); + }, + /** Remove orgOwnerGrant from cache */ orgOwnerGrant: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: orgOwnerGrantKeys.detail(id), + }); + }, + /** Remove membershipType from cache */ membershipType: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: membershipTypeKeys.detail(id), + }); + }, + /** Remove appLimit from cache */ appLimit: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: appLimitKeys.detail(id), + }); + }, + /** Remove appAchievement from cache */ appAchievement: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: appAchievementKeys.detail(id), + }); + }, + /** Remove appStep from cache */ appStep: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: appStepKeys.detail(id), + }); + }, + /** Remove claimedInvite from cache */ claimedInvite: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: claimedInviteKeys.detail(id), + }); + }, + /** Remove appGrant from cache */ appGrant: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: appGrantKeys.detail(id), + }); + }, + /** Remove appMembershipDefault from cache */ appMembershipDefault: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: appMembershipDefaultKeys.detail(id), + }); + }, + /** Remove orgLimit from cache */ orgLimit: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: orgLimitKeys.detail(id), + }); + }, + /** Remove orgClaimedInvite from cache */ orgClaimedInvite: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: orgClaimedInviteKeys.detail(id), + }); + }, + /** Remove orgGrant from cache */ orgGrant: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: orgGrantKeys.detail(id), + }); + }, + /** Remove orgMembershipDefault from cache */ orgMembershipDefault: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: orgMembershipDefaultKeys.detail(id), + }); + }, + /** Remove appLevel from cache */ appLevel: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: appLevelKeys.detail(id), + }); + }, + /** Remove invite from cache */ invite: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: inviteKeys.detail(id), + }); + }, + /** Remove appMembership from cache */ appMembership: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: appMembershipKeys.detail(id), + }); + }, + /** Remove orgMembership from cache */ orgMembership: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: orgMembershipKeys.detail(id), + }); + }, + /** Remove orgInvite from cache */ orgInvite: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: orgInviteKeys.detail(id), + }); + }, +} as const; diff --git a/sdk/constructive-react/src/admin/hooks/mutation-keys.ts b/sdk/constructive-react/src/admin/hooks/mutation-keys.ts new file mode 100644 index 000000000..788ebfd51 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutation-keys.ts @@ -0,0 +1,331 @@ +/** + * Centralized mutation key factory + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +// ============================================================================ +// Mutation keys for tracking in-flight mutations +// +// Benefits: +// - Track mutation state with useIsMutating +// - Implement optimistic updates with proper rollback +// - Deduplicate identical mutations +// - Coordinate related mutations +// ============================================================================ + +// ============================================================================ +// Entity Mutation Keys +// ============================================================================ + +export const appPermissionMutationKeys = { + /** All appPermission mutation keys */ all: ['mutation', 'apppermission'] as const, + /** Create appPermission mutation key */ create: () => + ['mutation', 'apppermission', 'create'] as const, + /** Update appPermission mutation key */ update: (id: string | number) => + ['mutation', 'apppermission', 'update', id] as const, + /** Delete appPermission mutation key */ delete: (id: string | number) => + ['mutation', 'apppermission', 'delete', id] as const, +} as const; +export const orgPermissionMutationKeys = { + /** All orgPermission mutation keys */ all: ['mutation', 'orgpermission'] as const, + /** Create orgPermission mutation key */ create: () => + ['mutation', 'orgpermission', 'create'] as const, + /** Update orgPermission mutation key */ update: (id: string | number) => + ['mutation', 'orgpermission', 'update', id] as const, + /** Delete orgPermission mutation key */ delete: (id: string | number) => + ['mutation', 'orgpermission', 'delete', id] as const, +} as const; +export const appLevelRequirementMutationKeys = { + /** All appLevelRequirement mutation keys */ all: ['mutation', 'applevelrequirement'] as const, + /** Create appLevelRequirement mutation key */ create: () => + ['mutation', 'applevelrequirement', 'create'] as const, + /** Update appLevelRequirement mutation key */ update: (id: string | number) => + ['mutation', 'applevelrequirement', 'update', id] as const, + /** Delete appLevelRequirement mutation key */ delete: (id: string | number) => + ['mutation', 'applevelrequirement', 'delete', id] as const, +} as const; +export const orgMemberMutationKeys = { + /** All orgMember mutation keys */ all: ['mutation', 'orgmember'] as const, + /** Create orgMember mutation key */ create: () => ['mutation', 'orgmember', 'create'] as const, + /** Update orgMember mutation key */ update: (id: string | number) => + ['mutation', 'orgmember', 'update', id] as const, + /** Delete orgMember mutation key */ delete: (id: string | number) => + ['mutation', 'orgmember', '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 orgPermissionDefaultMutationKeys = { + /** All orgPermissionDefault mutation keys */ all: ['mutation', 'orgpermissiondefault'] as const, + /** Create orgPermissionDefault mutation key */ create: () => + ['mutation', 'orgpermissiondefault', 'create'] as const, + /** Update orgPermissionDefault mutation key */ update: (id: string | number) => + ['mutation', 'orgpermissiondefault', 'update', id] as const, + /** Delete orgPermissionDefault mutation key */ delete: (id: string | number) => + ['mutation', 'orgpermissiondefault', 'delete', id] as const, +} as const; +export const appAdminGrantMutationKeys = { + /** All appAdminGrant mutation keys */ all: ['mutation', 'appadmingrant'] as const, + /** Create appAdminGrant mutation key */ create: () => + ['mutation', 'appadmingrant', 'create'] as const, + /** Update appAdminGrant mutation key */ update: (id: string | number) => + ['mutation', 'appadmingrant', 'update', id] as const, + /** Delete appAdminGrant mutation key */ delete: (id: string | number) => + ['mutation', 'appadmingrant', 'delete', id] as const, +} as const; +export const appOwnerGrantMutationKeys = { + /** All appOwnerGrant mutation keys */ all: ['mutation', 'appownergrant'] as const, + /** Create appOwnerGrant mutation key */ create: () => + ['mutation', 'appownergrant', 'create'] as const, + /** Update appOwnerGrant mutation key */ update: (id: string | number) => + ['mutation', 'appownergrant', 'update', id] as const, + /** 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: () => + ['mutation', 'orgadmingrant', 'create'] as const, + /** Update orgAdminGrant mutation key */ update: (id: string | number) => + ['mutation', 'orgadmingrant', 'update', id] as const, + /** Delete orgAdminGrant mutation key */ delete: (id: string | number) => + ['mutation', 'orgadmingrant', 'delete', id] as const, +} as const; +export const orgOwnerGrantMutationKeys = { + /** All orgOwnerGrant mutation keys */ all: ['mutation', 'orgownergrant'] as const, + /** Create orgOwnerGrant mutation key */ create: () => + ['mutation', 'orgownergrant', 'create'] as const, + /** Update orgOwnerGrant mutation key */ update: (id: string | number) => + ['mutation', 'orgownergrant', 'update', id] as const, + /** Delete orgOwnerGrant mutation key */ delete: (id: string | number) => + ['mutation', 'orgownergrant', '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 appLimitMutationKeys = { + /** All appLimit mutation keys */ all: ['mutation', 'applimit'] as const, + /** Create appLimit mutation key */ create: () => ['mutation', 'applimit', 'create'] as const, + /** Update appLimit mutation key */ update: (id: string | number) => + ['mutation', 'applimit', 'update', id] as const, + /** Delete appLimit mutation key */ delete: (id: string | number) => + ['mutation', 'applimit', 'delete', id] as const, +} as const; +export const appAchievementMutationKeys = { + /** All appAchievement mutation keys */ all: ['mutation', 'appachievement'] as const, + /** Create appAchievement mutation key */ create: () => + ['mutation', 'appachievement', 'create'] as const, + /** Update appAchievement mutation key */ update: (id: string | number) => + ['mutation', 'appachievement', 'update', id] as const, + /** Delete appAchievement mutation key */ delete: (id: string | number) => + ['mutation', 'appachievement', 'delete', id] as const, +} as const; +export const appStepMutationKeys = { + /** All appStep mutation keys */ all: ['mutation', 'appstep'] as const, + /** Create appStep mutation key */ create: () => ['mutation', 'appstep', 'create'] as const, + /** Update appStep mutation key */ update: (id: string | number) => + ['mutation', 'appstep', 'update', id] as const, + /** Delete appStep mutation key */ delete: (id: string | number) => + ['mutation', 'appstep', 'delete', id] as const, +} as const; +export const claimedInviteMutationKeys = { + /** All claimedInvite mutation keys */ all: ['mutation', 'claimedinvite'] as const, + /** Create claimedInvite mutation key */ create: () => + ['mutation', 'claimedinvite', 'create'] as const, + /** Update claimedInvite mutation key */ update: (id: string | number) => + ['mutation', 'claimedinvite', 'update', id] as const, + /** Delete claimedInvite mutation key */ delete: (id: string | number) => + ['mutation', 'claimedinvite', 'delete', id] as const, +} as const; +export const appGrantMutationKeys = { + /** All appGrant mutation keys */ all: ['mutation', 'appgrant'] as const, + /** Create appGrant mutation key */ create: () => ['mutation', 'appgrant', 'create'] as const, + /** Update appGrant mutation key */ update: (id: string | number) => + ['mutation', 'appgrant', 'update', id] as const, + /** Delete appGrant mutation key */ delete: (id: string | number) => + ['mutation', 'appgrant', '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 orgLimitMutationKeys = { + /** All orgLimit mutation keys */ all: ['mutation', 'orglimit'] as const, + /** Create orgLimit mutation key */ create: () => ['mutation', 'orglimit', 'create'] as const, + /** Update orgLimit mutation key */ update: (id: string | number) => + ['mutation', 'orglimit', 'update', id] as const, + /** Delete orgLimit mutation key */ delete: (id: string | number) => + ['mutation', 'orglimit', 'delete', id] as const, +} as const; +export const orgClaimedInviteMutationKeys = { + /** All orgClaimedInvite mutation keys */ all: ['mutation', 'orgclaimedinvite'] as const, + /** Create orgClaimedInvite mutation key */ create: () => + ['mutation', 'orgclaimedinvite', 'create'] as const, + /** Update orgClaimedInvite mutation key */ update: (id: string | number) => + ['mutation', 'orgclaimedinvite', 'update', id] as const, + /** Delete orgClaimedInvite mutation key */ delete: (id: string | number) => + ['mutation', 'orgclaimedinvite', 'delete', id] as const, +} as const; +export const orgGrantMutationKeys = { + /** All orgGrant mutation keys */ all: ['mutation', 'orggrant'] as const, + /** Create orgGrant mutation key */ create: () => ['mutation', 'orggrant', 'create'] as const, + /** Update orgGrant mutation key */ update: (id: string | number) => + ['mutation', 'orggrant', 'update', id] as const, + /** Delete orgGrant mutation key */ delete: (id: string | number) => + ['mutation', 'orggrant', 'delete', id] as const, +} as const; +export const orgMembershipDefaultMutationKeys = { + /** All orgMembershipDefault mutation keys */ all: ['mutation', 'orgmembershipdefault'] as const, + /** Create orgMembershipDefault mutation key */ create: () => + ['mutation', 'orgmembershipdefault', 'create'] as const, + /** Update orgMembershipDefault mutation key */ update: (id: string | number) => + ['mutation', 'orgmembershipdefault', 'update', id] as const, + /** 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, + /** Update invite mutation key */ update: (id: string | number) => + ['mutation', 'invite', 'update', id] as const, + /** Delete invite mutation key */ delete: (id: string | number) => + ['mutation', 'invite', 'delete', id] as const, +} as const; +export const appMembershipMutationKeys = { + /** All appMembership mutation keys */ all: ['mutation', 'appmembership'] as const, + /** Create appMembership mutation key */ create: () => + ['mutation', 'appmembership', 'create'] as const, + /** Update appMembership mutation key */ update: (id: string | number) => + ['mutation', 'appmembership', 'update', id] as const, + /** Delete appMembership mutation key */ delete: (id: string | number) => + ['mutation', 'appmembership', 'delete', id] as const, +} as const; +export const orgMembershipMutationKeys = { + /** All orgMembership mutation keys */ all: ['mutation', 'orgmembership'] as const, + /** Create orgMembership mutation key */ create: () => + ['mutation', 'orgmembership', 'create'] as const, + /** Update orgMembership mutation key */ update: (id: string | number) => + ['mutation', 'orgmembership', 'update', id] as const, + /** Delete orgMembership mutation key */ delete: (id: string | number) => + ['mutation', 'orgmembership', 'delete', id] as const, +} as const; +export const orgInviteMutationKeys = { + /** All orgInvite mutation keys */ all: ['mutation', 'orginvite'] as const, + /** Create orgInvite mutation key */ create: () => ['mutation', 'orginvite', 'create'] as const, + /** Update orgInvite mutation key */ update: (id: string | number) => + ['mutation', 'orginvite', 'update', id] as const, + /** Delete orgInvite mutation key */ delete: (id: string | number) => + ['mutation', 'orginvite', 'delete', id] as const, +} as const; + +// ============================================================================ +// Custom Mutation Keys +// ============================================================================ + +export const customMutationKeys = { + /** Mutation key for submitInviteCode */ submitInviteCode: (identifier?: string) => + identifier + ? (['mutation', 'submitInviteCode', identifier] as const) + : (['mutation', 'submitInviteCode'] as const), + /** Mutation key for submitOrgInviteCode */ submitOrgInviteCode: (identifier?: string) => + identifier + ? (['mutation', 'submitOrgInviteCode', identifier] as const) + : (['mutation', 'submitOrgInviteCode'] as const), +} as const; +/** + +// ============================================================================ +// Unified Mutation Key Store +// ============================================================================ + + * Unified mutation key store + * + * Use this for tracking in-flight mutations with useIsMutating. + * + * @example + * ```ts + * import { useIsMutating } from '@tanstack/react-query'; + * import { mutationKeys } from './generated'; + * + * // Check if any user mutations are in progress + * const isMutatingUser = useIsMutating({ mutationKey: mutationKeys.user.all }); + * + * // Check if a specific user is being updated + * const isUpdating = useIsMutating({ mutationKey: mutationKeys.user.update(userId) }); + * ``` + */ +export const mutationKeys = { + appPermission: appPermissionMutationKeys, + orgPermission: orgPermissionMutationKeys, + appLevelRequirement: appLevelRequirementMutationKeys, + orgMember: orgMemberMutationKeys, + appPermissionDefault: appPermissionDefaultMutationKeys, + orgPermissionDefault: orgPermissionDefaultMutationKeys, + appAdminGrant: appAdminGrantMutationKeys, + appOwnerGrant: appOwnerGrantMutationKeys, + appLimitDefault: appLimitDefaultMutationKeys, + orgLimitDefault: orgLimitDefaultMutationKeys, + orgAdminGrant: orgAdminGrantMutationKeys, + orgOwnerGrant: orgOwnerGrantMutationKeys, + membershipType: membershipTypeMutationKeys, + appLimit: appLimitMutationKeys, + appAchievement: appAchievementMutationKeys, + appStep: appStepMutationKeys, + claimedInvite: claimedInviteMutationKeys, + appGrant: appGrantMutationKeys, + appMembershipDefault: appMembershipDefaultMutationKeys, + orgLimit: orgLimitMutationKeys, + orgClaimedInvite: orgClaimedInviteMutationKeys, + orgGrant: orgGrantMutationKeys, + orgMembershipDefault: orgMembershipDefaultMutationKeys, + appLevel: appLevelMutationKeys, + invite: inviteMutationKeys, + appMembership: appMembershipMutationKeys, + orgMembership: orgMembershipMutationKeys, + orgInvite: orgInviteMutationKeys, + custom: customMutationKeys, +} as const; diff --git a/sdk/constructive-react/src/admin/hooks/mutations/index.ts b/sdk/constructive-react/src/admin/hooks/mutations/index.ts new file mode 100644 index 000000000..0f9e610e3 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/index.ts @@ -0,0 +1,91 @@ +/** + * Mutation hooks barrel export + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export * from './useCreateAppPermissionMutation'; +export * from './useUpdateAppPermissionMutation'; +export * from './useDeleteAppPermissionMutation'; +export * from './useCreateOrgPermissionMutation'; +export * from './useUpdateOrgPermissionMutation'; +export * from './useDeleteOrgPermissionMutation'; +export * from './useCreateAppLevelRequirementMutation'; +export * from './useUpdateAppLevelRequirementMutation'; +export * from './useDeleteAppLevelRequirementMutation'; +export * from './useCreateOrgMemberMutation'; +export * from './useUpdateOrgMemberMutation'; +export * from './useDeleteOrgMemberMutation'; +export * from './useCreateAppPermissionDefaultMutation'; +export * from './useUpdateAppPermissionDefaultMutation'; +export * from './useDeleteAppPermissionDefaultMutation'; +export * from './useCreateOrgPermissionDefaultMutation'; +export * from './useUpdateOrgPermissionDefaultMutation'; +export * from './useDeleteOrgPermissionDefaultMutation'; +export * from './useCreateAppAdminGrantMutation'; +export * from './useUpdateAppAdminGrantMutation'; +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 './useCreateMembershipTypeMutation'; +export * from './useUpdateMembershipTypeMutation'; +export * from './useDeleteMembershipTypeMutation'; +export * from './useCreateAppLimitMutation'; +export * from './useUpdateAppLimitMutation'; +export * from './useDeleteAppLimitMutation'; +export * from './useCreateAppAchievementMutation'; +export * from './useUpdateAppAchievementMutation'; +export * from './useDeleteAppAchievementMutation'; +export * from './useCreateAppStepMutation'; +export * from './useUpdateAppStepMutation'; +export * from './useDeleteAppStepMutation'; +export * from './useCreateClaimedInviteMutation'; +export * from './useUpdateClaimedInviteMutation'; +export * from './useDeleteClaimedInviteMutation'; +export * from './useCreateAppGrantMutation'; +export * from './useUpdateAppGrantMutation'; +export * from './useDeleteAppGrantMutation'; +export * from './useCreateAppMembershipDefaultMutation'; +export * from './useUpdateAppMembershipDefaultMutation'; +export * from './useDeleteAppMembershipDefaultMutation'; +export * from './useCreateOrgLimitMutation'; +export * from './useUpdateOrgLimitMutation'; +export * from './useDeleteOrgLimitMutation'; +export * from './useCreateOrgClaimedInviteMutation'; +export * from './useUpdateOrgClaimedInviteMutation'; +export * from './useDeleteOrgClaimedInviteMutation'; +export * from './useCreateOrgGrantMutation'; +export * from './useUpdateOrgGrantMutation'; +export * from './useDeleteOrgGrantMutation'; +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 './useCreateAppMembershipMutation'; +export * from './useUpdateAppMembershipMutation'; +export * from './useDeleteAppMembershipMutation'; +export * from './useCreateOrgMembershipMutation'; +export * from './useUpdateOrgMembershipMutation'; +export * from './useDeleteOrgMembershipMutation'; +export * from './useCreateOrgInviteMutation'; +export * from './useUpdateOrgInviteMutation'; +export * from './useDeleteOrgInviteMutation'; +export * from './useSubmitInviteCodeMutation'; +export * from './useSubmitOrgInviteCodeMutation'; diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppAchievementMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppAchievementMutation.ts new file mode 100644 index 000000000..b39c550bf --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppAchievementMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for AppAchievement + * @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 { appAchievementKeys } from '../query-keys'; +import { appAchievementMutationKeys } from '../mutation-keys'; +import type { + AppAchievementSelect, + AppAchievementWithRelations, + CreateAppAchievementInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppAchievementSelect, + AppAchievementWithRelations, + CreateAppAchievementInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a AppAchievement + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateAppAchievementMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateAppAchievementMutation( + params: { + selection: { + fields: S & AppAchievementSelect; + } & HookStrictSelect, AppAchievementSelect>; + } & Omit< + UseMutationOptions< + { + createAppAchievement: { + appAchievement: InferSelectResult; + }; + }, + Error, + CreateAppAchievementInput['appAchievement'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createAppAchievement: { + appAchievement: InferSelectResult; + }; + }, + Error, + CreateAppAchievementInput['appAchievement'] +>; +export function useCreateAppAchievementMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appAchievementMutationKeys.create(), + mutationFn: (data: CreateAppAchievementInput['appAchievement']) => + getClient() + .appAchievement.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: appAchievementKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppAdminGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppAdminGrantMutation.ts new file mode 100644 index 000000000..7dd44401e --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppAdminGrantMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for AppAdminGrant + * @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 { appAdminGrantKeys } from '../query-keys'; +import { appAdminGrantMutationKeys } from '../mutation-keys'; +import type { + AppAdminGrantSelect, + AppAdminGrantWithRelations, + CreateAppAdminGrantInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppAdminGrantSelect, + AppAdminGrantWithRelations, + CreateAppAdminGrantInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a AppAdminGrant + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateAppAdminGrantMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateAppAdminGrantMutation( + params: { + selection: { + fields: S & AppAdminGrantSelect; + } & HookStrictSelect, AppAdminGrantSelect>; + } & Omit< + UseMutationOptions< + { + createAppAdminGrant: { + appAdminGrant: InferSelectResult; + }; + }, + Error, + CreateAppAdminGrantInput['appAdminGrant'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createAppAdminGrant: { + appAdminGrant: InferSelectResult; + }; + }, + Error, + CreateAppAdminGrantInput['appAdminGrant'] +>; +export function useCreateAppAdminGrantMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appAdminGrantMutationKeys.create(), + mutationFn: (data: CreateAppAdminGrantInput['appAdminGrant']) => + getClient() + .appAdminGrant.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: appAdminGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppGrantMutation.ts new file mode 100644 index 000000000..0e2e4c286 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppGrantMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for AppGrant + * @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 { appGrantKeys } from '../query-keys'; +import { appGrantMutationKeys } from '../mutation-keys'; +import type { + AppGrantSelect, + AppGrantWithRelations, + CreateAppGrantInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppGrantSelect, + AppGrantWithRelations, + CreateAppGrantInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a AppGrant + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateAppGrantMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateAppGrantMutation( + params: { + selection: { + fields: S & AppGrantSelect; + } & HookStrictSelect, AppGrantSelect>; + } & Omit< + UseMutationOptions< + { + createAppGrant: { + appGrant: InferSelectResult; + }; + }, + Error, + CreateAppGrantInput['appGrant'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createAppGrant: { + appGrant: InferSelectResult; + }; + }, + Error, + CreateAppGrantInput['appGrant'] +>; +export function useCreateAppGrantMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appGrantMutationKeys.create(), + mutationFn: (data: CreateAppGrantInput['appGrant']) => + getClient() + .appGrant.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: appGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLevelMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLevelMutation.ts new file mode 100644 index 000000000..393ed2c2a --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLevelMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for AppLevel + * @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 { appLevelKeys } from '../query-keys'; +import { appLevelMutationKeys } from '../mutation-keys'; +import type { + AppLevelSelect, + AppLevelWithRelations, + CreateAppLevelInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppLevelSelect, + AppLevelWithRelations, + CreateAppLevelInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a AppLevel + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateAppLevelMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateAppLevelMutation( + params: { + selection: { + fields: S & AppLevelSelect; + } & HookStrictSelect, AppLevelSelect>; + } & Omit< + UseMutationOptions< + { + createAppLevel: { + appLevel: InferSelectResult; + }; + }, + Error, + CreateAppLevelInput['appLevel'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createAppLevel: { + appLevel: InferSelectResult; + }; + }, + Error, + CreateAppLevelInput['appLevel'] +>; +export function useCreateAppLevelMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appLevelMutationKeys.create(), + mutationFn: (data: CreateAppLevelInput['appLevel']) => + getClient() + .appLevel.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: appLevelKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLevelRequirementMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLevelRequirementMutation.ts new file mode 100644 index 000000000..cde42cf7e --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLevelRequirementMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for AppLevelRequirement + * @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 { appLevelRequirementKeys } from '../query-keys'; +import { appLevelRequirementMutationKeys } from '../mutation-keys'; +import type { + AppLevelRequirementSelect, + AppLevelRequirementWithRelations, + CreateAppLevelRequirementInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppLevelRequirementSelect, + AppLevelRequirementWithRelations, + CreateAppLevelRequirementInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a AppLevelRequirement + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateAppLevelRequirementMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateAppLevelRequirementMutation( + params: { + selection: { + fields: S & AppLevelRequirementSelect; + } & HookStrictSelect, AppLevelRequirementSelect>; + } & Omit< + UseMutationOptions< + { + createAppLevelRequirement: { + appLevelRequirement: InferSelectResult; + }; + }, + Error, + CreateAppLevelRequirementInput['appLevelRequirement'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createAppLevelRequirement: { + appLevelRequirement: InferSelectResult; + }; + }, + Error, + CreateAppLevelRequirementInput['appLevelRequirement'] +>; +export function useCreateAppLevelRequirementMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appLevelRequirementMutationKeys.create(), + mutationFn: (data: CreateAppLevelRequirementInput['appLevelRequirement']) => + getClient() + .appLevelRequirement.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: appLevelRequirementKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLimitDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLimitDefaultMutation.ts new file mode 100644 index 000000000..40b24b14d --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLimitDefaultMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for AppLimitDefault + * @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 { appLimitDefaultKeys } from '../query-keys'; +import { appLimitDefaultMutationKeys } from '../mutation-keys'; +import type { + AppLimitDefaultSelect, + AppLimitDefaultWithRelations, + CreateAppLimitDefaultInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppLimitDefaultSelect, + AppLimitDefaultWithRelations, + CreateAppLimitDefaultInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a AppLimitDefault + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateAppLimitDefaultMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateAppLimitDefaultMutation( + params: { + selection: { + fields: S & AppLimitDefaultSelect; + } & HookStrictSelect, AppLimitDefaultSelect>; + } & Omit< + UseMutationOptions< + { + createAppLimitDefault: { + appLimitDefault: InferSelectResult; + }; + }, + Error, + CreateAppLimitDefaultInput['appLimitDefault'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createAppLimitDefault: { + appLimitDefault: InferSelectResult; + }; + }, + Error, + CreateAppLimitDefaultInput['appLimitDefault'] +>; +export function useCreateAppLimitDefaultMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appLimitDefaultMutationKeys.create(), + mutationFn: (data: CreateAppLimitDefaultInput['appLimitDefault']) => + getClient() + .appLimitDefault.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: appLimitDefaultKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLimitMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLimitMutation.ts new file mode 100644 index 000000000..b7f7072be --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLimitMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for AppLimit + * @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 { appLimitKeys } from '../query-keys'; +import { appLimitMutationKeys } from '../mutation-keys'; +import type { + AppLimitSelect, + AppLimitWithRelations, + CreateAppLimitInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppLimitSelect, + AppLimitWithRelations, + CreateAppLimitInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a AppLimit + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateAppLimitMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateAppLimitMutation( + params: { + selection: { + fields: S & AppLimitSelect; + } & HookStrictSelect, AppLimitSelect>; + } & Omit< + UseMutationOptions< + { + createAppLimit: { + appLimit: InferSelectResult; + }; + }, + Error, + CreateAppLimitInput['appLimit'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createAppLimit: { + appLimit: InferSelectResult; + }; + }, + Error, + CreateAppLimitInput['appLimit'] +>; +export function useCreateAppLimitMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appLimitMutationKeys.create(), + mutationFn: (data: CreateAppLimitInput['appLimit']) => + getClient() + .appLimit.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: appLimitKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppMembershipDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppMembershipDefaultMutation.ts new file mode 100644 index 000000000..0a4ecf4bc --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppMembershipDefaultMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for AppMembershipDefault + * @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 { appMembershipDefaultKeys } from '../query-keys'; +import { appMembershipDefaultMutationKeys } from '../mutation-keys'; +import type { + AppMembershipDefaultSelect, + AppMembershipDefaultWithRelations, + CreateAppMembershipDefaultInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppMembershipDefaultSelect, + AppMembershipDefaultWithRelations, + CreateAppMembershipDefaultInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a AppMembershipDefault + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateAppMembershipDefaultMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateAppMembershipDefaultMutation( + params: { + selection: { + fields: S & AppMembershipDefaultSelect; + } & HookStrictSelect, AppMembershipDefaultSelect>; + } & Omit< + UseMutationOptions< + { + createAppMembershipDefault: { + appMembershipDefault: InferSelectResult; + }; + }, + Error, + CreateAppMembershipDefaultInput['appMembershipDefault'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createAppMembershipDefault: { + appMembershipDefault: InferSelectResult; + }; + }, + Error, + CreateAppMembershipDefaultInput['appMembershipDefault'] +>; +export function useCreateAppMembershipDefaultMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appMembershipDefaultMutationKeys.create(), + mutationFn: (data: CreateAppMembershipDefaultInput['appMembershipDefault']) => + getClient() + .appMembershipDefault.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: appMembershipDefaultKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppMembershipMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppMembershipMutation.ts new file mode 100644 index 000000000..fa08b65df --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppMembershipMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for AppMembership + * @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 { appMembershipKeys } from '../query-keys'; +import { appMembershipMutationKeys } from '../mutation-keys'; +import type { + AppMembershipSelect, + AppMembershipWithRelations, + CreateAppMembershipInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppMembershipSelect, + AppMembershipWithRelations, + CreateAppMembershipInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a AppMembership + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateAppMembershipMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateAppMembershipMutation( + params: { + selection: { + fields: S & AppMembershipSelect; + } & HookStrictSelect, AppMembershipSelect>; + } & Omit< + UseMutationOptions< + { + createAppMembership: { + appMembership: InferSelectResult; + }; + }, + Error, + CreateAppMembershipInput['appMembership'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createAppMembership: { + appMembership: InferSelectResult; + }; + }, + Error, + CreateAppMembershipInput['appMembership'] +>; +export function useCreateAppMembershipMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appMembershipMutationKeys.create(), + mutationFn: (data: CreateAppMembershipInput['appMembership']) => + getClient() + .appMembership.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: appMembershipKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppOwnerGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppOwnerGrantMutation.ts new file mode 100644 index 000000000..81f12be36 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppOwnerGrantMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for AppOwnerGrant + * @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 { appOwnerGrantKeys } from '../query-keys'; +import { appOwnerGrantMutationKeys } from '../mutation-keys'; +import type { + AppOwnerGrantSelect, + AppOwnerGrantWithRelations, + CreateAppOwnerGrantInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppOwnerGrantSelect, + AppOwnerGrantWithRelations, + CreateAppOwnerGrantInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a AppOwnerGrant + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateAppOwnerGrantMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateAppOwnerGrantMutation( + params: { + selection: { + fields: S & AppOwnerGrantSelect; + } & HookStrictSelect, AppOwnerGrantSelect>; + } & Omit< + UseMutationOptions< + { + createAppOwnerGrant: { + appOwnerGrant: InferSelectResult; + }; + }, + Error, + CreateAppOwnerGrantInput['appOwnerGrant'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createAppOwnerGrant: { + appOwnerGrant: InferSelectResult; + }; + }, + Error, + CreateAppOwnerGrantInput['appOwnerGrant'] +>; +export function useCreateAppOwnerGrantMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appOwnerGrantMutationKeys.create(), + mutationFn: (data: CreateAppOwnerGrantInput['appOwnerGrant']) => + getClient() + .appOwnerGrant.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: appOwnerGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppPermissionDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppPermissionDefaultMutation.ts new file mode 100644 index 000000000..1f2314266 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppPermissionDefaultMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for AppPermissionDefault + * @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 { appPermissionDefaultKeys } from '../query-keys'; +import { appPermissionDefaultMutationKeys } from '../mutation-keys'; +import type { + AppPermissionDefaultSelect, + AppPermissionDefaultWithRelations, + CreateAppPermissionDefaultInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppPermissionDefaultSelect, + AppPermissionDefaultWithRelations, + CreateAppPermissionDefaultInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a AppPermissionDefault + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateAppPermissionDefaultMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateAppPermissionDefaultMutation( + params: { + selection: { + fields: S & AppPermissionDefaultSelect; + } & HookStrictSelect, AppPermissionDefaultSelect>; + } & Omit< + UseMutationOptions< + { + createAppPermissionDefault: { + appPermissionDefault: InferSelectResult; + }; + }, + Error, + CreateAppPermissionDefaultInput['appPermissionDefault'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createAppPermissionDefault: { + appPermissionDefault: InferSelectResult; + }; + }, + Error, + CreateAppPermissionDefaultInput['appPermissionDefault'] +>; +export function useCreateAppPermissionDefaultMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appPermissionDefaultMutationKeys.create(), + mutationFn: (data: CreateAppPermissionDefaultInput['appPermissionDefault']) => + getClient() + .appPermissionDefault.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: appPermissionDefaultKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppPermissionMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppPermissionMutation.ts new file mode 100644 index 000000000..73d4eceec --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppPermissionMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for AppPermission + * @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 { appPermissionKeys } from '../query-keys'; +import { appPermissionMutationKeys } from '../mutation-keys'; +import type { + AppPermissionSelect, + AppPermissionWithRelations, + CreateAppPermissionInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppPermissionSelect, + AppPermissionWithRelations, + CreateAppPermissionInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a AppPermission + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateAppPermissionMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateAppPermissionMutation( + params: { + selection: { + fields: S & AppPermissionSelect; + } & HookStrictSelect, AppPermissionSelect>; + } & Omit< + UseMutationOptions< + { + createAppPermission: { + appPermission: InferSelectResult; + }; + }, + Error, + CreateAppPermissionInput['appPermission'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createAppPermission: { + appPermission: InferSelectResult; + }; + }, + Error, + CreateAppPermissionInput['appPermission'] +>; +export function useCreateAppPermissionMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appPermissionMutationKeys.create(), + mutationFn: (data: CreateAppPermissionInput['appPermission']) => + getClient() + .appPermission.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: appPermissionKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppStepMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppStepMutation.ts new file mode 100644 index 000000000..479dc0a3a --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppStepMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for AppStep + * @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 { appStepKeys } from '../query-keys'; +import { appStepMutationKeys } from '../mutation-keys'; +import type { + AppStepSelect, + AppStepWithRelations, + CreateAppStepInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppStepSelect, + AppStepWithRelations, + CreateAppStepInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a AppStep + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateAppStepMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateAppStepMutation( + params: { + selection: { + fields: S & AppStepSelect; + } & HookStrictSelect, AppStepSelect>; + } & Omit< + UseMutationOptions< + { + createAppStep: { + appStep: InferSelectResult; + }; + }, + Error, + CreateAppStepInput['appStep'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createAppStep: { + appStep: InferSelectResult; + }; + }, + Error, + CreateAppStepInput['appStep'] +>; +export function useCreateAppStepMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appStepMutationKeys.create(), + mutationFn: (data: CreateAppStepInput['appStep']) => + getClient() + .appStep.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: appStepKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateClaimedInviteMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateClaimedInviteMutation.ts new file mode 100644 index 000000000..a84eca95c --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateClaimedInviteMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for ClaimedInvite + * @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 { claimedInviteKeys } from '../query-keys'; +import { claimedInviteMutationKeys } from '../mutation-keys'; +import type { + ClaimedInviteSelect, + ClaimedInviteWithRelations, + CreateClaimedInviteInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ClaimedInviteSelect, + ClaimedInviteWithRelations, + CreateClaimedInviteInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a ClaimedInvite + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateClaimedInviteMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateClaimedInviteMutation( + params: { + selection: { + fields: S & ClaimedInviteSelect; + } & HookStrictSelect, ClaimedInviteSelect>; + } & Omit< + UseMutationOptions< + { + createClaimedInvite: { + claimedInvite: InferSelectResult; + }; + }, + Error, + CreateClaimedInviteInput['claimedInvite'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createClaimedInvite: { + claimedInvite: InferSelectResult; + }; + }, + Error, + CreateClaimedInviteInput['claimedInvite'] +>; +export function useCreateClaimedInviteMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: claimedInviteMutationKeys.create(), + mutationFn: (data: CreateClaimedInviteInput['claimedInvite']) => + getClient() + .claimedInvite.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: claimedInviteKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateInviteMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateInviteMutation.ts new file mode 100644 index 000000000..928d4f0cd --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateInviteMutation.ts @@ -0,0 +1,80 @@ +/** + * Create mutation hook for Invite + * @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 { inviteKeys } from '../query-keys'; +import { inviteMutationKeys } from '../mutation-keys'; +import type { InviteSelect, InviteWithRelations, CreateInviteInput } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { InviteSelect, InviteWithRelations, CreateInviteInput } from '../../orm/input-types'; +/** + * Mutation hook for creating a Invite + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateInviteMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateInviteMutation( + params: { + selection: { + fields: S & InviteSelect; + } & HookStrictSelect, InviteSelect>; + } & Omit< + UseMutationOptions< + { + createInvite: { + invite: InferSelectResult; + }; + }, + Error, + CreateInviteInput['invite'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createInvite: { + invite: InferSelectResult; + }; + }, + Error, + CreateInviteInput['invite'] +>; +export function useCreateInviteMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: inviteMutationKeys.create(), + mutationFn: (data: CreateInviteInput['invite']) => + getClient() + .invite.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: inviteKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateMembershipTypeMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateMembershipTypeMutation.ts new file mode 100644 index 000000000..d8219655f --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateMembershipTypeMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for MembershipType + * @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 { membershipTypeKeys } from '../query-keys'; +import { membershipTypeMutationKeys } from '../mutation-keys'; +import type { + MembershipTypeSelect, + MembershipTypeWithRelations, + CreateMembershipTypeInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + MembershipTypeSelect, + MembershipTypeWithRelations, + CreateMembershipTypeInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a MembershipType + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateMembershipTypeMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateMembershipTypeMutation( + params: { + selection: { + fields: S & MembershipTypeSelect; + } & HookStrictSelect, MembershipTypeSelect>; + } & Omit< + UseMutationOptions< + { + createMembershipType: { + membershipType: InferSelectResult; + }; + }, + Error, + CreateMembershipTypeInput['membershipType'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createMembershipType: { + membershipType: InferSelectResult; + }; + }, + Error, + CreateMembershipTypeInput['membershipType'] +>; +export function useCreateMembershipTypeMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: membershipTypeMutationKeys.create(), + mutationFn: (data: CreateMembershipTypeInput['membershipType']) => + getClient() + .membershipType.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: membershipTypeKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgAdminGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgAdminGrantMutation.ts new file mode 100644 index 000000000..00687d7da --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgAdminGrantMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for OrgAdminGrant + * @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 { orgAdminGrantKeys } from '../query-keys'; +import { orgAdminGrantMutationKeys } from '../mutation-keys'; +import type { + OrgAdminGrantSelect, + OrgAdminGrantWithRelations, + CreateOrgAdminGrantInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgAdminGrantSelect, + OrgAdminGrantWithRelations, + CreateOrgAdminGrantInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a OrgAdminGrant + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateOrgAdminGrantMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateOrgAdminGrantMutation( + params: { + selection: { + fields: S & OrgAdminGrantSelect; + } & HookStrictSelect, OrgAdminGrantSelect>; + } & Omit< + UseMutationOptions< + { + createOrgAdminGrant: { + orgAdminGrant: InferSelectResult; + }; + }, + Error, + CreateOrgAdminGrantInput['orgAdminGrant'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createOrgAdminGrant: { + orgAdminGrant: InferSelectResult; + }; + }, + Error, + CreateOrgAdminGrantInput['orgAdminGrant'] +>; +export function useCreateOrgAdminGrantMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgAdminGrantMutationKeys.create(), + mutationFn: (data: CreateOrgAdminGrantInput['orgAdminGrant']) => + getClient() + .orgAdminGrant.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: orgAdminGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgClaimedInviteMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgClaimedInviteMutation.ts new file mode 100644 index 000000000..4ee4b71c3 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgClaimedInviteMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for OrgClaimedInvite + * @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 { orgClaimedInviteKeys } from '../query-keys'; +import { orgClaimedInviteMutationKeys } from '../mutation-keys'; +import type { + OrgClaimedInviteSelect, + OrgClaimedInviteWithRelations, + CreateOrgClaimedInviteInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgClaimedInviteSelect, + OrgClaimedInviteWithRelations, + CreateOrgClaimedInviteInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a OrgClaimedInvite + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateOrgClaimedInviteMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateOrgClaimedInviteMutation( + params: { + selection: { + fields: S & OrgClaimedInviteSelect; + } & HookStrictSelect, OrgClaimedInviteSelect>; + } & Omit< + UseMutationOptions< + { + createOrgClaimedInvite: { + orgClaimedInvite: InferSelectResult; + }; + }, + Error, + CreateOrgClaimedInviteInput['orgClaimedInvite'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createOrgClaimedInvite: { + orgClaimedInvite: InferSelectResult; + }; + }, + Error, + CreateOrgClaimedInviteInput['orgClaimedInvite'] +>; +export function useCreateOrgClaimedInviteMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgClaimedInviteMutationKeys.create(), + mutationFn: (data: CreateOrgClaimedInviteInput['orgClaimedInvite']) => + getClient() + .orgClaimedInvite.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: orgClaimedInviteKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgGrantMutation.ts new file mode 100644 index 000000000..391138997 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgGrantMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for OrgGrant + * @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 { orgGrantKeys } from '../query-keys'; +import { orgGrantMutationKeys } from '../mutation-keys'; +import type { + OrgGrantSelect, + OrgGrantWithRelations, + CreateOrgGrantInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgGrantSelect, + OrgGrantWithRelations, + CreateOrgGrantInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a OrgGrant + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateOrgGrantMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateOrgGrantMutation( + params: { + selection: { + fields: S & OrgGrantSelect; + } & HookStrictSelect, OrgGrantSelect>; + } & Omit< + UseMutationOptions< + { + createOrgGrant: { + orgGrant: InferSelectResult; + }; + }, + Error, + CreateOrgGrantInput['orgGrant'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createOrgGrant: { + orgGrant: InferSelectResult; + }; + }, + Error, + CreateOrgGrantInput['orgGrant'] +>; +export function useCreateOrgGrantMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgGrantMutationKeys.create(), + mutationFn: (data: CreateOrgGrantInput['orgGrant']) => + getClient() + .orgGrant.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: orgGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgInviteMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgInviteMutation.ts new file mode 100644 index 000000000..6d65fa995 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgInviteMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for OrgInvite + * @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 { orgInviteKeys } from '../query-keys'; +import { orgInviteMutationKeys } from '../mutation-keys'; +import type { + OrgInviteSelect, + OrgInviteWithRelations, + CreateOrgInviteInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgInviteSelect, + OrgInviteWithRelations, + CreateOrgInviteInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a OrgInvite + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateOrgInviteMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateOrgInviteMutation( + params: { + selection: { + fields: S & OrgInviteSelect; + } & HookStrictSelect, OrgInviteSelect>; + } & Omit< + UseMutationOptions< + { + createOrgInvite: { + orgInvite: InferSelectResult; + }; + }, + Error, + CreateOrgInviteInput['orgInvite'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createOrgInvite: { + orgInvite: InferSelectResult; + }; + }, + Error, + CreateOrgInviteInput['orgInvite'] +>; +export function useCreateOrgInviteMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgInviteMutationKeys.create(), + mutationFn: (data: CreateOrgInviteInput['orgInvite']) => + getClient() + .orgInvite.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: orgInviteKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgLimitDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgLimitDefaultMutation.ts new file mode 100644 index 000000000..af559e6a2 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgLimitDefaultMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for OrgLimitDefault + * @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 { orgLimitDefaultKeys } from '../query-keys'; +import { orgLimitDefaultMutationKeys } from '../mutation-keys'; +import type { + OrgLimitDefaultSelect, + OrgLimitDefaultWithRelations, + CreateOrgLimitDefaultInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgLimitDefaultSelect, + OrgLimitDefaultWithRelations, + CreateOrgLimitDefaultInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a OrgLimitDefault + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateOrgLimitDefaultMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateOrgLimitDefaultMutation( + params: { + selection: { + fields: S & OrgLimitDefaultSelect; + } & HookStrictSelect, OrgLimitDefaultSelect>; + } & Omit< + UseMutationOptions< + { + createOrgLimitDefault: { + orgLimitDefault: InferSelectResult; + }; + }, + Error, + CreateOrgLimitDefaultInput['orgLimitDefault'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createOrgLimitDefault: { + orgLimitDefault: InferSelectResult; + }; + }, + Error, + CreateOrgLimitDefaultInput['orgLimitDefault'] +>; +export function useCreateOrgLimitDefaultMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgLimitDefaultMutationKeys.create(), + mutationFn: (data: CreateOrgLimitDefaultInput['orgLimitDefault']) => + getClient() + .orgLimitDefault.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: orgLimitDefaultKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgLimitMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgLimitMutation.ts new file mode 100644 index 000000000..33ed2f69e --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgLimitMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for OrgLimit + * @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 { orgLimitKeys } from '../query-keys'; +import { orgLimitMutationKeys } from '../mutation-keys'; +import type { + OrgLimitSelect, + OrgLimitWithRelations, + CreateOrgLimitInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgLimitSelect, + OrgLimitWithRelations, + CreateOrgLimitInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a OrgLimit + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateOrgLimitMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateOrgLimitMutation( + params: { + selection: { + fields: S & OrgLimitSelect; + } & HookStrictSelect, OrgLimitSelect>; + } & Omit< + UseMutationOptions< + { + createOrgLimit: { + orgLimit: InferSelectResult; + }; + }, + Error, + CreateOrgLimitInput['orgLimit'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createOrgLimit: { + orgLimit: InferSelectResult; + }; + }, + Error, + CreateOrgLimitInput['orgLimit'] +>; +export function useCreateOrgLimitMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgLimitMutationKeys.create(), + mutationFn: (data: CreateOrgLimitInput['orgLimit']) => + getClient() + .orgLimit.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: orgLimitKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgMemberMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgMemberMutation.ts new file mode 100644 index 000000000..73bbfce52 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgMemberMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for OrgMember + * @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 { orgMemberKeys } from '../query-keys'; +import { orgMemberMutationKeys } from '../mutation-keys'; +import type { + OrgMemberSelect, + OrgMemberWithRelations, + CreateOrgMemberInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgMemberSelect, + OrgMemberWithRelations, + CreateOrgMemberInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a OrgMember + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateOrgMemberMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateOrgMemberMutation( + params: { + selection: { + fields: S & OrgMemberSelect; + } & HookStrictSelect, OrgMemberSelect>; + } & Omit< + UseMutationOptions< + { + createOrgMember: { + orgMember: InferSelectResult; + }; + }, + Error, + CreateOrgMemberInput['orgMember'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createOrgMember: { + orgMember: InferSelectResult; + }; + }, + Error, + CreateOrgMemberInput['orgMember'] +>; +export function useCreateOrgMemberMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgMemberMutationKeys.create(), + mutationFn: (data: CreateOrgMemberInput['orgMember']) => + getClient() + .orgMember.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: orgMemberKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgMembershipDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgMembershipDefaultMutation.ts new file mode 100644 index 000000000..9c1290cfb --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgMembershipDefaultMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for OrgMembershipDefault + * @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 { orgMembershipDefaultKeys } from '../query-keys'; +import { orgMembershipDefaultMutationKeys } from '../mutation-keys'; +import type { + OrgMembershipDefaultSelect, + OrgMembershipDefaultWithRelations, + CreateOrgMembershipDefaultInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgMembershipDefaultSelect, + OrgMembershipDefaultWithRelations, + CreateOrgMembershipDefaultInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a OrgMembershipDefault + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateOrgMembershipDefaultMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateOrgMembershipDefaultMutation( + params: { + selection: { + fields: S & OrgMembershipDefaultSelect; + } & HookStrictSelect, OrgMembershipDefaultSelect>; + } & Omit< + UseMutationOptions< + { + createOrgMembershipDefault: { + orgMembershipDefault: InferSelectResult; + }; + }, + Error, + CreateOrgMembershipDefaultInput['orgMembershipDefault'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createOrgMembershipDefault: { + orgMembershipDefault: InferSelectResult; + }; + }, + Error, + CreateOrgMembershipDefaultInput['orgMembershipDefault'] +>; +export function useCreateOrgMembershipDefaultMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgMembershipDefaultMutationKeys.create(), + mutationFn: (data: CreateOrgMembershipDefaultInput['orgMembershipDefault']) => + getClient() + .orgMembershipDefault.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: orgMembershipDefaultKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgMembershipMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgMembershipMutation.ts new file mode 100644 index 000000000..e2b7c7e9b --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgMembershipMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for OrgMembership + * @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 { orgMembershipKeys } from '../query-keys'; +import { orgMembershipMutationKeys } from '../mutation-keys'; +import type { + OrgMembershipSelect, + OrgMembershipWithRelations, + CreateOrgMembershipInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgMembershipSelect, + OrgMembershipWithRelations, + CreateOrgMembershipInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a OrgMembership + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateOrgMembershipMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateOrgMembershipMutation( + params: { + selection: { + fields: S & OrgMembershipSelect; + } & HookStrictSelect, OrgMembershipSelect>; + } & Omit< + UseMutationOptions< + { + createOrgMembership: { + orgMembership: InferSelectResult; + }; + }, + Error, + CreateOrgMembershipInput['orgMembership'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createOrgMembership: { + orgMembership: InferSelectResult; + }; + }, + Error, + CreateOrgMembershipInput['orgMembership'] +>; +export function useCreateOrgMembershipMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgMembershipMutationKeys.create(), + mutationFn: (data: CreateOrgMembershipInput['orgMembership']) => + getClient() + .orgMembership.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: orgMembershipKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgOwnerGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgOwnerGrantMutation.ts new file mode 100644 index 000000000..9cec71f7f --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgOwnerGrantMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for OrgOwnerGrant + * @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 { orgOwnerGrantKeys } from '../query-keys'; +import { orgOwnerGrantMutationKeys } from '../mutation-keys'; +import type { + OrgOwnerGrantSelect, + OrgOwnerGrantWithRelations, + CreateOrgOwnerGrantInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgOwnerGrantSelect, + OrgOwnerGrantWithRelations, + CreateOrgOwnerGrantInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a OrgOwnerGrant + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateOrgOwnerGrantMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateOrgOwnerGrantMutation( + params: { + selection: { + fields: S & OrgOwnerGrantSelect; + } & HookStrictSelect, OrgOwnerGrantSelect>; + } & Omit< + UseMutationOptions< + { + createOrgOwnerGrant: { + orgOwnerGrant: InferSelectResult; + }; + }, + Error, + CreateOrgOwnerGrantInput['orgOwnerGrant'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createOrgOwnerGrant: { + orgOwnerGrant: InferSelectResult; + }; + }, + Error, + CreateOrgOwnerGrantInput['orgOwnerGrant'] +>; +export function useCreateOrgOwnerGrantMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgOwnerGrantMutationKeys.create(), + mutationFn: (data: CreateOrgOwnerGrantInput['orgOwnerGrant']) => + getClient() + .orgOwnerGrant.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: orgOwnerGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgPermissionDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgPermissionDefaultMutation.ts new file mode 100644 index 000000000..da1688a0f --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgPermissionDefaultMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for OrgPermissionDefault + * @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 { orgPermissionDefaultKeys } from '../query-keys'; +import { orgPermissionDefaultMutationKeys } from '../mutation-keys'; +import type { + OrgPermissionDefaultSelect, + OrgPermissionDefaultWithRelations, + CreateOrgPermissionDefaultInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgPermissionDefaultSelect, + OrgPermissionDefaultWithRelations, + CreateOrgPermissionDefaultInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a OrgPermissionDefault + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateOrgPermissionDefaultMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateOrgPermissionDefaultMutation( + params: { + selection: { + fields: S & OrgPermissionDefaultSelect; + } & HookStrictSelect, OrgPermissionDefaultSelect>; + } & Omit< + UseMutationOptions< + { + createOrgPermissionDefault: { + orgPermissionDefault: InferSelectResult; + }; + }, + Error, + CreateOrgPermissionDefaultInput['orgPermissionDefault'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createOrgPermissionDefault: { + orgPermissionDefault: InferSelectResult; + }; + }, + Error, + CreateOrgPermissionDefaultInput['orgPermissionDefault'] +>; +export function useCreateOrgPermissionDefaultMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgPermissionDefaultMutationKeys.create(), + mutationFn: (data: CreateOrgPermissionDefaultInput['orgPermissionDefault']) => + getClient() + .orgPermissionDefault.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: orgPermissionDefaultKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgPermissionMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgPermissionMutation.ts new file mode 100644 index 000000000..b1fd9fd3b --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgPermissionMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for OrgPermission + * @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 { orgPermissionKeys } from '../query-keys'; +import { orgPermissionMutationKeys } from '../mutation-keys'; +import type { + OrgPermissionSelect, + OrgPermissionWithRelations, + CreateOrgPermissionInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgPermissionSelect, + OrgPermissionWithRelations, + CreateOrgPermissionInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a OrgPermission + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateOrgPermissionMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateOrgPermissionMutation( + params: { + selection: { + fields: S & OrgPermissionSelect; + } & HookStrictSelect, OrgPermissionSelect>; + } & Omit< + UseMutationOptions< + { + createOrgPermission: { + orgPermission: InferSelectResult; + }; + }, + Error, + CreateOrgPermissionInput['orgPermission'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createOrgPermission: { + orgPermission: InferSelectResult; + }; + }, + Error, + CreateOrgPermissionInput['orgPermission'] +>; +export function useCreateOrgPermissionMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgPermissionMutationKeys.create(), + mutationFn: (data: CreateOrgPermissionInput['orgPermission']) => + getClient() + .orgPermission.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: orgPermissionKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppAchievementMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppAchievementMutation.ts new file mode 100644 index 000000000..73f3b0b52 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppAchievementMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for AppAchievement + * @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 { appAchievementKeys } from '../query-keys'; +import { appAchievementMutationKeys } from '../mutation-keys'; +import type { AppAchievementSelect, AppAchievementWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AppAchievementSelect, AppAchievementWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a AppAchievement with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteAppAchievementMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteAppAchievementMutation( + params: { + selection: { + fields: S & AppAchievementSelect; + } & HookStrictSelect, AppAchievementSelect>; + } & Omit< + UseMutationOptions< + { + deleteAppAchievement: { + appAchievement: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteAppAchievement: { + appAchievement: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteAppAchievementMutation( + 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: appAchievementMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .appAchievement.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: appAchievementKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appAchievementKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppAdminGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppAdminGrantMutation.ts new file mode 100644 index 000000000..83efe201c --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppAdminGrantMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for AppAdminGrant + * @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 { appAdminGrantKeys } from '../query-keys'; +import { appAdminGrantMutationKeys } from '../mutation-keys'; +import type { AppAdminGrantSelect, AppAdminGrantWithRelations } from '../../orm/input-types'; +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 + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteAppAdminGrantMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteAppAdminGrantMutation( + params: { + selection: { + fields: S & AppAdminGrantSelect; + } & HookStrictSelect, AppAdminGrantSelect>; + } & Omit< + UseMutationOptions< + { + deleteAppAdminGrant: { + appAdminGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteAppAdminGrant: { + appAdminGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteAppAdminGrantMutation( + 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: appAdminGrantMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .appAdminGrant.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: appAdminGrantKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appAdminGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppGrantMutation.ts new file mode 100644 index 000000000..2dcc61484 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppGrantMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for AppGrant + * @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 { appGrantKeys } from '../query-keys'; +import { appGrantMutationKeys } from '../mutation-keys'; +import type { AppGrantSelect, AppGrantWithRelations } from '../../orm/input-types'; +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 + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteAppGrantMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteAppGrantMutation( + params: { + selection: { + fields: S & AppGrantSelect; + } & HookStrictSelect, AppGrantSelect>; + } & Omit< + UseMutationOptions< + { + deleteAppGrant: { + appGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteAppGrant: { + appGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteAppGrantMutation( + 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: appGrantMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .appGrant.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: appGrantKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLevelMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLevelMutation.ts new file mode 100644 index 000000000..d7d002ddb --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLevelMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for AppLevel + * @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 { appLevelKeys } from '../query-keys'; +import { appLevelMutationKeys } from '../mutation-keys'; +import type { AppLevelSelect, AppLevelWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AppLevelSelect, AppLevelWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a AppLevel with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteAppLevelMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteAppLevelMutation( + params: { + selection: { + fields: S & AppLevelSelect; + } & HookStrictSelect, AppLevelSelect>; + } & Omit< + UseMutationOptions< + { + deleteAppLevel: { + appLevel: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteAppLevel: { + appLevel: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteAppLevelMutation( + 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: appLevelMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .appLevel.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: appLevelKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appLevelKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLevelRequirementMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLevelRequirementMutation.ts new file mode 100644 index 000000000..bcb3e249f --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLevelRequirementMutation.ts @@ -0,0 +1,104 @@ +/** + * Delete mutation hook for AppLevelRequirement + * @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 { appLevelRequirementKeys } from '../query-keys'; +import { appLevelRequirementMutationKeys } from '../mutation-keys'; +import type { + AppLevelRequirementSelect, + AppLevelRequirementWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppLevelRequirementSelect, + AppLevelRequirementWithRelations, +} from '../../orm/input-types'; +/** + * Mutation hook for deleting a AppLevelRequirement with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteAppLevelRequirementMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteAppLevelRequirementMutation( + params: { + selection: { + fields: S & AppLevelRequirementSelect; + } & HookStrictSelect, AppLevelRequirementSelect>; + } & Omit< + UseMutationOptions< + { + deleteAppLevelRequirement: { + appLevelRequirement: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteAppLevelRequirement: { + appLevelRequirement: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteAppLevelRequirementMutation( + 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: appLevelRequirementMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .appLevelRequirement.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: appLevelRequirementKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appLevelRequirementKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLimitDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLimitDefaultMutation.ts new file mode 100644 index 000000000..3d8cec160 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLimitDefaultMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for AppLimitDefault + * @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 { appLimitDefaultKeys } from '../query-keys'; +import { appLimitDefaultMutationKeys } from '../mutation-keys'; +import type { AppLimitDefaultSelect, AppLimitDefaultWithRelations } from '../../orm/input-types'; +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 + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteAppLimitDefaultMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteAppLimitDefaultMutation( + params: { + selection: { + fields: S & AppLimitDefaultSelect; + } & HookStrictSelect, AppLimitDefaultSelect>; + } & Omit< + UseMutationOptions< + { + deleteAppLimitDefault: { + appLimitDefault: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteAppLimitDefault: { + appLimitDefault: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteAppLimitDefaultMutation( + 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: appLimitDefaultMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .appLimitDefault.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: appLimitDefaultKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appLimitDefaultKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLimitMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLimitMutation.ts new file mode 100644 index 000000000..9b3ebc52e --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLimitMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for AppLimit + * @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 { appLimitKeys } from '../query-keys'; +import { appLimitMutationKeys } from '../mutation-keys'; +import type { AppLimitSelect, AppLimitWithRelations } from '../../orm/input-types'; +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 + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteAppLimitMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteAppLimitMutation( + params: { + selection: { + fields: S & AppLimitSelect; + } & HookStrictSelect, AppLimitSelect>; + } & Omit< + UseMutationOptions< + { + deleteAppLimit: { + appLimit: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteAppLimit: { + appLimit: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteAppLimitMutation( + 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: appLimitMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .appLimit.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: appLimitKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appLimitKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppMembershipDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppMembershipDefaultMutation.ts new file mode 100644 index 000000000..bd2d8e77b --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppMembershipDefaultMutation.ts @@ -0,0 +1,104 @@ +/** + * Delete mutation hook for AppMembershipDefault + * @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 { appMembershipDefaultKeys } from '../query-keys'; +import { appMembershipDefaultMutationKeys } from '../mutation-keys'; +import type { + AppMembershipDefaultSelect, + AppMembershipDefaultWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppMembershipDefaultSelect, + AppMembershipDefaultWithRelations, +} from '../../orm/input-types'; +/** + * Mutation hook for deleting a AppMembershipDefault with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteAppMembershipDefaultMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteAppMembershipDefaultMutation( + params: { + selection: { + fields: S & AppMembershipDefaultSelect; + } & HookStrictSelect, AppMembershipDefaultSelect>; + } & Omit< + UseMutationOptions< + { + deleteAppMembershipDefault: { + appMembershipDefault: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteAppMembershipDefault: { + appMembershipDefault: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteAppMembershipDefaultMutation( + 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: appMembershipDefaultMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .appMembershipDefault.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: appMembershipDefaultKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appMembershipDefaultKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppMembershipMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppMembershipMutation.ts new file mode 100644 index 000000000..270821ab2 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppMembershipMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for AppMembership + * @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 { appMembershipKeys } from '../query-keys'; +import { appMembershipMutationKeys } from '../mutation-keys'; +import type { AppMembershipSelect, AppMembershipWithRelations } from '../../orm/input-types'; +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 + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteAppMembershipMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteAppMembershipMutation( + params: { + selection: { + fields: S & AppMembershipSelect; + } & HookStrictSelect, AppMembershipSelect>; + } & Omit< + UseMutationOptions< + { + deleteAppMembership: { + appMembership: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteAppMembership: { + appMembership: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteAppMembershipMutation( + 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: appMembershipMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .appMembership.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: appMembershipKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appMembershipKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppOwnerGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppOwnerGrantMutation.ts new file mode 100644 index 000000000..037ca9d28 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppOwnerGrantMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for AppOwnerGrant + * @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 { appOwnerGrantKeys } from '../query-keys'; +import { appOwnerGrantMutationKeys } from '../mutation-keys'; +import type { AppOwnerGrantSelect, AppOwnerGrantWithRelations } from '../../orm/input-types'; +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 + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteAppOwnerGrantMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteAppOwnerGrantMutation( + params: { + selection: { + fields: S & AppOwnerGrantSelect; + } & HookStrictSelect, AppOwnerGrantSelect>; + } & Omit< + UseMutationOptions< + { + deleteAppOwnerGrant: { + appOwnerGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteAppOwnerGrant: { + appOwnerGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteAppOwnerGrantMutation( + 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: appOwnerGrantMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .appOwnerGrant.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: appOwnerGrantKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appOwnerGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppPermissionDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppPermissionDefaultMutation.ts new file mode 100644 index 000000000..1c350f3fb --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppPermissionDefaultMutation.ts @@ -0,0 +1,104 @@ +/** + * Delete mutation hook for AppPermissionDefault + * @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 { appPermissionDefaultKeys } from '../query-keys'; +import { appPermissionDefaultMutationKeys } from '../mutation-keys'; +import type { + AppPermissionDefaultSelect, + AppPermissionDefaultWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppPermissionDefaultSelect, + AppPermissionDefaultWithRelations, +} from '../../orm/input-types'; +/** + * Mutation hook for deleting a AppPermissionDefault with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteAppPermissionDefaultMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteAppPermissionDefaultMutation( + params: { + selection: { + fields: S & AppPermissionDefaultSelect; + } & HookStrictSelect, AppPermissionDefaultSelect>; + } & Omit< + UseMutationOptions< + { + deleteAppPermissionDefault: { + appPermissionDefault: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteAppPermissionDefault: { + appPermissionDefault: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteAppPermissionDefaultMutation( + 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: appPermissionDefaultMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .appPermissionDefault.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: appPermissionDefaultKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appPermissionDefaultKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppPermissionMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppPermissionMutation.ts new file mode 100644 index 000000000..327b4a107 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppPermissionMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for AppPermission + * @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 { appPermissionKeys } from '../query-keys'; +import { appPermissionMutationKeys } from '../mutation-keys'; +import type { AppPermissionSelect, AppPermissionWithRelations } from '../../orm/input-types'; +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 + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteAppPermissionMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteAppPermissionMutation( + params: { + selection: { + fields: S & AppPermissionSelect; + } & HookStrictSelect, AppPermissionSelect>; + } & Omit< + UseMutationOptions< + { + deleteAppPermission: { + appPermission: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteAppPermission: { + appPermission: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteAppPermissionMutation( + 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: appPermissionMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .appPermission.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: appPermissionKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appPermissionKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppStepMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppStepMutation.ts new file mode 100644 index 000000000..f9f36baf8 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppStepMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for AppStep + * @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 { appStepKeys } from '../query-keys'; +import { appStepMutationKeys } from '../mutation-keys'; +import type { AppStepSelect, AppStepWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AppStepSelect, AppStepWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a AppStep with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteAppStepMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteAppStepMutation( + params: { + selection: { + fields: S & AppStepSelect; + } & HookStrictSelect, AppStepSelect>; + } & Omit< + UseMutationOptions< + { + deleteAppStep: { + appStep: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteAppStep: { + appStep: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteAppStepMutation( + 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: appStepMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .appStep.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: appStepKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appStepKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteClaimedInviteMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteClaimedInviteMutation.ts new file mode 100644 index 000000000..2c3709bd0 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteClaimedInviteMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for ClaimedInvite + * @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 { claimedInviteKeys } from '../query-keys'; +import { claimedInviteMutationKeys } from '../mutation-keys'; +import type { ClaimedInviteSelect, ClaimedInviteWithRelations } from '../../orm/input-types'; +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 + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteClaimedInviteMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteClaimedInviteMutation( + params: { + selection: { + fields: S & ClaimedInviteSelect; + } & HookStrictSelect, ClaimedInviteSelect>; + } & Omit< + UseMutationOptions< + { + deleteClaimedInvite: { + claimedInvite: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteClaimedInvite: { + claimedInvite: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteClaimedInviteMutation( + 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: claimedInviteMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .claimedInvite.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: claimedInviteKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: claimedInviteKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteInviteMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteInviteMutation.ts new file mode 100644 index 000000000..bf9850ba6 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteInviteMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for Invite + * @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 { inviteKeys } from '../query-keys'; +import { inviteMutationKeys } from '../mutation-keys'; +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 + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteInviteMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteInviteMutation( + params: { + selection: { + fields: S & InviteSelect; + } & HookStrictSelect, InviteSelect>; + } & Omit< + UseMutationOptions< + { + deleteInvite: { + invite: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteInvite: { + invite: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteInviteMutation( + 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: inviteMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .invite.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: inviteKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: inviteKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteMembershipTypeMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteMembershipTypeMutation.ts new file mode 100644 index 000000000..dbec0d9e9 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteMembershipTypeMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for MembershipType + * @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 { membershipTypeKeys } from '../query-keys'; +import { membershipTypeMutationKeys } from '../mutation-keys'; +import type { MembershipTypeSelect, MembershipTypeWithRelations } from '../../orm/input-types'; +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 + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteMembershipTypeMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 123 }); + * ``` + */ +export function useDeleteMembershipTypeMutation( + params: { + selection: { + fields: S & MembershipTypeSelect; + } & HookStrictSelect, MembershipTypeSelect>; + } & Omit< + UseMutationOptions< + { + deleteMembershipType: { + membershipType: InferSelectResult; + }; + }, + Error, + { + id: number; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteMembershipType: { + membershipType: InferSelectResult; + }; + }, + Error, + { + id: number; + } +>; +export function useDeleteMembershipTypeMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: number; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: membershipTypeMutationKeys.all, + mutationFn: ({ id }: { id: number }) => + getClient() + .membershipType.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: membershipTypeKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: membershipTypeKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgAdminGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgAdminGrantMutation.ts new file mode 100644 index 000000000..b2b62e271 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgAdminGrantMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for OrgAdminGrant + * @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 { orgAdminGrantKeys } from '../query-keys'; +import { orgAdminGrantMutationKeys } from '../mutation-keys'; +import type { OrgAdminGrantSelect, OrgAdminGrantWithRelations } from '../../orm/input-types'; +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 + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteOrgAdminGrantMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteOrgAdminGrantMutation( + params: { + selection: { + fields: S & OrgAdminGrantSelect; + } & HookStrictSelect, OrgAdminGrantSelect>; + } & Omit< + UseMutationOptions< + { + deleteOrgAdminGrant: { + orgAdminGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteOrgAdminGrant: { + orgAdminGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteOrgAdminGrantMutation( + 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: orgAdminGrantMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .orgAdminGrant.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: orgAdminGrantKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgAdminGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgClaimedInviteMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgClaimedInviteMutation.ts new file mode 100644 index 000000000..267b1abfe --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgClaimedInviteMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for OrgClaimedInvite + * @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 { orgClaimedInviteKeys } from '../query-keys'; +import { orgClaimedInviteMutationKeys } from '../mutation-keys'; +import type { OrgClaimedInviteSelect, OrgClaimedInviteWithRelations } from '../../orm/input-types'; +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 + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteOrgClaimedInviteMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteOrgClaimedInviteMutation( + params: { + selection: { + fields: S & OrgClaimedInviteSelect; + } & HookStrictSelect, OrgClaimedInviteSelect>; + } & Omit< + UseMutationOptions< + { + deleteOrgClaimedInvite: { + orgClaimedInvite: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteOrgClaimedInvite: { + orgClaimedInvite: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteOrgClaimedInviteMutation( + 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: orgClaimedInviteMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .orgClaimedInvite.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: orgClaimedInviteKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgClaimedInviteKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgGrantMutation.ts new file mode 100644 index 000000000..94b80fa12 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgGrantMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for OrgGrant + * @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 { orgGrantKeys } from '../query-keys'; +import { orgGrantMutationKeys } from '../mutation-keys'; +import type { OrgGrantSelect, OrgGrantWithRelations } from '../../orm/input-types'; +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 + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteOrgGrantMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteOrgGrantMutation( + params: { + selection: { + fields: S & OrgGrantSelect; + } & HookStrictSelect, OrgGrantSelect>; + } & Omit< + UseMutationOptions< + { + deleteOrgGrant: { + orgGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteOrgGrant: { + orgGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteOrgGrantMutation( + 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: orgGrantMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .orgGrant.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: orgGrantKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgInviteMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgInviteMutation.ts new file mode 100644 index 000000000..2960aeac6 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgInviteMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for OrgInvite + * @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 { orgInviteKeys } from '../query-keys'; +import { orgInviteMutationKeys } from '../mutation-keys'; +import type { OrgInviteSelect, OrgInviteWithRelations } from '../../orm/input-types'; +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 + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteOrgInviteMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteOrgInviteMutation( + params: { + selection: { + fields: S & OrgInviteSelect; + } & HookStrictSelect, OrgInviteSelect>; + } & Omit< + UseMutationOptions< + { + deleteOrgInvite: { + orgInvite: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteOrgInvite: { + orgInvite: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteOrgInviteMutation( + 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: orgInviteMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .orgInvite.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: orgInviteKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgInviteKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgLimitDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgLimitDefaultMutation.ts new file mode 100644 index 000000000..a8e7bf162 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgLimitDefaultMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for OrgLimitDefault + * @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 { orgLimitDefaultKeys } from '../query-keys'; +import { orgLimitDefaultMutationKeys } from '../mutation-keys'; +import type { OrgLimitDefaultSelect, OrgLimitDefaultWithRelations } from '../../orm/input-types'; +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 + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteOrgLimitDefaultMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteOrgLimitDefaultMutation( + params: { + selection: { + fields: S & OrgLimitDefaultSelect; + } & HookStrictSelect, OrgLimitDefaultSelect>; + } & Omit< + UseMutationOptions< + { + deleteOrgLimitDefault: { + orgLimitDefault: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteOrgLimitDefault: { + orgLimitDefault: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteOrgLimitDefaultMutation( + 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: orgLimitDefaultMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .orgLimitDefault.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: orgLimitDefaultKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgLimitDefaultKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgLimitMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgLimitMutation.ts new file mode 100644 index 000000000..818a3b294 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgLimitMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for OrgLimit + * @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 { orgLimitKeys } from '../query-keys'; +import { orgLimitMutationKeys } from '../mutation-keys'; +import type { OrgLimitSelect, OrgLimitWithRelations } from '../../orm/input-types'; +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 + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteOrgLimitMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteOrgLimitMutation( + params: { + selection: { + fields: S & OrgLimitSelect; + } & HookStrictSelect, OrgLimitSelect>; + } & Omit< + UseMutationOptions< + { + deleteOrgLimit: { + orgLimit: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteOrgLimit: { + orgLimit: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteOrgLimitMutation( + 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: orgLimitMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .orgLimit.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: orgLimitKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgLimitKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgMemberMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgMemberMutation.ts new file mode 100644 index 000000000..9c7697147 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgMemberMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for OrgMember + * @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 { orgMemberKeys } from '../query-keys'; +import { orgMemberMutationKeys } from '../mutation-keys'; +import type { OrgMemberSelect, OrgMemberWithRelations } from '../../orm/input-types'; +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 + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteOrgMemberMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteOrgMemberMutation( + params: { + selection: { + fields: S & OrgMemberSelect; + } & HookStrictSelect, OrgMemberSelect>; + } & Omit< + UseMutationOptions< + { + deleteOrgMember: { + orgMember: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteOrgMember: { + orgMember: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteOrgMemberMutation( + 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: orgMemberMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .orgMember.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: orgMemberKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgMemberKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgMembershipDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgMembershipDefaultMutation.ts new file mode 100644 index 000000000..e5c398c57 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgMembershipDefaultMutation.ts @@ -0,0 +1,104 @@ +/** + * Delete mutation hook for OrgMembershipDefault + * @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 { orgMembershipDefaultKeys } from '../query-keys'; +import { orgMembershipDefaultMutationKeys } from '../mutation-keys'; +import type { + OrgMembershipDefaultSelect, + OrgMembershipDefaultWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgMembershipDefaultSelect, + OrgMembershipDefaultWithRelations, +} from '../../orm/input-types'; +/** + * Mutation hook for deleting a OrgMembershipDefault with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteOrgMembershipDefaultMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteOrgMembershipDefaultMutation( + params: { + selection: { + fields: S & OrgMembershipDefaultSelect; + } & HookStrictSelect, OrgMembershipDefaultSelect>; + } & Omit< + UseMutationOptions< + { + deleteOrgMembershipDefault: { + orgMembershipDefault: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteOrgMembershipDefault: { + orgMembershipDefault: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteOrgMembershipDefaultMutation( + 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: orgMembershipDefaultMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .orgMembershipDefault.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: orgMembershipDefaultKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgMembershipDefaultKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgMembershipMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgMembershipMutation.ts new file mode 100644 index 000000000..5108e73b9 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgMembershipMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for OrgMembership + * @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 { orgMembershipKeys } from '../query-keys'; +import { orgMembershipMutationKeys } from '../mutation-keys'; +import type { OrgMembershipSelect, OrgMembershipWithRelations } from '../../orm/input-types'; +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 + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteOrgMembershipMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteOrgMembershipMutation( + params: { + selection: { + fields: S & OrgMembershipSelect; + } & HookStrictSelect, OrgMembershipSelect>; + } & Omit< + UseMutationOptions< + { + deleteOrgMembership: { + orgMembership: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteOrgMembership: { + orgMembership: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteOrgMembershipMutation( + 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: orgMembershipMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .orgMembership.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: orgMembershipKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgMembershipKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgOwnerGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgOwnerGrantMutation.ts new file mode 100644 index 000000000..4700e63cd --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgOwnerGrantMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for OrgOwnerGrant + * @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 { orgOwnerGrantKeys } from '../query-keys'; +import { orgOwnerGrantMutationKeys } from '../mutation-keys'; +import type { OrgOwnerGrantSelect, OrgOwnerGrantWithRelations } from '../../orm/input-types'; +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 + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteOrgOwnerGrantMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteOrgOwnerGrantMutation( + params: { + selection: { + fields: S & OrgOwnerGrantSelect; + } & HookStrictSelect, OrgOwnerGrantSelect>; + } & Omit< + UseMutationOptions< + { + deleteOrgOwnerGrant: { + orgOwnerGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteOrgOwnerGrant: { + orgOwnerGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteOrgOwnerGrantMutation( + 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: orgOwnerGrantMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .orgOwnerGrant.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: orgOwnerGrantKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgOwnerGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgPermissionDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgPermissionDefaultMutation.ts new file mode 100644 index 000000000..841805104 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgPermissionDefaultMutation.ts @@ -0,0 +1,104 @@ +/** + * Delete mutation hook for OrgPermissionDefault + * @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 { orgPermissionDefaultKeys } from '../query-keys'; +import { orgPermissionDefaultMutationKeys } from '../mutation-keys'; +import type { + OrgPermissionDefaultSelect, + OrgPermissionDefaultWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgPermissionDefaultSelect, + OrgPermissionDefaultWithRelations, +} from '../../orm/input-types'; +/** + * Mutation hook for deleting a OrgPermissionDefault with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteOrgPermissionDefaultMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteOrgPermissionDefaultMutation( + params: { + selection: { + fields: S & OrgPermissionDefaultSelect; + } & HookStrictSelect, OrgPermissionDefaultSelect>; + } & Omit< + UseMutationOptions< + { + deleteOrgPermissionDefault: { + orgPermissionDefault: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteOrgPermissionDefault: { + orgPermissionDefault: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteOrgPermissionDefaultMutation( + 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: orgPermissionDefaultMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .orgPermissionDefault.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: orgPermissionDefaultKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgPermissionDefaultKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgPermissionMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgPermissionMutation.ts new file mode 100644 index 000000000..0792b5be9 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgPermissionMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for OrgPermission + * @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 { orgPermissionKeys } from '../query-keys'; +import { orgPermissionMutationKeys } from '../mutation-keys'; +import type { OrgPermissionSelect, OrgPermissionWithRelations } from '../../orm/input-types'; +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 + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteOrgPermissionMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteOrgPermissionMutation( + params: { + selection: { + fields: S & OrgPermissionSelect; + } & HookStrictSelect, OrgPermissionSelect>; + } & Omit< + UseMutationOptions< + { + deleteOrgPermission: { + orgPermission: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteOrgPermission: { + orgPermission: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteOrgPermissionMutation( + 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: orgPermissionMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .orgPermission.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: orgPermissionKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgPermissionKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useSubmitInviteCodeMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useSubmitInviteCodeMutation.ts new file mode 100644 index 000000000..f98317bc5 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useSubmitInviteCodeMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for submitInviteCode + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } 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 { customMutationKeys } from '../mutation-keys'; +import type { SubmitInviteCodeVariables } from '../../orm/mutation'; +import type { SubmitInviteCodePayloadSelect, SubmitInviteCodePayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { SubmitInviteCodeVariables } from '../../orm/mutation'; +export type { SubmitInviteCodePayloadSelect } from '../../orm/input-types'; +export function useSubmitInviteCodeMutation( + params: { + selection: { + fields: S & SubmitInviteCodePayloadSelect; + } & HookStrictSelect, SubmitInviteCodePayloadSelect>; + } & Omit< + UseMutationOptions< + { + submitInviteCode: InferSelectResult | null; + }, + Error, + SubmitInviteCodeVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + submitInviteCode: InferSelectResult | null; + }, + Error, + SubmitInviteCodeVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.submitInviteCode(), + mutationFn: (variables: SubmitInviteCodeVariables) => + getClient() + .mutation.submitInviteCode(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useSubmitOrgInviteCodeMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useSubmitOrgInviteCodeMutation.ts new file mode 100644 index 000000000..a2e71103b --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useSubmitOrgInviteCodeMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for submitOrgInviteCode + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } 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 { customMutationKeys } from '../mutation-keys'; +import type { SubmitOrgInviteCodeVariables } from '../../orm/mutation'; +import type { + SubmitOrgInviteCodePayloadSelect, + SubmitOrgInviteCodePayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { SubmitOrgInviteCodeVariables } from '../../orm/mutation'; +export type { SubmitOrgInviteCodePayloadSelect } from '../../orm/input-types'; +export function useSubmitOrgInviteCodeMutation( + params: { + selection: { + fields: S & SubmitOrgInviteCodePayloadSelect; + } & HookStrictSelect, SubmitOrgInviteCodePayloadSelect>; + } & Omit< + UseMutationOptions< + { + submitOrgInviteCode: InferSelectResult | null; + }, + Error, + SubmitOrgInviteCodeVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + submitOrgInviteCode: InferSelectResult | null; + }, + Error, + SubmitOrgInviteCodeVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.submitOrgInviteCode(), + mutationFn: (variables: SubmitOrgInviteCodeVariables) => + getClient() + .mutation.submitOrgInviteCode(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppAchievementMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppAchievementMutation.ts new file mode 100644 index 000000000..799b7770f --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppAchievementMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for AppAchievement + * @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 { appAchievementKeys } from '../query-keys'; +import { appAchievementMutationKeys } from '../mutation-keys'; +import type { + AppAchievementSelect, + AppAchievementWithRelations, + AppAchievementPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppAchievementSelect, + AppAchievementWithRelations, + AppAchievementPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a AppAchievement + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateAppAchievementMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', appAchievementPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateAppAchievementMutation( + params: { + selection: { + fields: S & AppAchievementSelect; + } & HookStrictSelect, AppAchievementSelect>; + } & Omit< + UseMutationOptions< + { + updateAppAchievement: { + appAchievement: InferSelectResult; + }; + }, + Error, + { + id: string; + appAchievementPatch: AppAchievementPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateAppAchievement: { + appAchievement: InferSelectResult; + }; + }, + Error, + { + id: string; + appAchievementPatch: AppAchievementPatch; + } +>; +export function useUpdateAppAchievementMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + appAchievementPatch: AppAchievementPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appAchievementMutationKeys.all, + mutationFn: ({ + id, + appAchievementPatch, + }: { + id: string; + appAchievementPatch: AppAchievementPatch; + }) => + getClient() + .appAchievement.update({ + where: { + id, + }, + data: appAchievementPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: appAchievementKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appAchievementKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppAdminGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppAdminGrantMutation.ts new file mode 100644 index 000000000..9f97a4a26 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppAdminGrantMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for AppAdminGrant + * @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 { appAdminGrantKeys } from '../query-keys'; +import { appAdminGrantMutationKeys } from '../mutation-keys'; +import type { + AppAdminGrantSelect, + AppAdminGrantWithRelations, + AppAdminGrantPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppAdminGrantSelect, + AppAdminGrantWithRelations, + AppAdminGrantPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a AppAdminGrant + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateAppAdminGrantMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', appAdminGrantPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateAppAdminGrantMutation( + params: { + selection: { + fields: S & AppAdminGrantSelect; + } & HookStrictSelect, AppAdminGrantSelect>; + } & Omit< + UseMutationOptions< + { + updateAppAdminGrant: { + appAdminGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + appAdminGrantPatch: AppAdminGrantPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateAppAdminGrant: { + appAdminGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + appAdminGrantPatch: AppAdminGrantPatch; + } +>; +export function useUpdateAppAdminGrantMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + appAdminGrantPatch: AppAdminGrantPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appAdminGrantMutationKeys.all, + mutationFn: ({ + id, + appAdminGrantPatch, + }: { + id: string; + appAdminGrantPatch: AppAdminGrantPatch; + }) => + getClient() + .appAdminGrant.update({ + where: { + id, + }, + data: appAdminGrantPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: appAdminGrantKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appAdminGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppGrantMutation.ts new file mode 100644 index 000000000..fe323065c --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppGrantMutation.ts @@ -0,0 +1,102 @@ +/** + * Update mutation hook for AppGrant + * @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 { appGrantKeys } from '../query-keys'; +import { appGrantMutationKeys } from '../mutation-keys'; +import type { AppGrantSelect, AppGrantWithRelations, AppGrantPatch } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AppGrantSelect, AppGrantWithRelations, AppGrantPatch } from '../../orm/input-types'; +/** + * Mutation hook for updating a AppGrant + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateAppGrantMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', appGrantPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateAppGrantMutation( + params: { + selection: { + fields: S & AppGrantSelect; + } & HookStrictSelect, AppGrantSelect>; + } & Omit< + UseMutationOptions< + { + updateAppGrant: { + appGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + appGrantPatch: AppGrantPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateAppGrant: { + appGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + appGrantPatch: AppGrantPatch; + } +>; +export function useUpdateAppGrantMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + appGrantPatch: AppGrantPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appGrantMutationKeys.all, + mutationFn: ({ id, appGrantPatch }: { id: string; appGrantPatch: AppGrantPatch }) => + getClient() + .appGrant.update({ + where: { + id, + }, + data: appGrantPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: appGrantKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLevelMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLevelMutation.ts new file mode 100644 index 000000000..309666ec5 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLevelMutation.ts @@ -0,0 +1,102 @@ +/** + * Update mutation hook for AppLevel + * @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 { appLevelKeys } from '../query-keys'; +import { appLevelMutationKeys } from '../mutation-keys'; +import type { AppLevelSelect, AppLevelWithRelations, AppLevelPatch } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AppLevelSelect, AppLevelWithRelations, AppLevelPatch } from '../../orm/input-types'; +/** + * Mutation hook for updating a AppLevel + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateAppLevelMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', appLevelPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateAppLevelMutation( + params: { + selection: { + fields: S & AppLevelSelect; + } & HookStrictSelect, AppLevelSelect>; + } & Omit< + UseMutationOptions< + { + updateAppLevel: { + appLevel: InferSelectResult; + }; + }, + Error, + { + id: string; + appLevelPatch: AppLevelPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateAppLevel: { + appLevel: InferSelectResult; + }; + }, + Error, + { + id: string; + appLevelPatch: AppLevelPatch; + } +>; +export function useUpdateAppLevelMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + appLevelPatch: AppLevelPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appLevelMutationKeys.all, + mutationFn: ({ id, appLevelPatch }: { id: string; appLevelPatch: AppLevelPatch }) => + getClient() + .appLevel.update({ + where: { + id, + }, + data: appLevelPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: appLevelKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appLevelKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLevelRequirementMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLevelRequirementMutation.ts new file mode 100644 index 000000000..418f3464a --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLevelRequirementMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for AppLevelRequirement + * @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 { appLevelRequirementKeys } from '../query-keys'; +import { appLevelRequirementMutationKeys } from '../mutation-keys'; +import type { + AppLevelRequirementSelect, + AppLevelRequirementWithRelations, + AppLevelRequirementPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppLevelRequirementSelect, + AppLevelRequirementWithRelations, + AppLevelRequirementPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a AppLevelRequirement + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateAppLevelRequirementMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', appLevelRequirementPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateAppLevelRequirementMutation( + params: { + selection: { + fields: S & AppLevelRequirementSelect; + } & HookStrictSelect, AppLevelRequirementSelect>; + } & Omit< + UseMutationOptions< + { + updateAppLevelRequirement: { + appLevelRequirement: InferSelectResult; + }; + }, + Error, + { + id: string; + appLevelRequirementPatch: AppLevelRequirementPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateAppLevelRequirement: { + appLevelRequirement: InferSelectResult; + }; + }, + Error, + { + id: string; + appLevelRequirementPatch: AppLevelRequirementPatch; + } +>; +export function useUpdateAppLevelRequirementMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + appLevelRequirementPatch: AppLevelRequirementPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appLevelRequirementMutationKeys.all, + mutationFn: ({ + id, + appLevelRequirementPatch, + }: { + id: string; + appLevelRequirementPatch: AppLevelRequirementPatch; + }) => + getClient() + .appLevelRequirement.update({ + where: { + id, + }, + data: appLevelRequirementPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: appLevelRequirementKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appLevelRequirementKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLimitDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLimitDefaultMutation.ts new file mode 100644 index 000000000..e4bf58682 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLimitDefaultMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for AppLimitDefault + * @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 { appLimitDefaultKeys } from '../query-keys'; +import { appLimitDefaultMutationKeys } from '../mutation-keys'; +import type { + AppLimitDefaultSelect, + AppLimitDefaultWithRelations, + AppLimitDefaultPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppLimitDefaultSelect, + AppLimitDefaultWithRelations, + AppLimitDefaultPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a AppLimitDefault + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateAppLimitDefaultMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', appLimitDefaultPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateAppLimitDefaultMutation( + params: { + selection: { + fields: S & AppLimitDefaultSelect; + } & HookStrictSelect, AppLimitDefaultSelect>; + } & Omit< + UseMutationOptions< + { + updateAppLimitDefault: { + appLimitDefault: InferSelectResult; + }; + }, + Error, + { + id: string; + appLimitDefaultPatch: AppLimitDefaultPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateAppLimitDefault: { + appLimitDefault: InferSelectResult; + }; + }, + Error, + { + id: string; + appLimitDefaultPatch: AppLimitDefaultPatch; + } +>; +export function useUpdateAppLimitDefaultMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + appLimitDefaultPatch: AppLimitDefaultPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appLimitDefaultMutationKeys.all, + mutationFn: ({ + id, + appLimitDefaultPatch, + }: { + id: string; + appLimitDefaultPatch: AppLimitDefaultPatch; + }) => + getClient() + .appLimitDefault.update({ + where: { + id, + }, + data: appLimitDefaultPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: appLimitDefaultKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appLimitDefaultKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLimitMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLimitMutation.ts new file mode 100644 index 000000000..673e80850 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLimitMutation.ts @@ -0,0 +1,102 @@ +/** + * Update mutation hook for AppLimit + * @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 { appLimitKeys } from '../query-keys'; +import { appLimitMutationKeys } from '../mutation-keys'; +import type { AppLimitSelect, AppLimitWithRelations, AppLimitPatch } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AppLimitSelect, AppLimitWithRelations, AppLimitPatch } from '../../orm/input-types'; +/** + * Mutation hook for updating a AppLimit + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateAppLimitMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', appLimitPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateAppLimitMutation( + params: { + selection: { + fields: S & AppLimitSelect; + } & HookStrictSelect, AppLimitSelect>; + } & Omit< + UseMutationOptions< + { + updateAppLimit: { + appLimit: InferSelectResult; + }; + }, + Error, + { + id: string; + appLimitPatch: AppLimitPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateAppLimit: { + appLimit: InferSelectResult; + }; + }, + Error, + { + id: string; + appLimitPatch: AppLimitPatch; + } +>; +export function useUpdateAppLimitMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + appLimitPatch: AppLimitPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appLimitMutationKeys.all, + mutationFn: ({ id, appLimitPatch }: { id: string; appLimitPatch: AppLimitPatch }) => + getClient() + .appLimit.update({ + where: { + id, + }, + data: appLimitPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: appLimitKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appLimitKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppMembershipDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppMembershipDefaultMutation.ts new file mode 100644 index 000000000..c2d03af41 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppMembershipDefaultMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for AppMembershipDefault + * @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 { appMembershipDefaultKeys } from '../query-keys'; +import { appMembershipDefaultMutationKeys } from '../mutation-keys'; +import type { + AppMembershipDefaultSelect, + AppMembershipDefaultWithRelations, + AppMembershipDefaultPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppMembershipDefaultSelect, + AppMembershipDefaultWithRelations, + AppMembershipDefaultPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a AppMembershipDefault + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateAppMembershipDefaultMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', appMembershipDefaultPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateAppMembershipDefaultMutation( + params: { + selection: { + fields: S & AppMembershipDefaultSelect; + } & HookStrictSelect, AppMembershipDefaultSelect>; + } & Omit< + UseMutationOptions< + { + updateAppMembershipDefault: { + appMembershipDefault: InferSelectResult; + }; + }, + Error, + { + id: string; + appMembershipDefaultPatch: AppMembershipDefaultPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateAppMembershipDefault: { + appMembershipDefault: InferSelectResult; + }; + }, + Error, + { + id: string; + appMembershipDefaultPatch: AppMembershipDefaultPatch; + } +>; +export function useUpdateAppMembershipDefaultMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + appMembershipDefaultPatch: AppMembershipDefaultPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appMembershipDefaultMutationKeys.all, + mutationFn: ({ + id, + appMembershipDefaultPatch, + }: { + id: string; + appMembershipDefaultPatch: AppMembershipDefaultPatch; + }) => + getClient() + .appMembershipDefault.update({ + where: { + id, + }, + data: appMembershipDefaultPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: appMembershipDefaultKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appMembershipDefaultKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppMembershipMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppMembershipMutation.ts new file mode 100644 index 000000000..21a8572d7 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppMembershipMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for AppMembership + * @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 { appMembershipKeys } from '../query-keys'; +import { appMembershipMutationKeys } from '../mutation-keys'; +import type { + AppMembershipSelect, + AppMembershipWithRelations, + AppMembershipPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppMembershipSelect, + AppMembershipWithRelations, + AppMembershipPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a AppMembership + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateAppMembershipMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', appMembershipPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateAppMembershipMutation( + params: { + selection: { + fields: S & AppMembershipSelect; + } & HookStrictSelect, AppMembershipSelect>; + } & Omit< + UseMutationOptions< + { + updateAppMembership: { + appMembership: InferSelectResult; + }; + }, + Error, + { + id: string; + appMembershipPatch: AppMembershipPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateAppMembership: { + appMembership: InferSelectResult; + }; + }, + Error, + { + id: string; + appMembershipPatch: AppMembershipPatch; + } +>; +export function useUpdateAppMembershipMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + appMembershipPatch: AppMembershipPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appMembershipMutationKeys.all, + mutationFn: ({ + id, + appMembershipPatch, + }: { + id: string; + appMembershipPatch: AppMembershipPatch; + }) => + getClient() + .appMembership.update({ + where: { + id, + }, + data: appMembershipPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: appMembershipKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appMembershipKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppOwnerGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppOwnerGrantMutation.ts new file mode 100644 index 000000000..ec1d11eb5 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppOwnerGrantMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for AppOwnerGrant + * @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 { appOwnerGrantKeys } from '../query-keys'; +import { appOwnerGrantMutationKeys } from '../mutation-keys'; +import type { + AppOwnerGrantSelect, + AppOwnerGrantWithRelations, + AppOwnerGrantPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppOwnerGrantSelect, + AppOwnerGrantWithRelations, + AppOwnerGrantPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a AppOwnerGrant + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateAppOwnerGrantMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', appOwnerGrantPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateAppOwnerGrantMutation( + params: { + selection: { + fields: S & AppOwnerGrantSelect; + } & HookStrictSelect, AppOwnerGrantSelect>; + } & Omit< + UseMutationOptions< + { + updateAppOwnerGrant: { + appOwnerGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + appOwnerGrantPatch: AppOwnerGrantPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateAppOwnerGrant: { + appOwnerGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + appOwnerGrantPatch: AppOwnerGrantPatch; + } +>; +export function useUpdateAppOwnerGrantMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + appOwnerGrantPatch: AppOwnerGrantPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appOwnerGrantMutationKeys.all, + mutationFn: ({ + id, + appOwnerGrantPatch, + }: { + id: string; + appOwnerGrantPatch: AppOwnerGrantPatch; + }) => + getClient() + .appOwnerGrant.update({ + where: { + id, + }, + data: appOwnerGrantPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: appOwnerGrantKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appOwnerGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppPermissionDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppPermissionDefaultMutation.ts new file mode 100644 index 000000000..9413e7ad3 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppPermissionDefaultMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for AppPermissionDefault + * @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 { appPermissionDefaultKeys } from '../query-keys'; +import { appPermissionDefaultMutationKeys } from '../mutation-keys'; +import type { + AppPermissionDefaultSelect, + AppPermissionDefaultWithRelations, + AppPermissionDefaultPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppPermissionDefaultSelect, + AppPermissionDefaultWithRelations, + AppPermissionDefaultPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a AppPermissionDefault + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateAppPermissionDefaultMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', appPermissionDefaultPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateAppPermissionDefaultMutation( + params: { + selection: { + fields: S & AppPermissionDefaultSelect; + } & HookStrictSelect, AppPermissionDefaultSelect>; + } & Omit< + UseMutationOptions< + { + updateAppPermissionDefault: { + appPermissionDefault: InferSelectResult; + }; + }, + Error, + { + id: string; + appPermissionDefaultPatch: AppPermissionDefaultPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateAppPermissionDefault: { + appPermissionDefault: InferSelectResult; + }; + }, + Error, + { + id: string; + appPermissionDefaultPatch: AppPermissionDefaultPatch; + } +>; +export function useUpdateAppPermissionDefaultMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + appPermissionDefaultPatch: AppPermissionDefaultPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appPermissionDefaultMutationKeys.all, + mutationFn: ({ + id, + appPermissionDefaultPatch, + }: { + id: string; + appPermissionDefaultPatch: AppPermissionDefaultPatch; + }) => + getClient() + .appPermissionDefault.update({ + where: { + id, + }, + data: appPermissionDefaultPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: appPermissionDefaultKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appPermissionDefaultKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppPermissionMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppPermissionMutation.ts new file mode 100644 index 000000000..73effb82a --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppPermissionMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for AppPermission + * @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 { appPermissionKeys } from '../query-keys'; +import { appPermissionMutationKeys } from '../mutation-keys'; +import type { + AppPermissionSelect, + AppPermissionWithRelations, + AppPermissionPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppPermissionSelect, + AppPermissionWithRelations, + AppPermissionPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a AppPermission + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateAppPermissionMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', appPermissionPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateAppPermissionMutation( + params: { + selection: { + fields: S & AppPermissionSelect; + } & HookStrictSelect, AppPermissionSelect>; + } & Omit< + UseMutationOptions< + { + updateAppPermission: { + appPermission: InferSelectResult; + }; + }, + Error, + { + id: string; + appPermissionPatch: AppPermissionPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateAppPermission: { + appPermission: InferSelectResult; + }; + }, + Error, + { + id: string; + appPermissionPatch: AppPermissionPatch; + } +>; +export function useUpdateAppPermissionMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + appPermissionPatch: AppPermissionPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appPermissionMutationKeys.all, + mutationFn: ({ + id, + appPermissionPatch, + }: { + id: string; + appPermissionPatch: AppPermissionPatch; + }) => + getClient() + .appPermission.update({ + where: { + id, + }, + data: appPermissionPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: appPermissionKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appPermissionKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppStepMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppStepMutation.ts new file mode 100644 index 000000000..2cfe95818 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppStepMutation.ts @@ -0,0 +1,102 @@ +/** + * Update mutation hook for AppStep + * @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 { appStepKeys } from '../query-keys'; +import { appStepMutationKeys } from '../mutation-keys'; +import type { AppStepSelect, AppStepWithRelations, AppStepPatch } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AppStepSelect, AppStepWithRelations, AppStepPatch } from '../../orm/input-types'; +/** + * Mutation hook for updating a AppStep + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateAppStepMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', appStepPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateAppStepMutation( + params: { + selection: { + fields: S & AppStepSelect; + } & HookStrictSelect, AppStepSelect>; + } & Omit< + UseMutationOptions< + { + updateAppStep: { + appStep: InferSelectResult; + }; + }, + Error, + { + id: string; + appStepPatch: AppStepPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateAppStep: { + appStep: InferSelectResult; + }; + }, + Error, + { + id: string; + appStepPatch: AppStepPatch; + } +>; +export function useUpdateAppStepMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + appStepPatch: AppStepPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appStepMutationKeys.all, + mutationFn: ({ id, appStepPatch }: { id: string; appStepPatch: AppStepPatch }) => + getClient() + .appStep.update({ + where: { + id, + }, + data: appStepPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: appStepKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appStepKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateClaimedInviteMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateClaimedInviteMutation.ts new file mode 100644 index 000000000..45ccdc49a --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateClaimedInviteMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for ClaimedInvite + * @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 { claimedInviteKeys } from '../query-keys'; +import { claimedInviteMutationKeys } from '../mutation-keys'; +import type { + ClaimedInviteSelect, + ClaimedInviteWithRelations, + ClaimedInvitePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ClaimedInviteSelect, + ClaimedInviteWithRelations, + ClaimedInvitePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a ClaimedInvite + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateClaimedInviteMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', claimedInvitePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateClaimedInviteMutation( + params: { + selection: { + fields: S & ClaimedInviteSelect; + } & HookStrictSelect, ClaimedInviteSelect>; + } & Omit< + UseMutationOptions< + { + updateClaimedInvite: { + claimedInvite: InferSelectResult; + }; + }, + Error, + { + id: string; + claimedInvitePatch: ClaimedInvitePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateClaimedInvite: { + claimedInvite: InferSelectResult; + }; + }, + Error, + { + id: string; + claimedInvitePatch: ClaimedInvitePatch; + } +>; +export function useUpdateClaimedInviteMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + claimedInvitePatch: ClaimedInvitePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: claimedInviteMutationKeys.all, + mutationFn: ({ + id, + claimedInvitePatch, + }: { + id: string; + claimedInvitePatch: ClaimedInvitePatch; + }) => + getClient() + .claimedInvite.update({ + where: { + id, + }, + data: claimedInvitePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: claimedInviteKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: claimedInviteKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateInviteMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateInviteMutation.ts new file mode 100644 index 000000000..819636de6 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateInviteMutation.ts @@ -0,0 +1,102 @@ +/** + * Update mutation hook for Invite + * @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 { inviteKeys } from '../query-keys'; +import { inviteMutationKeys } from '../mutation-keys'; +import type { InviteSelect, InviteWithRelations, InvitePatch } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { InviteSelect, InviteWithRelations, InvitePatch } from '../../orm/input-types'; +/** + * Mutation hook for updating a Invite + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateInviteMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', invitePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateInviteMutation( + params: { + selection: { + fields: S & InviteSelect; + } & HookStrictSelect, InviteSelect>; + } & Omit< + UseMutationOptions< + { + updateInvite: { + invite: InferSelectResult; + }; + }, + Error, + { + id: string; + invitePatch: InvitePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateInvite: { + invite: InferSelectResult; + }; + }, + Error, + { + id: string; + invitePatch: InvitePatch; + } +>; +export function useUpdateInviteMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + invitePatch: InvitePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: inviteMutationKeys.all, + mutationFn: ({ id, invitePatch }: { id: string; invitePatch: InvitePatch }) => + getClient() + .invite.update({ + where: { + id, + }, + data: invitePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: inviteKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: inviteKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateMembershipTypeMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateMembershipTypeMutation.ts new file mode 100644 index 000000000..caee90ff0 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateMembershipTypeMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for MembershipType + * @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 { membershipTypeKeys } from '../query-keys'; +import { membershipTypeMutationKeys } from '../mutation-keys'; +import type { + MembershipTypeSelect, + MembershipTypeWithRelations, + MembershipTypePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + MembershipTypeSelect, + MembershipTypeWithRelations, + MembershipTypePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a MembershipType + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateMembershipTypeMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', membershipTypePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateMembershipTypeMutation( + params: { + selection: { + fields: S & MembershipTypeSelect; + } & HookStrictSelect, MembershipTypeSelect>; + } & Omit< + UseMutationOptions< + { + updateMembershipType: { + membershipType: InferSelectResult; + }; + }, + Error, + { + id: number; + membershipTypePatch: MembershipTypePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateMembershipType: { + membershipType: InferSelectResult; + }; + }, + Error, + { + id: number; + membershipTypePatch: MembershipTypePatch; + } +>; +export function useUpdateMembershipTypeMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: number; + membershipTypePatch: MembershipTypePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: membershipTypeMutationKeys.all, + mutationFn: ({ + id, + membershipTypePatch, + }: { + id: number; + membershipTypePatch: MembershipTypePatch; + }) => + getClient() + .membershipType.update({ + where: { + id, + }, + data: membershipTypePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: membershipTypeKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: membershipTypeKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgAdminGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgAdminGrantMutation.ts new file mode 100644 index 000000000..41f8e6380 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgAdminGrantMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for OrgAdminGrant + * @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 { orgAdminGrantKeys } from '../query-keys'; +import { orgAdminGrantMutationKeys } from '../mutation-keys'; +import type { + OrgAdminGrantSelect, + OrgAdminGrantWithRelations, + OrgAdminGrantPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgAdminGrantSelect, + OrgAdminGrantWithRelations, + OrgAdminGrantPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a OrgAdminGrant + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateOrgAdminGrantMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', orgAdminGrantPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateOrgAdminGrantMutation( + params: { + selection: { + fields: S & OrgAdminGrantSelect; + } & HookStrictSelect, OrgAdminGrantSelect>; + } & Omit< + UseMutationOptions< + { + updateOrgAdminGrant: { + orgAdminGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + orgAdminGrantPatch: OrgAdminGrantPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateOrgAdminGrant: { + orgAdminGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + orgAdminGrantPatch: OrgAdminGrantPatch; + } +>; +export function useUpdateOrgAdminGrantMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + orgAdminGrantPatch: OrgAdminGrantPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgAdminGrantMutationKeys.all, + mutationFn: ({ + id, + orgAdminGrantPatch, + }: { + id: string; + orgAdminGrantPatch: OrgAdminGrantPatch; + }) => + getClient() + .orgAdminGrant.update({ + where: { + id, + }, + data: orgAdminGrantPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: orgAdminGrantKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgAdminGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgClaimedInviteMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgClaimedInviteMutation.ts new file mode 100644 index 000000000..8b2a21d55 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgClaimedInviteMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for OrgClaimedInvite + * @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 { orgClaimedInviteKeys } from '../query-keys'; +import { orgClaimedInviteMutationKeys } from '../mutation-keys'; +import type { + OrgClaimedInviteSelect, + OrgClaimedInviteWithRelations, + OrgClaimedInvitePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgClaimedInviteSelect, + OrgClaimedInviteWithRelations, + OrgClaimedInvitePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a OrgClaimedInvite + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateOrgClaimedInviteMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', orgClaimedInvitePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateOrgClaimedInviteMutation( + params: { + selection: { + fields: S & OrgClaimedInviteSelect; + } & HookStrictSelect, OrgClaimedInviteSelect>; + } & Omit< + UseMutationOptions< + { + updateOrgClaimedInvite: { + orgClaimedInvite: InferSelectResult; + }; + }, + Error, + { + id: string; + orgClaimedInvitePatch: OrgClaimedInvitePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateOrgClaimedInvite: { + orgClaimedInvite: InferSelectResult; + }; + }, + Error, + { + id: string; + orgClaimedInvitePatch: OrgClaimedInvitePatch; + } +>; +export function useUpdateOrgClaimedInviteMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + orgClaimedInvitePatch: OrgClaimedInvitePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgClaimedInviteMutationKeys.all, + mutationFn: ({ + id, + orgClaimedInvitePatch, + }: { + id: string; + orgClaimedInvitePatch: OrgClaimedInvitePatch; + }) => + getClient() + .orgClaimedInvite.update({ + where: { + id, + }, + data: orgClaimedInvitePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: orgClaimedInviteKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgClaimedInviteKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgGrantMutation.ts new file mode 100644 index 000000000..fc612cf93 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgGrantMutation.ts @@ -0,0 +1,102 @@ +/** + * Update mutation hook for OrgGrant + * @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 { orgGrantKeys } from '../query-keys'; +import { orgGrantMutationKeys } from '../mutation-keys'; +import type { OrgGrantSelect, OrgGrantWithRelations, OrgGrantPatch } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { OrgGrantSelect, OrgGrantWithRelations, OrgGrantPatch } from '../../orm/input-types'; +/** + * Mutation hook for updating a OrgGrant + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateOrgGrantMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', orgGrantPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateOrgGrantMutation( + params: { + selection: { + fields: S & OrgGrantSelect; + } & HookStrictSelect, OrgGrantSelect>; + } & Omit< + UseMutationOptions< + { + updateOrgGrant: { + orgGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + orgGrantPatch: OrgGrantPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateOrgGrant: { + orgGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + orgGrantPatch: OrgGrantPatch; + } +>; +export function useUpdateOrgGrantMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + orgGrantPatch: OrgGrantPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgGrantMutationKeys.all, + mutationFn: ({ id, orgGrantPatch }: { id: string; orgGrantPatch: OrgGrantPatch }) => + getClient() + .orgGrant.update({ + where: { + id, + }, + data: orgGrantPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: orgGrantKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgInviteMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgInviteMutation.ts new file mode 100644 index 000000000..5093adbfc --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgInviteMutation.ts @@ -0,0 +1,110 @@ +/** + * Update mutation hook for OrgInvite + * @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 { orgInviteKeys } from '../query-keys'; +import { orgInviteMutationKeys } from '../mutation-keys'; +import type { + OrgInviteSelect, + OrgInviteWithRelations, + OrgInvitePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgInviteSelect, + OrgInviteWithRelations, + OrgInvitePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a OrgInvite + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateOrgInviteMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', orgInvitePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateOrgInviteMutation( + params: { + selection: { + fields: S & OrgInviteSelect; + } & HookStrictSelect, OrgInviteSelect>; + } & Omit< + UseMutationOptions< + { + updateOrgInvite: { + orgInvite: InferSelectResult; + }; + }, + Error, + { + id: string; + orgInvitePatch: OrgInvitePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateOrgInvite: { + orgInvite: InferSelectResult; + }; + }, + Error, + { + id: string; + orgInvitePatch: OrgInvitePatch; + } +>; +export function useUpdateOrgInviteMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + orgInvitePatch: OrgInvitePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgInviteMutationKeys.all, + mutationFn: ({ id, orgInvitePatch }: { id: string; orgInvitePatch: OrgInvitePatch }) => + getClient() + .orgInvite.update({ + where: { + id, + }, + data: orgInvitePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: orgInviteKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgInviteKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgLimitDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgLimitDefaultMutation.ts new file mode 100644 index 000000000..9226eadb8 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgLimitDefaultMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for OrgLimitDefault + * @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 { orgLimitDefaultKeys } from '../query-keys'; +import { orgLimitDefaultMutationKeys } from '../mutation-keys'; +import type { + OrgLimitDefaultSelect, + OrgLimitDefaultWithRelations, + OrgLimitDefaultPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgLimitDefaultSelect, + OrgLimitDefaultWithRelations, + OrgLimitDefaultPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a OrgLimitDefault + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateOrgLimitDefaultMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', orgLimitDefaultPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateOrgLimitDefaultMutation( + params: { + selection: { + fields: S & OrgLimitDefaultSelect; + } & HookStrictSelect, OrgLimitDefaultSelect>; + } & Omit< + UseMutationOptions< + { + updateOrgLimitDefault: { + orgLimitDefault: InferSelectResult; + }; + }, + Error, + { + id: string; + orgLimitDefaultPatch: OrgLimitDefaultPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateOrgLimitDefault: { + orgLimitDefault: InferSelectResult; + }; + }, + Error, + { + id: string; + orgLimitDefaultPatch: OrgLimitDefaultPatch; + } +>; +export function useUpdateOrgLimitDefaultMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + orgLimitDefaultPatch: OrgLimitDefaultPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgLimitDefaultMutationKeys.all, + mutationFn: ({ + id, + orgLimitDefaultPatch, + }: { + id: string; + orgLimitDefaultPatch: OrgLimitDefaultPatch; + }) => + getClient() + .orgLimitDefault.update({ + where: { + id, + }, + data: orgLimitDefaultPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: orgLimitDefaultKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgLimitDefaultKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgLimitMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgLimitMutation.ts new file mode 100644 index 000000000..cd8f3baed --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgLimitMutation.ts @@ -0,0 +1,102 @@ +/** + * Update mutation hook for OrgLimit + * @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 { orgLimitKeys } from '../query-keys'; +import { orgLimitMutationKeys } from '../mutation-keys'; +import type { OrgLimitSelect, OrgLimitWithRelations, OrgLimitPatch } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { OrgLimitSelect, OrgLimitWithRelations, OrgLimitPatch } from '../../orm/input-types'; +/** + * Mutation hook for updating a OrgLimit + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateOrgLimitMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', orgLimitPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateOrgLimitMutation( + params: { + selection: { + fields: S & OrgLimitSelect; + } & HookStrictSelect, OrgLimitSelect>; + } & Omit< + UseMutationOptions< + { + updateOrgLimit: { + orgLimit: InferSelectResult; + }; + }, + Error, + { + id: string; + orgLimitPatch: OrgLimitPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateOrgLimit: { + orgLimit: InferSelectResult; + }; + }, + Error, + { + id: string; + orgLimitPatch: OrgLimitPatch; + } +>; +export function useUpdateOrgLimitMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + orgLimitPatch: OrgLimitPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgLimitMutationKeys.all, + mutationFn: ({ id, orgLimitPatch }: { id: string; orgLimitPatch: OrgLimitPatch }) => + getClient() + .orgLimit.update({ + where: { + id, + }, + data: orgLimitPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: orgLimitKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgLimitKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgMemberMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgMemberMutation.ts new file mode 100644 index 000000000..42f54bfc7 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgMemberMutation.ts @@ -0,0 +1,110 @@ +/** + * Update mutation hook for OrgMember + * @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 { orgMemberKeys } from '../query-keys'; +import { orgMemberMutationKeys } from '../mutation-keys'; +import type { + OrgMemberSelect, + OrgMemberWithRelations, + OrgMemberPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgMemberSelect, + OrgMemberWithRelations, + OrgMemberPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a OrgMember + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateOrgMemberMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', orgMemberPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateOrgMemberMutation( + params: { + selection: { + fields: S & OrgMemberSelect; + } & HookStrictSelect, OrgMemberSelect>; + } & Omit< + UseMutationOptions< + { + updateOrgMember: { + orgMember: InferSelectResult; + }; + }, + Error, + { + id: string; + orgMemberPatch: OrgMemberPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateOrgMember: { + orgMember: InferSelectResult; + }; + }, + Error, + { + id: string; + orgMemberPatch: OrgMemberPatch; + } +>; +export function useUpdateOrgMemberMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + orgMemberPatch: OrgMemberPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgMemberMutationKeys.all, + mutationFn: ({ id, orgMemberPatch }: { id: string; orgMemberPatch: OrgMemberPatch }) => + getClient() + .orgMember.update({ + where: { + id, + }, + data: orgMemberPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: orgMemberKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgMemberKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgMembershipDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgMembershipDefaultMutation.ts new file mode 100644 index 000000000..06b97181c --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgMembershipDefaultMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for OrgMembershipDefault + * @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 { orgMembershipDefaultKeys } from '../query-keys'; +import { orgMembershipDefaultMutationKeys } from '../mutation-keys'; +import type { + OrgMembershipDefaultSelect, + OrgMembershipDefaultWithRelations, + OrgMembershipDefaultPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgMembershipDefaultSelect, + OrgMembershipDefaultWithRelations, + OrgMembershipDefaultPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a OrgMembershipDefault + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateOrgMembershipDefaultMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', orgMembershipDefaultPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateOrgMembershipDefaultMutation( + params: { + selection: { + fields: S & OrgMembershipDefaultSelect; + } & HookStrictSelect, OrgMembershipDefaultSelect>; + } & Omit< + UseMutationOptions< + { + updateOrgMembershipDefault: { + orgMembershipDefault: InferSelectResult; + }; + }, + Error, + { + id: string; + orgMembershipDefaultPatch: OrgMembershipDefaultPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateOrgMembershipDefault: { + orgMembershipDefault: InferSelectResult; + }; + }, + Error, + { + id: string; + orgMembershipDefaultPatch: OrgMembershipDefaultPatch; + } +>; +export function useUpdateOrgMembershipDefaultMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + orgMembershipDefaultPatch: OrgMembershipDefaultPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgMembershipDefaultMutationKeys.all, + mutationFn: ({ + id, + orgMembershipDefaultPatch, + }: { + id: string; + orgMembershipDefaultPatch: OrgMembershipDefaultPatch; + }) => + getClient() + .orgMembershipDefault.update({ + where: { + id, + }, + data: orgMembershipDefaultPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: orgMembershipDefaultKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgMembershipDefaultKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgMembershipMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgMembershipMutation.ts new file mode 100644 index 000000000..5a8998fb2 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgMembershipMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for OrgMembership + * @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 { orgMembershipKeys } from '../query-keys'; +import { orgMembershipMutationKeys } from '../mutation-keys'; +import type { + OrgMembershipSelect, + OrgMembershipWithRelations, + OrgMembershipPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgMembershipSelect, + OrgMembershipWithRelations, + OrgMembershipPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a OrgMembership + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateOrgMembershipMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', orgMembershipPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateOrgMembershipMutation( + params: { + selection: { + fields: S & OrgMembershipSelect; + } & HookStrictSelect, OrgMembershipSelect>; + } & Omit< + UseMutationOptions< + { + updateOrgMembership: { + orgMembership: InferSelectResult; + }; + }, + Error, + { + id: string; + orgMembershipPatch: OrgMembershipPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateOrgMembership: { + orgMembership: InferSelectResult; + }; + }, + Error, + { + id: string; + orgMembershipPatch: OrgMembershipPatch; + } +>; +export function useUpdateOrgMembershipMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + orgMembershipPatch: OrgMembershipPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgMembershipMutationKeys.all, + mutationFn: ({ + id, + orgMembershipPatch, + }: { + id: string; + orgMembershipPatch: OrgMembershipPatch; + }) => + getClient() + .orgMembership.update({ + where: { + id, + }, + data: orgMembershipPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: orgMembershipKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgMembershipKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgOwnerGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgOwnerGrantMutation.ts new file mode 100644 index 000000000..f1704e8be --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgOwnerGrantMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for OrgOwnerGrant + * @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 { orgOwnerGrantKeys } from '../query-keys'; +import { orgOwnerGrantMutationKeys } from '../mutation-keys'; +import type { + OrgOwnerGrantSelect, + OrgOwnerGrantWithRelations, + OrgOwnerGrantPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgOwnerGrantSelect, + OrgOwnerGrantWithRelations, + OrgOwnerGrantPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a OrgOwnerGrant + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateOrgOwnerGrantMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', orgOwnerGrantPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateOrgOwnerGrantMutation( + params: { + selection: { + fields: S & OrgOwnerGrantSelect; + } & HookStrictSelect, OrgOwnerGrantSelect>; + } & Omit< + UseMutationOptions< + { + updateOrgOwnerGrant: { + orgOwnerGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + orgOwnerGrantPatch: OrgOwnerGrantPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateOrgOwnerGrant: { + orgOwnerGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + orgOwnerGrantPatch: OrgOwnerGrantPatch; + } +>; +export function useUpdateOrgOwnerGrantMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + orgOwnerGrantPatch: OrgOwnerGrantPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgOwnerGrantMutationKeys.all, + mutationFn: ({ + id, + orgOwnerGrantPatch, + }: { + id: string; + orgOwnerGrantPatch: OrgOwnerGrantPatch; + }) => + getClient() + .orgOwnerGrant.update({ + where: { + id, + }, + data: orgOwnerGrantPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: orgOwnerGrantKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgOwnerGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgPermissionDefaultMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgPermissionDefaultMutation.ts new file mode 100644 index 000000000..b512499d2 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgPermissionDefaultMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for OrgPermissionDefault + * @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 { orgPermissionDefaultKeys } from '../query-keys'; +import { orgPermissionDefaultMutationKeys } from '../mutation-keys'; +import type { + OrgPermissionDefaultSelect, + OrgPermissionDefaultWithRelations, + OrgPermissionDefaultPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgPermissionDefaultSelect, + OrgPermissionDefaultWithRelations, + OrgPermissionDefaultPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a OrgPermissionDefault + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateOrgPermissionDefaultMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', orgPermissionDefaultPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateOrgPermissionDefaultMutation( + params: { + selection: { + fields: S & OrgPermissionDefaultSelect; + } & HookStrictSelect, OrgPermissionDefaultSelect>; + } & Omit< + UseMutationOptions< + { + updateOrgPermissionDefault: { + orgPermissionDefault: InferSelectResult; + }; + }, + Error, + { + id: string; + orgPermissionDefaultPatch: OrgPermissionDefaultPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateOrgPermissionDefault: { + orgPermissionDefault: InferSelectResult; + }; + }, + Error, + { + id: string; + orgPermissionDefaultPatch: OrgPermissionDefaultPatch; + } +>; +export function useUpdateOrgPermissionDefaultMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + orgPermissionDefaultPatch: OrgPermissionDefaultPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgPermissionDefaultMutationKeys.all, + mutationFn: ({ + id, + orgPermissionDefaultPatch, + }: { + id: string; + orgPermissionDefaultPatch: OrgPermissionDefaultPatch; + }) => + getClient() + .orgPermissionDefault.update({ + where: { + id, + }, + data: orgPermissionDefaultPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: orgPermissionDefaultKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgPermissionDefaultKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgPermissionMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgPermissionMutation.ts new file mode 100644 index 000000000..69be765f0 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgPermissionMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for OrgPermission + * @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 { orgPermissionKeys } from '../query-keys'; +import { orgPermissionMutationKeys } from '../mutation-keys'; +import type { + OrgPermissionSelect, + OrgPermissionWithRelations, + OrgPermissionPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgPermissionSelect, + OrgPermissionWithRelations, + OrgPermissionPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a OrgPermission + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateOrgPermissionMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', orgPermissionPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateOrgPermissionMutation( + params: { + selection: { + fields: S & OrgPermissionSelect; + } & HookStrictSelect, OrgPermissionSelect>; + } & Omit< + UseMutationOptions< + { + updateOrgPermission: { + orgPermission: InferSelectResult; + }; + }, + Error, + { + id: string; + orgPermissionPatch: OrgPermissionPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateOrgPermission: { + orgPermission: InferSelectResult; + }; + }, + Error, + { + id: string; + orgPermissionPatch: OrgPermissionPatch; + } +>; +export function useUpdateOrgPermissionMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + orgPermissionPatch: OrgPermissionPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgPermissionMutationKeys.all, + mutationFn: ({ + id, + orgPermissionPatch, + }: { + id: string; + orgPermissionPatch: OrgPermissionPatch; + }) => + getClient() + .orgPermission.update({ + where: { + id, + }, + data: orgPermissionPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: orgPermissionKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgPermissionKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/index.ts b/sdk/constructive-react/src/admin/hooks/queries/index.ts new file mode 100644 index 000000000..8ae463934 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/index.ts @@ -0,0 +1,71 @@ +/** + * Query hooks barrel export + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export * from './useAppPermissionsQuery'; +export * from './useAppPermissionQuery'; +export * from './useOrgPermissionsQuery'; +export * from './useOrgPermissionQuery'; +export * from './useAppLevelRequirementsQuery'; +export * from './useAppLevelRequirementQuery'; +export * from './useOrgMembersQuery'; +export * from './useOrgMemberQuery'; +export * from './useAppPermissionDefaultsQuery'; +export * from './useAppPermissionDefaultQuery'; +export * from './useOrgPermissionDefaultsQuery'; +export * from './useOrgPermissionDefaultQuery'; +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 './useMembershipTypesQuery'; +export * from './useMembershipTypeQuery'; +export * from './useAppLimitsQuery'; +export * from './useAppLimitQuery'; +export * from './useAppAchievementsQuery'; +export * from './useAppAchievementQuery'; +export * from './useAppStepsQuery'; +export * from './useAppStepQuery'; +export * from './useClaimedInvitesQuery'; +export * from './useClaimedInviteQuery'; +export * from './useAppGrantsQuery'; +export * from './useAppGrantQuery'; +export * from './useAppMembershipDefaultsQuery'; +export * from './useAppMembershipDefaultQuery'; +export * from './useOrgLimitsQuery'; +export * from './useOrgLimitQuery'; +export * from './useOrgClaimedInvitesQuery'; +export * from './useOrgClaimedInviteQuery'; +export * from './useOrgGrantsQuery'; +export * from './useOrgGrantQuery'; +export * from './useOrgMembershipDefaultsQuery'; +export * from './useOrgMembershipDefaultQuery'; +export * from './useAppLevelsQuery'; +export * from './useAppLevelQuery'; +export * from './useInvitesQuery'; +export * from './useInviteQuery'; +export * from './useAppMembershipsQuery'; +export * from './useAppMembershipQuery'; +export * from './useOrgMembershipsQuery'; +export * from './useOrgMembershipQuery'; +export * from './useOrgInvitesQuery'; +export * from './useOrgInviteQuery'; +export * from './useAppPermissionsGetPaddedMaskQuery'; +export * from './useOrgPermissionsGetPaddedMaskQuery'; +export * from './useStepsAchievedQuery'; +export * from './useAppPermissionsGetMaskQuery'; +export * from './useOrgPermissionsGetMaskQuery'; +export * from './useAppPermissionsGetMaskByNamesQuery'; +export * from './useOrgPermissionsGetMaskByNamesQuery'; +export * from './useAppPermissionsGetByMaskQuery'; +export * from './useOrgPermissionsGetByMaskQuery'; +export * from './useStepsRequiredQuery'; diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppAchievementQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppAchievementQuery.ts new file mode 100644 index 000000000..136d30313 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppAchievementQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for AppAchievement + * @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 { appAchievementKeys } from '../query-keys'; +import type { AppAchievementSelect, AppAchievementWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AppAchievementSelect, AppAchievementWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appAchievementQueryKey = appAchievementKeys.detail; +/** + * Query hook for fetching a single AppAchievement + * + * @example + * ```tsx + * const { data, isLoading } = useAppAchievementQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useAppAchievementQuery< + S extends AppAchievementSelect, + TData = { + appAchievement: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppAchievementSelect>; + } & Omit< + UseQueryOptions< + { + appAchievement: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppAchievementQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appAchievementKeys.detail(params.id), + queryFn: () => + getClient() + .appAchievement.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single AppAchievement without React hooks + * + * @example + * ```ts + * const data = await fetchAppAchievementQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchAppAchievementQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppAchievementSelect>; +}): Promise<{ + appAchievement: InferSelectResult | null; +}>; +export async function fetchAppAchievementQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .appAchievement.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single AppAchievement for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppAchievementQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchAppAchievementQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppAchievementSelect>; + } +): Promise; +export async function prefetchAppAchievementQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: appAchievementKeys.detail(params.id), + queryFn: () => + getClient() + .appAchievement.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppAchievementsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppAchievementsQuery.ts new file mode 100644 index 000000000..fb905cd4e --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppAchievementsQuery.ts @@ -0,0 +1,159 @@ +/** + * List query hook for AppAchievement + * @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 { appAchievementKeys } from '../query-keys'; +import type { + AppAchievementSelect, + AppAchievementWithRelations, + AppAchievementFilter, + AppAchievementOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + AppAchievementSelect, + AppAchievementWithRelations, + AppAchievementFilter, + AppAchievementOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appAchievementsQueryKey = appAchievementKeys.list; +/** + * Query hook for fetching AppAchievement list + * + * @example + * ```tsx + * const { data, isLoading } = useAppAchievementsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useAppAchievementsQuery< + S extends AppAchievementSelect, + TData = { + appAchievements: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppAchievementSelect>; + } & Omit< + UseQueryOptions< + { + appAchievements: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppAchievementsQuery( + params: { + selection: ListSelectionConfig< + AppAchievementSelect, + AppAchievementFilter, + AppAchievementOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + AppAchievementSelect, + AppAchievementFilter, + AppAchievementOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appAchievementKeys.list(args), + queryFn: () => getClient().appAchievement.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch AppAchievement list without React hooks + * + * @example + * ```ts + * const data = await fetchAppAchievementsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchAppAchievementsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppAchievementSelect>; +}): Promise<{ + appAchievements: ConnectionResult>; +}>; +export async function fetchAppAchievementsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + AppAchievementSelect, + AppAchievementFilter, + AppAchievementOrderBy + >(params.selection); + return getClient().appAchievement.findMany(args).unwrap(); +} +/** + * Prefetch AppAchievement list for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppAchievementsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchAppAchievementsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppAchievementSelect>; + } +): Promise; +export async function prefetchAppAchievementsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + AppAchievementSelect, + AppAchievementFilter, + AppAchievementOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + AppAchievementSelect, + AppAchievementFilter, + AppAchievementOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: appAchievementKeys.list(args), + queryFn: () => getClient().appAchievement.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppAdminGrantQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppAdminGrantQuery.ts new file mode 100644 index 000000000..d010f7876 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppAdminGrantQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for AppAdminGrant + * @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 { appAdminGrantKeys } from '../query-keys'; +import type { AppAdminGrantSelect, AppAdminGrantWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AppAdminGrantSelect, AppAdminGrantWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appAdminGrantQueryKey = appAdminGrantKeys.detail; +/** + * Query hook for fetching a single AppAdminGrant + * + * @example + * ```tsx + * const { data, isLoading } = useAppAdminGrantQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useAppAdminGrantQuery< + S extends AppAdminGrantSelect, + TData = { + appAdminGrant: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppAdminGrantSelect>; + } & Omit< + UseQueryOptions< + { + appAdminGrant: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppAdminGrantQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appAdminGrantKeys.detail(params.id), + queryFn: () => + getClient() + .appAdminGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single AppAdminGrant without React hooks + * + * @example + * ```ts + * const data = await fetchAppAdminGrantQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchAppAdminGrantQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppAdminGrantSelect>; +}): Promise<{ + appAdminGrant: InferSelectResult | null; +}>; +export async function fetchAppAdminGrantQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .appAdminGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single AppAdminGrant for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppAdminGrantQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchAppAdminGrantQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppAdminGrantSelect>; + } +): Promise; +export async function prefetchAppAdminGrantQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: appAdminGrantKeys.detail(params.id), + queryFn: () => + getClient() + .appAdminGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppAdminGrantsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppAdminGrantsQuery.ts new file mode 100644 index 000000000..eb47436de --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppAdminGrantsQuery.ts @@ -0,0 +1,151 @@ +/** + * List query hook for AppAdminGrant + * @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 { appAdminGrantKeys } from '../query-keys'; +import type { + AppAdminGrantSelect, + AppAdminGrantWithRelations, + AppAdminGrantFilter, + AppAdminGrantOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + AppAdminGrantSelect, + AppAdminGrantWithRelations, + AppAdminGrantFilter, + AppAdminGrantOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appAdminGrantsQueryKey = appAdminGrantKeys.list; +/** + * Query hook for fetching AppAdminGrant list + * + * @example + * ```tsx + * const { data, isLoading } = useAppAdminGrantsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useAppAdminGrantsQuery< + S extends AppAdminGrantSelect, + TData = { + appAdminGrants: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppAdminGrantSelect>; + } & Omit< + UseQueryOptions< + { + appAdminGrants: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppAdminGrantsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + AppAdminGrantSelect, + AppAdminGrantFilter, + AppAdminGrantOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appAdminGrantKeys.list(args), + queryFn: () => getClient().appAdminGrant.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch AppAdminGrant list without React hooks + * + * @example + * ```ts + * const data = await fetchAppAdminGrantsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchAppAdminGrantsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppAdminGrantSelect>; +}): Promise<{ + appAdminGrants: ConnectionResult>; +}>; +export async function fetchAppAdminGrantsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + AppAdminGrantSelect, + AppAdminGrantFilter, + AppAdminGrantOrderBy + >(params.selection); + return getClient().appAdminGrant.findMany(args).unwrap(); +} +/** + * Prefetch AppAdminGrant list for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppAdminGrantsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchAppAdminGrantsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppAdminGrantSelect>; + } +): Promise; +export async function prefetchAppAdminGrantsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs< + AppAdminGrantSelect, + AppAdminGrantFilter, + AppAdminGrantOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: appAdminGrantKeys.list(args), + queryFn: () => getClient().appAdminGrant.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppGrantQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppGrantQuery.ts new file mode 100644 index 000000000..a730510c7 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppGrantQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for AppGrant + * @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 { appGrantKeys } from '../query-keys'; +import type { AppGrantSelect, AppGrantWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AppGrantSelect, AppGrantWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appGrantQueryKey = appGrantKeys.detail; +/** + * Query hook for fetching a single AppGrant + * + * @example + * ```tsx + * const { data, isLoading } = useAppGrantQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useAppGrantQuery< + S extends AppGrantSelect, + TData = { + appGrant: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppGrantSelect>; + } & Omit< + UseQueryOptions< + { + appGrant: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppGrantQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appGrantKeys.detail(params.id), + queryFn: () => + getClient() + .appGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single AppGrant without React hooks + * + * @example + * ```ts + * const data = await fetchAppGrantQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchAppGrantQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppGrantSelect>; +}): Promise<{ + appGrant: InferSelectResult | null; +}>; +export async function fetchAppGrantQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .appGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single AppGrant for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppGrantQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchAppGrantQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppGrantSelect>; + } +): Promise; +export async function prefetchAppGrantQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: appGrantKeys.detail(params.id), + queryFn: () => + getClient() + .appGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppGrantsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppGrantsQuery.ts new file mode 100644 index 000000000..cf20fe3c6 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppGrantsQuery.ts @@ -0,0 +1,145 @@ +/** + * List query hook for AppGrant + * @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 { appGrantKeys } from '../query-keys'; +import type { + AppGrantSelect, + AppGrantWithRelations, + AppGrantFilter, + AppGrantOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + AppGrantSelect, + AppGrantWithRelations, + AppGrantFilter, + AppGrantOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appGrantsQueryKey = appGrantKeys.list; +/** + * Query hook for fetching AppGrant list + * + * @example + * ```tsx + * const { data, isLoading } = useAppGrantsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useAppGrantsQuery< + S extends AppGrantSelect, + TData = { + appGrants: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppGrantSelect>; + } & Omit< + UseQueryOptions< + { + appGrants: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppGrantsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appGrantKeys.list(args), + queryFn: () => getClient().appGrant.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch AppGrant list without React hooks + * + * @example + * ```ts + * const data = await fetchAppGrantsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchAppGrantsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppGrantSelect>; +}): Promise<{ + appGrants: ConnectionResult>; +}>; +export async function fetchAppGrantsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().appGrant.findMany(args).unwrap(); +} +/** + * Prefetch AppGrant list for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppGrantsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchAppGrantsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppGrantSelect>; + } +): Promise; +export async function prefetchAppGrantsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: appGrantKeys.list(args), + queryFn: () => getClient().appGrant.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppLevelQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppLevelQuery.ts new file mode 100644 index 000000000..0c550dd44 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppLevelQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for AppLevel + * @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 { appLevelKeys } from '../query-keys'; +import type { AppLevelSelect, AppLevelWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AppLevelSelect, AppLevelWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appLevelQueryKey = appLevelKeys.detail; +/** + * Query hook for fetching a single AppLevel + * + * @example + * ```tsx + * const { data, isLoading } = useAppLevelQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useAppLevelQuery< + S extends AppLevelSelect, + TData = { + appLevel: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppLevelSelect>; + } & Omit< + UseQueryOptions< + { + appLevel: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppLevelQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appLevelKeys.detail(params.id), + queryFn: () => + getClient() + .appLevel.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single AppLevel without React hooks + * + * @example + * ```ts + * const data = await fetchAppLevelQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchAppLevelQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppLevelSelect>; +}): Promise<{ + appLevel: InferSelectResult | null; +}>; +export async function fetchAppLevelQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .appLevel.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single AppLevel for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppLevelQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchAppLevelQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppLevelSelect>; + } +): Promise; +export async function prefetchAppLevelQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: appLevelKeys.detail(params.id), + queryFn: () => + getClient() + .appLevel.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppLevelRequirementQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppLevelRequirementQuery.ts new file mode 100644 index 000000000..03271277e --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppLevelRequirementQuery.ts @@ -0,0 +1,144 @@ +/** + * Single item query hook for AppLevelRequirement + * @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 { appLevelRequirementKeys } from '../query-keys'; +import type { + AppLevelRequirementSelect, + AppLevelRequirementWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppLevelRequirementSelect, + AppLevelRequirementWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appLevelRequirementQueryKey = appLevelRequirementKeys.detail; +/** + * Query hook for fetching a single AppLevelRequirement + * + * @example + * ```tsx + * const { data, isLoading } = useAppLevelRequirementQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useAppLevelRequirementQuery< + S extends AppLevelRequirementSelect, + TData = { + appLevelRequirement: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppLevelRequirementSelect>; + } & Omit< + UseQueryOptions< + { + appLevelRequirement: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppLevelRequirementQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appLevelRequirementKeys.detail(params.id), + queryFn: () => + getClient() + .appLevelRequirement.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single AppLevelRequirement without React hooks + * + * @example + * ```ts + * const data = await fetchAppLevelRequirementQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchAppLevelRequirementQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppLevelRequirementSelect>; +}): Promise<{ + appLevelRequirement: InferSelectResult | null; +}>; +export async function fetchAppLevelRequirementQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .appLevelRequirement.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single AppLevelRequirement for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppLevelRequirementQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchAppLevelRequirementQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppLevelRequirementSelect>; + } +): Promise; +export async function prefetchAppLevelRequirementQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: appLevelRequirementKeys.detail(params.id), + queryFn: () => + getClient() + .appLevelRequirement.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppLevelRequirementsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppLevelRequirementsQuery.ts new file mode 100644 index 000000000..f085058b5 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppLevelRequirementsQuery.ts @@ -0,0 +1,174 @@ +/** + * List query hook for AppLevelRequirement + * @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 { appLevelRequirementKeys } from '../query-keys'; +import type { + AppLevelRequirementSelect, + AppLevelRequirementWithRelations, + AppLevelRequirementFilter, + AppLevelRequirementOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + AppLevelRequirementSelect, + AppLevelRequirementWithRelations, + AppLevelRequirementFilter, + AppLevelRequirementOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appLevelRequirementsQueryKey = appLevelRequirementKeys.list; +/** + * Query hook for fetching AppLevelRequirement list + * + * @example + * ```tsx + * const { data, isLoading } = useAppLevelRequirementsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useAppLevelRequirementsQuery< + S extends AppLevelRequirementSelect, + TData = { + appLevelRequirements: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, AppLevelRequirementSelect>; + } & Omit< + UseQueryOptions< + { + appLevelRequirements: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppLevelRequirementsQuery( + params: { + selection: ListSelectionConfig< + AppLevelRequirementSelect, + AppLevelRequirementFilter, + AppLevelRequirementOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + AppLevelRequirementSelect, + AppLevelRequirementFilter, + AppLevelRequirementOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appLevelRequirementKeys.list(args), + queryFn: () => getClient().appLevelRequirement.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch AppLevelRequirement list without React hooks + * + * @example + * ```ts + * const data = await fetchAppLevelRequirementsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchAppLevelRequirementsQuery(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, AppLevelRequirementSelect>; +}): Promise<{ + appLevelRequirements: ConnectionResult>; +}>; +export async function fetchAppLevelRequirementsQuery(params: { + selection: ListSelectionConfig< + AppLevelRequirementSelect, + AppLevelRequirementFilter, + AppLevelRequirementOrderBy + >; +}) { + const args = buildListSelectionArgs< + AppLevelRequirementSelect, + AppLevelRequirementFilter, + AppLevelRequirementOrderBy + >(params.selection); + return getClient().appLevelRequirement.findMany(args).unwrap(); +} +/** + * Prefetch AppLevelRequirement list for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppLevelRequirementsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchAppLevelRequirementsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, AppLevelRequirementSelect>; + } +): Promise; +export async function prefetchAppLevelRequirementsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + AppLevelRequirementSelect, + AppLevelRequirementFilter, + AppLevelRequirementOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + AppLevelRequirementSelect, + AppLevelRequirementFilter, + AppLevelRequirementOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: appLevelRequirementKeys.list(args), + queryFn: () => getClient().appLevelRequirement.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppLevelsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppLevelsQuery.ts new file mode 100644 index 000000000..39c9b44bc --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppLevelsQuery.ts @@ -0,0 +1,145 @@ +/** + * List query hook for AppLevel + * @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 { appLevelKeys } from '../query-keys'; +import type { + AppLevelSelect, + AppLevelWithRelations, + AppLevelFilter, + AppLevelOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + AppLevelSelect, + AppLevelWithRelations, + AppLevelFilter, + AppLevelOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appLevelsQueryKey = appLevelKeys.list; +/** + * Query hook for fetching AppLevel list + * + * @example + * ```tsx + * const { data, isLoading } = useAppLevelsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useAppLevelsQuery< + S extends AppLevelSelect, + TData = { + appLevels: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppLevelSelect>; + } & Omit< + UseQueryOptions< + { + appLevels: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppLevelsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appLevelKeys.list(args), + queryFn: () => getClient().appLevel.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch AppLevel list without React hooks + * + * @example + * ```ts + * const data = await fetchAppLevelsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchAppLevelsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppLevelSelect>; +}): Promise<{ + appLevels: ConnectionResult>; +}>; +export async function fetchAppLevelsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().appLevel.findMany(args).unwrap(); +} +/** + * Prefetch AppLevel list for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppLevelsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchAppLevelsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppLevelSelect>; + } +): Promise; +export async function prefetchAppLevelsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: appLevelKeys.list(args), + queryFn: () => getClient().appLevel.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppLimitDefaultQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppLimitDefaultQuery.ts new file mode 100644 index 000000000..c68c8c7ca --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppLimitDefaultQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for AppLimitDefault + * @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 { appLimitDefaultKeys } from '../query-keys'; +import type { AppLimitDefaultSelect, AppLimitDefaultWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AppLimitDefaultSelect, AppLimitDefaultWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appLimitDefaultQueryKey = appLimitDefaultKeys.detail; +/** + * Query hook for fetching a single AppLimitDefault + * + * @example + * ```tsx + * const { data, isLoading } = useAppLimitDefaultQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useAppLimitDefaultQuery< + S extends AppLimitDefaultSelect, + TData = { + appLimitDefault: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppLimitDefaultSelect>; + } & Omit< + UseQueryOptions< + { + appLimitDefault: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppLimitDefaultQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appLimitDefaultKeys.detail(params.id), + queryFn: () => + getClient() + .appLimitDefault.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single AppLimitDefault without React hooks + * + * @example + * ```ts + * const data = await fetchAppLimitDefaultQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchAppLimitDefaultQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppLimitDefaultSelect>; +}): Promise<{ + appLimitDefault: InferSelectResult | null; +}>; +export async function fetchAppLimitDefaultQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .appLimitDefault.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single AppLimitDefault for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppLimitDefaultQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchAppLimitDefaultQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppLimitDefaultSelect>; + } +): Promise; +export async function prefetchAppLimitDefaultQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: appLimitDefaultKeys.detail(params.id), + queryFn: () => + getClient() + .appLimitDefault.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppLimitDefaultsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppLimitDefaultsQuery.ts new file mode 100644 index 000000000..8f702ecb1 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppLimitDefaultsQuery.ts @@ -0,0 +1,163 @@ +/** + * List query hook for AppLimitDefault + * @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 { appLimitDefaultKeys } from '../query-keys'; +import type { + AppLimitDefaultSelect, + AppLimitDefaultWithRelations, + AppLimitDefaultFilter, + AppLimitDefaultOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + AppLimitDefaultSelect, + AppLimitDefaultWithRelations, + AppLimitDefaultFilter, + AppLimitDefaultOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appLimitDefaultsQueryKey = appLimitDefaultKeys.list; +/** + * Query hook for fetching AppLimitDefault list + * + * @example + * ```tsx + * const { data, isLoading } = useAppLimitDefaultsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useAppLimitDefaultsQuery< + S extends AppLimitDefaultSelect, + TData = { + appLimitDefaults: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppLimitDefaultSelect>; + } & Omit< + UseQueryOptions< + { + appLimitDefaults: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppLimitDefaultsQuery( + params: { + selection: ListSelectionConfig< + AppLimitDefaultSelect, + AppLimitDefaultFilter, + AppLimitDefaultOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + AppLimitDefaultSelect, + AppLimitDefaultFilter, + AppLimitDefaultOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appLimitDefaultKeys.list(args), + queryFn: () => getClient().appLimitDefault.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch AppLimitDefault list without React hooks + * + * @example + * ```ts + * const data = await fetchAppLimitDefaultsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchAppLimitDefaultsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppLimitDefaultSelect>; +}): Promise<{ + appLimitDefaults: ConnectionResult>; +}>; +export async function fetchAppLimitDefaultsQuery(params: { + selection: ListSelectionConfig< + AppLimitDefaultSelect, + AppLimitDefaultFilter, + AppLimitDefaultOrderBy + >; +}) { + const args = buildListSelectionArgs< + AppLimitDefaultSelect, + AppLimitDefaultFilter, + AppLimitDefaultOrderBy + >(params.selection); + return getClient().appLimitDefault.findMany(args).unwrap(); +} +/** + * Prefetch AppLimitDefault list for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppLimitDefaultsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchAppLimitDefaultsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppLimitDefaultSelect>; + } +): Promise; +export async function prefetchAppLimitDefaultsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + AppLimitDefaultSelect, + AppLimitDefaultFilter, + AppLimitDefaultOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + AppLimitDefaultSelect, + AppLimitDefaultFilter, + AppLimitDefaultOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: appLimitDefaultKeys.list(args), + queryFn: () => getClient().appLimitDefault.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppLimitQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppLimitQuery.ts new file mode 100644 index 000000000..eb7beb27f --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppLimitQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for AppLimit + * @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 { appLimitKeys } from '../query-keys'; +import type { AppLimitSelect, AppLimitWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AppLimitSelect, AppLimitWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appLimitQueryKey = appLimitKeys.detail; +/** + * Query hook for fetching a single AppLimit + * + * @example + * ```tsx + * const { data, isLoading } = useAppLimitQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useAppLimitQuery< + S extends AppLimitSelect, + TData = { + appLimit: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppLimitSelect>; + } & Omit< + UseQueryOptions< + { + appLimit: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppLimitQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appLimitKeys.detail(params.id), + queryFn: () => + getClient() + .appLimit.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single AppLimit without React hooks + * + * @example + * ```ts + * const data = await fetchAppLimitQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchAppLimitQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppLimitSelect>; +}): Promise<{ + appLimit: InferSelectResult | null; +}>; +export async function fetchAppLimitQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .appLimit.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single AppLimit for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppLimitQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchAppLimitQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppLimitSelect>; + } +): Promise; +export async function prefetchAppLimitQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: appLimitKeys.detail(params.id), + queryFn: () => + getClient() + .appLimit.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppLimitsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppLimitsQuery.ts new file mode 100644 index 000000000..280fd25e8 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppLimitsQuery.ts @@ -0,0 +1,145 @@ +/** + * List query hook for AppLimit + * @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 { appLimitKeys } from '../query-keys'; +import type { + AppLimitSelect, + AppLimitWithRelations, + AppLimitFilter, + AppLimitOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + AppLimitSelect, + AppLimitWithRelations, + AppLimitFilter, + AppLimitOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appLimitsQueryKey = appLimitKeys.list; +/** + * Query hook for fetching AppLimit list + * + * @example + * ```tsx + * const { data, isLoading } = useAppLimitsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useAppLimitsQuery< + S extends AppLimitSelect, + TData = { + appLimits: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppLimitSelect>; + } & Omit< + UseQueryOptions< + { + appLimits: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppLimitsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appLimitKeys.list(args), + queryFn: () => getClient().appLimit.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch AppLimit list without React hooks + * + * @example + * ```ts + * const data = await fetchAppLimitsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchAppLimitsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppLimitSelect>; +}): Promise<{ + appLimits: ConnectionResult>; +}>; +export async function fetchAppLimitsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().appLimit.findMany(args).unwrap(); +} +/** + * Prefetch AppLimit list for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppLimitsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchAppLimitsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppLimitSelect>; + } +): Promise; +export async function prefetchAppLimitsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: appLimitKeys.list(args), + queryFn: () => getClient().appLimit.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppMembershipDefaultQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppMembershipDefaultQuery.ts new file mode 100644 index 000000000..b34f50fc2 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppMembershipDefaultQuery.ts @@ -0,0 +1,144 @@ +/** + * Single item query hook for AppMembershipDefault + * @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 { appMembershipDefaultKeys } from '../query-keys'; +import type { + AppMembershipDefaultSelect, + AppMembershipDefaultWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppMembershipDefaultSelect, + AppMembershipDefaultWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appMembershipDefaultQueryKey = appMembershipDefaultKeys.detail; +/** + * Query hook for fetching a single AppMembershipDefault + * + * @example + * ```tsx + * const { data, isLoading } = useAppMembershipDefaultQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useAppMembershipDefaultQuery< + S extends AppMembershipDefaultSelect, + TData = { + appMembershipDefault: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppMembershipDefaultSelect>; + } & Omit< + UseQueryOptions< + { + appMembershipDefault: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppMembershipDefaultQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appMembershipDefaultKeys.detail(params.id), + queryFn: () => + getClient() + .appMembershipDefault.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single AppMembershipDefault without React hooks + * + * @example + * ```ts + * const data = await fetchAppMembershipDefaultQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchAppMembershipDefaultQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppMembershipDefaultSelect>; +}): Promise<{ + appMembershipDefault: InferSelectResult | null; +}>; +export async function fetchAppMembershipDefaultQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .appMembershipDefault.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single AppMembershipDefault for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppMembershipDefaultQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchAppMembershipDefaultQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppMembershipDefaultSelect>; + } +): Promise; +export async function prefetchAppMembershipDefaultQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: appMembershipDefaultKeys.detail(params.id), + queryFn: () => + getClient() + .appMembershipDefault.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppMembershipDefaultsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppMembershipDefaultsQuery.ts new file mode 100644 index 000000000..bda74e8ba --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppMembershipDefaultsQuery.ts @@ -0,0 +1,178 @@ +/** + * List query hook for AppMembershipDefault + * @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 { appMembershipDefaultKeys } from '../query-keys'; +import type { + AppMembershipDefaultSelect, + AppMembershipDefaultWithRelations, + AppMembershipDefaultFilter, + AppMembershipDefaultOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + AppMembershipDefaultSelect, + AppMembershipDefaultWithRelations, + AppMembershipDefaultFilter, + AppMembershipDefaultOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appMembershipDefaultsQueryKey = appMembershipDefaultKeys.list; +/** + * Query hook for fetching AppMembershipDefault list + * + * @example + * ```tsx + * const { data, isLoading } = useAppMembershipDefaultsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useAppMembershipDefaultsQuery< + S extends AppMembershipDefaultSelect, + TData = { + appMembershipDefaults: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, AppMembershipDefaultSelect>; + } & Omit< + UseQueryOptions< + { + appMembershipDefaults: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppMembershipDefaultsQuery( + params: { + selection: ListSelectionConfig< + AppMembershipDefaultSelect, + AppMembershipDefaultFilter, + AppMembershipDefaultOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + AppMembershipDefaultSelect, + AppMembershipDefaultFilter, + AppMembershipDefaultOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appMembershipDefaultKeys.list(args), + queryFn: () => getClient().appMembershipDefault.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch AppMembershipDefault list without React hooks + * + * @example + * ```ts + * const data = await fetchAppMembershipDefaultsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchAppMembershipDefaultsQuery< + S extends AppMembershipDefaultSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, AppMembershipDefaultSelect>; +}): Promise<{ + appMembershipDefaults: ConnectionResult>; +}>; +export async function fetchAppMembershipDefaultsQuery(params: { + selection: ListSelectionConfig< + AppMembershipDefaultSelect, + AppMembershipDefaultFilter, + AppMembershipDefaultOrderBy + >; +}) { + const args = buildListSelectionArgs< + AppMembershipDefaultSelect, + AppMembershipDefaultFilter, + AppMembershipDefaultOrderBy + >(params.selection); + return getClient().appMembershipDefault.findMany(args).unwrap(); +} +/** + * Prefetch AppMembershipDefault list for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppMembershipDefaultsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchAppMembershipDefaultsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, AppMembershipDefaultSelect>; + } +): Promise; +export async function prefetchAppMembershipDefaultsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + AppMembershipDefaultSelect, + AppMembershipDefaultFilter, + AppMembershipDefaultOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + AppMembershipDefaultSelect, + AppMembershipDefaultFilter, + AppMembershipDefaultOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: appMembershipDefaultKeys.list(args), + queryFn: () => getClient().appMembershipDefault.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppMembershipQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppMembershipQuery.ts new file mode 100644 index 000000000..5cd832890 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppMembershipQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for AppMembership + * @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 { appMembershipKeys } from '../query-keys'; +import type { AppMembershipSelect, AppMembershipWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AppMembershipSelect, AppMembershipWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appMembershipQueryKey = appMembershipKeys.detail; +/** + * Query hook for fetching a single AppMembership + * + * @example + * ```tsx + * const { data, isLoading } = useAppMembershipQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useAppMembershipQuery< + S extends AppMembershipSelect, + TData = { + appMembership: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppMembershipSelect>; + } & Omit< + UseQueryOptions< + { + appMembership: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppMembershipQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appMembershipKeys.detail(params.id), + queryFn: () => + getClient() + .appMembership.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single AppMembership without React hooks + * + * @example + * ```ts + * const data = await fetchAppMembershipQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchAppMembershipQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppMembershipSelect>; +}): Promise<{ + appMembership: InferSelectResult | null; +}>; +export async function fetchAppMembershipQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .appMembership.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single AppMembership for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppMembershipQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchAppMembershipQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppMembershipSelect>; + } +): Promise; +export async function prefetchAppMembershipQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: appMembershipKeys.detail(params.id), + queryFn: () => + getClient() + .appMembership.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppMembershipsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppMembershipsQuery.ts new file mode 100644 index 000000000..714e4372b --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppMembershipsQuery.ts @@ -0,0 +1,151 @@ +/** + * List query hook for AppMembership + * @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 { appMembershipKeys } from '../query-keys'; +import type { + AppMembershipSelect, + AppMembershipWithRelations, + AppMembershipFilter, + AppMembershipOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + AppMembershipSelect, + AppMembershipWithRelations, + AppMembershipFilter, + AppMembershipOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appMembershipsQueryKey = appMembershipKeys.list; +/** + * Query hook for fetching AppMembership list + * + * @example + * ```tsx + * const { data, isLoading } = useAppMembershipsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useAppMembershipsQuery< + S extends AppMembershipSelect, + TData = { + appMemberships: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppMembershipSelect>; + } & Omit< + UseQueryOptions< + { + appMemberships: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppMembershipsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + AppMembershipSelect, + AppMembershipFilter, + AppMembershipOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appMembershipKeys.list(args), + queryFn: () => getClient().appMembership.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch AppMembership list without React hooks + * + * @example + * ```ts + * const data = await fetchAppMembershipsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchAppMembershipsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppMembershipSelect>; +}): Promise<{ + appMemberships: ConnectionResult>; +}>; +export async function fetchAppMembershipsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + AppMembershipSelect, + AppMembershipFilter, + AppMembershipOrderBy + >(params.selection); + return getClient().appMembership.findMany(args).unwrap(); +} +/** + * Prefetch AppMembership list for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppMembershipsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchAppMembershipsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppMembershipSelect>; + } +): Promise; +export async function prefetchAppMembershipsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs< + AppMembershipSelect, + AppMembershipFilter, + AppMembershipOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: appMembershipKeys.list(args), + queryFn: () => getClient().appMembership.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppOwnerGrantQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppOwnerGrantQuery.ts new file mode 100644 index 000000000..49fcb6506 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppOwnerGrantQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for AppOwnerGrant + * @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 { appOwnerGrantKeys } from '../query-keys'; +import type { AppOwnerGrantSelect, AppOwnerGrantWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AppOwnerGrantSelect, AppOwnerGrantWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appOwnerGrantQueryKey = appOwnerGrantKeys.detail; +/** + * Query hook for fetching a single AppOwnerGrant + * + * @example + * ```tsx + * const { data, isLoading } = useAppOwnerGrantQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useAppOwnerGrantQuery< + S extends AppOwnerGrantSelect, + TData = { + appOwnerGrant: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppOwnerGrantSelect>; + } & Omit< + UseQueryOptions< + { + appOwnerGrant: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppOwnerGrantQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appOwnerGrantKeys.detail(params.id), + queryFn: () => + getClient() + .appOwnerGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single AppOwnerGrant without React hooks + * + * @example + * ```ts + * const data = await fetchAppOwnerGrantQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchAppOwnerGrantQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppOwnerGrantSelect>; +}): Promise<{ + appOwnerGrant: InferSelectResult | null; +}>; +export async function fetchAppOwnerGrantQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .appOwnerGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single AppOwnerGrant for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppOwnerGrantQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchAppOwnerGrantQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppOwnerGrantSelect>; + } +): Promise; +export async function prefetchAppOwnerGrantQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: appOwnerGrantKeys.detail(params.id), + queryFn: () => + getClient() + .appOwnerGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppOwnerGrantsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppOwnerGrantsQuery.ts new file mode 100644 index 000000000..25a312bcc --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppOwnerGrantsQuery.ts @@ -0,0 +1,151 @@ +/** + * List query hook for AppOwnerGrant + * @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 { appOwnerGrantKeys } from '../query-keys'; +import type { + AppOwnerGrantSelect, + AppOwnerGrantWithRelations, + AppOwnerGrantFilter, + AppOwnerGrantOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + AppOwnerGrantSelect, + AppOwnerGrantWithRelations, + AppOwnerGrantFilter, + AppOwnerGrantOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appOwnerGrantsQueryKey = appOwnerGrantKeys.list; +/** + * Query hook for fetching AppOwnerGrant list + * + * @example + * ```tsx + * const { data, isLoading } = useAppOwnerGrantsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useAppOwnerGrantsQuery< + S extends AppOwnerGrantSelect, + TData = { + appOwnerGrants: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppOwnerGrantSelect>; + } & Omit< + UseQueryOptions< + { + appOwnerGrants: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppOwnerGrantsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + AppOwnerGrantSelect, + AppOwnerGrantFilter, + AppOwnerGrantOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appOwnerGrantKeys.list(args), + queryFn: () => getClient().appOwnerGrant.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch AppOwnerGrant list without React hooks + * + * @example + * ```ts + * const data = await fetchAppOwnerGrantsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchAppOwnerGrantsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppOwnerGrantSelect>; +}): Promise<{ + appOwnerGrants: ConnectionResult>; +}>; +export async function fetchAppOwnerGrantsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + AppOwnerGrantSelect, + AppOwnerGrantFilter, + AppOwnerGrantOrderBy + >(params.selection); + return getClient().appOwnerGrant.findMany(args).unwrap(); +} +/** + * Prefetch AppOwnerGrant list for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppOwnerGrantsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchAppOwnerGrantsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppOwnerGrantSelect>; + } +): Promise; +export async function prefetchAppOwnerGrantsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs< + AppOwnerGrantSelect, + AppOwnerGrantFilter, + AppOwnerGrantOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: appOwnerGrantKeys.list(args), + queryFn: () => getClient().appOwnerGrant.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionDefaultQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionDefaultQuery.ts new file mode 100644 index 000000000..47eb66e64 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionDefaultQuery.ts @@ -0,0 +1,144 @@ +/** + * Single item query hook for AppPermissionDefault + * @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 { appPermissionDefaultKeys } from '../query-keys'; +import type { + AppPermissionDefaultSelect, + AppPermissionDefaultWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppPermissionDefaultSelect, + AppPermissionDefaultWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appPermissionDefaultQueryKey = appPermissionDefaultKeys.detail; +/** + * Query hook for fetching a single AppPermissionDefault + * + * @example + * ```tsx + * const { data, isLoading } = useAppPermissionDefaultQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useAppPermissionDefaultQuery< + S extends AppPermissionDefaultSelect, + TData = { + appPermissionDefault: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppPermissionDefaultSelect>; + } & Omit< + UseQueryOptions< + { + appPermissionDefault: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppPermissionDefaultQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appPermissionDefaultKeys.detail(params.id), + queryFn: () => + getClient() + .appPermissionDefault.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single AppPermissionDefault without React hooks + * + * @example + * ```ts + * const data = await fetchAppPermissionDefaultQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchAppPermissionDefaultQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppPermissionDefaultSelect>; +}): Promise<{ + appPermissionDefault: InferSelectResult | null; +}>; +export async function fetchAppPermissionDefaultQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .appPermissionDefault.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single AppPermissionDefault for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppPermissionDefaultQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchAppPermissionDefaultQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppPermissionDefaultSelect>; + } +): Promise; +export async function prefetchAppPermissionDefaultQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: appPermissionDefaultKeys.detail(params.id), + queryFn: () => + getClient() + .appPermissionDefault.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionDefaultsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionDefaultsQuery.ts new file mode 100644 index 000000000..21414a9fb --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionDefaultsQuery.ts @@ -0,0 +1,178 @@ +/** + * List query hook for AppPermissionDefault + * @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 { appPermissionDefaultKeys } from '../query-keys'; +import type { + AppPermissionDefaultSelect, + AppPermissionDefaultWithRelations, + AppPermissionDefaultFilter, + AppPermissionDefaultOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + AppPermissionDefaultSelect, + AppPermissionDefaultWithRelations, + AppPermissionDefaultFilter, + AppPermissionDefaultOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appPermissionDefaultsQueryKey = appPermissionDefaultKeys.list; +/** + * Query hook for fetching AppPermissionDefault list + * + * @example + * ```tsx + * const { data, isLoading } = useAppPermissionDefaultsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useAppPermissionDefaultsQuery< + S extends AppPermissionDefaultSelect, + TData = { + appPermissionDefaults: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, AppPermissionDefaultSelect>; + } & Omit< + UseQueryOptions< + { + appPermissionDefaults: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppPermissionDefaultsQuery( + params: { + selection: ListSelectionConfig< + AppPermissionDefaultSelect, + AppPermissionDefaultFilter, + AppPermissionDefaultOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + AppPermissionDefaultSelect, + AppPermissionDefaultFilter, + AppPermissionDefaultOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appPermissionDefaultKeys.list(args), + queryFn: () => getClient().appPermissionDefault.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch AppPermissionDefault list without React hooks + * + * @example + * ```ts + * const data = await fetchAppPermissionDefaultsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchAppPermissionDefaultsQuery< + S extends AppPermissionDefaultSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, AppPermissionDefaultSelect>; +}): Promise<{ + appPermissionDefaults: ConnectionResult>; +}>; +export async function fetchAppPermissionDefaultsQuery(params: { + selection: ListSelectionConfig< + AppPermissionDefaultSelect, + AppPermissionDefaultFilter, + AppPermissionDefaultOrderBy + >; +}) { + const args = buildListSelectionArgs< + AppPermissionDefaultSelect, + AppPermissionDefaultFilter, + AppPermissionDefaultOrderBy + >(params.selection); + return getClient().appPermissionDefault.findMany(args).unwrap(); +} +/** + * Prefetch AppPermissionDefault list for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppPermissionDefaultsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchAppPermissionDefaultsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, AppPermissionDefaultSelect>; + } +): Promise; +export async function prefetchAppPermissionDefaultsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + AppPermissionDefaultSelect, + AppPermissionDefaultFilter, + AppPermissionDefaultOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + AppPermissionDefaultSelect, + AppPermissionDefaultFilter, + AppPermissionDefaultOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: appPermissionDefaultKeys.list(args), + queryFn: () => getClient().appPermissionDefault.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionQuery.ts new file mode 100644 index 000000000..37a00c5e9 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for AppPermission + * @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 { appPermissionKeys } from '../query-keys'; +import type { AppPermissionSelect, AppPermissionWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AppPermissionSelect, AppPermissionWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appPermissionQueryKey = appPermissionKeys.detail; +/** + * Query hook for fetching a single AppPermission + * + * @example + * ```tsx + * const { data, isLoading } = useAppPermissionQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useAppPermissionQuery< + S extends AppPermissionSelect, + TData = { + appPermission: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppPermissionSelect>; + } & Omit< + UseQueryOptions< + { + appPermission: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppPermissionQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appPermissionKeys.detail(params.id), + queryFn: () => + getClient() + .appPermission.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single AppPermission without React hooks + * + * @example + * ```ts + * const data = await fetchAppPermissionQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchAppPermissionQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppPermissionSelect>; +}): Promise<{ + appPermission: InferSelectResult | null; +}>; +export async function fetchAppPermissionQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .appPermission.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single AppPermission for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppPermissionQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchAppPermissionQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppPermissionSelect>; + } +): Promise; +export async function prefetchAppPermissionQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: appPermissionKeys.detail(params.id), + queryFn: () => + getClient() + .appPermission.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionsGetByMaskQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionsGetByMaskQuery.ts new file mode 100644 index 000000000..78774ab69 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionsGetByMaskQuery.ts @@ -0,0 +1,108 @@ +/** + * Custom query hook for appPermissionsGetByMask + * @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 { AppPermissionsGetByMaskVariables } from '../../orm/query'; +import type { AppPermissionConnection } from '../../orm/input-types'; +export type { AppPermissionsGetByMaskVariables } from '../../orm/query'; +/** Query key factory - re-exported from query-keys.ts */ +export const appPermissionsGetByMaskQueryKey = customQueryKeys.appPermissionsGetByMask; +/** + * Reads and enables pagination through a set of `AppPermission`. + * + * @example + * ```tsx + * const { data, isLoading } = useAppPermissionsGetByMaskQuery({ variables: { mask, first, offset, after } }); + * + * if (data?.appPermissionsGetByMask) { + * console.log(data.appPermissionsGetByMask); + * } + * ``` + */ +export function useAppPermissionsGetByMaskQuery< + TData = { + appPermissionsGetByMask: AppPermissionConnection | null; + }, +>( + params?: { + variables?: AppPermissionsGetByMaskVariables; + } & Omit< + UseQueryOptions< + { + appPermissionsGetByMask: AppPermissionConnection | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppPermissionsGetByMaskQuery< + TData = { + appPermissionsGetByMask: AppPermissionConnection | null; + }, +>( + params?: { + variables?: AppPermissionsGetByMaskVariables; + } & Omit< + UseQueryOptions< + { + appPermissionsGetByMask: AppPermissionConnection | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult { + const variables = params?.variables ?? {}; + const { variables: _variables, ...queryOptions } = params ?? {}; + void _variables; + return useQuery({ + queryKey: appPermissionsGetByMaskQueryKey(variables), + queryFn: () => getClient().query.appPermissionsGetByMask(variables).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch appPermissionsGetByMask without React hooks + * + * @example + * ```ts + * const data = await fetchAppPermissionsGetByMaskQuery({ variables: { mask, first, offset, after } }); + * ``` + */ +export async function fetchAppPermissionsGetByMaskQuery(params?: { + variables?: AppPermissionsGetByMaskVariables; +}) { + const variables = params?.variables ?? {}; + return getClient().query.appPermissionsGetByMask(variables).unwrap(); +} +/** + * Prefetch appPermissionsGetByMask for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppPermissionsGetByMaskQuery(queryClient, { variables: { mask, first, offset, after } }); + * ``` + */ +export async function prefetchAppPermissionsGetByMaskQuery( + queryClient: QueryClient, + params?: { + variables?: AppPermissionsGetByMaskVariables; + } +): Promise { + const variables = params?.variables ?? {}; + await queryClient.prefetchQuery({ + queryKey: appPermissionsGetByMaskQueryKey(variables), + queryFn: () => getClient().query.appPermissionsGetByMask(variables).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionsGetMaskByNamesQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionsGetMaskByNamesQuery.ts new file mode 100644 index 000000000..cbfe1fad8 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionsGetMaskByNamesQuery.ts @@ -0,0 +1,107 @@ +/** + * Custom query hook for appPermissionsGetMaskByNames + * @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 { AppPermissionsGetMaskByNamesVariables } from '../../orm/query'; +export type { AppPermissionsGetMaskByNamesVariables } from '../../orm/query'; +/** Query key factory - re-exported from query-keys.ts */ +export const appPermissionsGetMaskByNamesQueryKey = customQueryKeys.appPermissionsGetMaskByNames; +/** + * Query hook for appPermissionsGetMaskByNames + * + * @example + * ```tsx + * const { data, isLoading } = useAppPermissionsGetMaskByNamesQuery({ variables: { names } }); + * + * if (data?.appPermissionsGetMaskByNames) { + * console.log(data.appPermissionsGetMaskByNames); + * } + * ``` + */ +export function useAppPermissionsGetMaskByNamesQuery< + TData = { + appPermissionsGetMaskByNames: string | null; + }, +>( + params?: { + variables?: AppPermissionsGetMaskByNamesVariables; + } & Omit< + UseQueryOptions< + { + appPermissionsGetMaskByNames: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppPermissionsGetMaskByNamesQuery< + TData = { + appPermissionsGetMaskByNames: string | null; + }, +>( + params?: { + variables?: AppPermissionsGetMaskByNamesVariables; + } & Omit< + UseQueryOptions< + { + appPermissionsGetMaskByNames: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult { + const variables = params?.variables ?? {}; + const { variables: _variables, ...queryOptions } = params ?? {}; + void _variables; + return useQuery({ + queryKey: appPermissionsGetMaskByNamesQueryKey(variables), + queryFn: () => getClient().query.appPermissionsGetMaskByNames(variables).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch appPermissionsGetMaskByNames without React hooks + * + * @example + * ```ts + * const data = await fetchAppPermissionsGetMaskByNamesQuery({ variables: { names } }); + * ``` + */ +export async function fetchAppPermissionsGetMaskByNamesQuery(params?: { + variables?: AppPermissionsGetMaskByNamesVariables; +}) { + const variables = params?.variables ?? {}; + return getClient().query.appPermissionsGetMaskByNames(variables).unwrap(); +} +/** + * Prefetch appPermissionsGetMaskByNames for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppPermissionsGetMaskByNamesQuery(queryClient, { variables: { names } }); + * ``` + */ +export async function prefetchAppPermissionsGetMaskByNamesQuery( + queryClient: QueryClient, + params?: { + variables?: AppPermissionsGetMaskByNamesVariables; + } +): Promise { + const variables = params?.variables ?? {}; + await queryClient.prefetchQuery({ + queryKey: appPermissionsGetMaskByNamesQueryKey(variables), + queryFn: () => getClient().query.appPermissionsGetMaskByNames(variables).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionsGetMaskQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionsGetMaskQuery.ts new file mode 100644 index 000000000..b1e3289da --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionsGetMaskQuery.ts @@ -0,0 +1,107 @@ +/** + * Custom query hook for appPermissionsGetMask + * @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 { AppPermissionsGetMaskVariables } from '../../orm/query'; +export type { AppPermissionsGetMaskVariables } from '../../orm/query'; +/** Query key factory - re-exported from query-keys.ts */ +export const appPermissionsGetMaskQueryKey = customQueryKeys.appPermissionsGetMask; +/** + * Query hook for appPermissionsGetMask + * + * @example + * ```tsx + * const { data, isLoading } = useAppPermissionsGetMaskQuery({ variables: { ids } }); + * + * if (data?.appPermissionsGetMask) { + * console.log(data.appPermissionsGetMask); + * } + * ``` + */ +export function useAppPermissionsGetMaskQuery< + TData = { + appPermissionsGetMask: string | null; + }, +>( + params?: { + variables?: AppPermissionsGetMaskVariables; + } & Omit< + UseQueryOptions< + { + appPermissionsGetMask: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppPermissionsGetMaskQuery< + TData = { + appPermissionsGetMask: string | null; + }, +>( + params?: { + variables?: AppPermissionsGetMaskVariables; + } & Omit< + UseQueryOptions< + { + appPermissionsGetMask: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult { + const variables = params?.variables ?? {}; + const { variables: _variables, ...queryOptions } = params ?? {}; + void _variables; + return useQuery({ + queryKey: appPermissionsGetMaskQueryKey(variables), + queryFn: () => getClient().query.appPermissionsGetMask(variables).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch appPermissionsGetMask without React hooks + * + * @example + * ```ts + * const data = await fetchAppPermissionsGetMaskQuery({ variables: { ids } }); + * ``` + */ +export async function fetchAppPermissionsGetMaskQuery(params?: { + variables?: AppPermissionsGetMaskVariables; +}) { + const variables = params?.variables ?? {}; + return getClient().query.appPermissionsGetMask(variables).unwrap(); +} +/** + * Prefetch appPermissionsGetMask for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppPermissionsGetMaskQuery(queryClient, { variables: { ids } }); + * ``` + */ +export async function prefetchAppPermissionsGetMaskQuery( + queryClient: QueryClient, + params?: { + variables?: AppPermissionsGetMaskVariables; + } +): Promise { + const variables = params?.variables ?? {}; + await queryClient.prefetchQuery({ + queryKey: appPermissionsGetMaskQueryKey(variables), + queryFn: () => getClient().query.appPermissionsGetMask(variables).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionsGetPaddedMaskQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionsGetPaddedMaskQuery.ts new file mode 100644 index 000000000..cb504f810 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionsGetPaddedMaskQuery.ts @@ -0,0 +1,107 @@ +/** + * Custom query hook for appPermissionsGetPaddedMask + * @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 { AppPermissionsGetPaddedMaskVariables } from '../../orm/query'; +export type { AppPermissionsGetPaddedMaskVariables } from '../../orm/query'; +/** Query key factory - re-exported from query-keys.ts */ +export const appPermissionsGetPaddedMaskQueryKey = customQueryKeys.appPermissionsGetPaddedMask; +/** + * Query hook for appPermissionsGetPaddedMask + * + * @example + * ```tsx + * const { data, isLoading } = useAppPermissionsGetPaddedMaskQuery({ variables: { mask } }); + * + * if (data?.appPermissionsGetPaddedMask) { + * console.log(data.appPermissionsGetPaddedMask); + * } + * ``` + */ +export function useAppPermissionsGetPaddedMaskQuery< + TData = { + appPermissionsGetPaddedMask: string | null; + }, +>( + params?: { + variables?: AppPermissionsGetPaddedMaskVariables; + } & Omit< + UseQueryOptions< + { + appPermissionsGetPaddedMask: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppPermissionsGetPaddedMaskQuery< + TData = { + appPermissionsGetPaddedMask: string | null; + }, +>( + params?: { + variables?: AppPermissionsGetPaddedMaskVariables; + } & Omit< + UseQueryOptions< + { + appPermissionsGetPaddedMask: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult { + const variables = params?.variables ?? {}; + const { variables: _variables, ...queryOptions } = params ?? {}; + void _variables; + return useQuery({ + queryKey: appPermissionsGetPaddedMaskQueryKey(variables), + queryFn: () => getClient().query.appPermissionsGetPaddedMask(variables).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch appPermissionsGetPaddedMask without React hooks + * + * @example + * ```ts + * const data = await fetchAppPermissionsGetPaddedMaskQuery({ variables: { mask } }); + * ``` + */ +export async function fetchAppPermissionsGetPaddedMaskQuery(params?: { + variables?: AppPermissionsGetPaddedMaskVariables; +}) { + const variables = params?.variables ?? {}; + return getClient().query.appPermissionsGetPaddedMask(variables).unwrap(); +} +/** + * Prefetch appPermissionsGetPaddedMask for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppPermissionsGetPaddedMaskQuery(queryClient, { variables: { mask } }); + * ``` + */ +export async function prefetchAppPermissionsGetPaddedMaskQuery( + queryClient: QueryClient, + params?: { + variables?: AppPermissionsGetPaddedMaskVariables; + } +): Promise { + const variables = params?.variables ?? {}; + await queryClient.prefetchQuery({ + queryKey: appPermissionsGetPaddedMaskQueryKey(variables), + queryFn: () => getClient().query.appPermissionsGetPaddedMask(variables).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionsQuery.ts new file mode 100644 index 000000000..f44f4e105 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionsQuery.ts @@ -0,0 +1,151 @@ +/** + * List query hook for AppPermission + * @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 { appPermissionKeys } from '../query-keys'; +import type { + AppPermissionSelect, + AppPermissionWithRelations, + AppPermissionFilter, + AppPermissionOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + AppPermissionSelect, + AppPermissionWithRelations, + AppPermissionFilter, + AppPermissionOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appPermissionsQueryKey = appPermissionKeys.list; +/** + * Query hook for fetching AppPermission list + * + * @example + * ```tsx + * const { data, isLoading } = useAppPermissionsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useAppPermissionsQuery< + S extends AppPermissionSelect, + TData = { + appPermissions: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppPermissionSelect>; + } & Omit< + UseQueryOptions< + { + appPermissions: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppPermissionsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + AppPermissionSelect, + AppPermissionFilter, + AppPermissionOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appPermissionKeys.list(args), + queryFn: () => getClient().appPermission.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch AppPermission list without React hooks + * + * @example + * ```ts + * const data = await fetchAppPermissionsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchAppPermissionsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppPermissionSelect>; +}): Promise<{ + appPermissions: ConnectionResult>; +}>; +export async function fetchAppPermissionsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + AppPermissionSelect, + AppPermissionFilter, + AppPermissionOrderBy + >(params.selection); + return getClient().appPermission.findMany(args).unwrap(); +} +/** + * Prefetch AppPermission list for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppPermissionsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchAppPermissionsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppPermissionSelect>; + } +): Promise; +export async function prefetchAppPermissionsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs< + AppPermissionSelect, + AppPermissionFilter, + AppPermissionOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: appPermissionKeys.list(args), + queryFn: () => getClient().appPermission.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppStepQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppStepQuery.ts new file mode 100644 index 000000000..7ccfc9884 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppStepQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for AppStep + * @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 { appStepKeys } from '../query-keys'; +import type { AppStepSelect, AppStepWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AppStepSelect, AppStepWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appStepQueryKey = appStepKeys.detail; +/** + * Query hook for fetching a single AppStep + * + * @example + * ```tsx + * const { data, isLoading } = useAppStepQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useAppStepQuery< + S extends AppStepSelect, + TData = { + appStep: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppStepSelect>; + } & Omit< + UseQueryOptions< + { + appStep: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppStepQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appStepKeys.detail(params.id), + queryFn: () => + getClient() + .appStep.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single AppStep without React hooks + * + * @example + * ```ts + * const data = await fetchAppStepQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchAppStepQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppStepSelect>; +}): Promise<{ + appStep: InferSelectResult | null; +}>; +export async function fetchAppStepQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .appStep.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single AppStep for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppStepQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchAppStepQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppStepSelect>; + } +): Promise; +export async function prefetchAppStepQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: appStepKeys.detail(params.id), + queryFn: () => + getClient() + .appStep.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppStepsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppStepsQuery.ts new file mode 100644 index 000000000..b6f7d90d8 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppStepsQuery.ts @@ -0,0 +1,145 @@ +/** + * List query hook for AppStep + * @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 { appStepKeys } from '../query-keys'; +import type { + AppStepSelect, + AppStepWithRelations, + AppStepFilter, + AppStepOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + AppStepSelect, + AppStepWithRelations, + AppStepFilter, + AppStepOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appStepsQueryKey = appStepKeys.list; +/** + * Query hook for fetching AppStep list + * + * @example + * ```tsx + * const { data, isLoading } = useAppStepsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useAppStepsQuery< + S extends AppStepSelect, + TData = { + appSteps: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppStepSelect>; + } & Omit< + UseQueryOptions< + { + appSteps: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppStepsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appStepKeys.list(args), + queryFn: () => getClient().appStep.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch AppStep list without React hooks + * + * @example + * ```ts + * const data = await fetchAppStepsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchAppStepsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppStepSelect>; +}): Promise<{ + appSteps: ConnectionResult>; +}>; +export async function fetchAppStepsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().appStep.findMany(args).unwrap(); +} +/** + * Prefetch AppStep list for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppStepsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchAppStepsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppStepSelect>; + } +): Promise; +export async function prefetchAppStepsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: appStepKeys.list(args), + queryFn: () => getClient().appStep.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useClaimedInviteQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useClaimedInviteQuery.ts new file mode 100644 index 000000000..e74f389c7 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useClaimedInviteQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for ClaimedInvite + * @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 { claimedInviteKeys } from '../query-keys'; +import type { ClaimedInviteSelect, ClaimedInviteWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ClaimedInviteSelect, ClaimedInviteWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const claimedInviteQueryKey = claimedInviteKeys.detail; +/** + * Query hook for fetching a single ClaimedInvite + * + * @example + * ```tsx + * const { data, isLoading } = useClaimedInviteQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useClaimedInviteQuery< + S extends ClaimedInviteSelect, + TData = { + claimedInvite: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ClaimedInviteSelect>; + } & Omit< + UseQueryOptions< + { + claimedInvite: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useClaimedInviteQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: claimedInviteKeys.detail(params.id), + queryFn: () => + getClient() + .claimedInvite.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single ClaimedInvite without React hooks + * + * @example + * ```ts + * const data = await fetchClaimedInviteQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchClaimedInviteQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ClaimedInviteSelect>; +}): Promise<{ + claimedInvite: InferSelectResult | null; +}>; +export async function fetchClaimedInviteQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .claimedInvite.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single ClaimedInvite for SSR or cache warming + * + * @example + * ```ts + * await prefetchClaimedInviteQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchClaimedInviteQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ClaimedInviteSelect>; + } +): Promise; +export async function prefetchClaimedInviteQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: claimedInviteKeys.detail(params.id), + queryFn: () => + getClient() + .claimedInvite.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useClaimedInvitesQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useClaimedInvitesQuery.ts new file mode 100644 index 000000000..9373984d9 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useClaimedInvitesQuery.ts @@ -0,0 +1,151 @@ +/** + * List query hook for ClaimedInvite + * @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 { claimedInviteKeys } from '../query-keys'; +import type { + ClaimedInviteSelect, + ClaimedInviteWithRelations, + ClaimedInviteFilter, + ClaimedInviteOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + ClaimedInviteSelect, + ClaimedInviteWithRelations, + ClaimedInviteFilter, + ClaimedInviteOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const claimedInvitesQueryKey = claimedInviteKeys.list; +/** + * Query hook for fetching ClaimedInvite list + * + * @example + * ```tsx + * const { data, isLoading } = useClaimedInvitesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useClaimedInvitesQuery< + S extends ClaimedInviteSelect, + TData = { + claimedInvites: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ClaimedInviteSelect>; + } & Omit< + UseQueryOptions< + { + claimedInvites: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useClaimedInvitesQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + ClaimedInviteSelect, + ClaimedInviteFilter, + ClaimedInviteOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: claimedInviteKeys.list(args), + queryFn: () => getClient().claimedInvite.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch ClaimedInvite list without React hooks + * + * @example + * ```ts + * const data = await fetchClaimedInvitesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchClaimedInvitesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ClaimedInviteSelect>; +}): Promise<{ + claimedInvites: ConnectionResult>; +}>; +export async function fetchClaimedInvitesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + ClaimedInviteSelect, + ClaimedInviteFilter, + ClaimedInviteOrderBy + >(params.selection); + return getClient().claimedInvite.findMany(args).unwrap(); +} +/** + * Prefetch ClaimedInvite list for SSR or cache warming + * + * @example + * ```ts + * await prefetchClaimedInvitesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchClaimedInvitesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ClaimedInviteSelect>; + } +): Promise; +export async function prefetchClaimedInvitesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs< + ClaimedInviteSelect, + ClaimedInviteFilter, + ClaimedInviteOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: claimedInviteKeys.list(args), + queryFn: () => getClient().claimedInvite.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useInviteQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useInviteQuery.ts new file mode 100644 index 000000000..51db01afb --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useInviteQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for Invite + * @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 { inviteKeys } from '../query-keys'; +import type { InviteSelect, InviteWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +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 + * + * @example + * ```tsx + * const { data, isLoading } = useInviteQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useInviteQuery< + S extends InviteSelect, + TData = { + invite: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, InviteSelect>; + } & Omit< + UseQueryOptions< + { + invite: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useInviteQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: inviteKeys.detail(params.id), + queryFn: () => + getClient() + .invite.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single Invite without React hooks + * + * @example + * ```ts + * const data = await fetchInviteQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchInviteQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, InviteSelect>; +}): Promise<{ + invite: InferSelectResult | null; +}>; +export async function fetchInviteQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .invite.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single Invite for SSR or cache warming + * + * @example + * ```ts + * await prefetchInviteQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchInviteQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, InviteSelect>; + } +): Promise; +export async function prefetchInviteQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: inviteKeys.detail(params.id), + queryFn: () => + getClient() + .invite.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useInvitesQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useInvitesQuery.ts new file mode 100644 index 000000000..19a1fd3b1 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useInvitesQuery.ts @@ -0,0 +1,139 @@ +/** + * List query hook for Invite + * @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 { inviteKeys } from '../query-keys'; +import type { + InviteSelect, + InviteWithRelations, + InviteFilter, + InviteOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + InviteSelect, + InviteWithRelations, + InviteFilter, + InviteOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const invitesQueryKey = inviteKeys.list; +/** + * Query hook for fetching Invite list + * + * @example + * ```tsx + * const { data, isLoading } = useInvitesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useInvitesQuery< + S extends InviteSelect, + TData = { + invites: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, InviteSelect>; + } & Omit< + UseQueryOptions< + { + invites: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useInvitesQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: inviteKeys.list(args), + queryFn: () => getClient().invite.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch Invite list without React hooks + * + * @example + * ```ts + * const data = await fetchInvitesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchInvitesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, InviteSelect>; +}): Promise<{ + invites: ConnectionResult>; +}>; +export async function fetchInvitesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs(params.selection); + return getClient().invite.findMany(args).unwrap(); +} +/** + * Prefetch Invite list for SSR or cache warming + * + * @example + * ```ts + * await prefetchInvitesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchInvitesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, InviteSelect>; + } +): Promise; +export async function prefetchInvitesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: inviteKeys.list(args), + queryFn: () => getClient().invite.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useMembershipTypeQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useMembershipTypeQuery.ts new file mode 100644 index 000000000..c8d749048 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useMembershipTypeQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for MembershipType + * @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 { membershipTypeKeys } from '../query-keys'; +import type { MembershipTypeSelect, MembershipTypeWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { MembershipTypeSelect, MembershipTypeWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const membershipTypeQueryKey = membershipTypeKeys.detail; +/** + * Query hook for fetching a single MembershipType + * + * @example + * ```tsx + * const { data, isLoading } = useMembershipTypeQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useMembershipTypeQuery< + S extends MembershipTypeSelect, + TData = { + membershipType: InferSelectResult | null; + }, +>( + params: { + id: number; + selection: { + fields: S; + } & HookStrictSelect, MembershipTypeSelect>; + } & Omit< + UseQueryOptions< + { + membershipType: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useMembershipTypeQuery( + params: { + id: number; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: membershipTypeKeys.detail(params.id), + queryFn: () => + getClient() + .membershipType.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single MembershipType without React hooks + * + * @example + * ```ts + * const data = await fetchMembershipTypeQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchMembershipTypeQuery(params: { + id: number; + selection: { + fields: S; + } & HookStrictSelect, MembershipTypeSelect>; +}): Promise<{ + membershipType: InferSelectResult | null; +}>; +export async function fetchMembershipTypeQuery(params: { + id: number; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .membershipType.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single MembershipType for SSR or cache warming + * + * @example + * ```ts + * await prefetchMembershipTypeQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchMembershipTypeQuery( + queryClient: QueryClient, + params: { + id: number; + selection: { + fields: S; + } & HookStrictSelect, MembershipTypeSelect>; + } +): Promise; +export async function prefetchMembershipTypeQuery( + queryClient: QueryClient, + params: { + id: number; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: membershipTypeKeys.detail(params.id), + queryFn: () => + getClient() + .membershipType.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useMembershipTypesQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useMembershipTypesQuery.ts new file mode 100644 index 000000000..c0f5b68c9 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useMembershipTypesQuery.ts @@ -0,0 +1,159 @@ +/** + * List query hook for MembershipType + * @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 { membershipTypeKeys } from '../query-keys'; +import type { + MembershipTypeSelect, + MembershipTypeWithRelations, + MembershipTypeFilter, + MembershipTypeOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + MembershipTypeSelect, + MembershipTypeWithRelations, + MembershipTypeFilter, + MembershipTypeOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const membershipTypesQueryKey = membershipTypeKeys.list; +/** + * Query hook for fetching MembershipType list + * + * @example + * ```tsx + * const { data, isLoading } = useMembershipTypesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useMembershipTypesQuery< + S extends MembershipTypeSelect, + TData = { + membershipTypes: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, MembershipTypeSelect>; + } & Omit< + UseQueryOptions< + { + membershipTypes: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useMembershipTypesQuery( + params: { + selection: ListSelectionConfig< + MembershipTypeSelect, + MembershipTypeFilter, + MembershipTypeOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + MembershipTypeSelect, + MembershipTypeFilter, + MembershipTypeOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: membershipTypeKeys.list(args), + queryFn: () => getClient().membershipType.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch MembershipType list without React hooks + * + * @example + * ```ts + * const data = await fetchMembershipTypesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchMembershipTypesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, MembershipTypeSelect>; +}): Promise<{ + membershipTypes: ConnectionResult>; +}>; +export async function fetchMembershipTypesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + MembershipTypeSelect, + MembershipTypeFilter, + MembershipTypeOrderBy + >(params.selection); + return getClient().membershipType.findMany(args).unwrap(); +} +/** + * Prefetch MembershipType list for SSR or cache warming + * + * @example + * ```ts + * await prefetchMembershipTypesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchMembershipTypesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, MembershipTypeSelect>; + } +): Promise; +export async function prefetchMembershipTypesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + MembershipTypeSelect, + MembershipTypeFilter, + MembershipTypeOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + MembershipTypeSelect, + MembershipTypeFilter, + MembershipTypeOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: membershipTypeKeys.list(args), + queryFn: () => getClient().membershipType.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgAdminGrantQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgAdminGrantQuery.ts new file mode 100644 index 000000000..a4f507c14 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgAdminGrantQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for OrgAdminGrant + * @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 { orgAdminGrantKeys } from '../query-keys'; +import type { OrgAdminGrantSelect, OrgAdminGrantWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { OrgAdminGrantSelect, OrgAdminGrantWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgAdminGrantQueryKey = orgAdminGrantKeys.detail; +/** + * Query hook for fetching a single OrgAdminGrant + * + * @example + * ```tsx + * const { data, isLoading } = useOrgAdminGrantQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useOrgAdminGrantQuery< + S extends OrgAdminGrantSelect, + TData = { + orgAdminGrant: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgAdminGrantSelect>; + } & Omit< + UseQueryOptions< + { + orgAdminGrant: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgAdminGrantQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgAdminGrantKeys.detail(params.id), + queryFn: () => + getClient() + .orgAdminGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single OrgAdminGrant without React hooks + * + * @example + * ```ts + * const data = await fetchOrgAdminGrantQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchOrgAdminGrantQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgAdminGrantSelect>; +}): Promise<{ + orgAdminGrant: InferSelectResult | null; +}>; +export async function fetchOrgAdminGrantQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .orgAdminGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single OrgAdminGrant for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgAdminGrantQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchOrgAdminGrantQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgAdminGrantSelect>; + } +): Promise; +export async function prefetchOrgAdminGrantQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgAdminGrantKeys.detail(params.id), + queryFn: () => + getClient() + .orgAdminGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgAdminGrantsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgAdminGrantsQuery.ts new file mode 100644 index 000000000..e3ce559b3 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgAdminGrantsQuery.ts @@ -0,0 +1,151 @@ +/** + * List query hook for OrgAdminGrant + * @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 { orgAdminGrantKeys } from '../query-keys'; +import type { + OrgAdminGrantSelect, + OrgAdminGrantWithRelations, + OrgAdminGrantFilter, + OrgAdminGrantOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + OrgAdminGrantSelect, + OrgAdminGrantWithRelations, + OrgAdminGrantFilter, + OrgAdminGrantOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgAdminGrantsQueryKey = orgAdminGrantKeys.list; +/** + * Query hook for fetching OrgAdminGrant list + * + * @example + * ```tsx + * const { data, isLoading } = useOrgAdminGrantsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useOrgAdminGrantsQuery< + S extends OrgAdminGrantSelect, + TData = { + orgAdminGrants: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgAdminGrantSelect>; + } & Omit< + UseQueryOptions< + { + orgAdminGrants: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgAdminGrantsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + OrgAdminGrantSelect, + OrgAdminGrantFilter, + OrgAdminGrantOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgAdminGrantKeys.list(args), + queryFn: () => getClient().orgAdminGrant.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch OrgAdminGrant list without React hooks + * + * @example + * ```ts + * const data = await fetchOrgAdminGrantsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchOrgAdminGrantsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgAdminGrantSelect>; +}): Promise<{ + orgAdminGrants: ConnectionResult>; +}>; +export async function fetchOrgAdminGrantsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + OrgAdminGrantSelect, + OrgAdminGrantFilter, + OrgAdminGrantOrderBy + >(params.selection); + return getClient().orgAdminGrant.findMany(args).unwrap(); +} +/** + * Prefetch OrgAdminGrant list for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgAdminGrantsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchOrgAdminGrantsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgAdminGrantSelect>; + } +): Promise; +export async function prefetchOrgAdminGrantsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs< + OrgAdminGrantSelect, + OrgAdminGrantFilter, + OrgAdminGrantOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgAdminGrantKeys.list(args), + queryFn: () => getClient().orgAdminGrant.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 new file mode 100644 index 000000000..42ac5f45a --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgClaimedInviteQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for OrgClaimedInvite + * @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 { orgClaimedInviteKeys } from '../query-keys'; +import type { OrgClaimedInviteSelect, OrgClaimedInviteWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { OrgClaimedInviteSelect, OrgClaimedInviteWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgClaimedInviteQueryKey = orgClaimedInviteKeys.detail; +/** + * Query hook for fetching a single OrgClaimedInvite + * + * @example + * ```tsx + * const { data, isLoading } = useOrgClaimedInviteQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useOrgClaimedInviteQuery< + S extends OrgClaimedInviteSelect, + TData = { + orgClaimedInvite: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgClaimedInviteSelect>; + } & Omit< + UseQueryOptions< + { + orgClaimedInvite: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgClaimedInviteQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgClaimedInviteKeys.detail(params.id), + queryFn: () => + getClient() + .orgClaimedInvite.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single OrgClaimedInvite without React hooks + * + * @example + * ```ts + * const data = await fetchOrgClaimedInviteQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchOrgClaimedInviteQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgClaimedInviteSelect>; +}): Promise<{ + orgClaimedInvite: InferSelectResult | null; +}>; +export async function fetchOrgClaimedInviteQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .orgClaimedInvite.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single OrgClaimedInvite for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgClaimedInviteQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchOrgClaimedInviteQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgClaimedInviteSelect>; + } +): Promise; +export async function prefetchOrgClaimedInviteQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgClaimedInviteKeys.detail(params.id), + queryFn: () => + getClient() + .orgClaimedInvite.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgClaimedInvitesQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgClaimedInvitesQuery.ts new file mode 100644 index 000000000..965828b20 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgClaimedInvitesQuery.ts @@ -0,0 +1,163 @@ +/** + * List query hook for OrgClaimedInvite + * @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 { orgClaimedInviteKeys } from '../query-keys'; +import type { + OrgClaimedInviteSelect, + OrgClaimedInviteWithRelations, + OrgClaimedInviteFilter, + OrgClaimedInviteOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + OrgClaimedInviteSelect, + OrgClaimedInviteWithRelations, + OrgClaimedInviteFilter, + OrgClaimedInviteOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgClaimedInvitesQueryKey = orgClaimedInviteKeys.list; +/** + * Query hook for fetching OrgClaimedInvite list + * + * @example + * ```tsx + * const { data, isLoading } = useOrgClaimedInvitesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useOrgClaimedInvitesQuery< + S extends OrgClaimedInviteSelect, + TData = { + orgClaimedInvites: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgClaimedInviteSelect>; + } & Omit< + UseQueryOptions< + { + orgClaimedInvites: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgClaimedInvitesQuery( + params: { + selection: ListSelectionConfig< + OrgClaimedInviteSelect, + OrgClaimedInviteFilter, + OrgClaimedInviteOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + OrgClaimedInviteSelect, + OrgClaimedInviteFilter, + OrgClaimedInviteOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgClaimedInviteKeys.list(args), + queryFn: () => getClient().orgClaimedInvite.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch OrgClaimedInvite list without React hooks + * + * @example + * ```ts + * const data = await fetchOrgClaimedInvitesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchOrgClaimedInvitesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgClaimedInviteSelect>; +}): Promise<{ + orgClaimedInvites: ConnectionResult>; +}>; +export async function fetchOrgClaimedInvitesQuery(params: { + selection: ListSelectionConfig< + OrgClaimedInviteSelect, + OrgClaimedInviteFilter, + OrgClaimedInviteOrderBy + >; +}) { + const args = buildListSelectionArgs< + OrgClaimedInviteSelect, + OrgClaimedInviteFilter, + OrgClaimedInviteOrderBy + >(params.selection); + return getClient().orgClaimedInvite.findMany(args).unwrap(); +} +/** + * Prefetch OrgClaimedInvite list for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgClaimedInvitesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchOrgClaimedInvitesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgClaimedInviteSelect>; + } +): Promise; +export async function prefetchOrgClaimedInvitesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + OrgClaimedInviteSelect, + OrgClaimedInviteFilter, + OrgClaimedInviteOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + OrgClaimedInviteSelect, + OrgClaimedInviteFilter, + OrgClaimedInviteOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgClaimedInviteKeys.list(args), + queryFn: () => getClient().orgClaimedInvite.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 new file mode 100644 index 000000000..14ccf29ec --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgGrantQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for OrgGrant + * @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 { orgGrantKeys } from '../query-keys'; +import type { OrgGrantSelect, OrgGrantWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { OrgGrantSelect, OrgGrantWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgGrantQueryKey = orgGrantKeys.detail; +/** + * Query hook for fetching a single OrgGrant + * + * @example + * ```tsx + * const { data, isLoading } = useOrgGrantQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useOrgGrantQuery< + S extends OrgGrantSelect, + TData = { + orgGrant: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgGrantSelect>; + } & Omit< + UseQueryOptions< + { + orgGrant: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgGrantQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgGrantKeys.detail(params.id), + queryFn: () => + getClient() + .orgGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single OrgGrant without React hooks + * + * @example + * ```ts + * const data = await fetchOrgGrantQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchOrgGrantQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgGrantSelect>; +}): Promise<{ + orgGrant: InferSelectResult | null; +}>; +export async function fetchOrgGrantQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .orgGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single OrgGrant for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgGrantQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchOrgGrantQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgGrantSelect>; + } +): Promise; +export async function prefetchOrgGrantQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgGrantKeys.detail(params.id), + queryFn: () => + getClient() + .orgGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgGrantsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgGrantsQuery.ts new file mode 100644 index 000000000..8f1ddc2ab --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgGrantsQuery.ts @@ -0,0 +1,145 @@ +/** + * List query hook for OrgGrant + * @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 { orgGrantKeys } from '../query-keys'; +import type { + OrgGrantSelect, + OrgGrantWithRelations, + OrgGrantFilter, + OrgGrantOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + OrgGrantSelect, + OrgGrantWithRelations, + OrgGrantFilter, + OrgGrantOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgGrantsQueryKey = orgGrantKeys.list; +/** + * Query hook for fetching OrgGrant list + * + * @example + * ```tsx + * const { data, isLoading } = useOrgGrantsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useOrgGrantsQuery< + S extends OrgGrantSelect, + TData = { + orgGrants: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgGrantSelect>; + } & Omit< + UseQueryOptions< + { + orgGrants: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgGrantsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgGrantKeys.list(args), + queryFn: () => getClient().orgGrant.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch OrgGrant list without React hooks + * + * @example + * ```ts + * const data = await fetchOrgGrantsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchOrgGrantsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgGrantSelect>; +}): Promise<{ + orgGrants: ConnectionResult>; +}>; +export async function fetchOrgGrantsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().orgGrant.findMany(args).unwrap(); +} +/** + * Prefetch OrgGrant list for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgGrantsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchOrgGrantsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgGrantSelect>; + } +): Promise; +export async function prefetchOrgGrantsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: orgGrantKeys.list(args), + queryFn: () => getClient().orgGrant.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgInviteQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgInviteQuery.ts new file mode 100644 index 000000000..d6c2f623f --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgInviteQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for OrgInvite + * @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 { orgInviteKeys } from '../query-keys'; +import type { OrgInviteSelect, OrgInviteWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { OrgInviteSelect, OrgInviteWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgInviteQueryKey = orgInviteKeys.detail; +/** + * Query hook for fetching a single OrgInvite + * + * @example + * ```tsx + * const { data, isLoading } = useOrgInviteQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useOrgInviteQuery< + S extends OrgInviteSelect, + TData = { + orgInvite: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgInviteSelect>; + } & Omit< + UseQueryOptions< + { + orgInvite: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgInviteQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgInviteKeys.detail(params.id), + queryFn: () => + getClient() + .orgInvite.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single OrgInvite without React hooks + * + * @example + * ```ts + * const data = await fetchOrgInviteQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchOrgInviteQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgInviteSelect>; +}): Promise<{ + orgInvite: InferSelectResult | null; +}>; +export async function fetchOrgInviteQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .orgInvite.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single OrgInvite for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgInviteQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchOrgInviteQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgInviteSelect>; + } +): Promise; +export async function prefetchOrgInviteQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgInviteKeys.detail(params.id), + queryFn: () => + getClient() + .orgInvite.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgInvitesQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgInvitesQuery.ts new file mode 100644 index 000000000..baaef3936 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgInvitesQuery.ts @@ -0,0 +1,145 @@ +/** + * List query hook for OrgInvite + * @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 { orgInviteKeys } from '../query-keys'; +import type { + OrgInviteSelect, + OrgInviteWithRelations, + OrgInviteFilter, + OrgInviteOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + OrgInviteSelect, + OrgInviteWithRelations, + OrgInviteFilter, + OrgInviteOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgInvitesQueryKey = orgInviteKeys.list; +/** + * Query hook for fetching OrgInvite list + * + * @example + * ```tsx + * const { data, isLoading } = useOrgInvitesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useOrgInvitesQuery< + S extends OrgInviteSelect, + TData = { + orgInvites: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgInviteSelect>; + } & Omit< + UseQueryOptions< + { + orgInvites: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgInvitesQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgInviteKeys.list(args), + queryFn: () => getClient().orgInvite.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch OrgInvite list without React hooks + * + * @example + * ```ts + * const data = await fetchOrgInvitesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchOrgInvitesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgInviteSelect>; +}): Promise<{ + orgInvites: ConnectionResult>; +}>; +export async function fetchOrgInvitesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().orgInvite.findMany(args).unwrap(); +} +/** + * Prefetch OrgInvite list for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgInvitesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchOrgInvitesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgInviteSelect>; + } +): Promise; +export async function prefetchOrgInvitesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: orgInviteKeys.list(args), + queryFn: () => getClient().orgInvite.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitDefaultQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitDefaultQuery.ts new file mode 100644 index 000000000..695d1eff9 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitDefaultQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for OrgLimitDefault + * @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 { orgLimitDefaultKeys } from '../query-keys'; +import type { OrgLimitDefaultSelect, OrgLimitDefaultWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { OrgLimitDefaultSelect, OrgLimitDefaultWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgLimitDefaultQueryKey = orgLimitDefaultKeys.detail; +/** + * Query hook for fetching a single OrgLimitDefault + * + * @example + * ```tsx + * const { data, isLoading } = useOrgLimitDefaultQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useOrgLimitDefaultQuery< + S extends OrgLimitDefaultSelect, + TData = { + orgLimitDefault: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgLimitDefaultSelect>; + } & Omit< + UseQueryOptions< + { + orgLimitDefault: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgLimitDefaultQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgLimitDefaultKeys.detail(params.id), + queryFn: () => + getClient() + .orgLimitDefault.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single OrgLimitDefault without React hooks + * + * @example + * ```ts + * const data = await fetchOrgLimitDefaultQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchOrgLimitDefaultQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgLimitDefaultSelect>; +}): Promise<{ + orgLimitDefault: InferSelectResult | null; +}>; +export async function fetchOrgLimitDefaultQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .orgLimitDefault.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single OrgLimitDefault for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgLimitDefaultQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchOrgLimitDefaultQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgLimitDefaultSelect>; + } +): Promise; +export async function prefetchOrgLimitDefaultQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgLimitDefaultKeys.detail(params.id), + queryFn: () => + getClient() + .orgLimitDefault.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitDefaultsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitDefaultsQuery.ts new file mode 100644 index 000000000..fae82e41b --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitDefaultsQuery.ts @@ -0,0 +1,163 @@ +/** + * List query hook for OrgLimitDefault + * @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 { orgLimitDefaultKeys } from '../query-keys'; +import type { + OrgLimitDefaultSelect, + OrgLimitDefaultWithRelations, + OrgLimitDefaultFilter, + OrgLimitDefaultOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + OrgLimitDefaultSelect, + OrgLimitDefaultWithRelations, + OrgLimitDefaultFilter, + OrgLimitDefaultOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgLimitDefaultsQueryKey = orgLimitDefaultKeys.list; +/** + * Query hook for fetching OrgLimitDefault list + * + * @example + * ```tsx + * const { data, isLoading } = useOrgLimitDefaultsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useOrgLimitDefaultsQuery< + S extends OrgLimitDefaultSelect, + TData = { + orgLimitDefaults: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgLimitDefaultSelect>; + } & Omit< + UseQueryOptions< + { + orgLimitDefaults: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgLimitDefaultsQuery( + params: { + selection: ListSelectionConfig< + OrgLimitDefaultSelect, + OrgLimitDefaultFilter, + OrgLimitDefaultOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + OrgLimitDefaultSelect, + OrgLimitDefaultFilter, + OrgLimitDefaultOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgLimitDefaultKeys.list(args), + queryFn: () => getClient().orgLimitDefault.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch OrgLimitDefault list without React hooks + * + * @example + * ```ts + * const data = await fetchOrgLimitDefaultsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchOrgLimitDefaultsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgLimitDefaultSelect>; +}): Promise<{ + orgLimitDefaults: ConnectionResult>; +}>; +export async function fetchOrgLimitDefaultsQuery(params: { + selection: ListSelectionConfig< + OrgLimitDefaultSelect, + OrgLimitDefaultFilter, + OrgLimitDefaultOrderBy + >; +}) { + const args = buildListSelectionArgs< + OrgLimitDefaultSelect, + OrgLimitDefaultFilter, + OrgLimitDefaultOrderBy + >(params.selection); + return getClient().orgLimitDefault.findMany(args).unwrap(); +} +/** + * Prefetch OrgLimitDefault list for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgLimitDefaultsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchOrgLimitDefaultsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgLimitDefaultSelect>; + } +): Promise; +export async function prefetchOrgLimitDefaultsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + OrgLimitDefaultSelect, + OrgLimitDefaultFilter, + OrgLimitDefaultOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + OrgLimitDefaultSelect, + OrgLimitDefaultFilter, + OrgLimitDefaultOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgLimitDefaultKeys.list(args), + queryFn: () => getClient().orgLimitDefault.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitQuery.ts new file mode 100644 index 000000000..db061397b --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for OrgLimit + * @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 { orgLimitKeys } from '../query-keys'; +import type { OrgLimitSelect, OrgLimitWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { OrgLimitSelect, OrgLimitWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgLimitQueryKey = orgLimitKeys.detail; +/** + * Query hook for fetching a single OrgLimit + * + * @example + * ```tsx + * const { data, isLoading } = useOrgLimitQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useOrgLimitQuery< + S extends OrgLimitSelect, + TData = { + orgLimit: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgLimitSelect>; + } & Omit< + UseQueryOptions< + { + orgLimit: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgLimitQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgLimitKeys.detail(params.id), + queryFn: () => + getClient() + .orgLimit.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single OrgLimit without React hooks + * + * @example + * ```ts + * const data = await fetchOrgLimitQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchOrgLimitQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgLimitSelect>; +}): Promise<{ + orgLimit: InferSelectResult | null; +}>; +export async function fetchOrgLimitQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .orgLimit.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single OrgLimit for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgLimitQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchOrgLimitQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgLimitSelect>; + } +): Promise; +export async function prefetchOrgLimitQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgLimitKeys.detail(params.id), + queryFn: () => + getClient() + .orgLimit.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitsQuery.ts new file mode 100644 index 000000000..032866dfb --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitsQuery.ts @@ -0,0 +1,145 @@ +/** + * List query hook for OrgLimit + * @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 { orgLimitKeys } from '../query-keys'; +import type { + OrgLimitSelect, + OrgLimitWithRelations, + OrgLimitFilter, + OrgLimitOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + OrgLimitSelect, + OrgLimitWithRelations, + OrgLimitFilter, + OrgLimitOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgLimitsQueryKey = orgLimitKeys.list; +/** + * Query hook for fetching OrgLimit list + * + * @example + * ```tsx + * const { data, isLoading } = useOrgLimitsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useOrgLimitsQuery< + S extends OrgLimitSelect, + TData = { + orgLimits: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgLimitSelect>; + } & Omit< + UseQueryOptions< + { + orgLimits: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgLimitsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgLimitKeys.list(args), + queryFn: () => getClient().orgLimit.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch OrgLimit list without React hooks + * + * @example + * ```ts + * const data = await fetchOrgLimitsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchOrgLimitsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgLimitSelect>; +}): Promise<{ + orgLimits: ConnectionResult>; +}>; +export async function fetchOrgLimitsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().orgLimit.findMany(args).unwrap(); +} +/** + * Prefetch OrgLimit list for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgLimitsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchOrgLimitsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgLimitSelect>; + } +): Promise; +export async function prefetchOrgLimitsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: orgLimitKeys.list(args), + queryFn: () => getClient().orgLimit.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgMemberQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgMemberQuery.ts new file mode 100644 index 000000000..aa4257559 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgMemberQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for OrgMember + * @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 { orgMemberKeys } from '../query-keys'; +import type { OrgMemberSelect, OrgMemberWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { OrgMemberSelect, OrgMemberWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgMemberQueryKey = orgMemberKeys.detail; +/** + * Query hook for fetching a single OrgMember + * + * @example + * ```tsx + * const { data, isLoading } = useOrgMemberQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useOrgMemberQuery< + S extends OrgMemberSelect, + TData = { + orgMember: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgMemberSelect>; + } & Omit< + UseQueryOptions< + { + orgMember: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgMemberQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgMemberKeys.detail(params.id), + queryFn: () => + getClient() + .orgMember.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single OrgMember without React hooks + * + * @example + * ```ts + * const data = await fetchOrgMemberQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchOrgMemberQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgMemberSelect>; +}): Promise<{ + orgMember: InferSelectResult | null; +}>; +export async function fetchOrgMemberQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .orgMember.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single OrgMember for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgMemberQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchOrgMemberQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgMemberSelect>; + } +): Promise; +export async function prefetchOrgMemberQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgMemberKeys.detail(params.id), + queryFn: () => + getClient() + .orgMember.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgMembersQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgMembersQuery.ts new file mode 100644 index 000000000..651d52afb --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgMembersQuery.ts @@ -0,0 +1,145 @@ +/** + * List query hook for OrgMember + * @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 { orgMemberKeys } from '../query-keys'; +import type { + OrgMemberSelect, + OrgMemberWithRelations, + OrgMemberFilter, + OrgMemberOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + OrgMemberSelect, + OrgMemberWithRelations, + OrgMemberFilter, + OrgMemberOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgMembersQueryKey = orgMemberKeys.list; +/** + * Query hook for fetching OrgMember list + * + * @example + * ```tsx + * const { data, isLoading } = useOrgMembersQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useOrgMembersQuery< + S extends OrgMemberSelect, + TData = { + orgMembers: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgMemberSelect>; + } & Omit< + UseQueryOptions< + { + orgMembers: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgMembersQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgMemberKeys.list(args), + queryFn: () => getClient().orgMember.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch OrgMember list without React hooks + * + * @example + * ```ts + * const data = await fetchOrgMembersQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchOrgMembersQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgMemberSelect>; +}): Promise<{ + orgMembers: ConnectionResult>; +}>; +export async function fetchOrgMembersQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().orgMember.findMany(args).unwrap(); +} +/** + * Prefetch OrgMember list for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgMembersQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchOrgMembersQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgMemberSelect>; + } +): Promise; +export async function prefetchOrgMembersQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: orgMemberKeys.list(args), + queryFn: () => getClient().orgMember.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipDefaultQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipDefaultQuery.ts new file mode 100644 index 000000000..47264e0a5 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipDefaultQuery.ts @@ -0,0 +1,144 @@ +/** + * Single item query hook for OrgMembershipDefault + * @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 { orgMembershipDefaultKeys } from '../query-keys'; +import type { + OrgMembershipDefaultSelect, + OrgMembershipDefaultWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgMembershipDefaultSelect, + OrgMembershipDefaultWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgMembershipDefaultQueryKey = orgMembershipDefaultKeys.detail; +/** + * Query hook for fetching a single OrgMembershipDefault + * + * @example + * ```tsx + * const { data, isLoading } = useOrgMembershipDefaultQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useOrgMembershipDefaultQuery< + S extends OrgMembershipDefaultSelect, + TData = { + orgMembershipDefault: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgMembershipDefaultSelect>; + } & Omit< + UseQueryOptions< + { + orgMembershipDefault: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgMembershipDefaultQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgMembershipDefaultKeys.detail(params.id), + queryFn: () => + getClient() + .orgMembershipDefault.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single OrgMembershipDefault without React hooks + * + * @example + * ```ts + * const data = await fetchOrgMembershipDefaultQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchOrgMembershipDefaultQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgMembershipDefaultSelect>; +}): Promise<{ + orgMembershipDefault: InferSelectResult | null; +}>; +export async function fetchOrgMembershipDefaultQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .orgMembershipDefault.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single OrgMembershipDefault for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgMembershipDefaultQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchOrgMembershipDefaultQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgMembershipDefaultSelect>; + } +): Promise; +export async function prefetchOrgMembershipDefaultQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgMembershipDefaultKeys.detail(params.id), + queryFn: () => + getClient() + .orgMembershipDefault.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipDefaultsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipDefaultsQuery.ts new file mode 100644 index 000000000..8cb20caae --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipDefaultsQuery.ts @@ -0,0 +1,178 @@ +/** + * List query hook for OrgMembershipDefault + * @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 { orgMembershipDefaultKeys } from '../query-keys'; +import type { + OrgMembershipDefaultSelect, + OrgMembershipDefaultWithRelations, + OrgMembershipDefaultFilter, + OrgMembershipDefaultOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + OrgMembershipDefaultSelect, + OrgMembershipDefaultWithRelations, + OrgMembershipDefaultFilter, + OrgMembershipDefaultOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgMembershipDefaultsQueryKey = orgMembershipDefaultKeys.list; +/** + * Query hook for fetching OrgMembershipDefault list + * + * @example + * ```tsx + * const { data, isLoading } = useOrgMembershipDefaultsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useOrgMembershipDefaultsQuery< + S extends OrgMembershipDefaultSelect, + TData = { + orgMembershipDefaults: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, OrgMembershipDefaultSelect>; + } & Omit< + UseQueryOptions< + { + orgMembershipDefaults: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgMembershipDefaultsQuery( + params: { + selection: ListSelectionConfig< + OrgMembershipDefaultSelect, + OrgMembershipDefaultFilter, + OrgMembershipDefaultOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + OrgMembershipDefaultSelect, + OrgMembershipDefaultFilter, + OrgMembershipDefaultOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgMembershipDefaultKeys.list(args), + queryFn: () => getClient().orgMembershipDefault.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch OrgMembershipDefault list without React hooks + * + * @example + * ```ts + * const data = await fetchOrgMembershipDefaultsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchOrgMembershipDefaultsQuery< + S extends OrgMembershipDefaultSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, OrgMembershipDefaultSelect>; +}): Promise<{ + orgMembershipDefaults: ConnectionResult>; +}>; +export async function fetchOrgMembershipDefaultsQuery(params: { + selection: ListSelectionConfig< + OrgMembershipDefaultSelect, + OrgMembershipDefaultFilter, + OrgMembershipDefaultOrderBy + >; +}) { + const args = buildListSelectionArgs< + OrgMembershipDefaultSelect, + OrgMembershipDefaultFilter, + OrgMembershipDefaultOrderBy + >(params.selection); + return getClient().orgMembershipDefault.findMany(args).unwrap(); +} +/** + * Prefetch OrgMembershipDefault list for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgMembershipDefaultsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchOrgMembershipDefaultsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, OrgMembershipDefaultSelect>; + } +): Promise; +export async function prefetchOrgMembershipDefaultsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + OrgMembershipDefaultSelect, + OrgMembershipDefaultFilter, + OrgMembershipDefaultOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + OrgMembershipDefaultSelect, + OrgMembershipDefaultFilter, + OrgMembershipDefaultOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgMembershipDefaultKeys.list(args), + queryFn: () => getClient().orgMembershipDefault.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipQuery.ts new file mode 100644 index 000000000..ec1c49d75 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for OrgMembership + * @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 { orgMembershipKeys } from '../query-keys'; +import type { OrgMembershipSelect, OrgMembershipWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { OrgMembershipSelect, OrgMembershipWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgMembershipQueryKey = orgMembershipKeys.detail; +/** + * Query hook for fetching a single OrgMembership + * + * @example + * ```tsx + * const { data, isLoading } = useOrgMembershipQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useOrgMembershipQuery< + S extends OrgMembershipSelect, + TData = { + orgMembership: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgMembershipSelect>; + } & Omit< + UseQueryOptions< + { + orgMembership: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgMembershipQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgMembershipKeys.detail(params.id), + queryFn: () => + getClient() + .orgMembership.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single OrgMembership without React hooks + * + * @example + * ```ts + * const data = await fetchOrgMembershipQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchOrgMembershipQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgMembershipSelect>; +}): Promise<{ + orgMembership: InferSelectResult | null; +}>; +export async function fetchOrgMembershipQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .orgMembership.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single OrgMembership for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgMembershipQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchOrgMembershipQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgMembershipSelect>; + } +): Promise; +export async function prefetchOrgMembershipQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgMembershipKeys.detail(params.id), + queryFn: () => + getClient() + .orgMembership.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipsQuery.ts new file mode 100644 index 000000000..cde182a7b --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgMembershipsQuery.ts @@ -0,0 +1,151 @@ +/** + * List query hook for OrgMembership + * @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 { orgMembershipKeys } from '../query-keys'; +import type { + OrgMembershipSelect, + OrgMembershipWithRelations, + OrgMembershipFilter, + OrgMembershipOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + OrgMembershipSelect, + OrgMembershipWithRelations, + OrgMembershipFilter, + OrgMembershipOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgMembershipsQueryKey = orgMembershipKeys.list; +/** + * Query hook for fetching OrgMembership list + * + * @example + * ```tsx + * const { data, isLoading } = useOrgMembershipsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useOrgMembershipsQuery< + S extends OrgMembershipSelect, + TData = { + orgMemberships: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgMembershipSelect>; + } & Omit< + UseQueryOptions< + { + orgMemberships: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgMembershipsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + OrgMembershipSelect, + OrgMembershipFilter, + OrgMembershipOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgMembershipKeys.list(args), + queryFn: () => getClient().orgMembership.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch OrgMembership list without React hooks + * + * @example + * ```ts + * const data = await fetchOrgMembershipsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchOrgMembershipsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgMembershipSelect>; +}): Promise<{ + orgMemberships: ConnectionResult>; +}>; +export async function fetchOrgMembershipsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + OrgMembershipSelect, + OrgMembershipFilter, + OrgMembershipOrderBy + >(params.selection); + return getClient().orgMembership.findMany(args).unwrap(); +} +/** + * Prefetch OrgMembership list for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgMembershipsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchOrgMembershipsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgMembershipSelect>; + } +): Promise; +export async function prefetchOrgMembershipsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs< + OrgMembershipSelect, + OrgMembershipFilter, + OrgMembershipOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgMembershipKeys.list(args), + queryFn: () => getClient().orgMembership.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgOwnerGrantQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgOwnerGrantQuery.ts new file mode 100644 index 000000000..9a0b0c9df --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgOwnerGrantQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for OrgOwnerGrant + * @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 { orgOwnerGrantKeys } from '../query-keys'; +import type { OrgOwnerGrantSelect, OrgOwnerGrantWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { OrgOwnerGrantSelect, OrgOwnerGrantWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgOwnerGrantQueryKey = orgOwnerGrantKeys.detail; +/** + * Query hook for fetching a single OrgOwnerGrant + * + * @example + * ```tsx + * const { data, isLoading } = useOrgOwnerGrantQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useOrgOwnerGrantQuery< + S extends OrgOwnerGrantSelect, + TData = { + orgOwnerGrant: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgOwnerGrantSelect>; + } & Omit< + UseQueryOptions< + { + orgOwnerGrant: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgOwnerGrantQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgOwnerGrantKeys.detail(params.id), + queryFn: () => + getClient() + .orgOwnerGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single OrgOwnerGrant without React hooks + * + * @example + * ```ts + * const data = await fetchOrgOwnerGrantQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchOrgOwnerGrantQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgOwnerGrantSelect>; +}): Promise<{ + orgOwnerGrant: InferSelectResult | null; +}>; +export async function fetchOrgOwnerGrantQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .orgOwnerGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single OrgOwnerGrant for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgOwnerGrantQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchOrgOwnerGrantQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgOwnerGrantSelect>; + } +): Promise; +export async function prefetchOrgOwnerGrantQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgOwnerGrantKeys.detail(params.id), + queryFn: () => + getClient() + .orgOwnerGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgOwnerGrantsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgOwnerGrantsQuery.ts new file mode 100644 index 000000000..315d1cc57 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgOwnerGrantsQuery.ts @@ -0,0 +1,151 @@ +/** + * List query hook for OrgOwnerGrant + * @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 { orgOwnerGrantKeys } from '../query-keys'; +import type { + OrgOwnerGrantSelect, + OrgOwnerGrantWithRelations, + OrgOwnerGrantFilter, + OrgOwnerGrantOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + OrgOwnerGrantSelect, + OrgOwnerGrantWithRelations, + OrgOwnerGrantFilter, + OrgOwnerGrantOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgOwnerGrantsQueryKey = orgOwnerGrantKeys.list; +/** + * Query hook for fetching OrgOwnerGrant list + * + * @example + * ```tsx + * const { data, isLoading } = useOrgOwnerGrantsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useOrgOwnerGrantsQuery< + S extends OrgOwnerGrantSelect, + TData = { + orgOwnerGrants: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgOwnerGrantSelect>; + } & Omit< + UseQueryOptions< + { + orgOwnerGrants: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgOwnerGrantsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + OrgOwnerGrantSelect, + OrgOwnerGrantFilter, + OrgOwnerGrantOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgOwnerGrantKeys.list(args), + queryFn: () => getClient().orgOwnerGrant.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch OrgOwnerGrant list without React hooks + * + * @example + * ```ts + * const data = await fetchOrgOwnerGrantsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchOrgOwnerGrantsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgOwnerGrantSelect>; +}): Promise<{ + orgOwnerGrants: ConnectionResult>; +}>; +export async function fetchOrgOwnerGrantsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + OrgOwnerGrantSelect, + OrgOwnerGrantFilter, + OrgOwnerGrantOrderBy + >(params.selection); + return getClient().orgOwnerGrant.findMany(args).unwrap(); +} +/** + * Prefetch OrgOwnerGrant list for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgOwnerGrantsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchOrgOwnerGrantsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgOwnerGrantSelect>; + } +): Promise; +export async function prefetchOrgOwnerGrantsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs< + OrgOwnerGrantSelect, + OrgOwnerGrantFilter, + OrgOwnerGrantOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgOwnerGrantKeys.list(args), + queryFn: () => getClient().orgOwnerGrant.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionDefaultQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionDefaultQuery.ts new file mode 100644 index 000000000..3f324b798 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionDefaultQuery.ts @@ -0,0 +1,144 @@ +/** + * Single item query hook for OrgPermissionDefault + * @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 { orgPermissionDefaultKeys } from '../query-keys'; +import type { + OrgPermissionDefaultSelect, + OrgPermissionDefaultWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgPermissionDefaultSelect, + OrgPermissionDefaultWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgPermissionDefaultQueryKey = orgPermissionDefaultKeys.detail; +/** + * Query hook for fetching a single OrgPermissionDefault + * + * @example + * ```tsx + * const { data, isLoading } = useOrgPermissionDefaultQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useOrgPermissionDefaultQuery< + S extends OrgPermissionDefaultSelect, + TData = { + orgPermissionDefault: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgPermissionDefaultSelect>; + } & Omit< + UseQueryOptions< + { + orgPermissionDefault: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgPermissionDefaultQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgPermissionDefaultKeys.detail(params.id), + queryFn: () => + getClient() + .orgPermissionDefault.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single OrgPermissionDefault without React hooks + * + * @example + * ```ts + * const data = await fetchOrgPermissionDefaultQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchOrgPermissionDefaultQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgPermissionDefaultSelect>; +}): Promise<{ + orgPermissionDefault: InferSelectResult | null; +}>; +export async function fetchOrgPermissionDefaultQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .orgPermissionDefault.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single OrgPermissionDefault for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgPermissionDefaultQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchOrgPermissionDefaultQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgPermissionDefaultSelect>; + } +): Promise; +export async function prefetchOrgPermissionDefaultQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgPermissionDefaultKeys.detail(params.id), + queryFn: () => + getClient() + .orgPermissionDefault.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionDefaultsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionDefaultsQuery.ts new file mode 100644 index 000000000..021e73f1c --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionDefaultsQuery.ts @@ -0,0 +1,178 @@ +/** + * List query hook for OrgPermissionDefault + * @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 { orgPermissionDefaultKeys } from '../query-keys'; +import type { + OrgPermissionDefaultSelect, + OrgPermissionDefaultWithRelations, + OrgPermissionDefaultFilter, + OrgPermissionDefaultOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + OrgPermissionDefaultSelect, + OrgPermissionDefaultWithRelations, + OrgPermissionDefaultFilter, + OrgPermissionDefaultOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgPermissionDefaultsQueryKey = orgPermissionDefaultKeys.list; +/** + * Query hook for fetching OrgPermissionDefault list + * + * @example + * ```tsx + * const { data, isLoading } = useOrgPermissionDefaultsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useOrgPermissionDefaultsQuery< + S extends OrgPermissionDefaultSelect, + TData = { + orgPermissionDefaults: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, OrgPermissionDefaultSelect>; + } & Omit< + UseQueryOptions< + { + orgPermissionDefaults: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgPermissionDefaultsQuery( + params: { + selection: ListSelectionConfig< + OrgPermissionDefaultSelect, + OrgPermissionDefaultFilter, + OrgPermissionDefaultOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + OrgPermissionDefaultSelect, + OrgPermissionDefaultFilter, + OrgPermissionDefaultOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgPermissionDefaultKeys.list(args), + queryFn: () => getClient().orgPermissionDefault.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch OrgPermissionDefault list without React hooks + * + * @example + * ```ts + * const data = await fetchOrgPermissionDefaultsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchOrgPermissionDefaultsQuery< + S extends OrgPermissionDefaultSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, OrgPermissionDefaultSelect>; +}): Promise<{ + orgPermissionDefaults: ConnectionResult>; +}>; +export async function fetchOrgPermissionDefaultsQuery(params: { + selection: ListSelectionConfig< + OrgPermissionDefaultSelect, + OrgPermissionDefaultFilter, + OrgPermissionDefaultOrderBy + >; +}) { + const args = buildListSelectionArgs< + OrgPermissionDefaultSelect, + OrgPermissionDefaultFilter, + OrgPermissionDefaultOrderBy + >(params.selection); + return getClient().orgPermissionDefault.findMany(args).unwrap(); +} +/** + * Prefetch OrgPermissionDefault list for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgPermissionDefaultsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchOrgPermissionDefaultsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, OrgPermissionDefaultSelect>; + } +): Promise; +export async function prefetchOrgPermissionDefaultsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + OrgPermissionDefaultSelect, + OrgPermissionDefaultFilter, + OrgPermissionDefaultOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + OrgPermissionDefaultSelect, + OrgPermissionDefaultFilter, + OrgPermissionDefaultOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgPermissionDefaultKeys.list(args), + queryFn: () => getClient().orgPermissionDefault.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionQuery.ts new file mode 100644 index 000000000..3d28f9542 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for OrgPermission + * @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 { orgPermissionKeys } from '../query-keys'; +import type { OrgPermissionSelect, OrgPermissionWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { OrgPermissionSelect, OrgPermissionWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgPermissionQueryKey = orgPermissionKeys.detail; +/** + * Query hook for fetching a single OrgPermission + * + * @example + * ```tsx + * const { data, isLoading } = useOrgPermissionQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useOrgPermissionQuery< + S extends OrgPermissionSelect, + TData = { + orgPermission: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgPermissionSelect>; + } & Omit< + UseQueryOptions< + { + orgPermission: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgPermissionQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgPermissionKeys.detail(params.id), + queryFn: () => + getClient() + .orgPermission.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single OrgPermission without React hooks + * + * @example + * ```ts + * const data = await fetchOrgPermissionQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchOrgPermissionQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgPermissionSelect>; +}): Promise<{ + orgPermission: InferSelectResult | null; +}>; +export async function fetchOrgPermissionQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .orgPermission.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single OrgPermission for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgPermissionQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchOrgPermissionQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgPermissionSelect>; + } +): Promise; +export async function prefetchOrgPermissionQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgPermissionKeys.detail(params.id), + queryFn: () => + getClient() + .orgPermission.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionsGetByMaskQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionsGetByMaskQuery.ts new file mode 100644 index 000000000..7410e3b04 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionsGetByMaskQuery.ts @@ -0,0 +1,108 @@ +/** + * Custom query hook for orgPermissionsGetByMask + * @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 { OrgPermissionsGetByMaskVariables } from '../../orm/query'; +import type { OrgPermissionConnection } from '../../orm/input-types'; +export type { OrgPermissionsGetByMaskVariables } from '../../orm/query'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgPermissionsGetByMaskQueryKey = customQueryKeys.orgPermissionsGetByMask; +/** + * Reads and enables pagination through a set of `OrgPermission`. + * + * @example + * ```tsx + * const { data, isLoading } = useOrgPermissionsGetByMaskQuery({ variables: { mask, first, offset, after } }); + * + * if (data?.orgPermissionsGetByMask) { + * console.log(data.orgPermissionsGetByMask); + * } + * ``` + */ +export function useOrgPermissionsGetByMaskQuery< + TData = { + orgPermissionsGetByMask: OrgPermissionConnection | null; + }, +>( + params?: { + variables?: OrgPermissionsGetByMaskVariables; + } & Omit< + UseQueryOptions< + { + orgPermissionsGetByMask: OrgPermissionConnection | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgPermissionsGetByMaskQuery< + TData = { + orgPermissionsGetByMask: OrgPermissionConnection | null; + }, +>( + params?: { + variables?: OrgPermissionsGetByMaskVariables; + } & Omit< + UseQueryOptions< + { + orgPermissionsGetByMask: OrgPermissionConnection | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult { + const variables = params?.variables ?? {}; + const { variables: _variables, ...queryOptions } = params ?? {}; + void _variables; + return useQuery({ + queryKey: orgPermissionsGetByMaskQueryKey(variables), + queryFn: () => getClient().query.orgPermissionsGetByMask(variables).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch orgPermissionsGetByMask without React hooks + * + * @example + * ```ts + * const data = await fetchOrgPermissionsGetByMaskQuery({ variables: { mask, first, offset, after } }); + * ``` + */ +export async function fetchOrgPermissionsGetByMaskQuery(params?: { + variables?: OrgPermissionsGetByMaskVariables; +}) { + const variables = params?.variables ?? {}; + return getClient().query.orgPermissionsGetByMask(variables).unwrap(); +} +/** + * Prefetch orgPermissionsGetByMask for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgPermissionsGetByMaskQuery(queryClient, { variables: { mask, first, offset, after } }); + * ``` + */ +export async function prefetchOrgPermissionsGetByMaskQuery( + queryClient: QueryClient, + params?: { + variables?: OrgPermissionsGetByMaskVariables; + } +): Promise { + const variables = params?.variables ?? {}; + await queryClient.prefetchQuery({ + queryKey: orgPermissionsGetByMaskQueryKey(variables), + queryFn: () => getClient().query.orgPermissionsGetByMask(variables).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionsGetMaskByNamesQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionsGetMaskByNamesQuery.ts new file mode 100644 index 000000000..99199bcee --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionsGetMaskByNamesQuery.ts @@ -0,0 +1,107 @@ +/** + * Custom query hook for orgPermissionsGetMaskByNames + * @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 { OrgPermissionsGetMaskByNamesVariables } from '../../orm/query'; +export type { OrgPermissionsGetMaskByNamesVariables } from '../../orm/query'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgPermissionsGetMaskByNamesQueryKey = customQueryKeys.orgPermissionsGetMaskByNames; +/** + * Query hook for orgPermissionsGetMaskByNames + * + * @example + * ```tsx + * const { data, isLoading } = useOrgPermissionsGetMaskByNamesQuery({ variables: { names } }); + * + * if (data?.orgPermissionsGetMaskByNames) { + * console.log(data.orgPermissionsGetMaskByNames); + * } + * ``` + */ +export function useOrgPermissionsGetMaskByNamesQuery< + TData = { + orgPermissionsGetMaskByNames: string | null; + }, +>( + params?: { + variables?: OrgPermissionsGetMaskByNamesVariables; + } & Omit< + UseQueryOptions< + { + orgPermissionsGetMaskByNames: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgPermissionsGetMaskByNamesQuery< + TData = { + orgPermissionsGetMaskByNames: string | null; + }, +>( + params?: { + variables?: OrgPermissionsGetMaskByNamesVariables; + } & Omit< + UseQueryOptions< + { + orgPermissionsGetMaskByNames: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult { + const variables = params?.variables ?? {}; + const { variables: _variables, ...queryOptions } = params ?? {}; + void _variables; + return useQuery({ + queryKey: orgPermissionsGetMaskByNamesQueryKey(variables), + queryFn: () => getClient().query.orgPermissionsGetMaskByNames(variables).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch orgPermissionsGetMaskByNames without React hooks + * + * @example + * ```ts + * const data = await fetchOrgPermissionsGetMaskByNamesQuery({ variables: { names } }); + * ``` + */ +export async function fetchOrgPermissionsGetMaskByNamesQuery(params?: { + variables?: OrgPermissionsGetMaskByNamesVariables; +}) { + const variables = params?.variables ?? {}; + return getClient().query.orgPermissionsGetMaskByNames(variables).unwrap(); +} +/** + * Prefetch orgPermissionsGetMaskByNames for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgPermissionsGetMaskByNamesQuery(queryClient, { variables: { names } }); + * ``` + */ +export async function prefetchOrgPermissionsGetMaskByNamesQuery( + queryClient: QueryClient, + params?: { + variables?: OrgPermissionsGetMaskByNamesVariables; + } +): Promise { + const variables = params?.variables ?? {}; + await queryClient.prefetchQuery({ + queryKey: orgPermissionsGetMaskByNamesQueryKey(variables), + queryFn: () => getClient().query.orgPermissionsGetMaskByNames(variables).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionsGetMaskQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionsGetMaskQuery.ts new file mode 100644 index 000000000..dad45181b --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionsGetMaskQuery.ts @@ -0,0 +1,107 @@ +/** + * Custom query hook for orgPermissionsGetMask + * @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 { OrgPermissionsGetMaskVariables } from '../../orm/query'; +export type { OrgPermissionsGetMaskVariables } from '../../orm/query'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgPermissionsGetMaskQueryKey = customQueryKeys.orgPermissionsGetMask; +/** + * Query hook for orgPermissionsGetMask + * + * @example + * ```tsx + * const { data, isLoading } = useOrgPermissionsGetMaskQuery({ variables: { ids } }); + * + * if (data?.orgPermissionsGetMask) { + * console.log(data.orgPermissionsGetMask); + * } + * ``` + */ +export function useOrgPermissionsGetMaskQuery< + TData = { + orgPermissionsGetMask: string | null; + }, +>( + params?: { + variables?: OrgPermissionsGetMaskVariables; + } & Omit< + UseQueryOptions< + { + orgPermissionsGetMask: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgPermissionsGetMaskQuery< + TData = { + orgPermissionsGetMask: string | null; + }, +>( + params?: { + variables?: OrgPermissionsGetMaskVariables; + } & Omit< + UseQueryOptions< + { + orgPermissionsGetMask: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult { + const variables = params?.variables ?? {}; + const { variables: _variables, ...queryOptions } = params ?? {}; + void _variables; + return useQuery({ + queryKey: orgPermissionsGetMaskQueryKey(variables), + queryFn: () => getClient().query.orgPermissionsGetMask(variables).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch orgPermissionsGetMask without React hooks + * + * @example + * ```ts + * const data = await fetchOrgPermissionsGetMaskQuery({ variables: { ids } }); + * ``` + */ +export async function fetchOrgPermissionsGetMaskQuery(params?: { + variables?: OrgPermissionsGetMaskVariables; +}) { + const variables = params?.variables ?? {}; + return getClient().query.orgPermissionsGetMask(variables).unwrap(); +} +/** + * Prefetch orgPermissionsGetMask for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgPermissionsGetMaskQuery(queryClient, { variables: { ids } }); + * ``` + */ +export async function prefetchOrgPermissionsGetMaskQuery( + queryClient: QueryClient, + params?: { + variables?: OrgPermissionsGetMaskVariables; + } +): Promise { + const variables = params?.variables ?? {}; + await queryClient.prefetchQuery({ + queryKey: orgPermissionsGetMaskQueryKey(variables), + queryFn: () => getClient().query.orgPermissionsGetMask(variables).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionsGetPaddedMaskQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionsGetPaddedMaskQuery.ts new file mode 100644 index 000000000..4b4f80e72 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionsGetPaddedMaskQuery.ts @@ -0,0 +1,107 @@ +/** + * Custom query hook for orgPermissionsGetPaddedMask + * @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 { OrgPermissionsGetPaddedMaskVariables } from '../../orm/query'; +export type { OrgPermissionsGetPaddedMaskVariables } from '../../orm/query'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgPermissionsGetPaddedMaskQueryKey = customQueryKeys.orgPermissionsGetPaddedMask; +/** + * Query hook for orgPermissionsGetPaddedMask + * + * @example + * ```tsx + * const { data, isLoading } = useOrgPermissionsGetPaddedMaskQuery({ variables: { mask } }); + * + * if (data?.orgPermissionsGetPaddedMask) { + * console.log(data.orgPermissionsGetPaddedMask); + * } + * ``` + */ +export function useOrgPermissionsGetPaddedMaskQuery< + TData = { + orgPermissionsGetPaddedMask: string | null; + }, +>( + params?: { + variables?: OrgPermissionsGetPaddedMaskVariables; + } & Omit< + UseQueryOptions< + { + orgPermissionsGetPaddedMask: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgPermissionsGetPaddedMaskQuery< + TData = { + orgPermissionsGetPaddedMask: string | null; + }, +>( + params?: { + variables?: OrgPermissionsGetPaddedMaskVariables; + } & Omit< + UseQueryOptions< + { + orgPermissionsGetPaddedMask: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult { + const variables = params?.variables ?? {}; + const { variables: _variables, ...queryOptions } = params ?? {}; + void _variables; + return useQuery({ + queryKey: orgPermissionsGetPaddedMaskQueryKey(variables), + queryFn: () => getClient().query.orgPermissionsGetPaddedMask(variables).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch orgPermissionsGetPaddedMask without React hooks + * + * @example + * ```ts + * const data = await fetchOrgPermissionsGetPaddedMaskQuery({ variables: { mask } }); + * ``` + */ +export async function fetchOrgPermissionsGetPaddedMaskQuery(params?: { + variables?: OrgPermissionsGetPaddedMaskVariables; +}) { + const variables = params?.variables ?? {}; + return getClient().query.orgPermissionsGetPaddedMask(variables).unwrap(); +} +/** + * Prefetch orgPermissionsGetPaddedMask for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgPermissionsGetPaddedMaskQuery(queryClient, { variables: { mask } }); + * ``` + */ +export async function prefetchOrgPermissionsGetPaddedMaskQuery( + queryClient: QueryClient, + params?: { + variables?: OrgPermissionsGetPaddedMaskVariables; + } +): Promise { + const variables = params?.variables ?? {}; + await queryClient.prefetchQuery({ + queryKey: orgPermissionsGetPaddedMaskQueryKey(variables), + queryFn: () => getClient().query.orgPermissionsGetPaddedMask(variables).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionsQuery.ts new file mode 100644 index 000000000..3e48264a6 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionsQuery.ts @@ -0,0 +1,151 @@ +/** + * List query hook for OrgPermission + * @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 { orgPermissionKeys } from '../query-keys'; +import type { + OrgPermissionSelect, + OrgPermissionWithRelations, + OrgPermissionFilter, + OrgPermissionOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + OrgPermissionSelect, + OrgPermissionWithRelations, + OrgPermissionFilter, + OrgPermissionOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgPermissionsQueryKey = orgPermissionKeys.list; +/** + * Query hook for fetching OrgPermission list + * + * @example + * ```tsx + * const { data, isLoading } = useOrgPermissionsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useOrgPermissionsQuery< + S extends OrgPermissionSelect, + TData = { + orgPermissions: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgPermissionSelect>; + } & Omit< + UseQueryOptions< + { + orgPermissions: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgPermissionsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + OrgPermissionSelect, + OrgPermissionFilter, + OrgPermissionOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgPermissionKeys.list(args), + queryFn: () => getClient().orgPermission.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch OrgPermission list without React hooks + * + * @example + * ```ts + * const data = await fetchOrgPermissionsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchOrgPermissionsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgPermissionSelect>; +}): Promise<{ + orgPermissions: ConnectionResult>; +}>; +export async function fetchOrgPermissionsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + OrgPermissionSelect, + OrgPermissionFilter, + OrgPermissionOrderBy + >(params.selection); + return getClient().orgPermission.findMany(args).unwrap(); +} +/** + * Prefetch OrgPermission list for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgPermissionsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchOrgPermissionsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgPermissionSelect>; + } +): Promise; +export async function prefetchOrgPermissionsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs< + OrgPermissionSelect, + OrgPermissionFilter, + OrgPermissionOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgPermissionKeys.list(args), + queryFn: () => getClient().orgPermission.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useStepsAchievedQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useStepsAchievedQuery.ts new file mode 100644 index 000000000..e5c8bd35b --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useStepsAchievedQuery.ts @@ -0,0 +1,105 @@ +/** + * Custom query hook for stepsAchieved + * @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 { StepsAchievedVariables } from '../../orm/query'; +export type { StepsAchievedVariables } from '../../orm/query'; +/** Query key factory - re-exported from query-keys.ts */ +export const stepsAchievedQueryKey = customQueryKeys.stepsAchieved; +/** + * Query hook for stepsAchieved + * + * @example + * ```tsx + * const { data, isLoading } = useStepsAchievedQuery({ variables: { vlevel, vroleId } }); + * + * if (data?.stepsAchieved) { + * console.log(data.stepsAchieved); + * } + * ``` + */ +export function useStepsAchievedQuery< + TData = { + stepsAchieved: boolean | null; + }, +>( + params?: { + variables?: StepsAchievedVariables; + } & Omit< + UseQueryOptions< + { + stepsAchieved: boolean | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useStepsAchievedQuery< + TData = { + stepsAchieved: boolean | null; + }, +>( + params?: { + variables?: StepsAchievedVariables; + } & Omit< + UseQueryOptions< + { + stepsAchieved: boolean | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult { + const variables = params?.variables ?? {}; + const { variables: _variables, ...queryOptions } = params ?? {}; + void _variables; + return useQuery({ + queryKey: stepsAchievedQueryKey(variables), + queryFn: () => getClient().query.stepsAchieved(variables).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch stepsAchieved without React hooks + * + * @example + * ```ts + * const data = await fetchStepsAchievedQuery({ variables: { vlevel, vroleId } }); + * ``` + */ +export async function fetchStepsAchievedQuery(params?: { variables?: StepsAchievedVariables }) { + const variables = params?.variables ?? {}; + return getClient().query.stepsAchieved(variables).unwrap(); +} +/** + * Prefetch stepsAchieved for SSR or cache warming + * + * @example + * ```ts + * await prefetchStepsAchievedQuery(queryClient, { variables: { vlevel, vroleId } }); + * ``` + */ +export async function prefetchStepsAchievedQuery( + queryClient: QueryClient, + params?: { + variables?: StepsAchievedVariables; + } +): Promise { + const variables = params?.variables ?? {}; + await queryClient.prefetchQuery({ + queryKey: stepsAchievedQueryKey(variables), + queryFn: () => getClient().query.stepsAchieved(variables).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useStepsRequiredQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useStepsRequiredQuery.ts new file mode 100644 index 000000000..196567b45 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useStepsRequiredQuery.ts @@ -0,0 +1,106 @@ +/** + * Custom query hook for stepsRequired + * @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 { StepsRequiredVariables } from '../../orm/query'; +import type { AppLevelRequirementConnection } from '../../orm/input-types'; +export type { StepsRequiredVariables } from '../../orm/query'; +/** Query key factory - re-exported from query-keys.ts */ +export const stepsRequiredQueryKey = customQueryKeys.stepsRequired; +/** + * Reads and enables pagination through a set of `AppLevelRequirement`. + * + * @example + * ```tsx + * const { data, isLoading } = useStepsRequiredQuery({ variables: { vlevel, vroleId, first, offset, after } }); + * + * if (data?.stepsRequired) { + * console.log(data.stepsRequired); + * } + * ``` + */ +export function useStepsRequiredQuery< + TData = { + stepsRequired: AppLevelRequirementConnection | null; + }, +>( + params?: { + variables?: StepsRequiredVariables; + } & Omit< + UseQueryOptions< + { + stepsRequired: AppLevelRequirementConnection | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useStepsRequiredQuery< + TData = { + stepsRequired: AppLevelRequirementConnection | null; + }, +>( + params?: { + variables?: StepsRequiredVariables; + } & Omit< + UseQueryOptions< + { + stepsRequired: AppLevelRequirementConnection | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult { + const variables = params?.variables ?? {}; + const { variables: _variables, ...queryOptions } = params ?? {}; + void _variables; + return useQuery({ + queryKey: stepsRequiredQueryKey(variables), + queryFn: () => getClient().query.stepsRequired(variables).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch stepsRequired without React hooks + * + * @example + * ```ts + * const data = await fetchStepsRequiredQuery({ variables: { vlevel, vroleId, first, offset, after } }); + * ``` + */ +export async function fetchStepsRequiredQuery(params?: { variables?: StepsRequiredVariables }) { + const variables = params?.variables ?? {}; + return getClient().query.stepsRequired(variables).unwrap(); +} +/** + * Prefetch stepsRequired for SSR or cache warming + * + * @example + * ```ts + * await prefetchStepsRequiredQuery(queryClient, { variables: { vlevel, vroleId, first, offset, after } }); + * ``` + */ +export async function prefetchStepsRequiredQuery( + queryClient: QueryClient, + params?: { + variables?: StepsRequiredVariables; + } +): Promise { + const variables = params?.variables ?? {}; + await queryClient.prefetchQuery({ + queryKey: stepsRequiredQueryKey(variables), + queryFn: () => getClient().query.stepsRequired(variables).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/query-keys.ts b/sdk/constructive-react/src/admin/hooks/query-keys.ts new file mode 100644 index 000000000..da5741b1c --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/query-keys.ts @@ -0,0 +1,359 @@ +/** + * Centralized query key factory + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +// ============================================================================ +// This file provides a centralized, type-safe query key factory following +// the lukemorales query-key-factory pattern for React Query. +// +// Benefits: +// - Single source of truth for all query keys +// - Type-safe key access with autocomplete +// - Hierarchical invalidation (invalidate all 'user.*' queries) +// - Scoped keys for parent-child relationships +// ============================================================================ + +// ============================================================================ +// Entity Query Keys +// ============================================================================ + +export const appPermissionKeys = { + /** All appPermission queries */ all: ['apppermission'] as const, + /** List query keys */ lists: () => [...appPermissionKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...appPermissionKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appPermissionKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...appPermissionKeys.details(), id] as const, +} as const; +export const orgPermissionKeys = { + /** All orgPermission queries */ all: ['orgpermission'] as const, + /** List query keys */ lists: () => [...orgPermissionKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgPermissionKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgPermissionKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgPermissionKeys.details(), id] as const, +} as const; +export const appLevelRequirementKeys = { + /** All appLevelRequirement queries */ all: ['applevelrequirement'] as const, + /** List query keys */ lists: () => [...appLevelRequirementKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...appLevelRequirementKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appLevelRequirementKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...appLevelRequirementKeys.details(), id] as const, +} as const; +export const orgMemberKeys = { + /** All orgMember queries */ all: ['orgmember'] as const, + /** List query keys */ lists: () => [...orgMemberKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgMemberKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgMemberKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgMemberKeys.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 orgPermissionDefaultKeys = { + /** All orgPermissionDefault queries */ all: ['orgpermissiondefault'] as const, + /** List query keys */ lists: () => [...orgPermissionDefaultKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgPermissionDefaultKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgPermissionDefaultKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgPermissionDefaultKeys.details(), id] as const, +} as const; +export const appAdminGrantKeys = { + /** All appAdminGrant queries */ all: ['appadmingrant'] as const, + /** List query keys */ lists: () => [...appAdminGrantKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...appAdminGrantKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appAdminGrantKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...appAdminGrantKeys.details(), id] as const, +} as const; +export const appOwnerGrantKeys = { + /** All appOwnerGrant queries */ all: ['appownergrant'] as const, + /** List query keys */ lists: () => [...appOwnerGrantKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...appOwnerGrantKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appOwnerGrantKeys.all, 'detail'] as const, + /** 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, + /** List query key with variables */ list: (variables?: object) => + [...orgAdminGrantKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgAdminGrantKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgAdminGrantKeys.details(), id] as const, +} as const; +export const orgOwnerGrantKeys = { + /** All orgOwnerGrant queries */ all: ['orgownergrant'] as const, + /** List query keys */ lists: () => [...orgOwnerGrantKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgOwnerGrantKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgOwnerGrantKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgOwnerGrantKeys.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 appLimitKeys = { + /** All appLimit queries */ all: ['applimit'] as const, + /** List query keys */ lists: () => [...appLimitKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...appLimitKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appLimitKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...appLimitKeys.details(), id] as const, +} as const; +export const appAchievementKeys = { + /** All appAchievement queries */ all: ['appachievement'] as const, + /** List query keys */ lists: () => [...appAchievementKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...appAchievementKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appAchievementKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...appAchievementKeys.details(), id] as const, +} as const; +export const appStepKeys = { + /** All appStep queries */ all: ['appstep'] as const, + /** List query keys */ lists: () => [...appStepKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...appStepKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appStepKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...appStepKeys.details(), id] as const, +} as const; +export const claimedInviteKeys = { + /** All claimedInvite queries */ all: ['claimedinvite'] as const, + /** List query keys */ lists: () => [...claimedInviteKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...claimedInviteKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...claimedInviteKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...claimedInviteKeys.details(), id] as const, +} as const; +export const appGrantKeys = { + /** All appGrant queries */ all: ['appgrant'] as const, + /** List query keys */ lists: () => [...appGrantKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...appGrantKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appGrantKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...appGrantKeys.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 orgLimitKeys = { + /** All orgLimit queries */ all: ['orglimit'] as const, + /** List query keys */ lists: () => [...orgLimitKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgLimitKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgLimitKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgLimitKeys.details(), id] as const, +} as const; +export const orgClaimedInviteKeys = { + /** All orgClaimedInvite queries */ all: ['orgclaimedinvite'] as const, + /** List query keys */ lists: () => [...orgClaimedInviteKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgClaimedInviteKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgClaimedInviteKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgClaimedInviteKeys.details(), id] as const, +} as const; +export const orgGrantKeys = { + /** All orgGrant queries */ all: ['orggrant'] as const, + /** List query keys */ lists: () => [...orgGrantKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgGrantKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgGrantKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgGrantKeys.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, + /** List query key with variables */ list: (variables?: object) => + [...orgMembershipDefaultKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgMembershipDefaultKeys.all, 'detail'] as const, + /** 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, + /** List query key with variables */ list: (variables?: object) => + [...inviteKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...inviteKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...inviteKeys.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 orgMembershipKeys = { + /** All orgMembership queries */ all: ['orgmembership'] as const, + /** List query keys */ lists: () => [...orgMembershipKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgMembershipKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgMembershipKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgMembershipKeys.details(), id] as const, +} as const; +export const orgInviteKeys = { + /** All orgInvite queries */ all: ['orginvite'] as const, + /** List query keys */ lists: () => [...orgInviteKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgInviteKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgInviteKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgInviteKeys.details(), id] as const, +} as const; + +// ============================================================================ +// Custom Query Keys +// ============================================================================ + +export const customQueryKeys = { + /** Query key for appPermissionsGetPaddedMask */ appPermissionsGetPaddedMask: ( + variables?: object + ) => ['appPermissionsGetPaddedMask', variables] as const, + /** Query key for orgPermissionsGetPaddedMask */ orgPermissionsGetPaddedMask: ( + variables?: object + ) => ['orgPermissionsGetPaddedMask', variables] as const, + /** Query key for stepsAchieved */ stepsAchieved: (variables?: object) => + ['stepsAchieved', variables] as const, + /** Query key for appPermissionsGetMask */ appPermissionsGetMask: (variables?: object) => + ['appPermissionsGetMask', variables] as const, + /** Query key for orgPermissionsGetMask */ orgPermissionsGetMask: (variables?: object) => + ['orgPermissionsGetMask', variables] as const, + /** Query key for appPermissionsGetMaskByNames */ appPermissionsGetMaskByNames: ( + variables?: object + ) => ['appPermissionsGetMaskByNames', variables] as const, + /** Query key for orgPermissionsGetMaskByNames */ orgPermissionsGetMaskByNames: ( + variables?: object + ) => ['orgPermissionsGetMaskByNames', variables] as const, + /** Query key for appPermissionsGetByMask */ appPermissionsGetByMask: (variables?: object) => + ['appPermissionsGetByMask', variables] as const, + /** Query key for orgPermissionsGetByMask */ orgPermissionsGetByMask: (variables?: object) => + ['orgPermissionsGetByMask', variables] as const, + /** Query key for stepsRequired */ stepsRequired: (variables?: object) => + ['stepsRequired', variables] as const, +} as const; +/** + +// ============================================================================ +// Unified Query Key Store +// ============================================================================ + + * Unified query key store + * + * Use this for type-safe query key access across your application. + * + * @example + * ```ts + * // Invalidate all user queries + * queryClient.invalidateQueries({ queryKey: queryKeys.user.all }); + * + * // Invalidate user list queries + * queryClient.invalidateQueries({ queryKey: queryKeys.user.lists() }); + * + * // Invalidate specific user + * queryClient.invalidateQueries({ queryKey: queryKeys.user.detail(userId) }); + * ``` + */ +export const queryKeys = { + appPermission: appPermissionKeys, + orgPermission: orgPermissionKeys, + appLevelRequirement: appLevelRequirementKeys, + orgMember: orgMemberKeys, + appPermissionDefault: appPermissionDefaultKeys, + orgPermissionDefault: orgPermissionDefaultKeys, + appAdminGrant: appAdminGrantKeys, + appOwnerGrant: appOwnerGrantKeys, + appLimitDefault: appLimitDefaultKeys, + orgLimitDefault: orgLimitDefaultKeys, + orgAdminGrant: orgAdminGrantKeys, + orgOwnerGrant: orgOwnerGrantKeys, + membershipType: membershipTypeKeys, + appLimit: appLimitKeys, + appAchievement: appAchievementKeys, + appStep: appStepKeys, + claimedInvite: claimedInviteKeys, + appGrant: appGrantKeys, + appMembershipDefault: appMembershipDefaultKeys, + orgLimit: orgLimitKeys, + orgClaimedInvite: orgClaimedInviteKeys, + orgGrant: orgGrantKeys, + orgMembershipDefault: orgMembershipDefaultKeys, + appLevel: appLevelKeys, + invite: inviteKeys, + appMembership: appMembershipKeys, + orgMembership: orgMembershipKeys, + orgInvite: orgInviteKeys, + custom: customQueryKeys, +} as const; +/** Type representing all available query key scopes */ +export type QueryKeyScope = keyof typeof queryKeys; diff --git a/sdk/constructive-react/src/admin/hooks/selection.ts b/sdk/constructive-react/src/admin/hooks/selection.ts new file mode 100644 index 000000000..2952aab64 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/selection.ts @@ -0,0 +1,60 @@ +/** + * Selection helpers for React Query hooks + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export interface SelectionConfig { + fields: TFields; +} + +export interface ListSelectionConfig extends SelectionConfig { + where?: TWhere; + orderBy?: TOrderBy[]; + first?: number; + last?: number; + after?: string; + before?: string; + offset?: number; +} + +function ensureSelectionFields( + selection: SelectionConfig | undefined +): asserts selection is SelectionConfig { + if (!selection || typeof selection !== 'object' || !('fields' in selection)) { + throw new Error( + 'Invalid hook params: `selection.fields` is required. Example: { selection: { fields: { id: true } } }' + ); + } +} + +export function buildSelectionArgs(selection: SelectionConfig): { + select: TFields; +} { + ensureSelectionFields(selection); + return { select: selection.fields }; +} + +export function buildListSelectionArgs( + selection: ListSelectionConfig +): { + select: TFields; + where?: TWhere; + orderBy?: TOrderBy[]; + first?: number; + last?: number; + after?: string; + before?: string; + offset?: number; +} { + ensureSelectionFields(selection); + return { + select: selection.fields, + where: selection.where, + orderBy: selection.orderBy, + first: selection.first, + last: selection.last, + after: selection.after, + before: selection.before, + offset: selection.offset, + }; +} diff --git a/sdk/constructive-react/src/admin/hooks/skills/appAchievement.md b/sdk/constructive-react/src/admin/hooks/skills/appAchievement.md new file mode 100644 index 000000000..f791c42cf --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/skills/appAchievement.md @@ -0,0 +1,34 @@ +# hooks-appAchievement + + + +React Query hooks for AppAchievement data operations + +## 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 new file mode 100644 index 000000000..6bfebeb38 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/skills/appAdminGrant.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..be596bddb --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/skills/appGrant.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..b40b3516f --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/skills/appLevel.md @@ -0,0 +1,34 @@ +# hooks-appLevel + + + +React Query hooks for AppLevel data operations + +## 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 new file mode 100644 index 000000000..b57886891 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/skills/appLevelRequirement.md @@ -0,0 +1,34 @@ +# hooks-appLevelRequirement + + + +React Query hooks for AppLevelRequirement data operations + +## 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 new file mode 100644 index 000000000..ea8cb8cc6 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/skills/appLimit.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..9997fe7ae --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/skills/appLimitDefault.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..ba73841d6 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/skills/appMembership.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..7536d11fb --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/skills/appMembershipDefault.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..3b6971d85 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/skills/appOwnerGrant.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..1c7b49ffa --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/skills/appPermission.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..d0ab1ab74 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/skills/appPermissionDefault.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..567bab5a3 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/skills/appPermissionsGetByMask.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..ec4bfe8b1 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/skills/appPermissionsGetMask.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..9fbcc74d9 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/skills/appPermissionsGetMaskByNames.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..73d5aa1d2 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/skills/appPermissionsGetPaddedMask.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..d14d1b243 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/skills/appStep.md @@ -0,0 +1,34 @@ +# hooks-appStep + + + +React Query hooks for AppStep data operations + +## 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 new file mode 100644 index 000000000..262dff555 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/skills/claimedInvite.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..3be140ad1 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/skills/invite.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..51dd3584b --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/skills/membershipType.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..aac7029bb --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/skills/orgAdminGrant.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..cb033587c --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/skills/orgClaimedInvite.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..f70a2a0f2 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/skills/orgGrant.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..d4eefbee2 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/skills/orgInvite.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..95dfb47a3 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/skills/orgLimit.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..e2e1703ab --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/skills/orgLimitDefault.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..a95727212 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/skills/orgMember.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..ded9a40c5 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/skills/orgMembership.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..21bdb9eb7 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/skills/orgMembershipDefault.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..b26688557 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/skills/orgOwnerGrant.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..babce4b02 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/skills/orgPermission.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..31e59c0dc --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/skills/orgPermissionDefault.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..d21ac66dd --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/skills/orgPermissionsGetByMask.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..cfa5b4302 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/skills/orgPermissionsGetMask.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..7f0f4452d --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/skills/orgPermissionsGetMaskByNames.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..9ff601b07 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/skills/orgPermissionsGetPaddedMask.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..c5e1f6bda --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/skills/stepsAchieved.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..6862ec2dd --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/skills/stepsRequired.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..54388f821 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/skills/submitInviteCode.md @@ -0,0 +1,20 @@ +# 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 new file mode 100644 index 000000000..c61b24f83 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/skills/submitOrgInviteCode.md @@ -0,0 +1,20 @@ +# 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/index.ts b/sdk/constructive-react/src/admin/index.ts new file mode 100644 index 000000000..2b8402539 --- /dev/null +++ b/sdk/constructive-react/src/admin/index.ts @@ -0,0 +1,7 @@ +/** + * GraphQL SDK - auto-generated, do not edit + * @generated by @constructive-io/graphql-codegen + */ +export * from './types'; +export * from './hooks'; +export * from './orm'; diff --git a/sdk/constructive-react/src/admin/orm/README.md b/sdk/constructive-react/src/admin/orm/README.md new file mode 100644 index 000000000..a3154dc57 --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/README.md @@ -0,0 +1,1233 @@ +# ORM Client + +

+ +

+ + + +## Setup + +```typescript +import { createClient } from './orm'; + +const db = createClient({ + endpoint: 'https://api.example.com/graphql', + headers: { Authorization: 'Bearer ' }, +}); +``` + +## Models + +| Model | Operations | +|-------|------------| +| `appPermission` | findMany, findOne, create, update, delete | +| `orgPermission` | findMany, findOne, create, update, delete | +| `appLevelRequirement` | findMany, findOne, create, update, delete | +| `orgMember` | findMany, findOne, create, update, delete | +| `appPermissionDefault` | findMany, findOne, create, update, delete | +| `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 | +| `membershipType` | findMany, findOne, create, update, delete | +| `appLimit` | findMany, findOne, create, update, delete | +| `appAchievement` | findMany, findOne, create, update, delete | +| `appStep` | findMany, findOne, create, update, delete | +| `claimedInvite` | findMany, findOne, create, update, delete | +| `appGrant` | findMany, findOne, create, update, delete | +| `appMembershipDefault` | findMany, findOne, create, update, delete | +| `orgLimit` | findMany, findOne, create, update, delete | +| `orgClaimedInvite` | findMany, findOne, create, update, delete | +| `orgGrant` | findMany, findOne, create, update, delete | +| `orgMembershipDefault` | findMany, findOne, create, update, delete | +| `appLevel` | findMany, findOne, create, update, delete | +| `invite` | 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.appPermission` + +CRUD operations for AppPermission records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `bitnum` | Int | Yes | +| `bitstr` | BitString | Yes | +| `description` | String | Yes | + +**Operations:** + +```typescript +// List all appPermission records +const items = await db.appPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); + +// Get one by id +const item = await db.appPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); + +// Create +const created = await db.appPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appPermission.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgPermission` + +CRUD operations for OrgPermission records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `bitnum` | Int | Yes | +| `bitstr` | BitString | Yes | +| `description` | String | Yes | + +**Operations:** + +```typescript +// List all orgPermission records +const items = await db.orgPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); + +// Get one by id +const item = await db.orgPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); + +// Create +const created = await db.orgPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgPermission.delete({ where: { id: '' } }).execute(); +``` + +### `db.appLevelRequirement` + +CRUD operations for AppLevelRequirement records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `level` | String | Yes | +| `description` | String | Yes | +| `requiredCount` | Int | Yes | +| `priority` | Int | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all appLevelRequirement records +const items = await db.appLevelRequirement.findMany({ select: { id: true, name: true, level: true, description: true, requiredCount: true, priority: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.appLevelRequirement.findOne({ id: '', select: { id: true, name: true, level: true, description: true, requiredCount: true, priority: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.appLevelRequirement.create({ data: { name: '', level: '', description: '', requiredCount: '', priority: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appLevelRequirement.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appLevelRequirement.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgMember` + +CRUD operations for OrgMember records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `isAdmin` | Boolean | Yes | +| `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | + +**Operations:** + +```typescript +// List all orgMember records +const items = await db.orgMember.findMany({ select: { id: true, isAdmin: true, actorId: true, entityId: true } }).execute(); + +// Get one by id +const item = await db.orgMember.findOne({ id: '', select: { id: true, isAdmin: true, actorId: true, entityId: true } }).execute(); + +// Create +const created = await db.orgMember.create({ data: { isAdmin: '', actorId: '', entityId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgMember.update({ where: { id: '' }, data: { isAdmin: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgMember.delete({ where: { id: '' } }).execute(); +``` + +### `db.appPermissionDefault` + +CRUD operations for AppPermissionDefault records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `permissions` | BitString | Yes | + +**Operations:** + +```typescript +// List all appPermissionDefault records +const items = await db.appPermissionDefault.findMany({ select: { id: true, permissions: true } }).execute(); + +// Get one by id +const item = await db.appPermissionDefault.findOne({ id: '', select: { id: true, permissions: true } }).execute(); + +// Create +const created = await db.appPermissionDefault.create({ data: { permissions: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appPermissionDefault.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgPermissionDefault` + +CRUD operations for OrgPermissionDefault records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `permissions` | BitString | Yes | +| `entityId` | UUID | Yes | + +**Operations:** + +```typescript +// List all orgPermissionDefault records +const items = await db.orgPermissionDefault.findMany({ select: { id: true, permissions: true, entityId: true } }).execute(); + +// Get one by id +const item = await db.orgPermissionDefault.findOne({ id: '', select: { id: true, permissions: true, entityId: true } }).execute(); + +// Create +const created = await db.orgPermissionDefault.create({ data: { permissions: '', entityId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgPermissionDefault.delete({ where: { id: '' } }).execute(); +``` + +### `db.appAdminGrant` + +CRUD operations for AppAdminGrant records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `isGrant` | Boolean | Yes | +| `actorId` | UUID | Yes | +| `grantorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all appAdminGrant records +const items = await db.appAdminGrant.findMany({ select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.appAdminGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.appAdminGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appAdminGrant.delete({ where: { id: '' } }).execute(); +``` + +### `db.appOwnerGrant` + +CRUD operations for AppOwnerGrant records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `isGrant` | Boolean | Yes | +| `actorId` | UUID | Yes | +| `grantorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all appOwnerGrant records +const items = await db.appOwnerGrant.findMany({ select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.appOwnerGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.appOwnerGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appOwnerGrant.delete({ where: { id: '' } }).execute(); +``` + +### `db.appLimitDefault` + +CRUD operations for AppLimitDefault records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `max` | Int | Yes | + +**Operations:** + +```typescript +// 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.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); + +// Create +const created = await db.appLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgLimitDefault` + +CRUD operations for OrgLimitDefault records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `max` | Int | Yes | + +**Operations:** + +```typescript +// 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.orgLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); + +// Create +const created = await db.orgLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgLimitDefault.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgAdminGrant` + +CRUD operations for OrgAdminGrant 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 | + +**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(); + +// 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(); + +// Create +const created = await db.orgAdminGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgAdminGrant.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgOwnerGrant` + +CRUD operations for OrgOwnerGrant 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 | + +**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(); + +// 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(); + +// Create +const created = await db.orgOwnerGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgOwnerGrant.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 | + +**Operations:** + +```typescript +// 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.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true } }).execute(); + +// Create +const created = await db.membershipType.create({ data: { name: '', description: '', prefix: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); +``` + +### `db.appLimit` + +CRUD operations for AppLimit records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `actorId` | UUID | Yes | +| `num` | Int | Yes | +| `max` | Int | Yes | + +**Operations:** + +```typescript +// List all appLimit records +const items = await db.appLimit.findMany({ select: { id: true, name: true, actorId: true, num: true, max: true } }).execute(); + +// Get one by id +const item = await db.appLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true } }).execute(); + +// Create +const created = await db.appLimit.create({ data: { name: '', actorId: '', num: '', max: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appLimit.delete({ where: { id: '' } }).execute(); +``` + +### `db.appAchievement` + +CRUD operations for AppAchievement records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `actorId` | UUID | Yes | +| `name` | String | Yes | +| `count` | Int | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all appAchievement records +const items = await db.appAchievement.findMany({ select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.appAchievement.findOne({ id: '', select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.appAchievement.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appAchievement.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appAchievement.delete({ where: { id: '' } }).execute(); +``` + +### `db.appStep` + +CRUD operations for AppStep records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `actorId` | UUID | Yes | +| `name` | String | Yes | +| `count` | Int | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all appStep records +const items = await db.appStep.findMany({ select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.appStep.findOne({ id: '', select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.appStep.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appStep.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appStep.delete({ where: { id: '' } }).execute(); +``` + +### `db.claimedInvite` + +CRUD operations for ClaimedInvite records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `data` | JSON | Yes | +| `senderId` | UUID | Yes | +| `receiverId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all claimedInvite records +const items = await db.claimedInvite.findMany({ select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.claimedInvite.findOne({ id: '', select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.claimedInvite.create({ data: { data: '', senderId: '', receiverId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.claimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.claimedInvite.delete({ where: { id: '' } }).execute(); +``` + +### `db.appGrant` + +CRUD operations for AppGrant records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `permissions` | BitString | Yes | +| `isGrant` | Boolean | Yes | +| `actorId` | UUID | Yes | +| `grantorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all appGrant records +const items = await db.appGrant.findMany({ select: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.appGrant.findOne({ id: '', select: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.appGrant.create({ data: { permissions: '', isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appGrant.delete({ where: { id: '' } }).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.orgLimit` + +CRUD operations for OrgLimit records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `actorId` | UUID | Yes | +| `num` | Int | Yes | +| `max` | Int | Yes | +| `entityId` | UUID | Yes | + +**Operations:** + +```typescript +// List all orgLimit records +const items = await db.orgLimit.findMany({ select: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } }).execute(); + +// Get one by id +const item = await db.orgLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } }).execute(); + +// Create +const created = await db.orgLimit.create({ data: { name: '', actorId: '', num: '', max: '', entityId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgLimit.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgClaimedInvite` + +CRUD operations for OrgClaimedInvite records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `data` | JSON | Yes | +| `senderId` | UUID | Yes | +| `receiverId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `entityId` | UUID | Yes | + +**Operations:** + +```typescript +// List all orgClaimedInvite records +const items = await db.orgClaimedInvite.findMany({ select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); + +// Get one by id +const item = await db.orgClaimedInvite.findOne({ id: '', select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); + +// Create +const created = await db.orgClaimedInvite.create({ data: { data: '', senderId: '', receiverId: '', entityId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgClaimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgClaimedInvite.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgGrant` + +CRUD operations for OrgGrant records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `permissions` | BitString | Yes | +| `isGrant` | Boolean | Yes | +| `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `grantorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all orgGrant records +const items = await db.orgGrant.findMany({ select: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.orgGrant.findOne({ id: '', select: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.orgGrant.create({ data: { permissions: '', isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgGrant.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgMembershipDefault` + +CRUD operations for OrgMembershipDefault records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `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 | + +**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(); + +// 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(); + +// Create +const created = await db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '', deleteMemberCascadeGroups: '', createGroupsCascadeMembers: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgMembershipDefault.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.invite` + +CRUD operations for Invite records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `email` | ConstructiveInternalTypeEmail | Yes | +| `senderId` | UUID | Yes | +| `inviteToken` | String | Yes | +| `inviteValid` | Boolean | Yes | +| `inviteLimit` | Int | Yes | +| `inviteCount` | Int | Yes | +| `multiple` | Boolean | Yes | +| `data` | JSON | Yes | +| `expiresAt` | Datetime | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all invite records +const items = await db.invite.findMany({ select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.invite.findOne({ id: '', select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.invite.create({ data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.invite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.invite.delete({ where: { id: '' } }).execute(); +``` + +### `db.appMembership` + +CRUD operations for AppMembership records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `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 | + +**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(); + +// 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(); + +// Create +const created = await db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appMembership.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgMembership` + +CRUD operations for OrgMembership records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `isBanned` | Boolean | Yes | +| `isDisabled` | Boolean | Yes | +| `isActive` | Boolean | Yes | +| `isOwner` | Boolean | Yes | +| `isAdmin` | Boolean | Yes | +| `permissions` | BitString | Yes | +| `granted` | BitString | Yes | +| `actorId` | UUID | Yes | +| `entityId` | 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(); + +// 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(); + +// Create +const created = await db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgMembership.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgInvite` + +CRUD operations for OrgInvite records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `email` | ConstructiveInternalTypeEmail | Yes | +| `senderId` | UUID | Yes | +| `receiverId` | UUID | Yes | +| `inviteToken` | String | Yes | +| `inviteValid` | Boolean | Yes | +| `inviteLimit` | Int | Yes | +| `inviteCount` | Int | Yes | +| `multiple` | Boolean | Yes | +| `data` | JSON | Yes | +| `expiresAt` | Datetime | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `entityId` | UUID | Yes | + +**Operations:** + +```typescript +// List all orgInvite records +const items = await db.orgInvite.findMany({ select: { 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 } }).execute(); + +// Get one by id +const item = await db.orgInvite.findOne({ id: '', select: { 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 } }).execute(); + +// Create +const created = await db.orgInvite.create({ data: { email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '', entityId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgInvite.delete({ where: { id: '' } }).execute(); +``` + +## Custom Operations + +### `db.query.appPermissionsGetPaddedMask` + +appPermissionsGetPaddedMask + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `mask` | BitString | + +```typescript +const result = await db.query.appPermissionsGetPaddedMask({ mask: '' }).execute(); +``` + +### `db.query.orgPermissionsGetPaddedMask` + +orgPermissionsGetPaddedMask + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `mask` | BitString | + +```typescript +const result = await db.query.orgPermissionsGetPaddedMask({ mask: '' }).execute(); +``` + +### `db.query.stepsAchieved` + +stepsAchieved + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `vlevel` | String | + | `vroleId` | UUID | + +```typescript +const result = await db.query.stepsAchieved({ vlevel: '', vroleId: '' }).execute(); +``` + +### `db.query.appPermissionsGetMask` + +appPermissionsGetMask + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `ids` | [UUID] | + +```typescript +const result = await db.query.appPermissionsGetMask({ ids: '' }).execute(); +``` + +### `db.query.orgPermissionsGetMask` + +orgPermissionsGetMask + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `ids` | [UUID] | + +```typescript +const result = await db.query.orgPermissionsGetMask({ ids: '' }).execute(); +``` + +### `db.query.appPermissionsGetMaskByNames` + +appPermissionsGetMaskByNames + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `names` | [String] | + +```typescript +const result = await db.query.appPermissionsGetMaskByNames({ names: '' }).execute(); +``` + +### `db.query.orgPermissionsGetMaskByNames` + +orgPermissionsGetMaskByNames + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `names` | [String] | + +```typescript +const result = await db.query.orgPermissionsGetMaskByNames({ names: '' }).execute(); +``` + +### `db.query.appPermissionsGetByMask` + +Reads and enables pagination through a set of `AppPermission`. + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `mask` | BitString | + | `first` | Int | + | `offset` | Int | + | `after` | Cursor | + +```typescript +const result = await db.query.appPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); +``` + +### `db.query.orgPermissionsGetByMask` + +Reads and enables pagination through a set of `OrgPermission`. + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `mask` | BitString | + | `first` | Int | + | `offset` | Int | + | `after` | Cursor | + +```typescript +const result = await db.query.orgPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); +``` + +### `db.query.stepsRequired` + +Reads and enables pagination through a set of `AppLevelRequirement`. + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `vlevel` | String | + | `vroleId` | UUID | + | `first` | Int | + | `offset` | Int | + | `after` | Cursor | + +```typescript +const result = await db.query.stepsRequired({ vlevel: '', vroleId: '', first: '', offset: '', after: '' }).execute(); +``` + +### `db.mutation.submitInviteCode` + +submitInviteCode + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SubmitInviteCodeInput (required) | + +```typescript +const result = await db.mutation.submitInviteCode({ input: '' }).execute(); +``` + +### `db.mutation.submitOrgInviteCode` + +submitOrgInviteCode + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SubmitOrgInviteCodeInput (required) | + +```typescript +const result = await db.mutation.submitOrgInviteCode({ input: '' }).execute(); +``` + +--- + +Built by the [Constructive](https://constructive.io) team. + +## Disclaimer + +AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED "AS IS", AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND. + +No developer or entity involved in creating this software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the code, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value. diff --git a/sdk/constructive-react/src/admin/orm/client.ts b/sdk/constructive-react/src/admin/orm/client.ts new file mode 100644 index 000000000..c0f12c466 --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/client.ts @@ -0,0 +1,137 @@ +/** + * ORM Client - Runtime GraphQL executor + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-types'; + +export type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-types'; + +/** + * Default adapter that uses fetch for HTTP requests. + * This is used when no custom adapter is provided. + */ +export class FetchAdapter implements GraphQLAdapter { + private headers: Record; + + constructor( + private endpoint: string, + headers?: Record + ) { + this.headers = headers ?? {}; + } + + async execute(document: string, variables?: Record): Promise> { + const response = await fetch(this.endpoint, { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + Accept: 'application/json', + ...this.headers, + }, + body: JSON.stringify({ + query: document, + variables: variables ?? {}, + }), + }); + + if (!response.ok) { + return { + ok: false, + data: null, + errors: [{ message: `HTTP ${response.status}: ${response.statusText}` }], + }; + } + + const json = (await response.json()) as { + data?: T; + errors?: GraphQLError[]; + }; + + if (json.errors && json.errors.length > 0) { + return { + ok: false, + data: null, + errors: json.errors, + }; + } + + return { + ok: true, + data: json.data as T, + errors: undefined, + }; + } + + setHeaders(headers: Record): void { + this.headers = { ...this.headers, ...headers }; + } + + getEndpoint(): string { + return this.endpoint; + } +} + +/** + * Configuration for creating an ORM client. + * Either provide endpoint (and optional headers) for HTTP requests, + * or provide a custom adapter for alternative execution strategies. + */ +export interface OrmClientConfig { + /** GraphQL endpoint URL (required if adapter not provided) */ + endpoint?: string; + /** Default headers for HTTP requests (only used with endpoint) */ + headers?: Record; + /** Custom adapter for GraphQL execution (overrides endpoint/headers) */ + adapter?: GraphQLAdapter; +} + +/** + * Error thrown when GraphQL request fails + */ +export class GraphQLRequestError extends Error { + constructor( + public readonly errors: GraphQLError[], + public readonly data: unknown = null + ) { + const messages = errors.map((e) => e.message).join('; '); + super(`GraphQL Error: ${messages}`); + this.name = 'GraphQLRequestError'; + } +} + +export class OrmClient { + private adapter: GraphQLAdapter; + + constructor(config: OrmClientConfig) { + if (config.adapter) { + this.adapter = config.adapter; + } else if (config.endpoint) { + this.adapter = new FetchAdapter(config.endpoint, config.headers); + } else { + throw new Error('OrmClientConfig requires either an endpoint or a custom adapter'); + } + } + + async execute(document: string, variables?: Record): Promise> { + return this.adapter.execute(document, variables); + } + + /** + * Set headers for requests. + * Only works if the adapter supports headers. + */ + setHeaders(headers: Record): void { + if (this.adapter.setHeaders) { + this.adapter.setHeaders(headers); + } + } + + /** + * Get the endpoint URL. + * Returns empty string if the adapter doesn't have an endpoint. + */ + getEndpoint(): string { + return this.adapter.getEndpoint?.() ?? ''; + } +} diff --git a/sdk/constructive-react/src/admin/orm/index.ts b/sdk/constructive-react/src/admin/orm/index.ts new file mode 100644 index 000000000..877700d3e --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/index.ts @@ -0,0 +1,102 @@ +/** + * ORM Client - createClient factory + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from './client'; +import type { OrmClientConfig } from './client'; +import { AppPermissionModel } from './models/appPermission'; +import { OrgPermissionModel } from './models/orgPermission'; +import { AppLevelRequirementModel } from './models/appLevelRequirement'; +import { OrgMemberModel } from './models/orgMember'; +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 { MembershipTypeModel } from './models/membershipType'; +import { AppLimitModel } from './models/appLimit'; +import { AppAchievementModel } from './models/appAchievement'; +import { AppStepModel } from './models/appStep'; +import { ClaimedInviteModel } from './models/claimedInvite'; +import { AppGrantModel } from './models/appGrant'; +import { AppMembershipDefaultModel } from './models/appMembershipDefault'; +import { OrgLimitModel } from './models/orgLimit'; +import { OrgClaimedInviteModel } from './models/orgClaimedInvite'; +import { OrgGrantModel } from './models/orgGrant'; +import { OrgMembershipDefaultModel } from './models/orgMembershipDefault'; +import { AppLevelModel } from './models/appLevel'; +import { InviteModel } from './models/invite'; +import { AppMembershipModel } from './models/appMembership'; +import { OrgMembershipModel } from './models/orgMembership'; +import { OrgInviteModel } from './models/orgInvite'; +import { createQueryOperations } from './query'; +import { createMutationOperations } from './mutation'; +export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; +export { GraphQLRequestError } from './client'; +export { QueryBuilder } from './query-builder'; +export * from './select-types'; +export * from './models'; +export { createQueryOperations } from './query'; +export { createMutationOperations } from './mutation'; +/** + * Create an ORM client instance + * + * @example + * ```typescript + * const db = createClient({ + * endpoint: 'https://api.example.com/graphql', + * headers: { Authorization: 'Bearer token' }, + * }); + * + * // Query users + * const users = await db.user.findMany({ + * select: { id: true, name: true }, + * first: 10, + * }).execute(); + * + * // Create a user + * const newUser = await db.user.create({ + * data: { name: 'John', email: 'john@example.com' }, + * select: { id: true }, + * }).execute(); + * ``` + */ +export function createClient(config: OrmClientConfig) { + const client = new OrmClient(config); + return { + appPermission: new AppPermissionModel(client), + orgPermission: new OrgPermissionModel(client), + appLevelRequirement: new AppLevelRequirementModel(client), + orgMember: new OrgMemberModel(client), + appPermissionDefault: new AppPermissionDefaultModel(client), + 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), + membershipType: new MembershipTypeModel(client), + appLimit: new AppLimitModel(client), + appAchievement: new AppAchievementModel(client), + appStep: new AppStepModel(client), + claimedInvite: new ClaimedInviteModel(client), + appGrant: new AppGrantModel(client), + appMembershipDefault: new AppMembershipDefaultModel(client), + orgLimit: new OrgLimitModel(client), + orgClaimedInvite: new OrgClaimedInviteModel(client), + orgGrant: new OrgGrantModel(client), + orgMembershipDefault: new OrgMembershipDefaultModel(client), + appLevel: new AppLevelModel(client), + invite: new InviteModel(client), + appMembership: new AppMembershipModel(client), + orgMembership: new OrgMembershipModel(client), + orgInvite: new OrgInviteModel(client), + query: createQueryOperations(client), + mutation: createMutationOperations(client), + }; +} diff --git a/sdk/constructive-react/src/admin/orm/input-types.ts b/sdk/constructive-react/src/admin/orm/input-types.ts new file mode 100644 index 000000000..aca539f61 --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/input-types.ts @@ -0,0 +1,4294 @@ +/** + * GraphQL types for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +// ============ Scalar Filter Types ============ +export interface StringFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; + includes?: string; + notIncludes?: string; + includesInsensitive?: string; + notIncludesInsensitive?: string; + startsWith?: string; + notStartsWith?: string; + startsWithInsensitive?: string; + notStartsWithInsensitive?: string; + endsWith?: string; + notEndsWith?: string; + endsWithInsensitive?: string; + notEndsWithInsensitive?: string; + like?: string; + notLike?: string; + likeInsensitive?: string; + notLikeInsensitive?: string; +} +export interface IntFilter { + isNull?: boolean; + equalTo?: number; + notEqualTo?: number; + distinctFrom?: number; + notDistinctFrom?: number; + in?: number[]; + notIn?: number[]; + lessThan?: number; + lessThanOrEqualTo?: number; + greaterThan?: number; + greaterThanOrEqualTo?: number; +} +export interface FloatFilter { + isNull?: boolean; + equalTo?: number; + notEqualTo?: number; + distinctFrom?: number; + notDistinctFrom?: number; + in?: number[]; + notIn?: number[]; + lessThan?: number; + lessThanOrEqualTo?: number; + greaterThan?: number; + greaterThanOrEqualTo?: number; +} +export interface BooleanFilter { + isNull?: boolean; + equalTo?: boolean; + notEqualTo?: boolean; +} +export interface UUIDFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; +} +export interface DatetimeFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface DateFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface JSONFilter { + isNull?: boolean; + equalTo?: Record; + notEqualTo?: Record; + distinctFrom?: Record; + notDistinctFrom?: Record; + contains?: Record; + containedBy?: Record; + containsKey?: string; + containsAllKeys?: string[]; + containsAnyKeys?: string[]; +} +export interface BigIntFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface BigFloatFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface BitStringFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; +} +export interface InternetAddressFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; + contains?: string; + containsOrEqualTo?: string; + containedBy?: string; + containedByOrEqualTo?: string; + containsOrContainedBy?: string; +} +export interface FullTextFilter { + matches?: string; +} +export interface StringListFilter { + isNull?: boolean; + equalTo?: string[]; + notEqualTo?: string[]; + distinctFrom?: string[]; + notDistinctFrom?: string[]; + lessThan?: string[]; + lessThanOrEqualTo?: string[]; + greaterThan?: string[]; + greaterThanOrEqualTo?: string[]; + contains?: string[]; + containedBy?: string[]; + overlaps?: string[]; + anyEqualTo?: string; + anyNotEqualTo?: string; + anyLessThan?: string; + anyLessThanOrEqualTo?: string; + anyGreaterThan?: string; + anyGreaterThanOrEqualTo?: string; +} +export interface IntListFilter { + isNull?: boolean; + equalTo?: number[]; + notEqualTo?: number[]; + distinctFrom?: number[]; + notDistinctFrom?: number[]; + lessThan?: number[]; + lessThanOrEqualTo?: number[]; + greaterThan?: number[]; + greaterThanOrEqualTo?: number[]; + contains?: number[]; + containedBy?: number[]; + overlaps?: number[]; + anyEqualTo?: number; + anyNotEqualTo?: number; + anyLessThan?: number; + anyLessThanOrEqualTo?: number; + anyGreaterThan?: number; + anyGreaterThanOrEqualTo?: number; +} +export interface UUIDListFilter { + isNull?: boolean; + equalTo?: string[]; + notEqualTo?: string[]; + distinctFrom?: string[]; + notDistinctFrom?: string[]; + lessThan?: string[]; + lessThanOrEqualTo?: string[]; + greaterThan?: string[]; + greaterThanOrEqualTo?: string[]; + contains?: string[]; + containedBy?: string[]; + overlaps?: string[]; + anyEqualTo?: string; + anyNotEqualTo?: string; + anyLessThan?: string; + anyLessThanOrEqualTo?: string; + anyGreaterThan?: string; + anyGreaterThanOrEqualTo?: string; +} +// ============ Custom Scalar Types ============ +export type ConstructiveInternalTypeEmail = unknown; +export type ConstructiveInternalTypeImage = unknown; +// ============ Entity Types ============ +export interface AppPermission { + id: string; + name?: string | null; + bitnum?: number | null; + bitstr?: string | null; + description?: string | null; +} +export interface OrgPermission { + id: string; + name?: string | null; + bitnum?: number | null; + bitstr?: string | null; + description?: string | null; +} +/** Requirements to achieve a level */ +export interface AppLevelRequirement { + id: string; + name?: string | null; + level?: string | null; + description?: string | null; + requiredCount?: number | null; + priority?: number | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface OrgMember { + id: string; + isAdmin?: boolean | null; + actorId?: string | null; + entityId?: string | null; +} +export interface AppPermissionDefault { + id: string; + permissions?: string | null; +} +export interface OrgPermissionDefault { + id: string; + permissions?: string | null; + entityId?: string | null; +} +export interface AppAdminGrant { + id: string; + isGrant?: boolean | null; + actorId?: string | null; + grantorId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface AppOwnerGrant { + id: string; + isGrant?: boolean | null; + 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; +} +export interface OrgAdminGrant { + id: string; + isGrant?: boolean | null; + actorId?: string | null; + entityId?: string | null; + grantorId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface OrgOwnerGrant { + id: string; + isGrant?: boolean | null; + actorId?: string | null; + entityId?: string | null; + grantorId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface MembershipType { + id: number; + name?: string | null; + description?: string | null; + prefix?: string | null; +} +export interface AppLimit { + id: string; + name?: string | null; + actorId?: string | null; + num?: number | null; + 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. */ +export interface AppAchievement { + id: string; + actorId?: string | null; + name?: string | null; + 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. */ +export interface AppStep { + id: string; + actorId?: string | null; + name?: string | null; + count?: number | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface ClaimedInvite { + id: string; + data?: Record | null; + senderId?: string | null; + receiverId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface AppGrant { + id: string; + permissions?: string | null; + isGrant?: boolean | null; + actorId?: string | null; + grantorId?: string | 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; +} +export interface OrgLimit { + id: string; + name?: string | null; + actorId?: string | null; + num?: number | null; + max?: number | null; + entityId?: string | null; +} +export interface OrgClaimedInvite { + id: string; + data?: Record | null; + senderId?: string | null; + receiverId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; + entityId?: string | null; +} +export interface OrgGrant { + id: string; + permissions?: string | null; + isGrant?: boolean | null; + actorId?: string | null; + entityId?: string | null; + grantorId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface OrgMembershipDefault { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + entityId?: string | null; + deleteMemberCascadeGroups?: boolean | null; + 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; +} +export interface Invite { + id: string; + email?: ConstructiveInternalTypeEmail | null; + senderId?: string | null; + inviteToken?: string | null; + inviteValid?: boolean | null; + inviteLimit?: number | null; + inviteCount?: number | null; + multiple?: boolean | null; + data?: Record | null; + expiresAt?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface AppMembership { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + isBanned?: boolean | null; + isDisabled?: boolean | null; + isVerified?: boolean | null; + isActive?: boolean | null; + isOwner?: boolean | null; + isAdmin?: boolean | null; + permissions?: string | null; + granted?: string | null; + actorId?: string | null; +} +export interface OrgMembership { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + isBanned?: boolean | null; + isDisabled?: boolean | null; + isActive?: boolean | null; + isOwner?: boolean | null; + isAdmin?: boolean | null; + permissions?: string | null; + granted?: string | null; + actorId?: string | null; + entityId?: string | null; +} +export interface OrgInvite { + id: string; + email?: ConstructiveInternalTypeEmail | null; + senderId?: string | null; + receiverId?: string | null; + inviteToken?: string | null; + inviteValid?: boolean | null; + inviteLimit?: number | null; + inviteCount?: number | null; + multiple?: boolean | null; + data?: Record | null; + expiresAt?: string | null; + createdAt?: string | null; + updatedAt?: string | null; + entityId?: string | null; +} +// ============ Relation Helper Types ============ +export interface ConnectionResult { + nodes: T[]; + totalCount: number; + pageInfo: PageInfo; +} +export interface PageInfo { + hasNextPage: boolean; + hasPreviousPage: boolean; + startCursor?: string | null; + endCursor?: string | null; +} +// ============ Entity Relation Types ============ +export interface AppPermissionRelations {} +export interface OrgPermissionRelations {} +export interface AppLevelRequirementRelations {} +export interface OrgMemberRelations {} +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 MembershipTypeRelations {} +export interface AppLimitRelations {} +export interface AppAchievementRelations {} +export interface AppStepRelations {} +export interface ClaimedInviteRelations {} +export interface AppGrantRelations {} +export interface AppMembershipDefaultRelations {} +export interface OrgLimitRelations {} +export interface OrgClaimedInviteRelations {} +export interface OrgGrantRelations {} +export interface OrgMembershipDefaultRelations {} +export interface AppLevelRelations {} +export interface InviteRelations {} +export interface AppMembershipRelations {} +export interface OrgMembershipRelations {} +export interface OrgInviteRelations {} +// ============ Entity Types With Relations ============ +export type AppPermissionWithRelations = AppPermission & AppPermissionRelations; +export type OrgPermissionWithRelations = OrgPermission & OrgPermissionRelations; +export type AppLevelRequirementWithRelations = AppLevelRequirement & AppLevelRequirementRelations; +export type OrgMemberWithRelations = OrgMember & OrgMemberRelations; +export type AppPermissionDefaultWithRelations = AppPermissionDefault & + AppPermissionDefaultRelations; +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 MembershipTypeWithRelations = MembershipType & MembershipTypeRelations; +export type AppLimitWithRelations = AppLimit & AppLimitRelations; +export type AppAchievementWithRelations = AppAchievement & AppAchievementRelations; +export type AppStepWithRelations = AppStep & AppStepRelations; +export type ClaimedInviteWithRelations = ClaimedInvite & ClaimedInviteRelations; +export type AppGrantWithRelations = AppGrant & AppGrantRelations; +export type AppMembershipDefaultWithRelations = AppMembershipDefault & + AppMembershipDefaultRelations; +export type OrgLimitWithRelations = OrgLimit & OrgLimitRelations; +export type OrgClaimedInviteWithRelations = OrgClaimedInvite & OrgClaimedInviteRelations; +export type OrgGrantWithRelations = OrgGrant & OrgGrantRelations; +export type OrgMembershipDefaultWithRelations = OrgMembershipDefault & + OrgMembershipDefaultRelations; +export type AppLevelWithRelations = AppLevel & AppLevelRelations; +export type InviteWithRelations = Invite & InviteRelations; +export type AppMembershipWithRelations = AppMembership & AppMembershipRelations; +export type OrgMembershipWithRelations = OrgMembership & OrgMembershipRelations; +export type OrgInviteWithRelations = OrgInvite & OrgInviteRelations; +// ============ Entity Select Types ============ +export type AppPermissionSelect = { + id?: boolean; + name?: boolean; + bitnum?: boolean; + bitstr?: boolean; + description?: boolean; +}; +export type OrgPermissionSelect = { + id?: boolean; + name?: boolean; + bitnum?: boolean; + bitstr?: boolean; + description?: boolean; +}; +export type AppLevelRequirementSelect = { + id?: boolean; + name?: boolean; + level?: boolean; + description?: boolean; + requiredCount?: boolean; + priority?: boolean; + createdAt?: boolean; + updatedAt?: boolean; +}; +export type OrgMemberSelect = { + id?: boolean; + isAdmin?: boolean; + actorId?: boolean; + entityId?: boolean; +}; +export type AppPermissionDefaultSelect = { + id?: boolean; + permissions?: boolean; +}; +export type OrgPermissionDefaultSelect = { + id?: boolean; + permissions?: boolean; + entityId?: boolean; +}; +export type AppAdminGrantSelect = { + id?: boolean; + isGrant?: boolean; + actorId?: boolean; + grantorId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; +}; +export type AppOwnerGrantSelect = { + id?: boolean; + isGrant?: boolean; + actorId?: boolean; + grantorId?: boolean; + 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; + actorId?: boolean; + entityId?: boolean; + grantorId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; +}; +export type OrgOwnerGrantSelect = { + id?: boolean; + isGrant?: boolean; + actorId?: boolean; + entityId?: boolean; + grantorId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; +}; +export type MembershipTypeSelect = { + id?: boolean; + name?: boolean; + description?: boolean; + prefix?: boolean; +}; +export type AppLimitSelect = { + id?: boolean; + name?: boolean; + actorId?: boolean; + num?: boolean; + max?: boolean; +}; +export type AppAchievementSelect = { + id?: boolean; + actorId?: boolean; + name?: boolean; + count?: boolean; + createdAt?: boolean; + updatedAt?: boolean; +}; +export type AppStepSelect = { + id?: boolean; + actorId?: boolean; + name?: boolean; + count?: boolean; + createdAt?: boolean; + updatedAt?: boolean; +}; +export type ClaimedInviteSelect = { + id?: boolean; + data?: boolean; + senderId?: boolean; + receiverId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; +}; +export type AppGrantSelect = { + id?: boolean; + permissions?: boolean; + isGrant?: boolean; + actorId?: boolean; + grantorId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; +}; +export type AppMembershipDefaultSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + isVerified?: boolean; +}; +export type OrgLimitSelect = { + id?: boolean; + name?: boolean; + actorId?: boolean; + num?: boolean; + max?: boolean; + entityId?: boolean; +}; +export type OrgClaimedInviteSelect = { + id?: boolean; + data?: boolean; + senderId?: boolean; + receiverId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + entityId?: boolean; +}; +export type OrgGrantSelect = { + id?: boolean; + permissions?: boolean; + isGrant?: boolean; + actorId?: boolean; + entityId?: boolean; + grantorId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; +}; +export type OrgMembershipDefaultSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + entityId?: boolean; + 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; + senderId?: boolean; + inviteToken?: boolean; + inviteValid?: boolean; + inviteLimit?: boolean; + inviteCount?: boolean; + multiple?: boolean; + data?: boolean; + expiresAt?: boolean; + createdAt?: boolean; + updatedAt?: 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; +}; +export type OrgMembershipSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + isBanned?: boolean; + isDisabled?: boolean; + isActive?: boolean; + isOwner?: boolean; + isAdmin?: boolean; + permissions?: boolean; + granted?: boolean; + actorId?: boolean; + entityId?: boolean; +}; +export type OrgInviteSelect = { + id?: boolean; + email?: boolean; + senderId?: boolean; + receiverId?: boolean; + inviteToken?: boolean; + inviteValid?: boolean; + inviteLimit?: boolean; + inviteCount?: boolean; + multiple?: boolean; + data?: boolean; + expiresAt?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + entityId?: boolean; +}; +// ============ Table Filter Types ============ +export interface AppPermissionFilter { + id?: UUIDFilter; + name?: StringFilter; + bitnum?: IntFilter; + bitstr?: BitStringFilter; + description?: StringFilter; + and?: AppPermissionFilter[]; + or?: AppPermissionFilter[]; + not?: AppPermissionFilter; +} +export interface OrgPermissionFilter { + id?: UUIDFilter; + name?: StringFilter; + bitnum?: IntFilter; + bitstr?: BitStringFilter; + description?: StringFilter; + and?: OrgPermissionFilter[]; + or?: OrgPermissionFilter[]; + not?: OrgPermissionFilter; +} +export interface AppLevelRequirementFilter { + id?: UUIDFilter; + name?: StringFilter; + level?: StringFilter; + description?: StringFilter; + requiredCount?: IntFilter; + priority?: IntFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: AppLevelRequirementFilter[]; + or?: AppLevelRequirementFilter[]; + not?: AppLevelRequirementFilter; +} +export interface OrgMemberFilter { + id?: UUIDFilter; + isAdmin?: BooleanFilter; + actorId?: UUIDFilter; + entityId?: UUIDFilter; + and?: OrgMemberFilter[]; + or?: OrgMemberFilter[]; + not?: OrgMemberFilter; +} +export interface AppPermissionDefaultFilter { + id?: UUIDFilter; + permissions?: BitStringFilter; + and?: AppPermissionDefaultFilter[]; + or?: AppPermissionDefaultFilter[]; + not?: AppPermissionDefaultFilter; +} +export interface OrgPermissionDefaultFilter { + id?: UUIDFilter; + permissions?: BitStringFilter; + entityId?: UUIDFilter; + and?: OrgPermissionDefaultFilter[]; + or?: OrgPermissionDefaultFilter[]; + not?: OrgPermissionDefaultFilter; +} +export interface AppAdminGrantFilter { + id?: UUIDFilter; + isGrant?: BooleanFilter; + actorId?: UUIDFilter; + grantorId?: UUIDFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: AppAdminGrantFilter[]; + or?: AppAdminGrantFilter[]; + not?: AppAdminGrantFilter; +} +export interface AppOwnerGrantFilter { + id?: UUIDFilter; + isGrant?: BooleanFilter; + actorId?: UUIDFilter; + grantorId?: UUIDFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: 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; + actorId?: UUIDFilter; + entityId?: UUIDFilter; + grantorId?: UUIDFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: OrgAdminGrantFilter[]; + or?: OrgAdminGrantFilter[]; + not?: OrgAdminGrantFilter; +} +export interface OrgOwnerGrantFilter { + id?: UUIDFilter; + isGrant?: BooleanFilter; + actorId?: UUIDFilter; + entityId?: UUIDFilter; + grantorId?: UUIDFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: OrgOwnerGrantFilter[]; + or?: OrgOwnerGrantFilter[]; + not?: OrgOwnerGrantFilter; +} +export interface MembershipTypeFilter { + id?: IntFilter; + name?: StringFilter; + description?: StringFilter; + prefix?: StringFilter; + and?: MembershipTypeFilter[]; + or?: MembershipTypeFilter[]; + not?: MembershipTypeFilter; +} +export interface AppLimitFilter { + id?: UUIDFilter; + name?: StringFilter; + actorId?: UUIDFilter; + num?: IntFilter; + max?: IntFilter; + and?: AppLimitFilter[]; + or?: AppLimitFilter[]; + not?: AppLimitFilter; +} +export interface AppAchievementFilter { + id?: UUIDFilter; + actorId?: UUIDFilter; + name?: StringFilter; + count?: IntFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: AppAchievementFilter[]; + or?: AppAchievementFilter[]; + not?: AppAchievementFilter; +} +export interface AppStepFilter { + id?: UUIDFilter; + actorId?: UUIDFilter; + name?: StringFilter; + count?: IntFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: AppStepFilter[]; + or?: AppStepFilter[]; + not?: AppStepFilter; +} +export interface ClaimedInviteFilter { + id?: UUIDFilter; + data?: JSONFilter; + senderId?: UUIDFilter; + receiverId?: UUIDFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: ClaimedInviteFilter[]; + or?: ClaimedInviteFilter[]; + not?: ClaimedInviteFilter; +} +export interface AppGrantFilter { + id?: UUIDFilter; + permissions?: BitStringFilter; + isGrant?: BooleanFilter; + actorId?: UUIDFilter; + grantorId?: UUIDFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: AppGrantFilter[]; + or?: AppGrantFilter[]; + not?: AppGrantFilter; +} +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 OrgLimitFilter { + id?: UUIDFilter; + name?: StringFilter; + actorId?: UUIDFilter; + num?: IntFilter; + max?: IntFilter; + entityId?: UUIDFilter; + and?: OrgLimitFilter[]; + or?: OrgLimitFilter[]; + not?: OrgLimitFilter; +} +export interface OrgClaimedInviteFilter { + id?: UUIDFilter; + data?: JSONFilter; + senderId?: UUIDFilter; + receiverId?: UUIDFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + entityId?: UUIDFilter; + and?: OrgClaimedInviteFilter[]; + or?: OrgClaimedInviteFilter[]; + not?: OrgClaimedInviteFilter; +} +export interface OrgGrantFilter { + id?: UUIDFilter; + permissions?: BitStringFilter; + isGrant?: BooleanFilter; + actorId?: UUIDFilter; + entityId?: UUIDFilter; + grantorId?: UUIDFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: OrgGrantFilter[]; + or?: OrgGrantFilter[]; + not?: OrgGrantFilter; +} +export interface OrgMembershipDefaultFilter { + id?: UUIDFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + createdBy?: UUIDFilter; + updatedBy?: UUIDFilter; + isApproved?: BooleanFilter; + entityId?: UUIDFilter; + deleteMemberCascadeGroups?: BooleanFilter; + createGroupsCascadeMembers?: BooleanFilter; + and?: 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; + senderId?: UUIDFilter; + inviteToken?: StringFilter; + inviteValid?: BooleanFilter; + inviteLimit?: IntFilter; + inviteCount?: IntFilter; + multiple?: BooleanFilter; + data?: JSONFilter; + expiresAt?: DatetimeFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: InviteFilter[]; + or?: InviteFilter[]; + not?: InviteFilter; +} +export interface AppMembershipFilter { + id?: UUIDFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + createdBy?: UUIDFilter; + updatedBy?: UUIDFilter; + isApproved?: BooleanFilter; + isBanned?: BooleanFilter; + isDisabled?: BooleanFilter; + isVerified?: BooleanFilter; + isActive?: BooleanFilter; + isOwner?: BooleanFilter; + isAdmin?: BooleanFilter; + permissions?: BitStringFilter; + granted?: BitStringFilter; + actorId?: UUIDFilter; + and?: AppMembershipFilter[]; + or?: AppMembershipFilter[]; + not?: AppMembershipFilter; +} +export interface OrgMembershipFilter { + id?: UUIDFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + createdBy?: UUIDFilter; + updatedBy?: UUIDFilter; + isApproved?: BooleanFilter; + isBanned?: BooleanFilter; + isDisabled?: BooleanFilter; + isActive?: BooleanFilter; + isOwner?: BooleanFilter; + isAdmin?: BooleanFilter; + permissions?: BitStringFilter; + granted?: BitStringFilter; + actorId?: UUIDFilter; + entityId?: UUIDFilter; + and?: OrgMembershipFilter[]; + or?: OrgMembershipFilter[]; + not?: OrgMembershipFilter; +} +export interface OrgInviteFilter { + id?: UUIDFilter; + email?: StringFilter; + senderId?: UUIDFilter; + receiverId?: UUIDFilter; + inviteToken?: StringFilter; + inviteValid?: BooleanFilter; + inviteLimit?: IntFilter; + inviteCount?: IntFilter; + multiple?: BooleanFilter; + data?: JSONFilter; + expiresAt?: DatetimeFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + entityId?: UUIDFilter; + and?: OrgInviteFilter[]; + or?: OrgInviteFilter[]; + not?: OrgInviteFilter; +} +// ============ Table Condition Types ============ +export interface AppPermissionCondition { + id?: string | null; + name?: string | null; + bitnum?: number | null; + bitstr?: string | null; + description?: string | null; +} +export interface OrgPermissionCondition { + id?: string | null; + name?: string | null; + bitnum?: number | null; + bitstr?: string | null; + description?: string | null; +} +export interface AppLevelRequirementCondition { + id?: string | null; + name?: string | null; + level?: string | null; + description?: string | null; + requiredCount?: number | null; + priority?: number | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface OrgMemberCondition { + id?: string | null; + isAdmin?: boolean | null; + actorId?: string | null; + entityId?: string | null; +} +export interface AppPermissionDefaultCondition { + id?: string | null; + permissions?: string | null; +} +export interface OrgPermissionDefaultCondition { + id?: string | null; + permissions?: string | null; + entityId?: string | null; +} +export interface AppAdminGrantCondition { + id?: string | null; + isGrant?: boolean | null; + actorId?: string | null; + grantorId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface AppOwnerGrantCondition { + id?: string | null; + isGrant?: boolean | null; + actorId?: string | null; + grantorId?: string | null; + 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; + actorId?: string | null; + entityId?: string | null; + grantorId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface OrgOwnerGrantCondition { + id?: string | null; + isGrant?: boolean | null; + actorId?: string | null; + entityId?: string | null; + grantorId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface MembershipTypeCondition { + id?: number | null; + name?: string | null; + description?: string | null; + prefix?: string | null; +} +export interface AppLimitCondition { + id?: string | null; + name?: string | null; + actorId?: string | null; + num?: number | null; + max?: number | null; +} +export interface AppAchievementCondition { + id?: string | null; + actorId?: string | null; + name?: string | null; + count?: number | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface AppStepCondition { + id?: string | null; + actorId?: string | null; + name?: string | null; + count?: number | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface ClaimedInviteCondition { + id?: string | null; + data?: unknown | null; + senderId?: string | null; + receiverId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface AppGrantCondition { + id?: string | null; + permissions?: string | null; + isGrant?: boolean | null; + actorId?: string | null; + grantorId?: string | null; + 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 OrgLimitCondition { + id?: string | null; + name?: string | null; + actorId?: string | null; + num?: number | null; + max?: number | null; + entityId?: string | null; +} +export interface OrgClaimedInviteCondition { + id?: string | null; + data?: unknown | null; + senderId?: string | null; + receiverId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; + entityId?: string | null; +} +export interface OrgGrantCondition { + id?: string | null; + permissions?: string | null; + isGrant?: boolean | null; + actorId?: string | null; + entityId?: string | null; + grantorId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface OrgMembershipDefaultCondition { + id?: string | null; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + entityId?: string | null; + 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; + senderId?: string | null; + inviteToken?: string | null; + inviteValid?: boolean | null; + inviteLimit?: number | null; + inviteCount?: number | null; + multiple?: boolean | null; + data?: unknown | null; + expiresAt?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface AppMembershipCondition { + id?: string | null; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + isBanned?: boolean | null; + isDisabled?: boolean | null; + isVerified?: boolean | null; + isActive?: boolean | null; + isOwner?: boolean | null; + isAdmin?: boolean | null; + permissions?: string | null; + granted?: string | null; + actorId?: string | null; +} +export interface OrgMembershipCondition { + id?: string | null; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + isBanned?: boolean | null; + isDisabled?: boolean | null; + isActive?: boolean | null; + isOwner?: boolean | null; + isAdmin?: boolean | null; + permissions?: string | null; + granted?: string | null; + actorId?: string | null; + entityId?: string | null; +} +export interface OrgInviteCondition { + id?: string | null; + email?: unknown | null; + senderId?: string | null; + receiverId?: string | null; + inviteToken?: string | null; + inviteValid?: boolean | null; + inviteLimit?: number | null; + inviteCount?: number | null; + multiple?: boolean | null; + data?: unknown | null; + expiresAt?: string | null; + createdAt?: string | null; + updatedAt?: string | null; + entityId?: string | null; +} +// ============ OrderBy Types ============ +export type AppPermissionOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'BITNUM_ASC' + | 'BITNUM_DESC' + | 'BITSTR_ASC' + | 'BITSTR_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC'; +export type OrgPermissionOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'BITNUM_ASC' + | 'BITNUM_DESC' + | 'BITSTR_ASC' + | 'BITSTR_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC'; +export type AppLevelRequirementOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'LEVEL_ASC' + | 'LEVEL_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'REQUIRED_COUNT_ASC' + | 'REQUIRED_COUNT_DESC' + | 'PRIORITY_ASC' + | 'PRIORITY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type OrgMemberOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_ADMIN_ASC' + | 'IS_ADMIN_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_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 OrgPermissionDefaultOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'PERMISSIONS_ASC' + | 'PERMISSIONS_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; +export type AppAdminGrantOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type AppOwnerGrantOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' + | 'CREATED_AT_ASC' + | '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 = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type OrgOwnerGrantOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type MembershipTypeOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC'; +export type AppLimitOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'NUM_ASC' + | 'NUM_DESC' + | 'MAX_ASC' + | 'MAX_DESC'; +export type AppAchievementOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'COUNT_ASC' + | 'COUNT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type AppStepOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'COUNT_ASC' + | 'COUNT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type ClaimedInviteOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'SENDER_ID_ASC' + | 'SENDER_ID_DESC' + | 'RECEIVER_ID_ASC' + | 'RECEIVER_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type AppGrantOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'PERMISSIONS_ASC' + | 'PERMISSIONS_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' + | 'CREATED_AT_ASC' + | '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 OrgLimitOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'NUM_ASC' + | 'NUM_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; +export type OrgClaimedInviteOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'SENDER_ID_ASC' + | 'SENDER_ID_DESC' + | 'RECEIVER_ID_ASC' + | 'RECEIVER_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; +export type OrgGrantOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'PERMISSIONS_ASC' + | 'PERMISSIONS_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type OrgMembershipDefaultOrderBy = + | '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' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'DELETE_MEMBER_CASCADE_GROUPS_ASC' + | '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' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'EMAIL_ASC' + | 'EMAIL_DESC' + | 'SENDER_ID_ASC' + | 'SENDER_ID_DESC' + | 'INVITE_TOKEN_ASC' + | 'INVITE_TOKEN_DESC' + | 'INVITE_VALID_ASC' + | 'INVITE_VALID_DESC' + | 'INVITE_LIMIT_ASC' + | 'INVITE_LIMIT_DESC' + | 'INVITE_COUNT_ASC' + | 'INVITE_COUNT_DESC' + | 'MULTIPLE_ASC' + | 'MULTIPLE_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type AppMembershipOrderBy = + | '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_BANNED_ASC' + | 'IS_BANNED_DESC' + | 'IS_DISABLED_ASC' + | 'IS_DISABLED_DESC' + | 'IS_VERIFIED_ASC' + | 'IS_VERIFIED_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' + | 'IS_OWNER_ASC' + | 'IS_OWNER_DESC' + | 'IS_ADMIN_ASC' + | 'IS_ADMIN_DESC' + | 'PERMISSIONS_ASC' + | 'PERMISSIONS_DESC' + | 'GRANTED_ASC' + | 'GRANTED_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC'; +export type OrgMembershipOrderBy = + | '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_BANNED_ASC' + | 'IS_BANNED_DESC' + | 'IS_DISABLED_ASC' + | 'IS_DISABLED_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' + | 'IS_OWNER_ASC' + | 'IS_OWNER_DESC' + | 'IS_ADMIN_ASC' + | 'IS_ADMIN_DESC' + | 'PERMISSIONS_ASC' + | 'PERMISSIONS_DESC' + | 'GRANTED_ASC' + | 'GRANTED_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; +export type OrgInviteOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'EMAIL_ASC' + | 'EMAIL_DESC' + | 'SENDER_ID_ASC' + | 'SENDER_ID_DESC' + | 'RECEIVER_ID_ASC' + | 'RECEIVER_ID_DESC' + | 'INVITE_TOKEN_ASC' + | 'INVITE_TOKEN_DESC' + | 'INVITE_VALID_ASC' + | 'INVITE_VALID_DESC' + | 'INVITE_LIMIT_ASC' + | 'INVITE_LIMIT_DESC' + | 'INVITE_COUNT_ASC' + | 'INVITE_COUNT_DESC' + | 'MULTIPLE_ASC' + | 'MULTIPLE_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; +// ============ CRUD Input Types ============ +export interface CreateAppPermissionInput { + clientMutationId?: string; + appPermission: { + name?: string; + bitnum?: number; + bitstr?: string; + description?: string; + }; +} +export interface AppPermissionPatch { + name?: string | null; + bitnum?: number | null; + bitstr?: string | null; + description?: string | null; +} +export interface UpdateAppPermissionInput { + clientMutationId?: string; + id: string; + appPermissionPatch: AppPermissionPatch; +} +export interface DeleteAppPermissionInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgPermissionInput { + clientMutationId?: string; + orgPermission: { + name?: string; + bitnum?: number; + bitstr?: string; + description?: string; + }; +} +export interface OrgPermissionPatch { + name?: string | null; + bitnum?: number | null; + bitstr?: string | null; + description?: string | null; +} +export interface UpdateOrgPermissionInput { + clientMutationId?: string; + id: string; + orgPermissionPatch: OrgPermissionPatch; +} +export interface DeleteOrgPermissionInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppLevelRequirementInput { + clientMutationId?: string; + appLevelRequirement: { + name: string; + level: string; + description?: string; + requiredCount?: number; + priority?: number; + }; +} +export interface AppLevelRequirementPatch { + name?: string | null; + level?: string | null; + description?: string | null; + requiredCount?: number | null; + priority?: number | null; +} +export interface UpdateAppLevelRequirementInput { + clientMutationId?: string; + id: string; + appLevelRequirementPatch: AppLevelRequirementPatch; +} +export interface DeleteAppLevelRequirementInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgMemberInput { + clientMutationId?: string; + orgMember: { + isAdmin?: boolean; + actorId: string; + entityId: string; + }; +} +export interface OrgMemberPatch { + isAdmin?: boolean | null; + actorId?: string | null; + entityId?: string | null; +} +export interface UpdateOrgMemberInput { + clientMutationId?: string; + id: string; + orgMemberPatch: OrgMemberPatch; +} +export interface DeleteOrgMemberInput { + 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 CreateOrgPermissionDefaultInput { + clientMutationId?: string; + orgPermissionDefault: { + permissions?: string; + entityId: string; + }; +} +export interface OrgPermissionDefaultPatch { + permissions?: string | null; + entityId?: string | null; +} +export interface UpdateOrgPermissionDefaultInput { + clientMutationId?: string; + id: string; + orgPermissionDefaultPatch: OrgPermissionDefaultPatch; +} +export interface DeleteOrgPermissionDefaultInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppAdminGrantInput { + clientMutationId?: string; + appAdminGrant: { + isGrant?: boolean; + actorId: string; + grantorId?: string; + }; +} +export interface AppAdminGrantPatch { + isGrant?: boolean | null; + actorId?: string | null; + grantorId?: string | null; +} +export interface UpdateAppAdminGrantInput { + clientMutationId?: string; + id: string; + appAdminGrantPatch: AppAdminGrantPatch; +} +export interface DeleteAppAdminGrantInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppOwnerGrantInput { + clientMutationId?: string; + appOwnerGrant: { + isGrant?: boolean; + actorId: string; + grantorId?: string; + }; +} +export interface AppOwnerGrantPatch { + isGrant?: boolean | null; + actorId?: string | null; + grantorId?: string | null; +} +export interface UpdateAppOwnerGrantInput { + clientMutationId?: string; + id: string; + appOwnerGrantPatch: AppOwnerGrantPatch; +} +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: { + isGrant?: boolean; + actorId: string; + entityId: string; + grantorId?: string; + }; +} +export interface OrgAdminGrantPatch { + isGrant?: boolean | null; + actorId?: string | null; + entityId?: string | null; + grantorId?: string | null; +} +export interface UpdateOrgAdminGrantInput { + clientMutationId?: string; + id: string; + orgAdminGrantPatch: OrgAdminGrantPatch; +} +export interface DeleteOrgAdminGrantInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgOwnerGrantInput { + clientMutationId?: string; + orgOwnerGrant: { + isGrant?: boolean; + actorId: string; + entityId: string; + grantorId?: string; + }; +} +export interface OrgOwnerGrantPatch { + isGrant?: boolean | null; + actorId?: string | null; + entityId?: string | null; + grantorId?: string | null; +} +export interface UpdateOrgOwnerGrantInput { + clientMutationId?: string; + id: string; + orgOwnerGrantPatch: OrgOwnerGrantPatch; +} +export interface DeleteOrgOwnerGrantInput { + 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 CreateAppLimitInput { + clientMutationId?: string; + appLimit: { + name?: string; + actorId: string; + num?: number; + max?: number; + }; +} +export interface AppLimitPatch { + name?: string | null; + actorId?: string | null; + num?: number | null; + max?: number | null; +} +export interface UpdateAppLimitInput { + clientMutationId?: string; + id: string; + appLimitPatch: AppLimitPatch; +} +export interface DeleteAppLimitInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppAchievementInput { + clientMutationId?: string; + appAchievement: { + actorId?: string; + name: string; + count?: number; + }; +} +export interface AppAchievementPatch { + actorId?: string | null; + name?: string | null; + count?: number | null; +} +export interface UpdateAppAchievementInput { + clientMutationId?: string; + id: string; + appAchievementPatch: AppAchievementPatch; +} +export interface DeleteAppAchievementInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppStepInput { + clientMutationId?: string; + appStep: { + actorId?: string; + name: string; + count?: number; + }; +} +export interface AppStepPatch { + actorId?: string | null; + name?: string | null; + count?: number | null; +} +export interface UpdateAppStepInput { + clientMutationId?: string; + id: string; + appStepPatch: AppStepPatch; +} +export interface DeleteAppStepInput { + clientMutationId?: string; + id: string; +} +export interface CreateClaimedInviteInput { + clientMutationId?: string; + claimedInvite: { + data?: Record; + senderId?: string; + receiverId?: string; + }; +} +export interface ClaimedInvitePatch { + data?: Record | null; + senderId?: string | null; + receiverId?: string | null; +} +export interface UpdateClaimedInviteInput { + clientMutationId?: string; + id: string; + claimedInvitePatch: ClaimedInvitePatch; +} +export interface DeleteClaimedInviteInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppGrantInput { + clientMutationId?: string; + appGrant: { + permissions?: string; + isGrant?: boolean; + actorId: string; + grantorId?: string; + }; +} +export interface AppGrantPatch { + permissions?: string | null; + isGrant?: boolean | null; + actorId?: string | null; + grantorId?: string | null; +} +export interface UpdateAppGrantInput { + clientMutationId?: string; + id: string; + appGrantPatch: AppGrantPatch; +} +export interface DeleteAppGrantInput { + clientMutationId?: string; + id: 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 CreateOrgLimitInput { + clientMutationId?: string; + orgLimit: { + name?: string; + actorId: string; + num?: number; + max?: number; + entityId: string; + }; +} +export interface OrgLimitPatch { + name?: string | null; + actorId?: string | null; + num?: number | null; + max?: number | null; + entityId?: string | null; +} +export interface UpdateOrgLimitInput { + clientMutationId?: string; + id: string; + orgLimitPatch: OrgLimitPatch; +} +export interface DeleteOrgLimitInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgClaimedInviteInput { + clientMutationId?: string; + orgClaimedInvite: { + data?: Record; + senderId?: string; + receiverId?: string; + entityId: string; + }; +} +export interface OrgClaimedInvitePatch { + data?: Record | null; + senderId?: string | null; + receiverId?: string | null; + entityId?: string | null; +} +export interface UpdateOrgClaimedInviteInput { + clientMutationId?: string; + id: string; + orgClaimedInvitePatch: OrgClaimedInvitePatch; +} +export interface DeleteOrgClaimedInviteInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgGrantInput { + clientMutationId?: string; + orgGrant: { + permissions?: string; + isGrant?: boolean; + actorId: string; + entityId: string; + grantorId?: string; + }; +} +export interface OrgGrantPatch { + permissions?: string | null; + isGrant?: boolean | null; + actorId?: string | null; + entityId?: string | null; + grantorId?: string | null; +} +export interface UpdateOrgGrantInput { + clientMutationId?: string; + id: string; + orgGrantPatch: OrgGrantPatch; +} +export interface DeleteOrgGrantInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgMembershipDefaultInput { + clientMutationId?: string; + orgMembershipDefault: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + entityId: string; + deleteMemberCascadeGroups?: boolean; + createGroupsCascadeMembers?: boolean; + }; +} +export interface OrgMembershipDefaultPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + entityId?: string | null; + deleteMemberCascadeGroups?: boolean | null; + createGroupsCascadeMembers?: boolean | null; +} +export interface UpdateOrgMembershipDefaultInput { + clientMutationId?: string; + id: string; + orgMembershipDefaultPatch: OrgMembershipDefaultPatch; +} +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: { + email?: ConstructiveInternalTypeEmail; + senderId?: string; + inviteToken?: string; + inviteValid?: boolean; + inviteLimit?: number; + inviteCount?: number; + multiple?: boolean; + data?: Record; + expiresAt?: string; + }; +} +export interface InvitePatch { + email?: ConstructiveInternalTypeEmail | null; + senderId?: string | null; + inviteToken?: string | null; + inviteValid?: boolean | null; + inviteLimit?: number | null; + inviteCount?: number | null; + multiple?: boolean | null; + data?: Record | null; + expiresAt?: string | null; +} +export interface UpdateInviteInput { + clientMutationId?: string; + id: string; + invitePatch: InvitePatch; +} +export interface DeleteInviteInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppMembershipInput { + clientMutationId?: string; + appMembership: { + 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 AppMembershipPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + isBanned?: boolean | null; + isDisabled?: boolean | null; + isVerified?: boolean | null; + isActive?: boolean | null; + isOwner?: boolean | null; + isAdmin?: boolean | null; + permissions?: string | null; + granted?: string | null; + actorId?: string | null; +} +export interface UpdateAppMembershipInput { + clientMutationId?: string; + id: string; + appMembershipPatch: AppMembershipPatch; +} +export interface DeleteAppMembershipInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgMembershipInput { + clientMutationId?: string; + orgMembership: { + 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 OrgMembershipPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + isBanned?: boolean | null; + isDisabled?: boolean | null; + isActive?: boolean | null; + isOwner?: boolean | null; + isAdmin?: boolean | null; + permissions?: string | null; + granted?: string | null; + actorId?: string | null; + entityId?: string | null; +} +export interface UpdateOrgMembershipInput { + clientMutationId?: string; + id: string; + orgMembershipPatch: OrgMembershipPatch; +} +export interface DeleteOrgMembershipInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgInviteInput { + clientMutationId?: string; + orgInvite: { + email?: ConstructiveInternalTypeEmail; + senderId?: string; + receiverId?: string; + inviteToken?: string; + inviteValid?: boolean; + inviteLimit?: number; + inviteCount?: number; + multiple?: boolean; + data?: Record; + expiresAt?: string; + entityId: string; + }; +} +export interface OrgInvitePatch { + email?: ConstructiveInternalTypeEmail | null; + senderId?: string | null; + receiverId?: string | null; + inviteToken?: string | null; + inviteValid?: boolean | null; + inviteLimit?: number | null; + inviteCount?: number | null; + multiple?: boolean | null; + data?: Record | null; + expiresAt?: string | null; + entityId?: string | null; +} +export interface UpdateOrgInviteInput { + clientMutationId?: string; + id: string; + orgInvitePatch: OrgInvitePatch; +} +export interface DeleteOrgInviteInput { + clientMutationId?: string; + id: string; +} +// ============ Connection Fields Map ============ +export const connectionFieldsMap = {} as Record>; +// ============ Custom Input Types (from schema) ============ +export interface SubmitInviteCodeInput { + clientMutationId?: string; + token?: string; +} +export interface SubmitOrgInviteCodeInput { + clientMutationId?: string; + token?: string; +} +/** A connection to a list of `AppPermission` values. */ +// ============ Payload/Return Types (for custom operations) ============ +export interface AppPermissionConnection { + nodes: AppPermission[]; + edges: AppPermissionEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export type AppPermissionConnectionSelect = { + nodes?: { + select: AppPermissionSelect; + }; + edges?: { + select: AppPermissionEdgeSelect; + }; + pageInfo?: { + select: PageInfoSelect; + }; + totalCount?: boolean; +}; +/** A connection to a list of `OrgPermission` values. */ +export interface OrgPermissionConnection { + nodes: OrgPermission[]; + edges: OrgPermissionEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export type OrgPermissionConnectionSelect = { + nodes?: { + select: OrgPermissionSelect; + }; + edges?: { + select: OrgPermissionEdgeSelect; + }; + pageInfo?: { + select: PageInfoSelect; + }; + totalCount?: boolean; +}; +/** A connection to a list of `AppLevelRequirement` values. */ +export interface AppLevelRequirementConnection { + nodes: AppLevelRequirement[]; + edges: AppLevelRequirementEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export type AppLevelRequirementConnectionSelect = { + nodes?: { + select: AppLevelRequirementSelect; + }; + edges?: { + select: AppLevelRequirementEdgeSelect; + }; + pageInfo?: { + select: PageInfoSelect; + }; + totalCount?: boolean; +}; +export interface SubmitInviteCodePayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type SubmitInviteCodePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface SubmitOrgInviteCodePayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type SubmitOrgInviteCodePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface CreateAppPermissionPayload { + clientMutationId?: string | null; + /** The `AppPermission` that was created by this mutation. */ + appPermission?: AppPermission | null; + appPermissionEdge?: AppPermissionEdge | null; +} +export type CreateAppPermissionPayloadSelect = { + clientMutationId?: boolean; + appPermission?: { + select: AppPermissionSelect; + }; + appPermissionEdge?: { + select: AppPermissionEdgeSelect; + }; +}; +export interface UpdateAppPermissionPayload { + clientMutationId?: string | null; + /** The `AppPermission` that was updated by this mutation. */ + appPermission?: AppPermission | null; + appPermissionEdge?: AppPermissionEdge | null; +} +export type UpdateAppPermissionPayloadSelect = { + clientMutationId?: boolean; + appPermission?: { + select: AppPermissionSelect; + }; + appPermissionEdge?: { + select: AppPermissionEdgeSelect; + }; +}; +export interface DeleteAppPermissionPayload { + clientMutationId?: string | null; + /** The `AppPermission` that was deleted by this mutation. */ + appPermission?: AppPermission | null; + appPermissionEdge?: AppPermissionEdge | null; +} +export type DeleteAppPermissionPayloadSelect = { + clientMutationId?: boolean; + appPermission?: { + select: AppPermissionSelect; + }; + appPermissionEdge?: { + select: AppPermissionEdgeSelect; + }; +}; +export interface CreateOrgPermissionPayload { + clientMutationId?: string | null; + /** The `OrgPermission` that was created by this mutation. */ + orgPermission?: OrgPermission | null; + orgPermissionEdge?: OrgPermissionEdge | null; +} +export type CreateOrgPermissionPayloadSelect = { + clientMutationId?: boolean; + orgPermission?: { + select: OrgPermissionSelect; + }; + orgPermissionEdge?: { + select: OrgPermissionEdgeSelect; + }; +}; +export interface UpdateOrgPermissionPayload { + clientMutationId?: string | null; + /** The `OrgPermission` that was updated by this mutation. */ + orgPermission?: OrgPermission | null; + orgPermissionEdge?: OrgPermissionEdge | null; +} +export type UpdateOrgPermissionPayloadSelect = { + clientMutationId?: boolean; + orgPermission?: { + select: OrgPermissionSelect; + }; + orgPermissionEdge?: { + select: OrgPermissionEdgeSelect; + }; +}; +export interface DeleteOrgPermissionPayload { + clientMutationId?: string | null; + /** The `OrgPermission` that was deleted by this mutation. */ + orgPermission?: OrgPermission | null; + orgPermissionEdge?: OrgPermissionEdge | null; +} +export type DeleteOrgPermissionPayloadSelect = { + clientMutationId?: boolean; + orgPermission?: { + select: OrgPermissionSelect; + }; + orgPermissionEdge?: { + select: OrgPermissionEdgeSelect; + }; +}; +export interface CreateAppLevelRequirementPayload { + clientMutationId?: string | null; + /** The `AppLevelRequirement` that was created by this mutation. */ + appLevelRequirement?: AppLevelRequirement | null; + appLevelRequirementEdge?: AppLevelRequirementEdge | null; +} +export type CreateAppLevelRequirementPayloadSelect = { + clientMutationId?: boolean; + appLevelRequirement?: { + select: AppLevelRequirementSelect; + }; + appLevelRequirementEdge?: { + select: AppLevelRequirementEdgeSelect; + }; +}; +export interface UpdateAppLevelRequirementPayload { + clientMutationId?: string | null; + /** The `AppLevelRequirement` that was updated by this mutation. */ + appLevelRequirement?: AppLevelRequirement | null; + appLevelRequirementEdge?: AppLevelRequirementEdge | null; +} +export type UpdateAppLevelRequirementPayloadSelect = { + clientMutationId?: boolean; + appLevelRequirement?: { + select: AppLevelRequirementSelect; + }; + appLevelRequirementEdge?: { + select: AppLevelRequirementEdgeSelect; + }; +}; +export interface DeleteAppLevelRequirementPayload { + clientMutationId?: string | null; + /** The `AppLevelRequirement` that was deleted by this mutation. */ + appLevelRequirement?: AppLevelRequirement | null; + appLevelRequirementEdge?: AppLevelRequirementEdge | null; +} +export type DeleteAppLevelRequirementPayloadSelect = { + clientMutationId?: boolean; + appLevelRequirement?: { + select: AppLevelRequirementSelect; + }; + appLevelRequirementEdge?: { + select: AppLevelRequirementEdgeSelect; + }; +}; +export interface CreateOrgMemberPayload { + clientMutationId?: string | null; + /** The `OrgMember` that was created by this mutation. */ + orgMember?: OrgMember | null; + orgMemberEdge?: OrgMemberEdge | null; +} +export type CreateOrgMemberPayloadSelect = { + clientMutationId?: boolean; + orgMember?: { + select: OrgMemberSelect; + }; + orgMemberEdge?: { + select: OrgMemberEdgeSelect; + }; +}; +export interface UpdateOrgMemberPayload { + clientMutationId?: string | null; + /** The `OrgMember` that was updated by this mutation. */ + orgMember?: OrgMember | null; + orgMemberEdge?: OrgMemberEdge | null; +} +export type UpdateOrgMemberPayloadSelect = { + clientMutationId?: boolean; + orgMember?: { + select: OrgMemberSelect; + }; + orgMemberEdge?: { + select: OrgMemberEdgeSelect; + }; +}; +export interface DeleteOrgMemberPayload { + clientMutationId?: string | null; + /** The `OrgMember` that was deleted by this mutation. */ + orgMember?: OrgMember | null; + orgMemberEdge?: OrgMemberEdge | null; +} +export type DeleteOrgMemberPayloadSelect = { + clientMutationId?: boolean; + orgMember?: { + select: OrgMemberSelect; + }; + orgMemberEdge?: { + select: OrgMemberEdgeSelect; + }; +}; +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 CreateOrgPermissionDefaultPayload { + clientMutationId?: string | null; + /** The `OrgPermissionDefault` that was created by this mutation. */ + orgPermissionDefault?: OrgPermissionDefault | null; + orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; +} +export type CreateOrgPermissionDefaultPayloadSelect = { + clientMutationId?: boolean; + orgPermissionDefault?: { + select: OrgPermissionDefaultSelect; + }; + orgPermissionDefaultEdge?: { + select: OrgPermissionDefaultEdgeSelect; + }; +}; +export interface UpdateOrgPermissionDefaultPayload { + clientMutationId?: string | null; + /** The `OrgPermissionDefault` that was updated by this mutation. */ + orgPermissionDefault?: OrgPermissionDefault | null; + orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; +} +export type UpdateOrgPermissionDefaultPayloadSelect = { + clientMutationId?: boolean; + orgPermissionDefault?: { + select: OrgPermissionDefaultSelect; + }; + orgPermissionDefaultEdge?: { + select: OrgPermissionDefaultEdgeSelect; + }; +}; +export interface DeleteOrgPermissionDefaultPayload { + clientMutationId?: string | null; + /** The `OrgPermissionDefault` that was deleted by this mutation. */ + orgPermissionDefault?: OrgPermissionDefault | null; + orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; +} +export type DeleteOrgPermissionDefaultPayloadSelect = { + clientMutationId?: boolean; + orgPermissionDefault?: { + select: OrgPermissionDefaultSelect; + }; + orgPermissionDefaultEdge?: { + select: OrgPermissionDefaultEdgeSelect; + }; +}; +export interface CreateAppAdminGrantPayload { + clientMutationId?: string | null; + /** The `AppAdminGrant` that was created by this mutation. */ + appAdminGrant?: AppAdminGrant | null; + appAdminGrantEdge?: AppAdminGrantEdge | null; +} +export type CreateAppAdminGrantPayloadSelect = { + clientMutationId?: boolean; + appAdminGrant?: { + select: AppAdminGrantSelect; + }; + appAdminGrantEdge?: { + select: AppAdminGrantEdgeSelect; + }; +}; +export interface UpdateAppAdminGrantPayload { + clientMutationId?: string | null; + /** The `AppAdminGrant` that was updated by this mutation. */ + appAdminGrant?: AppAdminGrant | null; + appAdminGrantEdge?: AppAdminGrantEdge | null; +} +export type UpdateAppAdminGrantPayloadSelect = { + clientMutationId?: boolean; + appAdminGrant?: { + select: AppAdminGrantSelect; + }; + appAdminGrantEdge?: { + select: AppAdminGrantEdgeSelect; + }; +}; +export interface DeleteAppAdminGrantPayload { + clientMutationId?: string | null; + /** The `AppAdminGrant` that was deleted by this mutation. */ + appAdminGrant?: AppAdminGrant | null; + appAdminGrantEdge?: AppAdminGrantEdge | null; +} +export type DeleteAppAdminGrantPayloadSelect = { + clientMutationId?: boolean; + appAdminGrant?: { + select: AppAdminGrantSelect; + }; + appAdminGrantEdge?: { + select: AppAdminGrantEdgeSelect; + }; +}; +export interface CreateAppOwnerGrantPayload { + clientMutationId?: string | null; + /** The `AppOwnerGrant` that was created by this mutation. */ + appOwnerGrant?: AppOwnerGrant | null; + appOwnerGrantEdge?: AppOwnerGrantEdge | null; +} +export type CreateAppOwnerGrantPayloadSelect = { + clientMutationId?: boolean; + appOwnerGrant?: { + select: AppOwnerGrantSelect; + }; + appOwnerGrantEdge?: { + select: AppOwnerGrantEdgeSelect; + }; +}; +export interface UpdateAppOwnerGrantPayload { + clientMutationId?: string | null; + /** The `AppOwnerGrant` that was updated by this mutation. */ + appOwnerGrant?: AppOwnerGrant | null; + appOwnerGrantEdge?: AppOwnerGrantEdge | null; +} +export type UpdateAppOwnerGrantPayloadSelect = { + clientMutationId?: boolean; + appOwnerGrant?: { + select: AppOwnerGrantSelect; + }; + appOwnerGrantEdge?: { + select: AppOwnerGrantEdgeSelect; + }; +}; +export interface DeleteAppOwnerGrantPayload { + clientMutationId?: string | null; + /** The `AppOwnerGrant` that was deleted by this mutation. */ + appOwnerGrant?: AppOwnerGrant | null; + appOwnerGrantEdge?: AppOwnerGrantEdge | null; +} +export type DeleteAppOwnerGrantPayloadSelect = { + clientMutationId?: boolean; + appOwnerGrant?: { + select: AppOwnerGrantSelect; + }; + appOwnerGrantEdge?: { + select: AppOwnerGrantEdgeSelect; + }; +}; +export interface CreateAppLimitDefaultPayload { + clientMutationId?: string | null; + /** The `AppLimitDefault` that was created by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; +} +export type CreateAppLimitDefaultPayloadSelect = { + clientMutationId?: boolean; + appLimitDefault?: { + select: AppLimitDefaultSelect; + }; + appLimitDefaultEdge?: { + select: AppLimitDefaultEdgeSelect; + }; +}; +export interface UpdateAppLimitDefaultPayload { + clientMutationId?: string | null; + /** The `AppLimitDefault` that was updated by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; +} +export type UpdateAppLimitDefaultPayloadSelect = { + clientMutationId?: boolean; + appLimitDefault?: { + select: AppLimitDefaultSelect; + }; + appLimitDefaultEdge?: { + select: AppLimitDefaultEdgeSelect; + }; +}; +export interface DeleteAppLimitDefaultPayload { + clientMutationId?: string | null; + /** The `AppLimitDefault` that was deleted by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; +} +export type DeleteAppLimitDefaultPayloadSelect = { + clientMutationId?: boolean; + appLimitDefault?: { + select: AppLimitDefaultSelect; + }; + appLimitDefaultEdge?: { + select: AppLimitDefaultEdgeSelect; + }; +}; +export interface CreateOrgLimitDefaultPayload { + clientMutationId?: string | null; + /** The `OrgLimitDefault` that was created by this mutation. */ + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; +} +export type CreateOrgLimitDefaultPayloadSelect = { + clientMutationId?: boolean; + orgLimitDefault?: { + select: OrgLimitDefaultSelect; + }; + orgLimitDefaultEdge?: { + select: OrgLimitDefaultEdgeSelect; + }; +}; +export interface UpdateOrgLimitDefaultPayload { + clientMutationId?: string | null; + /** The `OrgLimitDefault` that was updated by this mutation. */ + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; +} +export type UpdateOrgLimitDefaultPayloadSelect = { + clientMutationId?: boolean; + orgLimitDefault?: { + select: OrgLimitDefaultSelect; + }; + orgLimitDefaultEdge?: { + select: OrgLimitDefaultEdgeSelect; + }; +}; +export interface DeleteOrgLimitDefaultPayload { + clientMutationId?: string | null; + /** The `OrgLimitDefault` that was deleted by this mutation. */ + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; +} +export type DeleteOrgLimitDefaultPayloadSelect = { + clientMutationId?: boolean; + orgLimitDefault?: { + select: OrgLimitDefaultSelect; + }; + orgLimitDefaultEdge?: { + select: OrgLimitDefaultEdgeSelect; + }; +}; +export interface CreateOrgAdminGrantPayload { + clientMutationId?: string | null; + /** The `OrgAdminGrant` that was created by this mutation. */ + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; +} +export type CreateOrgAdminGrantPayloadSelect = { + clientMutationId?: boolean; + orgAdminGrant?: { + select: OrgAdminGrantSelect; + }; + orgAdminGrantEdge?: { + select: OrgAdminGrantEdgeSelect; + }; +}; +export interface UpdateOrgAdminGrantPayload { + clientMutationId?: string | null; + /** The `OrgAdminGrant` that was updated by this mutation. */ + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; +} +export type UpdateOrgAdminGrantPayloadSelect = { + clientMutationId?: boolean; + orgAdminGrant?: { + select: OrgAdminGrantSelect; + }; + orgAdminGrantEdge?: { + select: OrgAdminGrantEdgeSelect; + }; +}; +export interface DeleteOrgAdminGrantPayload { + clientMutationId?: string | null; + /** The `OrgAdminGrant` that was deleted by this mutation. */ + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; +} +export type DeleteOrgAdminGrantPayloadSelect = { + clientMutationId?: boolean; + orgAdminGrant?: { + select: OrgAdminGrantSelect; + }; + orgAdminGrantEdge?: { + select: OrgAdminGrantEdgeSelect; + }; +}; +export interface CreateOrgOwnerGrantPayload { + clientMutationId?: string | null; + /** The `OrgOwnerGrant` that was created by this mutation. */ + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; +} +export type CreateOrgOwnerGrantPayloadSelect = { + clientMutationId?: boolean; + orgOwnerGrant?: { + select: OrgOwnerGrantSelect; + }; + orgOwnerGrantEdge?: { + select: OrgOwnerGrantEdgeSelect; + }; +}; +export interface UpdateOrgOwnerGrantPayload { + clientMutationId?: string | null; + /** The `OrgOwnerGrant` that was updated by this mutation. */ + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; +} +export type UpdateOrgOwnerGrantPayloadSelect = { + clientMutationId?: boolean; + orgOwnerGrant?: { + select: OrgOwnerGrantSelect; + }; + orgOwnerGrantEdge?: { + select: OrgOwnerGrantEdgeSelect; + }; +}; +export interface DeleteOrgOwnerGrantPayload { + clientMutationId?: string | null; + /** The `OrgOwnerGrant` that was deleted by this mutation. */ + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; +} +export type DeleteOrgOwnerGrantPayloadSelect = { + clientMutationId?: boolean; + orgOwnerGrant?: { + select: OrgOwnerGrantSelect; + }; + orgOwnerGrantEdge?: { + select: OrgOwnerGrantEdgeSelect; + }; +}; +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 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 CreateAppAchievementPayload { + clientMutationId?: string | null; + /** The `AppAchievement` that was created by this mutation. */ + appAchievement?: AppAchievement | null; + appAchievementEdge?: AppAchievementEdge | null; +} +export type CreateAppAchievementPayloadSelect = { + clientMutationId?: boolean; + appAchievement?: { + select: AppAchievementSelect; + }; + appAchievementEdge?: { + select: AppAchievementEdgeSelect; + }; +}; +export interface UpdateAppAchievementPayload { + clientMutationId?: string | null; + /** The `AppAchievement` that was updated by this mutation. */ + appAchievement?: AppAchievement | null; + appAchievementEdge?: AppAchievementEdge | null; +} +export type UpdateAppAchievementPayloadSelect = { + clientMutationId?: boolean; + appAchievement?: { + select: AppAchievementSelect; + }; + appAchievementEdge?: { + select: AppAchievementEdgeSelect; + }; +}; +export interface DeleteAppAchievementPayload { + clientMutationId?: string | null; + /** The `AppAchievement` that was deleted by this mutation. */ + appAchievement?: AppAchievement | null; + appAchievementEdge?: AppAchievementEdge | null; +} +export type DeleteAppAchievementPayloadSelect = { + clientMutationId?: boolean; + appAchievement?: { + select: AppAchievementSelect; + }; + appAchievementEdge?: { + select: AppAchievementEdgeSelect; + }; +}; +export interface CreateAppStepPayload { + clientMutationId?: string | null; + /** The `AppStep` that was created by this mutation. */ + appStep?: AppStep | null; + appStepEdge?: AppStepEdge | null; +} +export type CreateAppStepPayloadSelect = { + clientMutationId?: boolean; + appStep?: { + select: AppStepSelect; + }; + appStepEdge?: { + select: AppStepEdgeSelect; + }; +}; +export interface UpdateAppStepPayload { + clientMutationId?: string | null; + /** The `AppStep` that was updated by this mutation. */ + appStep?: AppStep | null; + appStepEdge?: AppStepEdge | null; +} +export type UpdateAppStepPayloadSelect = { + clientMutationId?: boolean; + appStep?: { + select: AppStepSelect; + }; + appStepEdge?: { + select: AppStepEdgeSelect; + }; +}; +export interface DeleteAppStepPayload { + clientMutationId?: string | null; + /** The `AppStep` that was deleted by this mutation. */ + appStep?: AppStep | null; + appStepEdge?: AppStepEdge | null; +} +export type DeleteAppStepPayloadSelect = { + clientMutationId?: boolean; + appStep?: { + select: AppStepSelect; + }; + appStepEdge?: { + select: AppStepEdgeSelect; + }; +}; +export interface CreateClaimedInvitePayload { + clientMutationId?: string | null; + /** The `ClaimedInvite` that was created by this mutation. */ + claimedInvite?: ClaimedInvite | null; + claimedInviteEdge?: ClaimedInviteEdge | null; +} +export type CreateClaimedInvitePayloadSelect = { + clientMutationId?: boolean; + claimedInvite?: { + select: ClaimedInviteSelect; + }; + claimedInviteEdge?: { + select: ClaimedInviteEdgeSelect; + }; +}; +export interface UpdateClaimedInvitePayload { + clientMutationId?: string | null; + /** The `ClaimedInvite` that was updated by this mutation. */ + claimedInvite?: ClaimedInvite | null; + claimedInviteEdge?: ClaimedInviteEdge | null; +} +export type UpdateClaimedInvitePayloadSelect = { + clientMutationId?: boolean; + claimedInvite?: { + select: ClaimedInviteSelect; + }; + claimedInviteEdge?: { + select: ClaimedInviteEdgeSelect; + }; +}; +export interface DeleteClaimedInvitePayload { + clientMutationId?: string | null; + /** The `ClaimedInvite` that was deleted by this mutation. */ + claimedInvite?: ClaimedInvite | null; + claimedInviteEdge?: ClaimedInviteEdge | null; +} +export type DeleteClaimedInvitePayloadSelect = { + clientMutationId?: boolean; + claimedInvite?: { + select: ClaimedInviteSelect; + }; + claimedInviteEdge?: { + select: ClaimedInviteEdgeSelect; + }; +}; +export interface CreateAppGrantPayload { + clientMutationId?: string | null; + /** The `AppGrant` that was created by this mutation. */ + appGrant?: AppGrant | null; + appGrantEdge?: AppGrantEdge | null; +} +export type CreateAppGrantPayloadSelect = { + clientMutationId?: boolean; + appGrant?: { + select: AppGrantSelect; + }; + appGrantEdge?: { + select: AppGrantEdgeSelect; + }; +}; +export interface UpdateAppGrantPayload { + clientMutationId?: string | null; + /** The `AppGrant` that was updated by this mutation. */ + appGrant?: AppGrant | null; + appGrantEdge?: AppGrantEdge | null; +} +export type UpdateAppGrantPayloadSelect = { + clientMutationId?: boolean; + appGrant?: { + select: AppGrantSelect; + }; + appGrantEdge?: { + select: AppGrantEdgeSelect; + }; +}; +export interface DeleteAppGrantPayload { + clientMutationId?: string | null; + /** The `AppGrant` that was deleted by this mutation. */ + appGrant?: AppGrant | null; + appGrantEdge?: AppGrantEdge | null; +} +export type DeleteAppGrantPayloadSelect = { + clientMutationId?: boolean; + appGrant?: { + select: AppGrantSelect; + }; + appGrantEdge?: { + select: AppGrantEdgeSelect; + }; +}; +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 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; + }; +}; +export interface UpdateOrgLimitPayload { + clientMutationId?: string | null; + /** The `OrgLimit` that was updated by this mutation. */ + orgLimit?: OrgLimit | null; + orgLimitEdge?: OrgLimitEdge | null; +} +export type UpdateOrgLimitPayloadSelect = { + clientMutationId?: boolean; + orgLimit?: { + select: OrgLimitSelect; + }; + orgLimitEdge?: { + select: OrgLimitEdgeSelect; + }; +}; +export interface DeleteOrgLimitPayload { + clientMutationId?: string | null; + /** The `OrgLimit` that was deleted by this mutation. */ + orgLimit?: OrgLimit | null; + orgLimitEdge?: OrgLimitEdge | null; +} +export type DeleteOrgLimitPayloadSelect = { + clientMutationId?: boolean; + orgLimit?: { + select: OrgLimitSelect; + }; + orgLimitEdge?: { + select: OrgLimitEdgeSelect; + }; +}; +export interface CreateOrgClaimedInvitePayload { + clientMutationId?: string | null; + /** The `OrgClaimedInvite` that was created by this mutation. */ + orgClaimedInvite?: OrgClaimedInvite | null; + orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; +} +export type CreateOrgClaimedInvitePayloadSelect = { + clientMutationId?: boolean; + orgClaimedInvite?: { + select: OrgClaimedInviteSelect; + }; + orgClaimedInviteEdge?: { + select: OrgClaimedInviteEdgeSelect; + }; +}; +export interface UpdateOrgClaimedInvitePayload { + clientMutationId?: string | null; + /** The `OrgClaimedInvite` that was updated by this mutation. */ + orgClaimedInvite?: OrgClaimedInvite | null; + orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; +} +export type UpdateOrgClaimedInvitePayloadSelect = { + clientMutationId?: boolean; + orgClaimedInvite?: { + select: OrgClaimedInviteSelect; + }; + orgClaimedInviteEdge?: { + select: OrgClaimedInviteEdgeSelect; + }; +}; +export interface DeleteOrgClaimedInvitePayload { + clientMutationId?: string | null; + /** The `OrgClaimedInvite` that was deleted by this mutation. */ + orgClaimedInvite?: OrgClaimedInvite | null; + orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; +} +export type DeleteOrgClaimedInvitePayloadSelect = { + clientMutationId?: boolean; + orgClaimedInvite?: { + select: OrgClaimedInviteSelect; + }; + orgClaimedInviteEdge?: { + select: OrgClaimedInviteEdgeSelect; + }; +}; +export interface CreateOrgGrantPayload { + clientMutationId?: string | null; + /** The `OrgGrant` that was created by this mutation. */ + orgGrant?: OrgGrant | null; + orgGrantEdge?: OrgGrantEdge | null; +} +export type CreateOrgGrantPayloadSelect = { + clientMutationId?: boolean; + orgGrant?: { + select: OrgGrantSelect; + }; + orgGrantEdge?: { + select: OrgGrantEdgeSelect; + }; +}; +export interface UpdateOrgGrantPayload { + clientMutationId?: string | null; + /** The `OrgGrant` that was updated by this mutation. */ + orgGrant?: OrgGrant | null; + orgGrantEdge?: OrgGrantEdge | null; +} +export type UpdateOrgGrantPayloadSelect = { + clientMutationId?: boolean; + orgGrant?: { + select: OrgGrantSelect; + }; + orgGrantEdge?: { + select: OrgGrantEdgeSelect; + }; +}; +export interface DeleteOrgGrantPayload { + clientMutationId?: string | null; + /** The `OrgGrant` that was deleted by this mutation. */ + orgGrant?: OrgGrant | null; + orgGrantEdge?: OrgGrantEdge | null; +} +export type DeleteOrgGrantPayloadSelect = { + clientMutationId?: boolean; + orgGrant?: { + select: OrgGrantSelect; + }; + orgGrantEdge?: { + select: OrgGrantEdgeSelect; + }; +}; +export interface CreateOrgMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `OrgMembershipDefault` that was created by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; +} +export type CreateOrgMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + orgMembershipDefault?: { + select: OrgMembershipDefaultSelect; + }; + orgMembershipDefaultEdge?: { + select: OrgMembershipDefaultEdgeSelect; + }; +}; +export interface UpdateOrgMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `OrgMembershipDefault` that was updated by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; +} +export type UpdateOrgMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + orgMembershipDefault?: { + select: OrgMembershipDefaultSelect; + }; + orgMembershipDefaultEdge?: { + select: OrgMembershipDefaultEdgeSelect; + }; +}; +export interface DeleteOrgMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `OrgMembershipDefault` that was deleted by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; +} +export type DeleteOrgMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + orgMembershipDefault?: { + select: OrgMembershipDefaultSelect; + }; + orgMembershipDefaultEdge?: { + 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. */ + invite?: Invite | null; + inviteEdge?: InviteEdge | null; +} +export type CreateInvitePayloadSelect = { + clientMutationId?: boolean; + invite?: { + select: InviteSelect; + }; + inviteEdge?: { + select: InviteEdgeSelect; + }; +}; +export interface UpdateInvitePayload { + clientMutationId?: string | null; + /** The `Invite` that was updated by this mutation. */ + invite?: Invite | null; + inviteEdge?: InviteEdge | null; +} +export type UpdateInvitePayloadSelect = { + clientMutationId?: boolean; + invite?: { + select: InviteSelect; + }; + inviteEdge?: { + select: InviteEdgeSelect; + }; +}; +export interface DeleteInvitePayload { + clientMutationId?: string | null; + /** The `Invite` that was deleted by this mutation. */ + invite?: Invite | null; + inviteEdge?: InviteEdge | null; +} +export type DeleteInvitePayloadSelect = { + clientMutationId?: boolean; + invite?: { + select: InviteSelect; + }; + inviteEdge?: { + select: InviteEdgeSelect; + }; +}; +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 CreateOrgMembershipPayload { + clientMutationId?: string | null; + /** The `OrgMembership` that was created by this mutation. */ + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; +} +export type CreateOrgMembershipPayloadSelect = { + clientMutationId?: boolean; + orgMembership?: { + select: OrgMembershipSelect; + }; + orgMembershipEdge?: { + select: OrgMembershipEdgeSelect; + }; +}; +export interface UpdateOrgMembershipPayload { + clientMutationId?: string | null; + /** The `OrgMembership` that was updated by this mutation. */ + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; +} +export type UpdateOrgMembershipPayloadSelect = { + clientMutationId?: boolean; + orgMembership?: { + select: OrgMembershipSelect; + }; + orgMembershipEdge?: { + select: OrgMembershipEdgeSelect; + }; +}; +export interface DeleteOrgMembershipPayload { + clientMutationId?: string | null; + /** The `OrgMembership` that was deleted by this mutation. */ + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; +} +export type DeleteOrgMembershipPayloadSelect = { + clientMutationId?: boolean; + orgMembership?: { + select: OrgMembershipSelect; + }; + orgMembershipEdge?: { + select: OrgMembershipEdgeSelect; + }; +}; +export interface CreateOrgInvitePayload { + clientMutationId?: string | null; + /** The `OrgInvite` that was created by this mutation. */ + orgInvite?: OrgInvite | null; + orgInviteEdge?: OrgInviteEdge | null; +} +export type CreateOrgInvitePayloadSelect = { + clientMutationId?: boolean; + orgInvite?: { + select: OrgInviteSelect; + }; + orgInviteEdge?: { + select: OrgInviteEdgeSelect; + }; +}; +export interface UpdateOrgInvitePayload { + clientMutationId?: string | null; + /** The `OrgInvite` that was updated by this mutation. */ + orgInvite?: OrgInvite | null; + orgInviteEdge?: OrgInviteEdge | null; +} +export type UpdateOrgInvitePayloadSelect = { + clientMutationId?: boolean; + orgInvite?: { + select: OrgInviteSelect; + }; + orgInviteEdge?: { + select: OrgInviteEdgeSelect; + }; +}; +export interface DeleteOrgInvitePayload { + clientMutationId?: string | null; + /** The `OrgInvite` that was deleted by this mutation. */ + orgInvite?: OrgInvite | null; + orgInviteEdge?: OrgInviteEdge | null; +} +export type DeleteOrgInvitePayloadSelect = { + clientMutationId?: boolean; + orgInvite?: { + select: OrgInviteSelect; + }; + orgInviteEdge?: { + select: OrgInviteEdgeSelect; + }; +}; +/** A `AppPermission` edge in the connection. */ +export interface AppPermissionEdge { + cursor?: string | null; + /** The `AppPermission` at the end of the edge. */ + node?: AppPermission | null; +} +export type AppPermissionEdgeSelect = { + cursor?: boolean; + node?: { + select: AppPermissionSelect; + }; +}; +/** Information about pagination in a connection. */ +export interface PageInfo { + /** When paginating forwards, are there more items? */ + hasNextPage: boolean; + /** When paginating backwards, are there more items? */ + hasPreviousPage: boolean; + /** When paginating backwards, the cursor to continue. */ + startCursor?: string | null; + /** When paginating forwards, the cursor to continue. */ + endCursor?: string | null; +} +export type PageInfoSelect = { + hasNextPage?: boolean; + hasPreviousPage?: boolean; + startCursor?: boolean; + endCursor?: boolean; +}; +/** A `OrgPermission` edge in the connection. */ +export interface OrgPermissionEdge { + cursor?: string | null; + /** The `OrgPermission` at the end of the edge. */ + node?: OrgPermission | null; +} +export type OrgPermissionEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgPermissionSelect; + }; +}; +/** A `AppLevelRequirement` edge in the connection. */ +export interface AppLevelRequirementEdge { + cursor?: string | null; + /** The `AppLevelRequirement` at the end of the edge. */ + node?: AppLevelRequirement | null; +} +export type AppLevelRequirementEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLevelRequirementSelect; + }; +}; +/** A `OrgMember` edge in the connection. */ +export interface OrgMemberEdge { + cursor?: string | null; + /** The `OrgMember` at the end of the edge. */ + node?: OrgMember | null; +} +export type OrgMemberEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgMemberSelect; + }; +}; +/** 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 `OrgPermissionDefault` edge in the connection. */ +export interface OrgPermissionDefaultEdge { + cursor?: string | null; + /** The `OrgPermissionDefault` at the end of the edge. */ + node?: OrgPermissionDefault | null; +} +export type OrgPermissionDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgPermissionDefaultSelect; + }; +}; +/** A `AppAdminGrant` edge in the connection. */ +export interface AppAdminGrantEdge { + cursor?: string | null; + /** The `AppAdminGrant` at the end of the edge. */ + node?: AppAdminGrant | null; +} +export type AppAdminGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: AppAdminGrantSelect; + }; +}; +/** A `AppOwnerGrant` edge in the connection. */ +export interface AppOwnerGrantEdge { + cursor?: string | null; + /** The `AppOwnerGrant` at the end of the edge. */ + node?: AppOwnerGrant | null; +} +export type AppOwnerGrantEdgeSelect = { + cursor?: boolean; + node?: { + 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; + /** The `OrgAdminGrant` at the end of the edge. */ + node?: OrgAdminGrant | null; +} +export type OrgAdminGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgAdminGrantSelect; + }; +}; +/** A `OrgOwnerGrant` edge in the connection. */ +export interface OrgOwnerGrantEdge { + cursor?: string | null; + /** The `OrgOwnerGrant` at the end of the edge. */ + node?: OrgOwnerGrant | null; +} +export type OrgOwnerGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgOwnerGrantSelect; + }; +}; +/** 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 `AppLimit` edge in the connection. */ +export interface AppLimitEdge { + cursor?: string | null; + /** The `AppLimit` at the end of the edge. */ + node?: AppLimit | null; +} +export type AppLimitEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLimitSelect; + }; +}; +/** A `AppAchievement` edge in the connection. */ +export interface AppAchievementEdge { + cursor?: string | null; + /** The `AppAchievement` at the end of the edge. */ + node?: AppAchievement | null; +} +export type AppAchievementEdgeSelect = { + cursor?: boolean; + node?: { + select: AppAchievementSelect; + }; +}; +/** A `AppStep` edge in the connection. */ +export interface AppStepEdge { + cursor?: string | null; + /** The `AppStep` at the end of the edge. */ + node?: AppStep | null; +} +export type AppStepEdgeSelect = { + cursor?: boolean; + node?: { + select: AppStepSelect; + }; +}; +/** A `ClaimedInvite` edge in the connection. */ +export interface ClaimedInviteEdge { + cursor?: string | null; + /** The `ClaimedInvite` at the end of the edge. */ + node?: ClaimedInvite | null; +} +export type ClaimedInviteEdgeSelect = { + cursor?: boolean; + node?: { + select: ClaimedInviteSelect; + }; +}; +/** A `AppGrant` edge in the connection. */ +export interface AppGrantEdge { + cursor?: string | null; + /** The `AppGrant` at the end of the edge. */ + node?: AppGrant | null; +} +export type AppGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: AppGrantSelect; + }; +}; +/** 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 `OrgLimit` edge in the connection. */ +export interface OrgLimitEdge { + cursor?: string | null; + /** The `OrgLimit` at the end of the edge. */ + node?: OrgLimit | null; +} +export type OrgLimitEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgLimitSelect; + }; +}; +/** A `OrgClaimedInvite` edge in the connection. */ +export interface OrgClaimedInviteEdge { + cursor?: string | null; + /** The `OrgClaimedInvite` at the end of the edge. */ + node?: OrgClaimedInvite | null; +} +export type OrgClaimedInviteEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgClaimedInviteSelect; + }; +}; +/** A `OrgGrant` edge in the connection. */ +export interface OrgGrantEdge { + cursor?: string | null; + /** The `OrgGrant` at the end of the edge. */ + node?: OrgGrant | null; +} +export type OrgGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgGrantSelect; + }; +}; +/** A `OrgMembershipDefault` edge in the connection. */ +export interface OrgMembershipDefaultEdge { + cursor?: string | null; + /** The `OrgMembershipDefault` at the end of the edge. */ + node?: OrgMembershipDefault | null; +} +export type OrgMembershipDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgMembershipDefaultSelect; + }; +}; +/** 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 `Invite` edge in the connection. */ +export interface InviteEdge { + cursor?: string | null; + /** The `Invite` at the end of the edge. */ + node?: Invite | null; +} +export type InviteEdgeSelect = { + cursor?: boolean; + node?: { + select: InviteSelect; + }; +}; +/** 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 `OrgMembership` edge in the connection. */ +export interface OrgMembershipEdge { + cursor?: string | null; + /** The `OrgMembership` at the end of the edge. */ + node?: OrgMembership | null; +} +export type OrgMembershipEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgMembershipSelect; + }; +}; +/** A `OrgInvite` edge in the connection. */ +export interface OrgInviteEdge { + cursor?: string | null; + /** The `OrgInvite` at the end of the edge. */ + node?: OrgInvite | null; +} +export type OrgInviteEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgInviteSelect; + }; +}; diff --git a/sdk/constructive-react/src/admin/orm/models/appAchievement.ts b/sdk/constructive-react/src/admin/orm/models/appAchievement.ts new file mode 100644 index 000000000..c26bd04df --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/models/appAchievement.ts @@ -0,0 +1,236 @@ +/** + * AppAchievement 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 { + AppAchievement, + AppAchievementWithRelations, + AppAchievementSelect, + AppAchievementFilter, + AppAchievementOrderBy, + CreateAppAchievementInput, + UpdateAppAchievementInput, + AppAchievementPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AppAchievementModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appAchievements: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AppAchievement', + 'appAchievements', + 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, + }, + 'AppAchievementFilter', + 'AppAchievementOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppAchievement', + fieldName: 'appAchievements', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appAchievements: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'AppAchievement', + 'appAchievements', + args.select, + { + where: args?.where, + }, + 'AppAchievementFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppAchievement', + fieldName: 'appAchievements', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + appAchievement: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AppAchievement', + 'appAchievements', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AppAchievementFilter', + 'AppAchievementOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppAchievement', + fieldName: 'appAchievement', + document, + variables, + transform: (data: { + appAchievements?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appAchievement: data.appAchievements?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAppAchievement: { + appAchievement: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AppAchievement', + 'createAppAchievement', + 'appAchievement', + args.select, + args.data, + 'CreateAppAchievementInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppAchievement', + fieldName: 'createAppAchievement', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AppAchievementPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAppAchievement: { + appAchievement: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AppAchievement', + 'updateAppAchievement', + 'appAchievement', + args.select, + args.where.id, + args.data, + 'UpdateAppAchievementInput', + 'id', + 'appAchievementPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppAchievement', + fieldName: 'updateAppAchievement', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAppAchievement: { + appAchievement: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AppAchievement', + 'deleteAppAchievement', + 'appAchievement', + args.where.id, + 'DeleteAppAchievementInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppAchievement', + fieldName: 'deleteAppAchievement', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/admin/orm/models/appAdminGrant.ts b/sdk/constructive-react/src/admin/orm/models/appAdminGrant.ts new file mode 100644 index 000000000..994dcd67d --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/models/appAdminGrant.ts @@ -0,0 +1,236 @@ +/** + * AppAdminGrant 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 { + AppAdminGrant, + AppAdminGrantWithRelations, + AppAdminGrantSelect, + AppAdminGrantFilter, + AppAdminGrantOrderBy, + CreateAppAdminGrantInput, + UpdateAppAdminGrantInput, + AppAdminGrantPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AppAdminGrantModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appAdminGrants: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AppAdminGrant', + 'appAdminGrants', + 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, + }, + 'AppAdminGrantFilter', + 'AppAdminGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppAdminGrant', + fieldName: 'appAdminGrants', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appAdminGrants: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'AppAdminGrant', + 'appAdminGrants', + args.select, + { + where: args?.where, + }, + 'AppAdminGrantFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppAdminGrant', + fieldName: 'appAdminGrants', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + appAdminGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AppAdminGrant', + 'appAdminGrants', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AppAdminGrantFilter', + 'AppAdminGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppAdminGrant', + fieldName: 'appAdminGrant', + document, + variables, + transform: (data: { + appAdminGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appAdminGrant: data.appAdminGrants?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAppAdminGrant: { + appAdminGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AppAdminGrant', + 'createAppAdminGrant', + 'appAdminGrant', + args.select, + args.data, + 'CreateAppAdminGrantInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppAdminGrant', + fieldName: 'createAppAdminGrant', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AppAdminGrantPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAppAdminGrant: { + appAdminGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AppAdminGrant', + 'updateAppAdminGrant', + 'appAdminGrant', + args.select, + args.where.id, + args.data, + 'UpdateAppAdminGrantInput', + 'id', + 'appAdminGrantPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppAdminGrant', + fieldName: 'updateAppAdminGrant', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAppAdminGrant: { + appAdminGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AppAdminGrant', + 'deleteAppAdminGrant', + 'appAdminGrant', + args.where.id, + 'DeleteAppAdminGrantInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppAdminGrant', + fieldName: 'deleteAppAdminGrant', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/admin/orm/models/appGrant.ts b/sdk/constructive-react/src/admin/orm/models/appGrant.ts new file mode 100644 index 000000000..df4f3ac72 --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/models/appGrant.ts @@ -0,0 +1,236 @@ +/** + * AppGrant 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 { + AppGrant, + AppGrantWithRelations, + AppGrantSelect, + AppGrantFilter, + AppGrantOrderBy, + CreateAppGrantInput, + UpdateAppGrantInput, + AppGrantPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AppGrantModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appGrants: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AppGrant', + 'appGrants', + 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, + }, + 'AppGrantFilter', + 'AppGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppGrant', + fieldName: 'appGrants', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appGrants: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'AppGrant', + 'appGrants', + args.select, + { + where: args?.where, + }, + 'AppGrantFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppGrant', + fieldName: 'appGrants', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + appGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AppGrant', + 'appGrants', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AppGrantFilter', + 'AppGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppGrant', + fieldName: 'appGrant', + document, + variables, + transform: (data: { + appGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appGrant: data.appGrants?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAppGrant: { + appGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AppGrant', + 'createAppGrant', + 'appGrant', + args.select, + args.data, + 'CreateAppGrantInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppGrant', + fieldName: 'createAppGrant', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AppGrantPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAppGrant: { + appGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AppGrant', + 'updateAppGrant', + 'appGrant', + args.select, + args.where.id, + args.data, + 'UpdateAppGrantInput', + 'id', + 'appGrantPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppGrant', + fieldName: 'updateAppGrant', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAppGrant: { + appGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AppGrant', + 'deleteAppGrant', + 'appGrant', + args.where.id, + 'DeleteAppGrantInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppGrant', + fieldName: 'deleteAppGrant', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/admin/orm/models/appLevel.ts b/sdk/constructive-react/src/admin/orm/models/appLevel.ts new file mode 100644 index 000000000..16a46df57 --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/models/appLevel.ts @@ -0,0 +1,236 @@ +/** + * AppLevel 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 { + AppLevel, + AppLevelWithRelations, + AppLevelSelect, + AppLevelFilter, + AppLevelOrderBy, + CreateAppLevelInput, + UpdateAppLevelInput, + AppLevelPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AppLevelModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appLevels: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AppLevel', + 'appLevels', + 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, + }, + 'AppLevelFilter', + 'AppLevelOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppLevel', + fieldName: 'appLevels', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appLevels: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'AppLevel', + 'appLevels', + args.select, + { + where: args?.where, + }, + 'AppLevelFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppLevel', + fieldName: 'appLevels', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + appLevel: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AppLevel', + 'appLevels', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AppLevelFilter', + 'AppLevelOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppLevel', + fieldName: 'appLevel', + document, + variables, + transform: (data: { + appLevels?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appLevel: data.appLevels?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAppLevel: { + appLevel: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AppLevel', + 'createAppLevel', + 'appLevel', + args.select, + args.data, + 'CreateAppLevelInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppLevel', + fieldName: 'createAppLevel', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AppLevelPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAppLevel: { + appLevel: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AppLevel', + 'updateAppLevel', + 'appLevel', + args.select, + args.where.id, + args.data, + 'UpdateAppLevelInput', + 'id', + 'appLevelPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppLevel', + fieldName: 'updateAppLevel', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAppLevel: { + appLevel: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AppLevel', + 'deleteAppLevel', + 'appLevel', + args.where.id, + 'DeleteAppLevelInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppLevel', + fieldName: 'deleteAppLevel', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/admin/orm/models/appLevelRequirement.ts b/sdk/constructive-react/src/admin/orm/models/appLevelRequirement.ts new file mode 100644 index 000000000..a67824ec2 --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/models/appLevelRequirement.ts @@ -0,0 +1,236 @@ +/** + * AppLevelRequirement 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 { + AppLevelRequirement, + AppLevelRequirementWithRelations, + AppLevelRequirementSelect, + AppLevelRequirementFilter, + AppLevelRequirementOrderBy, + CreateAppLevelRequirementInput, + UpdateAppLevelRequirementInput, + AppLevelRequirementPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AppLevelRequirementModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appLevelRequirements: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AppLevelRequirement', + 'appLevelRequirements', + 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, + }, + 'AppLevelRequirementFilter', + 'AppLevelRequirementOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppLevelRequirement', + fieldName: 'appLevelRequirements', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appLevelRequirements: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'AppLevelRequirement', + 'appLevelRequirements', + args.select, + { + where: args?.where, + }, + 'AppLevelRequirementFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppLevelRequirement', + fieldName: 'appLevelRequirements', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + appLevelRequirement: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AppLevelRequirement', + 'appLevelRequirements', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AppLevelRequirementFilter', + 'AppLevelRequirementOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppLevelRequirement', + fieldName: 'appLevelRequirement', + document, + variables, + transform: (data: { + appLevelRequirements?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appLevelRequirement: data.appLevelRequirements?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAppLevelRequirement: { + appLevelRequirement: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AppLevelRequirement', + 'createAppLevelRequirement', + 'appLevelRequirement', + args.select, + args.data, + 'CreateAppLevelRequirementInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppLevelRequirement', + fieldName: 'createAppLevelRequirement', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AppLevelRequirementPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAppLevelRequirement: { + appLevelRequirement: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AppLevelRequirement', + 'updateAppLevelRequirement', + 'appLevelRequirement', + args.select, + args.where.id, + args.data, + 'UpdateAppLevelRequirementInput', + 'id', + 'appLevelRequirementPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppLevelRequirement', + fieldName: 'updateAppLevelRequirement', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAppLevelRequirement: { + appLevelRequirement: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AppLevelRequirement', + 'deleteAppLevelRequirement', + 'appLevelRequirement', + args.where.id, + 'DeleteAppLevelRequirementInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppLevelRequirement', + fieldName: 'deleteAppLevelRequirement', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/admin/orm/models/appLimit.ts b/sdk/constructive-react/src/admin/orm/models/appLimit.ts new file mode 100644 index 000000000..6671f9d37 --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/models/appLimit.ts @@ -0,0 +1,236 @@ +/** + * AppLimit 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 { + AppLimit, + AppLimitWithRelations, + AppLimitSelect, + AppLimitFilter, + AppLimitOrderBy, + CreateAppLimitInput, + UpdateAppLimitInput, + AppLimitPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AppLimitModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appLimits: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AppLimit', + 'appLimits', + 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, + }, + 'AppLimitFilter', + 'AppLimitOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppLimit', + fieldName: 'appLimits', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appLimits: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'AppLimit', + 'appLimits', + args.select, + { + where: args?.where, + }, + 'AppLimitFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppLimit', + fieldName: 'appLimits', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + appLimit: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AppLimit', + 'appLimits', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AppLimitFilter', + 'AppLimitOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppLimit', + fieldName: 'appLimit', + document, + variables, + transform: (data: { + appLimits?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appLimit: data.appLimits?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAppLimit: { + appLimit: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AppLimit', + 'createAppLimit', + 'appLimit', + args.select, + args.data, + 'CreateAppLimitInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppLimit', + fieldName: 'createAppLimit', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AppLimitPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAppLimit: { + appLimit: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AppLimit', + 'updateAppLimit', + 'appLimit', + args.select, + args.where.id, + args.data, + 'UpdateAppLimitInput', + 'id', + 'appLimitPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppLimit', + fieldName: 'updateAppLimit', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAppLimit: { + appLimit: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AppLimit', + 'deleteAppLimit', + 'appLimit', + args.where.id, + 'DeleteAppLimitInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppLimit', + fieldName: 'deleteAppLimit', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/admin/orm/models/appLimitDefault.ts b/sdk/constructive-react/src/admin/orm/models/appLimitDefault.ts new file mode 100644 index 000000000..8d926da0a --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/models/appLimitDefault.ts @@ -0,0 +1,236 @@ +/** + * AppLimitDefault 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 { + AppLimitDefault, + AppLimitDefaultWithRelations, + AppLimitDefaultSelect, + AppLimitDefaultFilter, + AppLimitDefaultOrderBy, + CreateAppLimitDefaultInput, + UpdateAppLimitDefaultInput, + AppLimitDefaultPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AppLimitDefaultModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appLimitDefaults: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AppLimitDefault', + 'appLimitDefaults', + 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, + }, + 'AppLimitDefaultFilter', + 'AppLimitDefaultOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppLimitDefault', + fieldName: 'appLimitDefaults', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appLimitDefaults: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'AppLimitDefault', + 'appLimitDefaults', + args.select, + { + where: args?.where, + }, + 'AppLimitDefaultFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppLimitDefault', + fieldName: 'appLimitDefaults', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + appLimitDefault: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AppLimitDefault', + 'appLimitDefaults', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AppLimitDefaultFilter', + 'AppLimitDefaultOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppLimitDefault', + fieldName: 'appLimitDefault', + document, + variables, + transform: (data: { + appLimitDefaults?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appLimitDefault: data.appLimitDefaults?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAppLimitDefault: { + appLimitDefault: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AppLimitDefault', + 'createAppLimitDefault', + 'appLimitDefault', + args.select, + args.data, + 'CreateAppLimitDefaultInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppLimitDefault', + fieldName: 'createAppLimitDefault', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AppLimitDefaultPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAppLimitDefault: { + appLimitDefault: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AppLimitDefault', + 'updateAppLimitDefault', + 'appLimitDefault', + args.select, + args.where.id, + args.data, + 'UpdateAppLimitDefaultInput', + 'id', + 'appLimitDefaultPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppLimitDefault', + fieldName: 'updateAppLimitDefault', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAppLimitDefault: { + appLimitDefault: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AppLimitDefault', + 'deleteAppLimitDefault', + 'appLimitDefault', + args.where.id, + 'DeleteAppLimitDefaultInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppLimitDefault', + fieldName: 'deleteAppLimitDefault', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/admin/orm/models/appMembership.ts b/sdk/constructive-react/src/admin/orm/models/appMembership.ts new file mode 100644 index 000000000..2631ec415 --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/models/appMembership.ts @@ -0,0 +1,236 @@ +/** + * AppMembership 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 { + AppMembership, + AppMembershipWithRelations, + AppMembershipSelect, + AppMembershipFilter, + AppMembershipOrderBy, + CreateAppMembershipInput, + UpdateAppMembershipInput, + AppMembershipPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AppMembershipModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appMemberships: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AppMembership', + 'appMemberships', + 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, + }, + 'AppMembershipFilter', + 'AppMembershipOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppMembership', + fieldName: 'appMemberships', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appMemberships: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'AppMembership', + 'appMemberships', + args.select, + { + where: args?.where, + }, + 'AppMembershipFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppMembership', + fieldName: 'appMemberships', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + appMembership: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AppMembership', + 'appMemberships', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AppMembershipFilter', + 'AppMembershipOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppMembership', + fieldName: 'appMembership', + document, + variables, + transform: (data: { + appMemberships?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appMembership: data.appMemberships?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAppMembership: { + appMembership: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AppMembership', + 'createAppMembership', + 'appMembership', + args.select, + args.data, + 'CreateAppMembershipInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppMembership', + fieldName: 'createAppMembership', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AppMembershipPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAppMembership: { + appMembership: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AppMembership', + 'updateAppMembership', + 'appMembership', + args.select, + args.where.id, + args.data, + 'UpdateAppMembershipInput', + 'id', + 'appMembershipPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppMembership', + fieldName: 'updateAppMembership', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAppMembership: { + appMembership: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AppMembership', + 'deleteAppMembership', + 'appMembership', + args.where.id, + 'DeleteAppMembershipInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppMembership', + fieldName: 'deleteAppMembership', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/admin/orm/models/appMembershipDefault.ts b/sdk/constructive-react/src/admin/orm/models/appMembershipDefault.ts new file mode 100644 index 000000000..ba0c3ce53 --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/models/appMembershipDefault.ts @@ -0,0 +1,238 @@ +/** + * AppMembershipDefault 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 { + AppMembershipDefault, + AppMembershipDefaultWithRelations, + AppMembershipDefaultSelect, + AppMembershipDefaultFilter, + AppMembershipDefaultOrderBy, + CreateAppMembershipDefaultInput, + UpdateAppMembershipDefaultInput, + AppMembershipDefaultPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AppMembershipDefaultModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appMembershipDefaults: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'AppMembershipDefault', + 'appMembershipDefaults', + 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, + }, + 'AppMembershipDefaultFilter', + 'AppMembershipDefaultOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppMembershipDefault', + fieldName: 'appMembershipDefaults', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appMembershipDefaults: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'AppMembershipDefault', + 'appMembershipDefaults', + args.select, + { + where: args?.where, + }, + 'AppMembershipDefaultFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppMembershipDefault', + fieldName: 'appMembershipDefaults', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + appMembershipDefault: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AppMembershipDefault', + 'appMembershipDefaults', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AppMembershipDefaultFilter', + 'AppMembershipDefaultOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppMembershipDefault', + fieldName: 'appMembershipDefault', + document, + variables, + transform: (data: { + appMembershipDefaults?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appMembershipDefault: data.appMembershipDefaults?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAppMembershipDefault: { + appMembershipDefault: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AppMembershipDefault', + 'createAppMembershipDefault', + 'appMembershipDefault', + args.select, + args.data, + 'CreateAppMembershipDefaultInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppMembershipDefault', + fieldName: 'createAppMembershipDefault', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AppMembershipDefaultPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAppMembershipDefault: { + appMembershipDefault: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AppMembershipDefault', + 'updateAppMembershipDefault', + 'appMembershipDefault', + args.select, + args.where.id, + args.data, + 'UpdateAppMembershipDefaultInput', + 'id', + 'appMembershipDefaultPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppMembershipDefault', + fieldName: 'updateAppMembershipDefault', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAppMembershipDefault: { + appMembershipDefault: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AppMembershipDefault', + 'deleteAppMembershipDefault', + 'appMembershipDefault', + args.where.id, + 'DeleteAppMembershipDefaultInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppMembershipDefault', + fieldName: 'deleteAppMembershipDefault', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/admin/orm/models/appOwnerGrant.ts b/sdk/constructive-react/src/admin/orm/models/appOwnerGrant.ts new file mode 100644 index 000000000..a18dd21c4 --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/models/appOwnerGrant.ts @@ -0,0 +1,236 @@ +/** + * AppOwnerGrant 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 { + AppOwnerGrant, + AppOwnerGrantWithRelations, + AppOwnerGrantSelect, + AppOwnerGrantFilter, + AppOwnerGrantOrderBy, + CreateAppOwnerGrantInput, + UpdateAppOwnerGrantInput, + AppOwnerGrantPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AppOwnerGrantModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appOwnerGrants: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AppOwnerGrant', + 'appOwnerGrants', + 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, + }, + 'AppOwnerGrantFilter', + 'AppOwnerGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppOwnerGrant', + fieldName: 'appOwnerGrants', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appOwnerGrants: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'AppOwnerGrant', + 'appOwnerGrants', + args.select, + { + where: args?.where, + }, + 'AppOwnerGrantFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppOwnerGrant', + fieldName: 'appOwnerGrants', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + appOwnerGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AppOwnerGrant', + 'appOwnerGrants', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AppOwnerGrantFilter', + 'AppOwnerGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppOwnerGrant', + fieldName: 'appOwnerGrant', + document, + variables, + transform: (data: { + appOwnerGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appOwnerGrant: data.appOwnerGrants?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAppOwnerGrant: { + appOwnerGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AppOwnerGrant', + 'createAppOwnerGrant', + 'appOwnerGrant', + args.select, + args.data, + 'CreateAppOwnerGrantInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppOwnerGrant', + fieldName: 'createAppOwnerGrant', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AppOwnerGrantPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAppOwnerGrant: { + appOwnerGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AppOwnerGrant', + 'updateAppOwnerGrant', + 'appOwnerGrant', + args.select, + args.where.id, + args.data, + 'UpdateAppOwnerGrantInput', + 'id', + 'appOwnerGrantPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppOwnerGrant', + fieldName: 'updateAppOwnerGrant', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAppOwnerGrant: { + appOwnerGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AppOwnerGrant', + 'deleteAppOwnerGrant', + 'appOwnerGrant', + args.where.id, + 'DeleteAppOwnerGrantInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppOwnerGrant', + fieldName: 'deleteAppOwnerGrant', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/admin/orm/models/appPermission.ts b/sdk/constructive-react/src/admin/orm/models/appPermission.ts new file mode 100644 index 000000000..ab24d7bfc --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/models/appPermission.ts @@ -0,0 +1,236 @@ +/** + * AppPermission 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 { + AppPermission, + AppPermissionWithRelations, + AppPermissionSelect, + AppPermissionFilter, + AppPermissionOrderBy, + CreateAppPermissionInput, + UpdateAppPermissionInput, + AppPermissionPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AppPermissionModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appPermissions: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AppPermission', + 'appPermissions', + 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, + }, + 'AppPermissionFilter', + 'AppPermissionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppPermission', + fieldName: 'appPermissions', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appPermissions: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'AppPermission', + 'appPermissions', + args.select, + { + where: args?.where, + }, + 'AppPermissionFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppPermission', + fieldName: 'appPermissions', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + appPermission: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AppPermission', + 'appPermissions', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AppPermissionFilter', + 'AppPermissionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppPermission', + fieldName: 'appPermission', + document, + variables, + transform: (data: { + appPermissions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appPermission: data.appPermissions?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAppPermission: { + appPermission: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AppPermission', + 'createAppPermission', + 'appPermission', + args.select, + args.data, + 'CreateAppPermissionInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppPermission', + fieldName: 'createAppPermission', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AppPermissionPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAppPermission: { + appPermission: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AppPermission', + 'updateAppPermission', + 'appPermission', + args.select, + args.where.id, + args.data, + 'UpdateAppPermissionInput', + 'id', + 'appPermissionPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppPermission', + fieldName: 'updateAppPermission', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAppPermission: { + appPermission: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AppPermission', + 'deleteAppPermission', + 'appPermission', + args.where.id, + 'DeleteAppPermissionInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppPermission', + fieldName: 'deleteAppPermission', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/admin/orm/models/appPermissionDefault.ts b/sdk/constructive-react/src/admin/orm/models/appPermissionDefault.ts new file mode 100644 index 000000000..3951ef4bb --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/models/appPermissionDefault.ts @@ -0,0 +1,238 @@ +/** + * AppPermissionDefault 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 { + AppPermissionDefault, + AppPermissionDefaultWithRelations, + AppPermissionDefaultSelect, + AppPermissionDefaultFilter, + AppPermissionDefaultOrderBy, + CreateAppPermissionDefaultInput, + UpdateAppPermissionDefaultInput, + AppPermissionDefaultPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AppPermissionDefaultModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appPermissionDefaults: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'AppPermissionDefault', + 'appPermissionDefaults', + 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, + }, + 'AppPermissionDefaultFilter', + 'AppPermissionDefaultOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppPermissionDefault', + fieldName: 'appPermissionDefaults', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appPermissionDefaults: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'AppPermissionDefault', + 'appPermissionDefaults', + args.select, + { + where: args?.where, + }, + 'AppPermissionDefaultFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppPermissionDefault', + fieldName: 'appPermissionDefaults', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + appPermissionDefault: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AppPermissionDefault', + 'appPermissionDefaults', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AppPermissionDefaultFilter', + 'AppPermissionDefaultOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppPermissionDefault', + fieldName: 'appPermissionDefault', + document, + variables, + transform: (data: { + appPermissionDefaults?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appPermissionDefault: data.appPermissionDefaults?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAppPermissionDefault: { + appPermissionDefault: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AppPermissionDefault', + 'createAppPermissionDefault', + 'appPermissionDefault', + args.select, + args.data, + 'CreateAppPermissionDefaultInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppPermissionDefault', + fieldName: 'createAppPermissionDefault', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AppPermissionDefaultPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAppPermissionDefault: { + appPermissionDefault: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AppPermissionDefault', + 'updateAppPermissionDefault', + 'appPermissionDefault', + args.select, + args.where.id, + args.data, + 'UpdateAppPermissionDefaultInput', + 'id', + 'appPermissionDefaultPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppPermissionDefault', + fieldName: 'updateAppPermissionDefault', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAppPermissionDefault: { + appPermissionDefault: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AppPermissionDefault', + 'deleteAppPermissionDefault', + 'appPermissionDefault', + args.where.id, + 'DeleteAppPermissionDefaultInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppPermissionDefault', + fieldName: 'deleteAppPermissionDefault', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/admin/orm/models/appStep.ts b/sdk/constructive-react/src/admin/orm/models/appStep.ts new file mode 100644 index 000000000..7c4ab983c --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/models/appStep.ts @@ -0,0 +1,236 @@ +/** + * AppStep 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 { + AppStep, + AppStepWithRelations, + AppStepSelect, + AppStepFilter, + AppStepOrderBy, + CreateAppStepInput, + UpdateAppStepInput, + AppStepPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AppStepModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appSteps: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AppStep', + 'appSteps', + 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, + }, + 'AppStepFilter', + 'AppStepOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppStep', + fieldName: 'appSteps', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appSteps: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'AppStep', + 'appSteps', + args.select, + { + where: args?.where, + }, + 'AppStepFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppStep', + fieldName: 'appSteps', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + appStep: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AppStep', + 'appSteps', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AppStepFilter', + 'AppStepOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppStep', + fieldName: 'appStep', + document, + variables, + transform: (data: { + appSteps?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appStep: data.appSteps?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAppStep: { + appStep: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AppStep', + 'createAppStep', + 'appStep', + args.select, + args.data, + 'CreateAppStepInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppStep', + fieldName: 'createAppStep', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AppStepPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAppStep: { + appStep: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AppStep', + 'updateAppStep', + 'appStep', + args.select, + args.where.id, + args.data, + 'UpdateAppStepInput', + 'id', + 'appStepPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppStep', + fieldName: 'updateAppStep', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAppStep: { + appStep: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AppStep', + 'deleteAppStep', + 'appStep', + args.where.id, + 'DeleteAppStepInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppStep', + fieldName: 'deleteAppStep', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/admin/orm/models/claimedInvite.ts b/sdk/constructive-react/src/admin/orm/models/claimedInvite.ts new file mode 100644 index 000000000..9a679a488 --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/models/claimedInvite.ts @@ -0,0 +1,236 @@ +/** + * ClaimedInvite 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 { + ClaimedInvite, + ClaimedInviteWithRelations, + ClaimedInviteSelect, + ClaimedInviteFilter, + ClaimedInviteOrderBy, + CreateClaimedInviteInput, + UpdateClaimedInviteInput, + ClaimedInvitePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ClaimedInviteModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + claimedInvites: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'ClaimedInvite', + 'claimedInvites', + 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, + }, + 'ClaimedInviteFilter', + 'ClaimedInviteOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ClaimedInvite', + fieldName: 'claimedInvites', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + claimedInvites: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'ClaimedInvite', + 'claimedInvites', + args.select, + { + where: args?.where, + }, + 'ClaimedInviteFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ClaimedInvite', + fieldName: 'claimedInvites', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + claimedInvite: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ClaimedInvite', + 'claimedInvites', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ClaimedInviteFilter', + 'ClaimedInviteOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ClaimedInvite', + fieldName: 'claimedInvite', + document, + variables, + transform: (data: { + claimedInvites?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + claimedInvite: data.claimedInvites?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createClaimedInvite: { + claimedInvite: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ClaimedInvite', + 'createClaimedInvite', + 'claimedInvite', + args.select, + args.data, + 'CreateClaimedInviteInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ClaimedInvite', + fieldName: 'createClaimedInvite', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ClaimedInvitePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateClaimedInvite: { + claimedInvite: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ClaimedInvite', + 'updateClaimedInvite', + 'claimedInvite', + args.select, + args.where.id, + args.data, + 'UpdateClaimedInviteInput', + 'id', + 'claimedInvitePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ClaimedInvite', + fieldName: 'updateClaimedInvite', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteClaimedInvite: { + claimedInvite: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ClaimedInvite', + 'deleteClaimedInvite', + 'claimedInvite', + args.where.id, + 'DeleteClaimedInviteInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ClaimedInvite', + fieldName: 'deleteClaimedInvite', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/admin/orm/models/index.ts b/sdk/constructive-react/src/admin/orm/models/index.ts new file mode 100644 index 000000000..635d44b66 --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/models/index.ts @@ -0,0 +1,33 @@ +/** + * Models barrel export + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export { AppPermissionModel } from './appPermission'; +export { OrgPermissionModel } from './orgPermission'; +export { AppLevelRequirementModel } from './appLevelRequirement'; +export { OrgMemberModel } from './orgMember'; +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 { MembershipTypeModel } from './membershipType'; +export { AppLimitModel } from './appLimit'; +export { AppAchievementModel } from './appAchievement'; +export { AppStepModel } from './appStep'; +export { ClaimedInviteModel } from './claimedInvite'; +export { AppGrantModel } from './appGrant'; +export { AppMembershipDefaultModel } from './appMembershipDefault'; +export { OrgLimitModel } from './orgLimit'; +export { OrgClaimedInviteModel } from './orgClaimedInvite'; +export { OrgGrantModel } from './orgGrant'; +export { OrgMembershipDefaultModel } from './orgMembershipDefault'; +export { AppLevelModel } from './appLevel'; +export { InviteModel } from './invite'; +export { AppMembershipModel } from './appMembership'; +export { OrgMembershipModel } from './orgMembership'; +export { OrgInviteModel } from './orgInvite'; diff --git a/sdk/constructive-react/src/admin/orm/models/invite.ts b/sdk/constructive-react/src/admin/orm/models/invite.ts new file mode 100644 index 000000000..ffacfa690 --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/models/invite.ts @@ -0,0 +1,236 @@ +/** + * Invite 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 { + Invite, + InviteWithRelations, + InviteSelect, + InviteFilter, + InviteOrderBy, + CreateInviteInput, + UpdateInviteInput, + InvitePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class InviteModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + invites: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Invite', + 'invites', + 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, + }, + 'InviteFilter', + 'InviteOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Invite', + fieldName: 'invites', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + invites: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'Invite', + 'invites', + args.select, + { + where: args?.where, + }, + 'InviteFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Invite', + fieldName: 'invites', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + invite: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'Invite', + 'invites', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'InviteFilter', + 'InviteOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Invite', + fieldName: 'invite', + document, + variables, + transform: (data: { + invites?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + invite: data.invites?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createInvite: { + invite: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Invite', + 'createInvite', + 'invite', + args.select, + args.data, + 'CreateInviteInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Invite', + fieldName: 'createInvite', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + InvitePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateInvite: { + invite: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'Invite', + 'updateInvite', + 'invite', + args.select, + args.where.id, + args.data, + 'UpdateInviteInput', + 'id', + 'invitePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Invite', + fieldName: 'updateInvite', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteInvite: { + invite: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'Invite', + 'deleteInvite', + 'invite', + args.where.id, + 'DeleteInviteInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Invite', + fieldName: 'deleteInvite', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/admin/orm/models/membershipType.ts b/sdk/constructive-react/src/admin/orm/models/membershipType.ts new file mode 100644 index 000000000..c8f385b4e --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/models/membershipType.ts @@ -0,0 +1,236 @@ +/** + * MembershipType 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 { + MembershipType, + MembershipTypeWithRelations, + MembershipTypeSelect, + MembershipTypeFilter, + MembershipTypeOrderBy, + CreateMembershipTypeInput, + UpdateMembershipTypeInput, + MembershipTypePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class MembershipTypeModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + membershipTypes: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'MembershipType', + 'membershipTypes', + 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, + }, + 'MembershipTypeFilter', + 'MembershipTypeOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'MembershipType', + fieldName: 'membershipTypes', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + membershipTypes: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'MembershipType', + 'membershipTypes', + args.select, + { + where: args?.where, + }, + 'MembershipTypeFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'MembershipType', + fieldName: 'membershipTypes', + document, + variables, + }); + } + findOne( + args: { + id: number; + select: S; + } & StrictSelect + ): QueryBuilder<{ + membershipType: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'MembershipType', + 'membershipTypes', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'MembershipTypeFilter', + 'MembershipTypeOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'MembershipType', + fieldName: 'membershipType', + document, + variables, + transform: (data: { + membershipTypes?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + membershipType: data.membershipTypes?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createMembershipType: { + membershipType: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'MembershipType', + 'createMembershipType', + 'membershipType', + args.select, + args.data, + 'CreateMembershipTypeInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'MembershipType', + fieldName: 'createMembershipType', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: number; + }, + MembershipTypePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateMembershipType: { + membershipType: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'MembershipType', + 'updateMembershipType', + 'membershipType', + args.select, + args.where.id, + args.data, + 'UpdateMembershipTypeInput', + 'id', + 'membershipTypePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'MembershipType', + fieldName: 'updateMembershipType', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: number; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteMembershipType: { + membershipType: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'MembershipType', + 'deleteMembershipType', + 'membershipType', + args.where.id, + 'DeleteMembershipTypeInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'MembershipType', + fieldName: 'deleteMembershipType', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/admin/orm/models/orgAdminGrant.ts b/sdk/constructive-react/src/admin/orm/models/orgAdminGrant.ts new file mode 100644 index 000000000..ad34ec08c --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/models/orgAdminGrant.ts @@ -0,0 +1,236 @@ +/** + * OrgAdminGrant 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 { + OrgAdminGrant, + OrgAdminGrantWithRelations, + OrgAdminGrantSelect, + OrgAdminGrantFilter, + OrgAdminGrantOrderBy, + CreateOrgAdminGrantInput, + UpdateOrgAdminGrantInput, + OrgAdminGrantPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgAdminGrantModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgAdminGrants: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgAdminGrant', + 'orgAdminGrants', + 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, + }, + 'OrgAdminGrantFilter', + 'OrgAdminGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgAdminGrant', + fieldName: 'orgAdminGrants', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgAdminGrants: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgAdminGrant', + 'orgAdminGrants', + args.select, + { + where: args?.where, + }, + 'OrgAdminGrantFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgAdminGrant', + fieldName: 'orgAdminGrants', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgAdminGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgAdminGrant', + 'orgAdminGrants', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgAdminGrantFilter', + 'OrgAdminGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgAdminGrant', + fieldName: 'orgAdminGrant', + document, + variables, + transform: (data: { + orgAdminGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgAdminGrant: data.orgAdminGrants?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgAdminGrant: { + orgAdminGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgAdminGrant', + 'createOrgAdminGrant', + 'orgAdminGrant', + args.select, + args.data, + 'CreateOrgAdminGrantInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgAdminGrant', + fieldName: 'createOrgAdminGrant', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgAdminGrantPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgAdminGrant: { + orgAdminGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgAdminGrant', + 'updateOrgAdminGrant', + 'orgAdminGrant', + args.select, + args.where.id, + args.data, + 'UpdateOrgAdminGrantInput', + 'id', + 'orgAdminGrantPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgAdminGrant', + fieldName: 'updateOrgAdminGrant', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgAdminGrant: { + orgAdminGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgAdminGrant', + 'deleteOrgAdminGrant', + 'orgAdminGrant', + args.where.id, + 'DeleteOrgAdminGrantInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgAdminGrant', + fieldName: 'deleteOrgAdminGrant', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/admin/orm/models/orgClaimedInvite.ts b/sdk/constructive-react/src/admin/orm/models/orgClaimedInvite.ts new file mode 100644 index 000000000..7b1a668ce --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/models/orgClaimedInvite.ts @@ -0,0 +1,236 @@ +/** + * OrgClaimedInvite 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 { + OrgClaimedInvite, + OrgClaimedInviteWithRelations, + OrgClaimedInviteSelect, + OrgClaimedInviteFilter, + OrgClaimedInviteOrderBy, + CreateOrgClaimedInviteInput, + UpdateOrgClaimedInviteInput, + OrgClaimedInvitePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgClaimedInviteModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgClaimedInvites: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgClaimedInvite', + 'orgClaimedInvites', + 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, + }, + 'OrgClaimedInviteFilter', + 'OrgClaimedInviteOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgClaimedInvite', + fieldName: 'orgClaimedInvites', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgClaimedInvites: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgClaimedInvite', + 'orgClaimedInvites', + args.select, + { + where: args?.where, + }, + 'OrgClaimedInviteFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgClaimedInvite', + fieldName: 'orgClaimedInvites', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgClaimedInvite: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgClaimedInvite', + 'orgClaimedInvites', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgClaimedInviteFilter', + 'OrgClaimedInviteOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgClaimedInvite', + fieldName: 'orgClaimedInvite', + document, + variables, + transform: (data: { + orgClaimedInvites?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgClaimedInvite: data.orgClaimedInvites?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgClaimedInvite: { + orgClaimedInvite: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgClaimedInvite', + 'createOrgClaimedInvite', + 'orgClaimedInvite', + args.select, + args.data, + 'CreateOrgClaimedInviteInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgClaimedInvite', + fieldName: 'createOrgClaimedInvite', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgClaimedInvitePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgClaimedInvite: { + orgClaimedInvite: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgClaimedInvite', + 'updateOrgClaimedInvite', + 'orgClaimedInvite', + args.select, + args.where.id, + args.data, + 'UpdateOrgClaimedInviteInput', + 'id', + 'orgClaimedInvitePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgClaimedInvite', + fieldName: 'updateOrgClaimedInvite', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgClaimedInvite: { + orgClaimedInvite: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgClaimedInvite', + 'deleteOrgClaimedInvite', + 'orgClaimedInvite', + args.where.id, + 'DeleteOrgClaimedInviteInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgClaimedInvite', + fieldName: 'deleteOrgClaimedInvite', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/admin/orm/models/orgGrant.ts b/sdk/constructive-react/src/admin/orm/models/orgGrant.ts new file mode 100644 index 000000000..51ffe25e0 --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/models/orgGrant.ts @@ -0,0 +1,236 @@ +/** + * OrgGrant 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 { + OrgGrant, + OrgGrantWithRelations, + OrgGrantSelect, + OrgGrantFilter, + OrgGrantOrderBy, + CreateOrgGrantInput, + UpdateOrgGrantInput, + OrgGrantPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgGrantModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgGrants: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgGrant', + 'orgGrants', + 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, + }, + 'OrgGrantFilter', + 'OrgGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgGrant', + fieldName: 'orgGrants', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgGrants: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgGrant', + 'orgGrants', + args.select, + { + where: args?.where, + }, + 'OrgGrantFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgGrant', + fieldName: 'orgGrants', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgGrant', + 'orgGrants', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgGrantFilter', + 'OrgGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgGrant', + fieldName: 'orgGrant', + document, + variables, + transform: (data: { + orgGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgGrant: data.orgGrants?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgGrant: { + orgGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgGrant', + 'createOrgGrant', + 'orgGrant', + args.select, + args.data, + 'CreateOrgGrantInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgGrant', + fieldName: 'createOrgGrant', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgGrantPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgGrant: { + orgGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgGrant', + 'updateOrgGrant', + 'orgGrant', + args.select, + args.where.id, + args.data, + 'UpdateOrgGrantInput', + 'id', + 'orgGrantPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgGrant', + fieldName: 'updateOrgGrant', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgGrant: { + orgGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgGrant', + 'deleteOrgGrant', + 'orgGrant', + args.where.id, + 'DeleteOrgGrantInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgGrant', + fieldName: 'deleteOrgGrant', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/admin/orm/models/orgInvite.ts b/sdk/constructive-react/src/admin/orm/models/orgInvite.ts new file mode 100644 index 000000000..351f866ab --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/models/orgInvite.ts @@ -0,0 +1,236 @@ +/** + * OrgInvite 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 { + OrgInvite, + OrgInviteWithRelations, + OrgInviteSelect, + OrgInviteFilter, + OrgInviteOrderBy, + CreateOrgInviteInput, + UpdateOrgInviteInput, + OrgInvitePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgInviteModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgInvites: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgInvite', + 'orgInvites', + 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, + }, + 'OrgInviteFilter', + 'OrgInviteOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgInvite', + fieldName: 'orgInvites', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgInvites: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgInvite', + 'orgInvites', + args.select, + { + where: args?.where, + }, + 'OrgInviteFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgInvite', + fieldName: 'orgInvites', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgInvite: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgInvite', + 'orgInvites', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgInviteFilter', + 'OrgInviteOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgInvite', + fieldName: 'orgInvite', + document, + variables, + transform: (data: { + orgInvites?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgInvite: data.orgInvites?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgInvite: { + orgInvite: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgInvite', + 'createOrgInvite', + 'orgInvite', + args.select, + args.data, + 'CreateOrgInviteInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgInvite', + fieldName: 'createOrgInvite', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgInvitePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgInvite: { + orgInvite: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgInvite', + 'updateOrgInvite', + 'orgInvite', + args.select, + args.where.id, + args.data, + 'UpdateOrgInviteInput', + 'id', + 'orgInvitePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgInvite', + fieldName: 'updateOrgInvite', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgInvite: { + orgInvite: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgInvite', + 'deleteOrgInvite', + 'orgInvite', + args.where.id, + 'DeleteOrgInviteInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgInvite', + fieldName: 'deleteOrgInvite', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/admin/orm/models/orgLimit.ts b/sdk/constructive-react/src/admin/orm/models/orgLimit.ts new file mode 100644 index 000000000..787dd2e18 --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/models/orgLimit.ts @@ -0,0 +1,236 @@ +/** + * OrgLimit 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 { + OrgLimit, + OrgLimitWithRelations, + OrgLimitSelect, + OrgLimitFilter, + OrgLimitOrderBy, + CreateOrgLimitInput, + UpdateOrgLimitInput, + OrgLimitPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgLimitModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgLimits: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgLimit', + 'orgLimits', + 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, + }, + 'OrgLimitFilter', + 'OrgLimitOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgLimit', + fieldName: 'orgLimits', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgLimits: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgLimit', + 'orgLimits', + args.select, + { + where: args?.where, + }, + 'OrgLimitFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgLimit', + fieldName: 'orgLimits', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgLimit: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgLimit', + 'orgLimits', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgLimitFilter', + 'OrgLimitOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgLimit', + fieldName: 'orgLimit', + document, + variables, + transform: (data: { + orgLimits?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgLimit: data.orgLimits?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgLimit: { + orgLimit: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgLimit', + 'createOrgLimit', + 'orgLimit', + args.select, + args.data, + 'CreateOrgLimitInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgLimit', + fieldName: 'createOrgLimit', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgLimitPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgLimit: { + orgLimit: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgLimit', + 'updateOrgLimit', + 'orgLimit', + args.select, + args.where.id, + args.data, + 'UpdateOrgLimitInput', + 'id', + 'orgLimitPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgLimit', + fieldName: 'updateOrgLimit', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgLimit: { + orgLimit: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgLimit', + 'deleteOrgLimit', + 'orgLimit', + args.where.id, + 'DeleteOrgLimitInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgLimit', + fieldName: 'deleteOrgLimit', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/admin/orm/models/orgLimitDefault.ts b/sdk/constructive-react/src/admin/orm/models/orgLimitDefault.ts new file mode 100644 index 000000000..b66e270b4 --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/models/orgLimitDefault.ts @@ -0,0 +1,236 @@ +/** + * OrgLimitDefault 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 { + OrgLimitDefault, + OrgLimitDefaultWithRelations, + OrgLimitDefaultSelect, + OrgLimitDefaultFilter, + OrgLimitDefaultOrderBy, + CreateOrgLimitDefaultInput, + UpdateOrgLimitDefaultInput, + OrgLimitDefaultPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgLimitDefaultModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgLimitDefaults: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgLimitDefault', + 'orgLimitDefaults', + 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, + }, + 'OrgLimitDefaultFilter', + 'OrgLimitDefaultOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgLimitDefault', + fieldName: 'orgLimitDefaults', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgLimitDefaults: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgLimitDefault', + 'orgLimitDefaults', + args.select, + { + where: args?.where, + }, + 'OrgLimitDefaultFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgLimitDefault', + fieldName: 'orgLimitDefaults', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgLimitDefault: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgLimitDefault', + 'orgLimitDefaults', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgLimitDefaultFilter', + 'OrgLimitDefaultOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgLimitDefault', + fieldName: 'orgLimitDefault', + document, + variables, + transform: (data: { + orgLimitDefaults?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgLimitDefault: data.orgLimitDefaults?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgLimitDefault: { + orgLimitDefault: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgLimitDefault', + 'createOrgLimitDefault', + 'orgLimitDefault', + args.select, + args.data, + 'CreateOrgLimitDefaultInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgLimitDefault', + fieldName: 'createOrgLimitDefault', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgLimitDefaultPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgLimitDefault: { + orgLimitDefault: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgLimitDefault', + 'updateOrgLimitDefault', + 'orgLimitDefault', + args.select, + args.where.id, + args.data, + 'UpdateOrgLimitDefaultInput', + 'id', + 'orgLimitDefaultPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgLimitDefault', + fieldName: 'updateOrgLimitDefault', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgLimitDefault: { + orgLimitDefault: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgLimitDefault', + 'deleteOrgLimitDefault', + 'orgLimitDefault', + args.where.id, + 'DeleteOrgLimitDefaultInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgLimitDefault', + fieldName: 'deleteOrgLimitDefault', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/admin/orm/models/orgMember.ts b/sdk/constructive-react/src/admin/orm/models/orgMember.ts new file mode 100644 index 000000000..9045b10e0 --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/models/orgMember.ts @@ -0,0 +1,236 @@ +/** + * OrgMember 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 { + OrgMember, + OrgMemberWithRelations, + OrgMemberSelect, + OrgMemberFilter, + OrgMemberOrderBy, + CreateOrgMemberInput, + UpdateOrgMemberInput, + OrgMemberPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgMemberModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgMembers: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgMember', + 'orgMembers', + 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, + }, + 'OrgMemberFilter', + 'OrgMemberOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgMember', + fieldName: 'orgMembers', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgMembers: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgMember', + 'orgMembers', + args.select, + { + where: args?.where, + }, + 'OrgMemberFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgMember', + fieldName: 'orgMembers', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgMember: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgMember', + 'orgMembers', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgMemberFilter', + 'OrgMemberOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgMember', + fieldName: 'orgMember', + document, + variables, + transform: (data: { + orgMembers?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgMember: data.orgMembers?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgMember: { + orgMember: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgMember', + 'createOrgMember', + 'orgMember', + args.select, + args.data, + 'CreateOrgMemberInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgMember', + fieldName: 'createOrgMember', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgMemberPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgMember: { + orgMember: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgMember', + 'updateOrgMember', + 'orgMember', + args.select, + args.where.id, + args.data, + 'UpdateOrgMemberInput', + 'id', + 'orgMemberPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgMember', + fieldName: 'updateOrgMember', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgMember: { + orgMember: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgMember', + 'deleteOrgMember', + 'orgMember', + args.where.id, + 'DeleteOrgMemberInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgMember', + fieldName: 'deleteOrgMember', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/admin/orm/models/orgMembership.ts b/sdk/constructive-react/src/admin/orm/models/orgMembership.ts new file mode 100644 index 000000000..7c5133b07 --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/models/orgMembership.ts @@ -0,0 +1,236 @@ +/** + * OrgMembership 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 { + OrgMembership, + OrgMembershipWithRelations, + OrgMembershipSelect, + OrgMembershipFilter, + OrgMembershipOrderBy, + CreateOrgMembershipInput, + UpdateOrgMembershipInput, + OrgMembershipPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgMembershipModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgMemberships: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgMembership', + 'orgMemberships', + 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, + }, + 'OrgMembershipFilter', + 'OrgMembershipOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgMembership', + fieldName: 'orgMemberships', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgMemberships: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgMembership', + 'orgMemberships', + args.select, + { + where: args?.where, + }, + 'OrgMembershipFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgMembership', + fieldName: 'orgMemberships', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgMembership: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgMembership', + 'orgMemberships', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgMembershipFilter', + 'OrgMembershipOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgMembership', + fieldName: 'orgMembership', + document, + variables, + transform: (data: { + orgMemberships?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgMembership: data.orgMemberships?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgMembership: { + orgMembership: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgMembership', + 'createOrgMembership', + 'orgMembership', + args.select, + args.data, + 'CreateOrgMembershipInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgMembership', + fieldName: 'createOrgMembership', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgMembershipPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgMembership: { + orgMembership: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgMembership', + 'updateOrgMembership', + 'orgMembership', + args.select, + args.where.id, + args.data, + 'UpdateOrgMembershipInput', + 'id', + 'orgMembershipPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgMembership', + fieldName: 'updateOrgMembership', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgMembership: { + orgMembership: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgMembership', + 'deleteOrgMembership', + 'orgMembership', + args.where.id, + 'DeleteOrgMembershipInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgMembership', + fieldName: 'deleteOrgMembership', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/admin/orm/models/orgMembershipDefault.ts b/sdk/constructive-react/src/admin/orm/models/orgMembershipDefault.ts new file mode 100644 index 000000000..c4863e35b --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/models/orgMembershipDefault.ts @@ -0,0 +1,238 @@ +/** + * OrgMembershipDefault 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 { + OrgMembershipDefault, + OrgMembershipDefaultWithRelations, + OrgMembershipDefaultSelect, + OrgMembershipDefaultFilter, + OrgMembershipDefaultOrderBy, + CreateOrgMembershipDefaultInput, + UpdateOrgMembershipDefaultInput, + OrgMembershipDefaultPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgMembershipDefaultModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgMembershipDefaults: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgMembershipDefault', + 'orgMembershipDefaults', + 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, + }, + 'OrgMembershipDefaultFilter', + 'OrgMembershipDefaultOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgMembershipDefault', + fieldName: 'orgMembershipDefaults', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgMembershipDefaults: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgMembershipDefault', + 'orgMembershipDefaults', + args.select, + { + where: args?.where, + }, + 'OrgMembershipDefaultFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgMembershipDefault', + fieldName: 'orgMembershipDefaults', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgMembershipDefault: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgMembershipDefault', + 'orgMembershipDefaults', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgMembershipDefaultFilter', + 'OrgMembershipDefaultOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgMembershipDefault', + fieldName: 'orgMembershipDefault', + document, + variables, + transform: (data: { + orgMembershipDefaults?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgMembershipDefault: data.orgMembershipDefaults?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgMembershipDefault: { + orgMembershipDefault: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgMembershipDefault', + 'createOrgMembershipDefault', + 'orgMembershipDefault', + args.select, + args.data, + 'CreateOrgMembershipDefaultInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgMembershipDefault', + fieldName: 'createOrgMembershipDefault', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgMembershipDefaultPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgMembershipDefault: { + orgMembershipDefault: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgMembershipDefault', + 'updateOrgMembershipDefault', + 'orgMembershipDefault', + args.select, + args.where.id, + args.data, + 'UpdateOrgMembershipDefaultInput', + 'id', + 'orgMembershipDefaultPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgMembershipDefault', + fieldName: 'updateOrgMembershipDefault', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgMembershipDefault: { + orgMembershipDefault: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgMembershipDefault', + 'deleteOrgMembershipDefault', + 'orgMembershipDefault', + args.where.id, + 'DeleteOrgMembershipDefaultInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgMembershipDefault', + fieldName: 'deleteOrgMembershipDefault', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/admin/orm/models/orgOwnerGrant.ts b/sdk/constructive-react/src/admin/orm/models/orgOwnerGrant.ts new file mode 100644 index 000000000..57596aecd --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/models/orgOwnerGrant.ts @@ -0,0 +1,236 @@ +/** + * OrgOwnerGrant 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 { + OrgOwnerGrant, + OrgOwnerGrantWithRelations, + OrgOwnerGrantSelect, + OrgOwnerGrantFilter, + OrgOwnerGrantOrderBy, + CreateOrgOwnerGrantInput, + UpdateOrgOwnerGrantInput, + OrgOwnerGrantPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgOwnerGrantModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgOwnerGrants: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgOwnerGrant', + 'orgOwnerGrants', + 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, + }, + 'OrgOwnerGrantFilter', + 'OrgOwnerGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgOwnerGrant', + fieldName: 'orgOwnerGrants', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgOwnerGrants: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgOwnerGrant', + 'orgOwnerGrants', + args.select, + { + where: args?.where, + }, + 'OrgOwnerGrantFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgOwnerGrant', + fieldName: 'orgOwnerGrants', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgOwnerGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgOwnerGrant', + 'orgOwnerGrants', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgOwnerGrantFilter', + 'OrgOwnerGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgOwnerGrant', + fieldName: 'orgOwnerGrant', + document, + variables, + transform: (data: { + orgOwnerGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgOwnerGrant: data.orgOwnerGrants?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgOwnerGrant: { + orgOwnerGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgOwnerGrant', + 'createOrgOwnerGrant', + 'orgOwnerGrant', + args.select, + args.data, + 'CreateOrgOwnerGrantInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgOwnerGrant', + fieldName: 'createOrgOwnerGrant', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgOwnerGrantPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgOwnerGrant: { + orgOwnerGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgOwnerGrant', + 'updateOrgOwnerGrant', + 'orgOwnerGrant', + args.select, + args.where.id, + args.data, + 'UpdateOrgOwnerGrantInput', + 'id', + 'orgOwnerGrantPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgOwnerGrant', + fieldName: 'updateOrgOwnerGrant', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgOwnerGrant: { + orgOwnerGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgOwnerGrant', + 'deleteOrgOwnerGrant', + 'orgOwnerGrant', + args.where.id, + 'DeleteOrgOwnerGrantInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgOwnerGrant', + fieldName: 'deleteOrgOwnerGrant', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/admin/orm/models/orgPermission.ts b/sdk/constructive-react/src/admin/orm/models/orgPermission.ts new file mode 100644 index 000000000..9a2c0461f --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/models/orgPermission.ts @@ -0,0 +1,236 @@ +/** + * OrgPermission 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 { + OrgPermission, + OrgPermissionWithRelations, + OrgPermissionSelect, + OrgPermissionFilter, + OrgPermissionOrderBy, + CreateOrgPermissionInput, + UpdateOrgPermissionInput, + OrgPermissionPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgPermissionModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgPermissions: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgPermission', + 'orgPermissions', + 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, + }, + 'OrgPermissionFilter', + 'OrgPermissionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgPermission', + fieldName: 'orgPermissions', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgPermissions: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgPermission', + 'orgPermissions', + args.select, + { + where: args?.where, + }, + 'OrgPermissionFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgPermission', + fieldName: 'orgPermissions', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgPermission: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgPermission', + 'orgPermissions', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgPermissionFilter', + 'OrgPermissionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgPermission', + fieldName: 'orgPermission', + document, + variables, + transform: (data: { + orgPermissions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgPermission: data.orgPermissions?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgPermission: { + orgPermission: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgPermission', + 'createOrgPermission', + 'orgPermission', + args.select, + args.data, + 'CreateOrgPermissionInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgPermission', + fieldName: 'createOrgPermission', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgPermissionPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgPermission: { + orgPermission: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgPermission', + 'updateOrgPermission', + 'orgPermission', + args.select, + args.where.id, + args.data, + 'UpdateOrgPermissionInput', + 'id', + 'orgPermissionPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgPermission', + fieldName: 'updateOrgPermission', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgPermission: { + orgPermission: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgPermission', + 'deleteOrgPermission', + 'orgPermission', + args.where.id, + 'DeleteOrgPermissionInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgPermission', + fieldName: 'deleteOrgPermission', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/admin/orm/models/orgPermissionDefault.ts b/sdk/constructive-react/src/admin/orm/models/orgPermissionDefault.ts new file mode 100644 index 000000000..d6c204515 --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/models/orgPermissionDefault.ts @@ -0,0 +1,238 @@ +/** + * OrgPermissionDefault 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 { + OrgPermissionDefault, + OrgPermissionDefaultWithRelations, + OrgPermissionDefaultSelect, + OrgPermissionDefaultFilter, + OrgPermissionDefaultOrderBy, + CreateOrgPermissionDefaultInput, + UpdateOrgPermissionDefaultInput, + OrgPermissionDefaultPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgPermissionDefaultModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgPermissionDefaults: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgPermissionDefault', + 'orgPermissionDefaults', + 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, + }, + 'OrgPermissionDefaultFilter', + 'OrgPermissionDefaultOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgPermissionDefault', + fieldName: 'orgPermissionDefaults', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgPermissionDefaults: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgPermissionDefault', + 'orgPermissionDefaults', + args.select, + { + where: args?.where, + }, + 'OrgPermissionDefaultFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgPermissionDefault', + fieldName: 'orgPermissionDefaults', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgPermissionDefault: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgPermissionDefault', + 'orgPermissionDefaults', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgPermissionDefaultFilter', + 'OrgPermissionDefaultOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgPermissionDefault', + fieldName: 'orgPermissionDefault', + document, + variables, + transform: (data: { + orgPermissionDefaults?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgPermissionDefault: data.orgPermissionDefaults?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgPermissionDefault: { + orgPermissionDefault: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgPermissionDefault', + 'createOrgPermissionDefault', + 'orgPermissionDefault', + args.select, + args.data, + 'CreateOrgPermissionDefaultInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgPermissionDefault', + fieldName: 'createOrgPermissionDefault', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgPermissionDefaultPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgPermissionDefault: { + orgPermissionDefault: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgPermissionDefault', + 'updateOrgPermissionDefault', + 'orgPermissionDefault', + args.select, + args.where.id, + args.data, + 'UpdateOrgPermissionDefaultInput', + 'id', + 'orgPermissionDefaultPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgPermissionDefault', + fieldName: 'updateOrgPermissionDefault', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgPermissionDefault: { + orgPermissionDefault: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgPermissionDefault', + 'deleteOrgPermissionDefault', + 'orgPermissionDefault', + args.where.id, + 'DeleteOrgPermissionDefaultInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgPermissionDefault', + fieldName: 'deleteOrgPermissionDefault', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/admin/orm/mutation/index.ts b/sdk/constructive-react/src/admin/orm/mutation/index.ts new file mode 100644 index 000000000..7c2c241a1 --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/mutation/index.ts @@ -0,0 +1,85 @@ +/** + * Custom mutation operations + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { QueryBuilder, buildCustomDocument } from '../query-builder'; +import type { InferSelectResult, StrictSelect } from '../select-types'; +import type { + SubmitInviteCodeInput, + SubmitOrgInviteCodeInput, + SubmitInviteCodePayload, + SubmitOrgInviteCodePayload, + SubmitInviteCodePayloadSelect, + SubmitOrgInviteCodePayloadSelect, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export interface SubmitInviteCodeVariables { + input: SubmitInviteCodeInput; +} +export interface SubmitOrgInviteCodeVariables { + input: SubmitOrgInviteCodeInput; +} +export function createMutationOperations(client: OrmClient) { + return { + submitInviteCode: ( + args: SubmitInviteCodeVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + submitInviteCode: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SubmitInviteCode', + fieldName: 'submitInviteCode', + ...buildCustomDocument( + 'mutation', + 'SubmitInviteCode', + 'submitInviteCode', + options.select, + args, + [ + { + name: 'input', + type: 'SubmitInviteCodeInput!', + }, + ], + connectionFieldsMap, + 'SubmitInviteCodePayload' + ), + }), + submitOrgInviteCode: ( + args: SubmitOrgInviteCodeVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + submitOrgInviteCode: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SubmitOrgInviteCode', + fieldName: 'submitOrgInviteCode', + ...buildCustomDocument( + 'mutation', + 'SubmitOrgInviteCode', + 'submitOrgInviteCode', + options.select, + args, + [ + { + name: 'input', + type: 'SubmitOrgInviteCodeInput!', + }, + ], + connectionFieldsMap, + 'SubmitOrgInviteCodePayload' + ), + }), + }; +} diff --git a/sdk/constructive-react/src/admin/orm/query-builder.ts b/sdk/constructive-react/src/admin/orm/query-builder.ts new file mode 100644 index 000000000..67c3992b5 --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/query-builder.ts @@ -0,0 +1,847 @@ +/** + * Query Builder - Builds and executes GraphQL operations + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { parseType, print } from '@0no-co/graphql.web'; +import * as t from 'gql-ast'; +import type { ArgumentNode, EnumValueNode, FieldNode, VariableDefinitionNode } from 'graphql'; + +import { GraphQLRequestError, OrmClient, QueryResult } from './client'; + +export interface QueryBuilderConfig { + client: OrmClient; + operation: 'query' | 'mutation'; + operationName: string; + fieldName: string; + document: string; + variables?: Record; + transform?: (data: any) => TResult; +} + +export class QueryBuilder { + private config: QueryBuilderConfig; + + constructor(config: QueryBuilderConfig) { + this.config = config; + } + + /** + * Execute the query and return a discriminated union result + * Use result.ok to check success, or .unwrap() to throw on error + */ + async execute(): Promise> { + const rawResult = await this.config.client.execute( + this.config.document, + this.config.variables + ); + if (!rawResult.ok) { + return rawResult; + } + if (!this.config.transform) { + return rawResult as unknown as QueryResult; + } + return { + ok: true, + data: this.config.transform(rawResult.data), + errors: undefined, + }; + } + + /** + * Execute and unwrap the result, throwing GraphQLRequestError on failure + * @throws {GraphQLRequestError} If the query returns errors + */ + async unwrap(): Promise { + const result = await this.execute(); + if (!result.ok) { + throw new GraphQLRequestError(result.errors, result.data); + } + return result.data; + } + + /** + * Execute and unwrap, returning defaultValue on error instead of throwing + */ + async unwrapOr(defaultValue: D): Promise { + const result = await this.execute(); + if (!result.ok) { + return defaultValue; + } + return result.data; + } + + /** + * Execute and unwrap, calling onError callback on failure + */ + async unwrapOrElse( + onError: (errors: import('./client').GraphQLError[]) => D + ): Promise { + const result = await this.execute(); + if (!result.ok) { + return onError(result.errors); + } + return result.data; + } + + toGraphQL(): string { + return this.config.document; + } + + getVariables(): Record | undefined { + return this.config.variables; + } +} + +const OP_QUERY = 'query' as unknown as import('graphql').OperationTypeNode; +const OP_MUTATION = 'mutation' as unknown as import('graphql').OperationTypeNode; +const ENUM_VALUE_KIND = 'EnumValue' as unknown as EnumValueNode['kind']; + +// ============================================================================ +// Selection Builders +// ============================================================================ + +export function buildSelections( + select: Record | undefined, + connectionFieldsMap?: Record>, + entityType?: string +): FieldNode[] { + if (!select) { + return []; + } + + const fields: FieldNode[] = []; + const entityConnections = entityType ? connectionFieldsMap?.[entityType] : undefined; + + for (const [key, value] of Object.entries(select)) { + if (value === false || value === undefined) { + continue; + } + + if (value === true) { + fields.push(t.field({ name: key })); + continue; + } + + if (typeof value === 'object' && value !== null) { + const nested = value as { + select?: Record; + first?: number; + filter?: Record; + orderBy?: string[]; + connection?: boolean; + }; + + if (!nested.select || typeof nested.select !== 'object') { + throw new Error( + `Invalid selection for field "${key}": nested selections must include a "select" object.` + ); + } + + const relatedEntityType = entityConnections?.[key]; + const nestedSelections = buildSelections( + nested.select, + connectionFieldsMap, + relatedEntityType + ); + const isConnection = + nested.connection === true || + nested.first !== undefined || + nested.filter !== undefined || + relatedEntityType !== undefined; + const args = buildArgs([ + buildOptionalArg('first', nested.first), + nested.filter + ? t.argument({ + name: 'filter', + value: buildValueAst(nested.filter), + }) + : null, + buildEnumListArg('orderBy', nested.orderBy), + ]); + + if (isConnection) { + fields.push( + t.field({ + name: key, + args, + selectionSet: t.selectionSet({ + selections: buildConnectionSelections(nestedSelections), + }), + }) + ); + } else { + fields.push( + t.field({ + name: key, + args, + selectionSet: t.selectionSet({ selections: nestedSelections }), + }) + ); + } + } + } + + return fields; +} + +// ============================================================================ +// Document Builders +// ============================================================================ + +export function buildFindManyDocument( + operationName: string, + queryField: string, + select: TSelect, + args: { + where?: TWhere; + orderBy?: string[]; + first?: number; + last?: number; + after?: string; + before?: string; + offset?: number; + }, + filterTypeName: string, + orderByTypeName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + const variableDefinitions: VariableDefinitionNode[] = []; + const queryArgs: ArgumentNode[] = []; + const variables: Record = {}; + + addVariable( + { + varName: 'where', + argName: 'filter', + typeName: filterTypeName, + value: args.where, + }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { + varName: 'orderBy', + typeName: '[' + orderByTypeName + '!]', + value: args.orderBy?.length ? args.orderBy : undefined, + }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { varName: 'first', typeName: 'Int', value: args.first }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { varName: 'last', typeName: 'Int', value: args.last }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { varName: 'after', typeName: 'Cursor', value: args.after }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { varName: 'before', typeName: 'Cursor', value: args.before }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { varName: 'offset', typeName: 'Int', value: args.offset }, + variableDefinitions, + queryArgs, + variables + ); + + const document = t.document({ + definitions: [ + t.operationDefinition({ + operation: OP_QUERY, + name: operationName + 'Query', + variableDefinitions: variableDefinitions.length ? variableDefinitions : undefined, + selectionSet: t.selectionSet({ + selections: [ + t.field({ + name: queryField, + args: queryArgs.length ? queryArgs : undefined, + selectionSet: t.selectionSet({ + selections: buildConnectionSelections(selections), + }), + }), + ], + }), + }), + ], + }); + + return { document: print(document), variables }; +} + +export function buildFindFirstDocument( + operationName: string, + queryField: string, + select: TSelect, + args: { where?: TWhere }, + filterTypeName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + const variableDefinitions: VariableDefinitionNode[] = []; + const queryArgs: ArgumentNode[] = []; + const variables: Record = {}; + + // Always add first: 1 for findFirst + addVariable( + { varName: 'first', typeName: 'Int', value: 1 }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { + varName: 'where', + argName: 'filter', + typeName: filterTypeName, + value: args.where, + }, + variableDefinitions, + queryArgs, + variables + ); + + const document = t.document({ + definitions: [ + t.operationDefinition({ + operation: OP_QUERY, + name: operationName + 'Query', + variableDefinitions, + selectionSet: t.selectionSet({ + selections: [ + t.field({ + name: queryField, + args: queryArgs, + selectionSet: t.selectionSet({ + selections: [ + t.field({ + name: 'nodes', + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + }), + ], + }), + }), + ], + }); + + return { document: print(document), variables }; +} + +export function buildCreateDocument( + operationName: string, + mutationField: string, + entityField: string, + select: TSelect, + data: TData, + inputTypeName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ + name: entityField, + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + variables: { + input: { + [entityField]: data, + }, + }, + }; +} + +export function buildUpdateDocument( + operationName: string, + mutationField: string, + entityField: string, + select: TSelect, + where: TWhere, + data: TData, + inputTypeName: string, + patchFieldName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ + name: entityField, + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + variables: { + input: { + id: where.id, + [patchFieldName]: data, + }, + }, + }; +} + +export function buildUpdateByPkDocument( + operationName: string, + mutationField: string, + entityField: string, + select: TSelect, + id: string | number, + data: TData, + inputTypeName: string, + idFieldName: string, + patchFieldName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ + name: entityField, + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + variables: { + input: { + [idFieldName]: id, + [patchFieldName]: data, + }, + }, + }; +} + +export function buildFindOneDocument( + operationName: string, + queryField: string, + id: string | number, + select: TSelect, + idArgName: string, + idTypeName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + const variableDefinitions: VariableDefinitionNode[] = [ + t.variableDefinition({ + variable: t.variable({ name: idArgName }), + type: parseType(idTypeName), + }), + ]; + + const queryArgs: ArgumentNode[] = [ + t.argument({ + name: idArgName, + value: t.variable({ name: idArgName }), + }), + ]; + + const document = t.document({ + definitions: [ + t.operationDefinition({ + operation: OP_QUERY, + name: operationName + 'Query', + variableDefinitions, + selectionSet: t.selectionSet({ + selections: [ + t.field({ + name: queryField, + args: queryArgs, + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + }), + ], + }); + + return { + document: print(document), + variables: { [idArgName]: id }, + }; +} + +export function buildDeleteDocument( + operationName: string, + mutationField: string, + entityField: string, + where: TWhere, + inputTypeName: string, + select?: TSelect, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const entitySelections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ + name: entityField, + selectionSet: t.selectionSet({ + selections: entitySelections, + }), + }), + ], + }), + variables: { + input: { + id: where.id, + }, + }, + }; +} + +export function buildDeleteByPkDocument( + operationName: string, + mutationField: string, + entityField: string, + id: string | number, + inputTypeName: string, + idFieldName: string, + select?: TSelect, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const entitySelections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ + name: entityField, + selectionSet: t.selectionSet({ selections: entitySelections }), + }), + ], + }), + variables: { + input: { + [idFieldName]: id, + }, + }, + }; +} + +export function buildCustomDocument( + operationType: 'query' | 'mutation', + operationName: string, + fieldName: string, + select: TSelect, + args: TArgs, + variableDefinitions: Array<{ name: string; type: string }>, + connectionFieldsMap?: Record>, + entityType?: string +): { document: string; variables: Record } { + let actualSelect: TSelect = select; + let isConnection = false; + + if (isCustomSelectionWrapper(select)) { + actualSelect = select.select as TSelect; + isConnection = select.connection === true; + } + + const selections = actualSelect + ? buildSelections(actualSelect as Record, connectionFieldsMap, entityType) + : []; + + const variableDefs = variableDefinitions.map((definition) => + t.variableDefinition({ + variable: t.variable({ name: definition.name }), + type: parseType(definition.type), + }) + ); + const fieldArgs = variableDefinitions.map((definition) => + t.argument({ + name: definition.name, + value: t.variable({ name: definition.name }), + }) + ); + + const fieldSelections = isConnection ? buildConnectionSelections(selections) : selections; + + const document = t.document({ + definitions: [ + t.operationDefinition({ + operation: operationType === 'mutation' ? OP_MUTATION : OP_QUERY, + name: operationName, + variableDefinitions: variableDefs.length ? variableDefs : undefined, + selectionSet: t.selectionSet({ + selections: [ + t.field({ + name: fieldName, + args: fieldArgs.length ? fieldArgs : undefined, + selectionSet: fieldSelections.length + ? t.selectionSet({ selections: fieldSelections }) + : undefined, + }), + ], + }), + }), + ], + }); + + return { + document: print(document), + variables: (args ?? {}) as Record, + }; +} + +function isCustomSelectionWrapper( + value: unknown +): value is { select: Record; connection?: boolean } { + if (!value || typeof value !== 'object' || Array.isArray(value)) { + return false; + } + + const record = value as Record; + const keys = Object.keys(record); + + if (!keys.includes('select') || !keys.includes('connection')) { + return false; + } + + if (keys.some((key) => key !== 'select' && key !== 'connection')) { + return false; + } + + return !!record.select && typeof record.select === 'object' && !Array.isArray(record.select); +} + +// ============================================================================ +// Helper Functions +// ============================================================================ + +function buildArgs(args: Array): ArgumentNode[] { + return args.filter((arg): arg is ArgumentNode => arg !== null); +} + +function buildOptionalArg(name: string, value: number | string | undefined): ArgumentNode | null { + if (value === undefined) { + return null; + } + const valueNode = + typeof value === 'number' ? t.intValue({ value: value.toString() }) : t.stringValue({ value }); + return t.argument({ name, value: valueNode }); +} + +function buildEnumListArg(name: string, values: string[] | undefined): ArgumentNode | null { + if (!values || values.length === 0) { + return null; + } + return t.argument({ + name, + value: t.listValue({ + values: values.map((value) => buildEnumValue(value)), + }), + }); +} + +function buildEnumValue(value: string): EnumValueNode { + return { + kind: ENUM_VALUE_KIND, + value, + }; +} + +function buildPageInfoSelections(): FieldNode[] { + return [ + t.field({ name: 'hasNextPage' }), + t.field({ name: 'hasPreviousPage' }), + t.field({ name: 'startCursor' }), + t.field({ name: 'endCursor' }), + ]; +} + +function buildConnectionSelections(nodeSelections: FieldNode[]): FieldNode[] { + return [ + t.field({ + name: 'nodes', + selectionSet: t.selectionSet({ selections: nodeSelections }), + }), + t.field({ name: 'totalCount' }), + t.field({ + name: 'pageInfo', + selectionSet: t.selectionSet({ selections: buildPageInfoSelections() }), + }), + ]; +} + +interface VariableSpec { + varName: string; + argName?: string; + typeName: string; + value: unknown; +} + +interface InputMutationConfig { + operationName: string; + mutationField: string; + inputTypeName: string; + resultSelections: FieldNode[]; +} + +function buildInputMutationDocument(config: InputMutationConfig): string { + const document = t.document({ + definitions: [ + t.operationDefinition({ + operation: OP_MUTATION, + name: config.operationName + 'Mutation', + variableDefinitions: [ + t.variableDefinition({ + variable: t.variable({ name: 'input' }), + type: parseType(config.inputTypeName + '!'), + }), + ], + selectionSet: t.selectionSet({ + selections: [ + t.field({ + name: config.mutationField, + args: [ + t.argument({ + name: 'input', + value: t.variable({ name: 'input' }), + }), + ], + selectionSet: t.selectionSet({ + selections: config.resultSelections, + }), + }), + ], + }), + }), + ], + }); + return print(document); +} + +function addVariable( + spec: VariableSpec, + definitions: VariableDefinitionNode[], + args: ArgumentNode[], + variables: Record +): void { + if (spec.value === undefined) return; + + definitions.push( + t.variableDefinition({ + variable: t.variable({ name: spec.varName }), + type: parseType(spec.typeName), + }) + ); + args.push( + t.argument({ + name: spec.argName ?? spec.varName, + value: t.variable({ name: spec.varName }), + }) + ); + variables[spec.varName] = spec.value; +} + +function buildValueAst( + value: unknown +): + | ReturnType + | ReturnType + | ReturnType + | ReturnType + | ReturnType + | ReturnType + | ReturnType + | EnumValueNode { + if (value === null) { + return t.nullValue(); + } + + if (typeof value === 'boolean') { + return t.booleanValue({ value }); + } + + if (typeof value === 'number') { + return Number.isInteger(value) + ? t.intValue({ value: value.toString() }) + : t.floatValue({ value: value.toString() }); + } + + if (typeof value === 'string') { + return t.stringValue({ value }); + } + + if (Array.isArray(value)) { + return t.listValue({ + values: value.map((item) => buildValueAst(item)), + }); + } + + if (typeof value === 'object' && value !== null) { + const obj = value as Record; + return t.objectValue({ + fields: Object.entries(obj).map(([key, val]) => + t.objectField({ + name: key, + value: buildValueAst(val), + }) + ), + }); + } + + throw new Error('Unsupported value type: ' + typeof value); +} diff --git a/sdk/constructive-react/src/admin/orm/query/index.ts b/sdk/constructive-react/src/admin/orm/query/index.ts new file mode 100644 index 000000000..58c216770 --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/query/index.ts @@ -0,0 +1,411 @@ +/** + * Custom query operations + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { QueryBuilder, buildCustomDocument } from '../query-builder'; +import type { InferSelectResult, StrictSelect } from '../select-types'; +import type { + AppPermissionConnection, + OrgPermissionConnection, + AppLevelRequirementConnection, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export interface AppPermissionsGetPaddedMaskVariables { + mask?: string; +} +export interface OrgPermissionsGetPaddedMaskVariables { + mask?: string; +} +export interface StepsAchievedVariables { + vlevel?: string; + vroleId?: string; +} +export interface AppPermissionsGetMaskVariables { + ids?: string[]; +} +export interface OrgPermissionsGetMaskVariables { + ids?: string[]; +} +export interface AppPermissionsGetMaskByNamesVariables { + names?: string[]; +} +export interface OrgPermissionsGetMaskByNamesVariables { + names?: string[]; +} +export interface AppPermissionsGetByMaskVariables { + mask?: string; + /** Only read the first `n` values of the set. */ + first?: number; + /** + * Skip the first `n` values from our `after` cursor, an alternative to cursor + * based pagination. May not be used with `last`. + */ + offset?: number; + /** Read all values in the set after (below) this cursor. */ + after?: string; +} +export interface OrgPermissionsGetByMaskVariables { + mask?: string; + /** Only read the first `n` values of the set. */ + first?: number; + /** + * Skip the first `n` values from our `after` cursor, an alternative to cursor + * based pagination. May not be used with `last`. + */ + offset?: number; + /** Read all values in the set after (below) this cursor. */ + after?: string; +} +export interface StepsRequiredVariables { + vlevel?: string; + vroleId?: string; + /** Only read the first `n` values of the set. */ + first?: number; + /** + * Skip the first `n` values from our `after` cursor, an alternative to cursor + * based pagination. May not be used with `last`. + */ + offset?: number; + /** Read all values in the set after (below) this cursor. */ + after?: string; +} +export function createQueryOperations(client: OrmClient) { + return { + appPermissionsGetPaddedMask: ( + args: AppPermissionsGetPaddedMaskVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + appPermissionsGetPaddedMask: string | null; + }>({ + client, + operation: 'query', + operationName: 'AppPermissionsGetPaddedMask', + fieldName: 'appPermissionsGetPaddedMask', + ...buildCustomDocument( + 'query', + 'AppPermissionsGetPaddedMask', + 'appPermissionsGetPaddedMask', + options?.select, + args, + [ + { + name: 'mask', + type: 'BitString', + }, + ], + connectionFieldsMap, + undefined + ), + }), + orgPermissionsGetPaddedMask: ( + args: OrgPermissionsGetPaddedMaskVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + orgPermissionsGetPaddedMask: string | null; + }>({ + client, + operation: 'query', + operationName: 'OrgPermissionsGetPaddedMask', + fieldName: 'orgPermissionsGetPaddedMask', + ...buildCustomDocument( + 'query', + 'OrgPermissionsGetPaddedMask', + 'orgPermissionsGetPaddedMask', + options?.select, + args, + [ + { + name: 'mask', + type: 'BitString', + }, + ], + connectionFieldsMap, + undefined + ), + }), + stepsAchieved: ( + args: StepsAchievedVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + stepsAchieved: boolean | null; + }>({ + client, + operation: 'query', + operationName: 'StepsAchieved', + fieldName: 'stepsAchieved', + ...buildCustomDocument( + 'query', + 'StepsAchieved', + 'stepsAchieved', + options?.select, + args, + [ + { + name: 'vlevel', + type: 'String', + }, + { + name: 'vroleId', + type: 'UUID', + }, + ], + connectionFieldsMap, + undefined + ), + }), + appPermissionsGetMask: ( + args: AppPermissionsGetMaskVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + appPermissionsGetMask: string | null; + }>({ + client, + operation: 'query', + operationName: 'AppPermissionsGetMask', + fieldName: 'appPermissionsGetMask', + ...buildCustomDocument( + 'query', + 'AppPermissionsGetMask', + 'appPermissionsGetMask', + options?.select, + args, + [ + { + name: 'ids', + type: '[UUID]', + }, + ], + connectionFieldsMap, + undefined + ), + }), + orgPermissionsGetMask: ( + args: OrgPermissionsGetMaskVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + orgPermissionsGetMask: string | null; + }>({ + client, + operation: 'query', + operationName: 'OrgPermissionsGetMask', + fieldName: 'orgPermissionsGetMask', + ...buildCustomDocument( + 'query', + 'OrgPermissionsGetMask', + 'orgPermissionsGetMask', + options?.select, + args, + [ + { + name: 'ids', + type: '[UUID]', + }, + ], + connectionFieldsMap, + undefined + ), + }), + appPermissionsGetMaskByNames: ( + args: AppPermissionsGetMaskByNamesVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + appPermissionsGetMaskByNames: string | null; + }>({ + client, + operation: 'query', + operationName: 'AppPermissionsGetMaskByNames', + fieldName: 'appPermissionsGetMaskByNames', + ...buildCustomDocument( + 'query', + 'AppPermissionsGetMaskByNames', + 'appPermissionsGetMaskByNames', + options?.select, + args, + [ + { + name: 'names', + type: '[String]', + }, + ], + connectionFieldsMap, + undefined + ), + }), + orgPermissionsGetMaskByNames: ( + args: OrgPermissionsGetMaskByNamesVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + orgPermissionsGetMaskByNames: string | null; + }>({ + client, + operation: 'query', + operationName: 'OrgPermissionsGetMaskByNames', + fieldName: 'orgPermissionsGetMaskByNames', + ...buildCustomDocument( + 'query', + 'OrgPermissionsGetMaskByNames', + 'orgPermissionsGetMaskByNames', + options?.select, + args, + [ + { + name: 'names', + type: '[String]', + }, + ], + connectionFieldsMap, + undefined + ), + }), + appPermissionsGetByMask: ( + args: AppPermissionsGetByMaskVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + appPermissionsGetByMask: AppPermissionConnection | null; + }>({ + client, + operation: 'query', + operationName: 'AppPermissionsGetByMask', + fieldName: 'appPermissionsGetByMask', + ...buildCustomDocument( + 'query', + 'AppPermissionsGetByMask', + 'appPermissionsGetByMask', + options?.select, + args, + [ + { + name: 'mask', + type: 'BitString', + }, + { + name: 'first', + type: 'Int', + }, + { + name: 'offset', + type: 'Int', + }, + { + name: 'after', + type: 'Cursor', + }, + ], + connectionFieldsMap, + undefined + ), + }), + orgPermissionsGetByMask: ( + args: OrgPermissionsGetByMaskVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + orgPermissionsGetByMask: OrgPermissionConnection | null; + }>({ + client, + operation: 'query', + operationName: 'OrgPermissionsGetByMask', + fieldName: 'orgPermissionsGetByMask', + ...buildCustomDocument( + 'query', + 'OrgPermissionsGetByMask', + 'orgPermissionsGetByMask', + options?.select, + args, + [ + { + name: 'mask', + type: 'BitString', + }, + { + name: 'first', + type: 'Int', + }, + { + name: 'offset', + type: 'Int', + }, + { + name: 'after', + type: 'Cursor', + }, + ], + connectionFieldsMap, + undefined + ), + }), + stepsRequired: ( + args: StepsRequiredVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + stepsRequired: AppLevelRequirementConnection | null; + }>({ + client, + operation: 'query', + operationName: 'StepsRequired', + fieldName: 'stepsRequired', + ...buildCustomDocument( + 'query', + 'StepsRequired', + 'stepsRequired', + options?.select, + args, + [ + { + name: 'vlevel', + type: 'String', + }, + { + name: 'vroleId', + type: 'UUID', + }, + { + name: 'first', + type: 'Int', + }, + { + name: 'offset', + type: 'Int', + }, + { + name: 'after', + type: 'Cursor', + }, + ], + connectionFieldsMap, + undefined + ), + }), + }; +} diff --git a/sdk/constructive-react/src/admin/orm/select-types.ts b/sdk/constructive-react/src/admin/orm/select-types.ts new file mode 100644 index 000000000..80165efa6 --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/select-types.ts @@ -0,0 +1,140 @@ +/** + * Type utilities for select inference + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export interface ConnectionResult { + nodes: T[]; + totalCount: number; + pageInfo: PageInfo; +} + +export interface PageInfo { + hasNextPage: boolean; + hasPreviousPage: boolean; + startCursor?: string | null; + endCursor?: string | null; +} + +export interface FindManyArgs { + select?: TSelect; + where?: TWhere; + orderBy?: TOrderBy[]; + first?: number; + last?: number; + after?: string; + before?: string; + offset?: number; +} + +export interface FindFirstArgs { + select?: TSelect; + where?: TWhere; +} + +export interface CreateArgs { + data: TData; + select?: TSelect; +} + +export interface UpdateArgs { + where: TWhere; + data: TData; + select?: TSelect; +} + +export type FindOneArgs = { + select?: TSelect; +} & Record; + +export interface DeleteArgs { + where: TWhere; + select?: TSelect; +} + +type DepthLevel = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10; +type DecrementDepth = { + 0: 0; + 1: 0; + 2: 1; + 3: 2; + 4: 3; + 5: 4; + 6: 5; + 7: 6; + 8: 7; + 9: 8; + 10: 9; +}; + +/** + * Recursively validates select objects, rejecting unknown keys. + * + * NOTE: Depth is intentionally capped to avoid circular-instantiation issues + * in very large cyclic schemas. + */ +export type DeepExact = Depth extends 0 + ? T extends Shape + ? T + : never + : T extends Shape + ? Exclude extends never + ? { + [K in keyof T]: K extends keyof Shape + ? T[K] extends { select: infer NS } + ? Extract extends { + select?: infer ShapeNS; + } + ? DeepExact< + Omit & { + select: DeepExact, DecrementDepth[Depth]>; + }, + Extract, + DecrementDepth[Depth] + > + : never + : T[K] + : never; + } + : never + : never; + +/** + * Enforces exact select shape while keeping contextual typing on `S extends XxxSelect`. + * Use this as an intersection in overloads: + * `{ select: S } & StrictSelect`. + */ +export type StrictSelect = S extends DeepExact ? {} : never; + +/** + * Hook-optimized strict select variant. + * + * Uses a shallower recursion depth to keep editor autocomplete responsive + * in large schemas while still validating common nested-select mistakes. + */ +export type HookStrictSelect = S extends DeepExact ? {} : never; + +/** + * Infer result type from select configuration + */ +export type InferSelectResult = TSelect extends undefined + ? TEntity + : { + [K in keyof TSelect as TSelect[K] extends false | undefined + ? never + : K]: TSelect[K] extends true + ? K extends keyof TEntity + ? TEntity[K] + : never + : TSelect[K] extends { select: infer NestedSelect } + ? K extends keyof TEntity + ? NonNullable extends ConnectionResult + ? ConnectionResult> + : + | InferSelectResult, NestedSelect> + | (null extends TEntity[K] ? null : never) + : never + : K extends keyof TEntity + ? TEntity[K] + : never; + }; diff --git a/sdk/constructive-react/src/admin/orm/skills/appAchievement.md b/sdk/constructive-react/src/admin/orm/skills/appAchievement.md new file mode 100644 index 000000000..3e7b712a8 --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/skills/appAchievement.md @@ -0,0 +1,34 @@ +# orm-appAchievement + + + +ORM operations for AppAchievement records + +## 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 new file mode 100644 index 000000000..6b585abee --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/skills/appAdminGrant.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..017771262 --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/skills/appGrant.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..b9c1a83b0 --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/skills/appLevel.md @@ -0,0 +1,34 @@ +# orm-appLevel + + + +ORM operations for AppLevel records + +## 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 new file mode 100644 index 000000000..10cfc240d --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/skills/appLevelRequirement.md @@ -0,0 +1,34 @@ +# orm-appLevelRequirement + + + +ORM operations for AppLevelRequirement records + +## 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 new file mode 100644 index 000000000..50fa2b37f --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/skills/appLimit.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..eb070a028 --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/skills/appLimitDefault.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..07e8f9763 --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/skills/appMembership.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..82c322958 --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/skills/appMembershipDefault.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..89c574dd7 --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/skills/appOwnerGrant.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..a497f7b8a --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/skills/appPermission.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..ef8289183 --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/skills/appPermissionDefault.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..369df9f26 --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/skills/appPermissionsGetByMask.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..ceca5548f --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/skills/appPermissionsGetMask.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..c3f40dddc --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/skills/appPermissionsGetMaskByNames.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..accce0eed --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/skills/appPermissionsGetPaddedMask.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..840537361 --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/skills/appStep.md @@ -0,0 +1,34 @@ +# orm-appStep + + + +ORM operations for AppStep records + +## 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 new file mode 100644 index 000000000..3d5de6b3b --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/skills/claimedInvite.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..727a2107e --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/skills/invite.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..898d85107 --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/skills/membershipType.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..675b76741 --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/skills/orgAdminGrant.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..5693e2856 --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/skills/orgClaimedInvite.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..ac4c4b896 --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/skills/orgGrant.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..ea7ff346d --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/skills/orgInvite.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..19681fddf --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/skills/orgLimit.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..4a4e505bd --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/skills/orgLimitDefault.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..2aadbafd3 --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/skills/orgMember.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..b98b850b2 --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/skills/orgMembership.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..cd8146f14 --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/skills/orgMembershipDefault.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..8a490261b --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/skills/orgOwnerGrant.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..1f18add5d --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/skills/orgPermission.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..8d8e20afc --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/skills/orgPermissionDefault.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..437f5c98b --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/skills/orgPermissionsGetByMask.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..c626883ad --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/skills/orgPermissionsGetMask.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..f67397dcc --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/skills/orgPermissionsGetMaskByNames.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..a67198a29 --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/skills/orgPermissionsGetPaddedMask.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..bce806fd4 --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/skills/stepsAchieved.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..8ea0ad638 --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/skills/stepsRequired.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..ae946fe75 --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/skills/submitInviteCode.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..0ceff0ee1 --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/skills/submitOrgInviteCode.md @@ -0,0 +1,19 @@ +# 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/orm/types.ts b/sdk/constructive-react/src/admin/orm/types.ts new file mode 100644 index 000000000..7c1120bcd --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/types.ts @@ -0,0 +1,8 @@ +/** + * Types re-export + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +// Re-export all types from input-types +export * from './input-types'; diff --git a/sdk/constructive-react/src/admin/schema-types.ts b/sdk/constructive-react/src/admin/schema-types.ts new file mode 100644 index 000000000..5ca2fa393 --- /dev/null +++ b/sdk/constructive-react/src/admin/schema-types.ts @@ -0,0 +1,3737 @@ +/** + * GraphQL schema types for custom operations + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import type { + AppAchievement, + AppAdminGrant, + AppGrant, + AppLevel, + AppLevelRequirement, + AppLimit, + AppLimitDefault, + AppMembership, + AppMembershipDefault, + AppOwnerGrant, + AppPermission, + AppPermissionDefault, + AppStep, + ClaimedInvite, + Invite, + MembershipType, + OrgAdminGrant, + OrgClaimedInvite, + OrgGrant, + OrgInvite, + OrgLimit, + OrgLimitDefault, + OrgMember, + OrgMembership, + OrgMembershipDefault, + OrgOwnerGrant, + OrgPermission, + OrgPermissionDefault, + BigFloatFilter, + BigIntFilter, + BitStringFilter, + BooleanFilter, + DateFilter, + DatetimeFilter, + FloatFilter, + FullTextFilter, + IntFilter, + IntListFilter, + InternetAddressFilter, + JSONFilter, + StringFilter, + StringListFilter, + UUIDFilter, + UUIDListFilter, +} from './types'; +export type ConstructiveInternalTypeEmail = unknown; +export type ConstructiveInternalTypeImage = unknown; +/** Methods to use when ordering `OrgMember`. */ +export type OrgMemberOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_ADMIN_ASC' + | 'IS_ADMIN_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_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 `OrgPermissionDefault`. */ +export type OrgPermissionDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC'; +/** Methods to use when ordering `AppAdminGrant`. */ +export type AppAdminGrantOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `AppOwnerGrant`. */ +export type AppOwnerGrantOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' + | 'CREATED_AT_ASC' + | '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' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `OrgOwnerGrant`. */ +export type OrgOwnerGrantOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' + | 'CREATED_AT_ASC' + | '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 `AppPermission`. */ +export type AppPermissionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'BITNUM_ASC' + | 'BITNUM_DESC'; +/** Methods to use when ordering `OrgPermission`. */ +export type OrgPermissionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'BITNUM_ASC' + | 'BITNUM_DESC'; +/** Methods to use when ordering `AppLimit`. */ +export type AppLimitOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC'; +/** Methods to use when ordering `AppAchievement`. */ +export type AppAchievementOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `AppStep`. */ +export type AppStepOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `ClaimedInvite`. */ +export type ClaimedInviteOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'SENDER_ID_ASC' + | 'SENDER_ID_DESC' + | 'RECEIVER_ID_ASC' + | 'RECEIVER_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `AppGrant`. */ +export type AppGrantOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `AppMembershipDefault`. */ +export type AppMembershipDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | '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'; +/** Methods to use when ordering `OrgLimit`. */ +export type OrgLimitOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; +/** Methods to use when ordering `OrgClaimedInvite`. */ +export type OrgClaimedInviteOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'SENDER_ID_ASC' + | 'SENDER_ID_DESC' + | 'RECEIVER_ID_ASC' + | 'RECEIVER_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `OrgGrant`. */ +export type OrgGrantOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `OrgMembershipDefault`. */ +export type OrgMembershipDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | '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' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; +/** Methods to use when ordering `AppLevelRequirement`. */ +export type AppLevelRequirementOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'LEVEL_ASC' + | 'LEVEL_DESC' + | 'PRIORITY_ASC' + | 'PRIORITY_DESC' + | 'CREATED_AT_ASC' + | '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' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'EMAIL_ASC' + | 'EMAIL_DESC' + | 'SENDER_ID_ASC' + | 'SENDER_ID_DESC' + | 'INVITE_TOKEN_ASC' + | 'INVITE_TOKEN_DESC' + | 'INVITE_VALID_ASC' + | 'INVITE_VALID_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `AppMembership`. */ +export type AppMembershipOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | '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_OWNER_ASC' + | 'IS_OWNER_DESC' + | 'IS_ADMIN_ASC' + | 'IS_ADMIN_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC'; +/** Methods to use when ordering `OrgMembership`. */ +export type OrgMembershipOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | '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_OWNER_ASC' + | 'IS_OWNER_DESC' + | 'IS_ADMIN_ASC' + | 'IS_ADMIN_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; +/** Methods to use when ordering `OrgInvite`. */ +export type OrgInviteOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'EMAIL_ASC' + | 'EMAIL_DESC' + | 'SENDER_ID_ASC' + | 'SENDER_ID_DESC' + | 'INVITE_TOKEN_ASC' + | 'INVITE_TOKEN_DESC' + | 'INVITE_VALID_ASC' + | 'INVITE_VALID_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; +/** + * A condition to be used against `OrgMember` object types. All fields are tested + * for equality and combined with a logical ‘and.’ + */ +export interface OrgMemberCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `isAdmin` field. */ + isAdmin?: boolean; + /** Checks for equality with the object’s `actorId` field. */ + actorId?: string; + /** Checks for equality with the object’s `entityId` field. */ + entityId?: string; +} +/** A filter to be used against `OrgMember` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgMemberFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isAdmin` field. */ + isAdmin?: BooleanFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: OrgMemberFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgMemberFilter[]; + /** Negates the expression. */ + not?: OrgMemberFilter; +} +/** + * 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 `OrgPermissionDefault` object types. All fields + * are tested for equality and combined with a logical ‘and.’ + */ +export interface OrgPermissionDefaultCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `permissions` field. */ + permissions?: string; + /** Checks for equality with the object’s `entityId` field. */ + entityId?: string; +} +/** A filter to be used against `OrgPermissionDefault` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgPermissionDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `permissions` field. */ + permissions?: BitStringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: OrgPermissionDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgPermissionDefaultFilter[]; + /** Negates the expression. */ + not?: OrgPermissionDefaultFilter; +} +/** + * A condition to be used against `AppAdminGrant` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface AppAdminGrantCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `isGrant` field. */ + isGrant?: boolean; + /** Checks for equality with the object’s `actorId` field. */ + actorId?: string; + /** Checks for equality with the object’s `grantorId` field. */ + grantorId?: 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 `AppAdminGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface AppAdminGrantFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `grantorId` field. */ + grantorId?: 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?: AppAdminGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: AppAdminGrantFilter[]; + /** Negates the expression. */ + not?: AppAdminGrantFilter; +} +/** + * A condition to be used against `AppOwnerGrant` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface AppOwnerGrantCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `isGrant` field. */ + isGrant?: boolean; + /** Checks for equality with the object’s `actorId` field. */ + actorId?: string; + /** Checks for equality with the object’s `grantorId` field. */ + grantorId?: 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 `AppOwnerGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface AppOwnerGrantFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `grantorId` field. */ + grantorId?: 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?: AppOwnerGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: 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.’ + */ +export interface OrgAdminGrantCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `isGrant` field. */ + isGrant?: boolean; + /** Checks for equality with the object’s `actorId` field. */ + actorId?: string; + /** Checks for equality with the object’s `entityId` field. */ + entityId?: string; + /** Checks for equality with the object’s `grantorId` field. */ + grantorId?: 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 `OrgAdminGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgAdminGrantFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `grantorId` field. */ + grantorId?: 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?: OrgAdminGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgAdminGrantFilter[]; + /** Negates the expression. */ + not?: OrgAdminGrantFilter; +} +/** + * A condition to be used against `OrgOwnerGrant` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface OrgOwnerGrantCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `isGrant` field. */ + isGrant?: boolean; + /** Checks for equality with the object’s `actorId` field. */ + actorId?: string; + /** Checks for equality with the object’s `entityId` field. */ + entityId?: string; + /** Checks for equality with the object’s `grantorId` field. */ + grantorId?: 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 `OrgOwnerGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgOwnerGrantFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `grantorId` field. */ + grantorId?: 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?: OrgOwnerGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgOwnerGrantFilter[]; + /** Negates the expression. */ + not?: OrgOwnerGrantFilter; +} +/** + * 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 `AppPermission` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface AppPermissionCondition { + /** 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 `bitnum` field. */ + bitnum?: number; + /** Checks for equality with the object’s `bitstr` field. */ + bitstr?: string; + /** Checks for equality with the object’s `description` field. */ + description?: string; +} +/** A filter to be used against `AppPermission` object types. All fields are combined with a logical ‘and.’ */ +export interface AppPermissionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `bitnum` field. */ + bitnum?: IntFilter; + /** Filter by the object’s `bitstr` field. */ + bitstr?: BitStringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AppPermissionFilter[]; + /** Checks for any expressions in this list. */ + or?: AppPermissionFilter[]; + /** Negates the expression. */ + not?: AppPermissionFilter; +} +/** + * A condition to be used against `OrgPermission` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface OrgPermissionCondition { + /** 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 `bitnum` field. */ + bitnum?: number; + /** Checks for equality with the object’s `bitstr` field. */ + bitstr?: string; + /** Checks for equality with the object’s `description` field. */ + description?: string; +} +/** A filter to be used against `OrgPermission` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgPermissionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `bitnum` field. */ + bitnum?: IntFilter; + /** Filter by the object’s `bitstr` field. */ + bitstr?: BitStringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Checks for all expressions in this list. */ + and?: OrgPermissionFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgPermissionFilter[]; + /** Negates the expression. */ + not?: OrgPermissionFilter; +} +/** + * A condition to be used against `AppLimit` object types. All fields are tested + * for equality and combined with a logical ‘and.’ + */ +export interface AppLimitCondition { + /** 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 `actorId` field. */ + actorId?: string; + /** Checks for equality with the object’s `num` field. */ + num?: number; + /** Checks for equality with the object’s `max` field. */ + max?: number; +} +/** A filter to be used against `AppLimit` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `num` field. */ + num?: IntFilter; + /** Filter by the object’s `max` field. */ + max?: IntFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitFilter[]; + /** Negates the expression. */ + not?: AppLimitFilter; +} +/** + * A condition to be used against `AppAchievement` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface AppAchievementCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `actorId` field. */ + actorId?: string; + /** Checks for equality with the object’s `name` field. */ + name?: string; + /** Checks for equality with the object’s `count` field. */ + count?: number; + /** 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 `AppAchievement` object types. All fields are combined with a logical ‘and.’ */ +export interface AppAchievementFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `count` field. */ + count?: 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?: AppAchievementFilter[]; + /** Checks for any expressions in this list. */ + or?: AppAchievementFilter[]; + /** Negates the expression. */ + not?: AppAchievementFilter; +} +/** A condition to be used against `AppStep` object types. All fields are tested for equality and combined with a logical ‘and.’ */ +export interface AppStepCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `actorId` field. */ + actorId?: string; + /** Checks for equality with the object’s `name` field. */ + name?: string; + /** Checks for equality with the object’s `count` field. */ + count?: number; + /** 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 `AppStep` object types. All fields are combined with a logical ‘and.’ */ +export interface AppStepFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `count` field. */ + count?: 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?: AppStepFilter[]; + /** Checks for any expressions in this list. */ + or?: AppStepFilter[]; + /** Negates the expression. */ + not?: AppStepFilter; +} +/** + * A condition to be used against `ClaimedInvite` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface ClaimedInviteCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `data` field. */ + data?: unknown; + /** Checks for equality with the object’s `senderId` field. */ + senderId?: string; + /** Checks for equality with the object’s `receiverId` field. */ + receiverId?: 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 `ClaimedInvite` object types. All fields are combined with a logical ‘and.’ */ +export interface ClaimedInviteFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `senderId` field. */ + senderId?: UUIDFilter; + /** Filter by the object’s `receiverId` field. */ + receiverId?: 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?: ClaimedInviteFilter[]; + /** Checks for any expressions in this list. */ + or?: ClaimedInviteFilter[]; + /** Negates the expression. */ + not?: ClaimedInviteFilter; +} +/** + * A condition to be used against `AppGrant` object types. All fields are tested + * for equality and combined with a logical ‘and.’ + */ +export interface AppGrantCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `permissions` field. */ + permissions?: string; + /** Checks for equality with the object’s `isGrant` field. */ + isGrant?: boolean; + /** Checks for equality with the object’s `actorId` field. */ + actorId?: string; + /** Checks for equality with the object’s `grantorId` field. */ + grantorId?: 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 `AppGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface AppGrantFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `permissions` field. */ + permissions?: BitStringFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `grantorId` field. */ + grantorId?: 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?: AppGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: AppGrantFilter[]; + /** Negates the expression. */ + not?: AppGrantFilter; +} +/** + * A condition to be used against `AppMembershipDefault` object types. All fields + * are tested for equality and combined with a logical ‘and.’ + */ +export interface AppMembershipDefaultCondition { + /** 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 `createdBy` field. */ + createdBy?: string; + /** Checks for equality with the object’s `updatedBy` field. */ + updatedBy?: string; + /** Checks for equality with the object’s `isApproved` field. */ + isApproved?: boolean; + /** Checks for equality with the object’s `isVerified` field. */ + isVerified?: boolean; +} +/** A filter to be used against `AppMembershipDefault` object types. All fields are combined with a logical ‘and.’ */ +export interface AppMembershipDefaultFilter { + /** 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 `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `isApproved` field. */ + isApproved?: BooleanFilter; + /** Filter by the object’s `isVerified` field. */ + isVerified?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: AppMembershipDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: AppMembershipDefaultFilter[]; + /** Negates the expression. */ + not?: AppMembershipDefaultFilter; +} +/** + * A condition to be used against `OrgLimit` object types. All fields are tested + * for equality and combined with a logical ‘and.’ + */ +export interface OrgLimitCondition { + /** 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 `actorId` field. */ + actorId?: string; + /** Checks for equality with the object’s `num` field. */ + num?: number; + /** Checks for equality with the object’s `max` field. */ + max?: number; + /** Checks for equality with the object’s `entityId` field. */ + entityId?: string; +} +/** A filter to be used against `OrgLimit` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgLimitFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `num` field. */ + num?: IntFilter; + /** Filter by the object’s `max` field. */ + max?: IntFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitFilter[]; + /** Negates the expression. */ + not?: OrgLimitFilter; +} +/** + * A condition to be used against `OrgClaimedInvite` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface OrgClaimedInviteCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `data` field. */ + data?: unknown; + /** Checks for equality with the object’s `senderId` field. */ + senderId?: string; + /** Checks for equality with the object’s `receiverId` field. */ + receiverId?: 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; +} +/** A filter to be used against `OrgClaimedInvite` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgClaimedInviteFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `senderId` field. */ + senderId?: UUIDFilter; + /** Filter by the object’s `receiverId` field. */ + receiverId?: 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; + /** Checks for all expressions in this list. */ + and?: OrgClaimedInviteFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgClaimedInviteFilter[]; + /** Negates the expression. */ + not?: OrgClaimedInviteFilter; +} +/** + * A condition to be used against `OrgGrant` object types. All fields are tested + * for equality and combined with a logical ‘and.’ + */ +export interface OrgGrantCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `permissions` field. */ + permissions?: string; + /** Checks for equality with the object’s `isGrant` field. */ + isGrant?: boolean; + /** Checks for equality with the object’s `actorId` field. */ + actorId?: string; + /** Checks for equality with the object’s `entityId` field. */ + entityId?: string; + /** Checks for equality with the object’s `grantorId` field. */ + grantorId?: 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 `OrgGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgGrantFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `permissions` field. */ + permissions?: BitStringFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `grantorId` field. */ + grantorId?: 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?: OrgGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgGrantFilter[]; + /** Negates the expression. */ + not?: OrgGrantFilter; +} +/** + * A condition to be used against `OrgMembershipDefault` object types. All fields + * are tested for equality and combined with a logical ‘and.’ + */ +export interface OrgMembershipDefaultCondition { + /** 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 `createdBy` field. */ + createdBy?: string; + /** Checks for equality with the object’s `updatedBy` field. */ + updatedBy?: string; + /** Checks for equality with the object’s `isApproved` field. */ + isApproved?: boolean; + /** Checks for equality with the object’s `entityId` field. */ + entityId?: string; + /** Checks for equality with the object’s `deleteMemberCascadeGroups` field. */ + deleteMemberCascadeGroups?: boolean; + /** Checks for equality with the object’s `createGroupsCascadeMembers` field. */ + createGroupsCascadeMembers?: boolean; +} +/** A filter to be used against `OrgMembershipDefault` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgMembershipDefaultFilter { + /** 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 `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `isApproved` field. */ + isApproved?: BooleanFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `deleteMemberCascadeGroups` field. */ + deleteMemberCascadeGroups?: BooleanFilter; + /** Filter by the object’s `createGroupsCascadeMembers` field. */ + createGroupsCascadeMembers?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: OrgMembershipDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgMembershipDefaultFilter[]; + /** Negates the expression. */ + not?: OrgMembershipDefaultFilter; +} +/** + * A condition to be used against `AppLevelRequirement` object types. All fields + * are tested for equality and combined with a logical ‘and.’ + */ +export interface AppLevelRequirementCondition { + /** 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 `level` field. */ + level?: string; + /** Checks for equality with the object’s `description` field. */ + description?: string; + /** Checks for equality with the object’s `requiredCount` field. */ + requiredCount?: number; + /** Checks for equality with the object’s `priority` field. */ + priority?: number; + /** 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 `AppLevelRequirement` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLevelRequirementFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `level` field. */ + level?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `requiredCount` field. */ + requiredCount?: IntFilter; + /** Filter by the object’s `priority` field. */ + priority?: 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?: AppLevelRequirementFilter[]; + /** Checks for any expressions in this list. */ + or?: 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 { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `email` field. */ + email?: ConstructiveInternalTypeEmail; + /** Checks for equality with the object’s `senderId` field. */ + senderId?: string; + /** Checks for equality with the object’s `inviteToken` field. */ + inviteToken?: string; + /** Checks for equality with the object’s `inviteValid` field. */ + inviteValid?: boolean; + /** Checks for equality with the object’s `inviteLimit` field. */ + inviteLimit?: number; + /** Checks for equality with the object’s `inviteCount` field. */ + inviteCount?: number; + /** Checks for equality with the object’s `multiple` field. */ + multiple?: boolean; + /** Checks for equality with the object’s `data` field. */ + data?: unknown; + /** Checks for equality with the object’s `expiresAt` field. */ + expiresAt?: 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 `Invite` object types. All fields are combined with a logical ‘and.’ */ +export interface InviteFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `email` field. */ + email?: ConstructiveInternalTypeEmailFilter; + /** Filter by the object’s `senderId` field. */ + senderId?: UUIDFilter; + /** Filter by the object’s `inviteToken` field. */ + inviteToken?: StringFilter; + /** Filter by the object’s `inviteValid` field. */ + inviteValid?: BooleanFilter; + /** Filter by the object’s `inviteLimit` field. */ + inviteLimit?: IntFilter; + /** Filter by the object’s `inviteCount` field. */ + inviteCount?: IntFilter; + /** Filter by the object’s `multiple` field. */ + multiple?: BooleanFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** 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?: InviteFilter[]; + /** Checks for any expressions in this list. */ + or?: InviteFilter[]; + /** Negates the expression. */ + not?: InviteFilter; +} +/** 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 `AppMembership` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface AppMembershipCondition { + /** 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 `createdBy` field. */ + createdBy?: string; + /** Checks for equality with the object’s `updatedBy` field. */ + updatedBy?: string; + /** Checks for equality with the object’s `isApproved` field. */ + isApproved?: boolean; + /** Checks for equality with the object’s `isBanned` field. */ + isBanned?: boolean; + /** Checks for equality with the object’s `isDisabled` field. */ + isDisabled?: boolean; + /** Checks for equality with the object’s `isVerified` field. */ + isVerified?: boolean; + /** Checks for equality with the object’s `isActive` field. */ + isActive?: boolean; + /** Checks for equality with the object’s `isOwner` field. */ + isOwner?: boolean; + /** Checks for equality with the object’s `isAdmin` field. */ + isAdmin?: boolean; + /** Checks for equality with the object’s `permissions` field. */ + permissions?: string; + /** Checks for equality with the object’s `granted` field. */ + granted?: string; + /** Checks for equality with the object’s `actorId` field. */ + actorId?: string; +} +/** A filter to be used against `AppMembership` object types. All fields are combined with a logical ‘and.’ */ +export interface AppMembershipFilter { + /** 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 `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `isApproved` field. */ + isApproved?: BooleanFilter; + /** Filter by the object’s `isBanned` field. */ + isBanned?: BooleanFilter; + /** Filter by the object’s `isDisabled` field. */ + isDisabled?: BooleanFilter; + /** Filter by the object’s `isVerified` field. */ + isVerified?: BooleanFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `isOwner` field. */ + isOwner?: BooleanFilter; + /** Filter by the object’s `isAdmin` field. */ + isAdmin?: BooleanFilter; + /** Filter by the object’s `permissions` field. */ + permissions?: BitStringFilter; + /** Filter by the object’s `granted` field. */ + granted?: BitStringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: AppMembershipFilter[]; + /** Checks for any expressions in this list. */ + or?: AppMembershipFilter[]; + /** Negates the expression. */ + not?: AppMembershipFilter; +} +/** + * A condition to be used against `OrgMembership` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface OrgMembershipCondition { + /** 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 `createdBy` field. */ + createdBy?: string; + /** Checks for equality with the object’s `updatedBy` field. */ + updatedBy?: string; + /** Checks for equality with the object’s `isApproved` field. */ + isApproved?: boolean; + /** Checks for equality with the object’s `isBanned` field. */ + isBanned?: boolean; + /** Checks for equality with the object’s `isDisabled` field. */ + isDisabled?: boolean; + /** Checks for equality with the object’s `isActive` field. */ + isActive?: boolean; + /** Checks for equality with the object’s `isOwner` field. */ + isOwner?: boolean; + /** Checks for equality with the object’s `isAdmin` field. */ + isAdmin?: boolean; + /** Checks for equality with the object’s `permissions` field. */ + permissions?: string; + /** Checks for equality with the object’s `granted` field. */ + granted?: string; + /** Checks for equality with the object’s `actorId` field. */ + actorId?: string; + /** Checks for equality with the object’s `entityId` field. */ + entityId?: string; +} +/** A filter to be used against `OrgMembership` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgMembershipFilter { + /** 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 `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `isApproved` field. */ + isApproved?: BooleanFilter; + /** Filter by the object’s `isBanned` field. */ + isBanned?: BooleanFilter; + /** Filter by the object’s `isDisabled` field. */ + isDisabled?: BooleanFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `isOwner` field. */ + isOwner?: BooleanFilter; + /** Filter by the object’s `isAdmin` field. */ + isAdmin?: BooleanFilter; + /** Filter by the object’s `permissions` field. */ + permissions?: BitStringFilter; + /** Filter by the object’s `granted` field. */ + granted?: BitStringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: OrgMembershipFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgMembershipFilter[]; + /** Negates the expression. */ + not?: OrgMembershipFilter; +} +/** + * A condition to be used against `OrgInvite` object types. All fields are tested + * for equality and combined with a logical ‘and.’ + */ +export interface OrgInviteCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `email` field. */ + email?: ConstructiveInternalTypeEmail; + /** Checks for equality with the object’s `senderId` field. */ + senderId?: string; + /** Checks for equality with the object’s `receiverId` field. */ + receiverId?: string; + /** Checks for equality with the object’s `inviteToken` field. */ + inviteToken?: string; + /** Checks for equality with the object’s `inviteValid` field. */ + inviteValid?: boolean; + /** Checks for equality with the object’s `inviteLimit` field. */ + inviteLimit?: number; + /** Checks for equality with the object’s `inviteCount` field. */ + inviteCount?: number; + /** Checks for equality with the object’s `multiple` field. */ + multiple?: boolean; + /** Checks for equality with the object’s `data` field. */ + data?: unknown; + /** Checks for equality with the object’s `expiresAt` field. */ + expiresAt?: 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; +} +/** A filter to be used against `OrgInvite` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgInviteFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `email` field. */ + email?: ConstructiveInternalTypeEmailFilter; + /** Filter by the object’s `senderId` field. */ + senderId?: UUIDFilter; + /** Filter by the object’s `receiverId` field. */ + receiverId?: UUIDFilter; + /** Filter by the object’s `inviteToken` field. */ + inviteToken?: StringFilter; + /** Filter by the object’s `inviteValid` field. */ + inviteValid?: BooleanFilter; + /** Filter by the object’s `inviteLimit` field. */ + inviteLimit?: IntFilter; + /** Filter by the object’s `inviteCount` field. */ + inviteCount?: IntFilter; + /** Filter by the object’s `multiple` field. */ + multiple?: BooleanFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** 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; + /** Checks for all expressions in this list. */ + and?: OrgInviteFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgInviteFilter[]; + /** Negates the expression. */ + not?: OrgInviteFilter; +} +export interface SubmitInviteCodeInput { + clientMutationId?: string; + token?: string; +} +export interface SubmitOrgInviteCodeInput { + clientMutationId?: string; + token?: string; +} +export interface CreateOrgMemberInput { + clientMutationId?: string; + /** The `OrgMember` to be created by this mutation. */ + orgMember: OrgMemberInput; +} +/** An input for mutations affecting `OrgMember` */ +export interface OrgMemberInput { + id?: string; + isAdmin?: boolean; + actorId: string; + entityId: string; +} +export interface CreateAppPermissionDefaultInput { + clientMutationId?: string; + /** The `AppPermissionDefault` to be created by this mutation. */ + appPermissionDefault: AppPermissionDefaultInput; +} +/** An input for mutations affecting `AppPermissionDefault` */ +export interface AppPermissionDefaultInput { + id?: string; + permissions?: string; +} +export interface CreateOrgPermissionDefaultInput { + clientMutationId?: string; + /** The `OrgPermissionDefault` to be created by this mutation. */ + orgPermissionDefault: OrgPermissionDefaultInput; +} +/** An input for mutations affecting `OrgPermissionDefault` */ +export interface OrgPermissionDefaultInput { + id?: string; + permissions?: string; + entityId: string; +} +export interface CreateAppAdminGrantInput { + clientMutationId?: string; + /** The `AppAdminGrant` to be created by this mutation. */ + appAdminGrant: AppAdminGrantInput; +} +/** An input for mutations affecting `AppAdminGrant` */ +export interface AppAdminGrantInput { + id?: string; + isGrant?: boolean; + actorId: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface CreateAppOwnerGrantInput { + clientMutationId?: string; + /** The `AppOwnerGrant` to be created by this mutation. */ + appOwnerGrant: AppOwnerGrantInput; +} +/** An input for mutations affecting `AppOwnerGrant` */ +export interface AppOwnerGrantInput { + id?: string; + isGrant?: boolean; + 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. */ + orgAdminGrant: OrgAdminGrantInput; +} +/** An input for mutations affecting `OrgAdminGrant` */ +export interface OrgAdminGrantInput { + id?: string; + isGrant?: boolean; + actorId: string; + entityId: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface CreateOrgOwnerGrantInput { + clientMutationId?: string; + /** The `OrgOwnerGrant` to be created by this mutation. */ + orgOwnerGrant: OrgOwnerGrantInput; +} +/** An input for mutations affecting `OrgOwnerGrant` */ +export interface OrgOwnerGrantInput { + id?: string; + isGrant?: boolean; + actorId: string; + entityId: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface CreateMembershipTypeInput { + clientMutationId?: string; + /** The `MembershipType` to be created by this mutation. */ + membershipType: MembershipTypeInput; +} +/** An input for mutations affecting `MembershipType` */ +export interface MembershipTypeInput { + id: number; + name: string; + description: string; + prefix: 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; + name?: string; + bitnum?: number; + bitstr?: string; + 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; + name?: string; + bitnum?: number; + bitstr?: string; + 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?: string; + actorId: string; + num?: number; + 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: string; + count?: number; + createdAt?: string; + updatedAt?: string; +} +export interface CreateAppStepInput { + clientMutationId?: string; + /** The `AppStep` to be created by this mutation. */ + appStep: AppStepInput; +} +/** An input for mutations affecting `AppStep` */ +export interface AppStepInput { + id?: string; + actorId?: string; + name: string; + count?: number; + createdAt?: string; + updatedAt?: string; +} +export interface CreateClaimedInviteInput { + clientMutationId?: string; + /** The `ClaimedInvite` to be created by this mutation. */ + claimedInvite: ClaimedInviteInput; +} +/** An input for mutations affecting `ClaimedInvite` */ +export interface ClaimedInviteInput { + id?: string; + data?: unknown; + senderId?: string; + receiverId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface CreateAppGrantInput { + clientMutationId?: string; + /** The `AppGrant` to be created by this mutation. */ + appGrant: AppGrantInput; +} +/** An input for mutations affecting `AppGrant` */ +export interface AppGrantInput { + id?: string; + permissions?: string; + isGrant?: boolean; + actorId: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface CreateAppMembershipDefaultInput { + clientMutationId?: string; + /** The `AppMembershipDefault` to be created by this mutation. */ + appMembershipDefault: AppMembershipDefaultInput; +} +/** An input for mutations affecting `AppMembershipDefault` */ +export interface AppMembershipDefaultInput { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + isVerified?: boolean; +} +export interface CreateOrgLimitInput { + clientMutationId?: string; + /** The `OrgLimit` to be created by this mutation. */ + orgLimit: OrgLimitInput; +} +/** An input for mutations affecting `OrgLimit` */ +export interface OrgLimitInput { + id?: string; + name?: string; + actorId: string; + num?: number; + max?: number; + entityId: string; +} +export interface CreateOrgClaimedInviteInput { + clientMutationId?: string; + /** The `OrgClaimedInvite` to be created by this mutation. */ + orgClaimedInvite: OrgClaimedInviteInput; +} +/** An input for mutations affecting `OrgClaimedInvite` */ +export interface OrgClaimedInviteInput { + id?: string; + data?: unknown; + senderId?: string; + receiverId?: string; + createdAt?: string; + updatedAt?: string; + entityId: string; +} +export interface CreateOrgGrantInput { + clientMutationId?: string; + /** The `OrgGrant` to be created by this mutation. */ + orgGrant: OrgGrantInput; +} +/** An input for mutations affecting `OrgGrant` */ +export interface OrgGrantInput { + id?: string; + permissions?: string; + isGrant?: boolean; + actorId: string; + entityId: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface CreateOrgMembershipDefaultInput { + clientMutationId?: string; + /** The `OrgMembershipDefault` to be created by this mutation. */ + orgMembershipDefault: OrgMembershipDefaultInput; +} +/** An input for mutations affecting `OrgMembershipDefault` */ +export interface OrgMembershipDefaultInput { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + entityId: string; + deleteMemberCascadeGroups?: boolean; + createGroupsCascadeMembers?: boolean; +} +export interface CreateAppLevelRequirementInput { + clientMutationId?: string; + /** The `AppLevelRequirement` to be created by this mutation. */ + appLevelRequirement: AppLevelRequirementInput; +} +/** An input for mutations affecting `AppLevelRequirement` */ +export interface AppLevelRequirementInput { + id?: string; + name: string; + level: string; + description?: string; + requiredCount?: number; + 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. */ + invite: InviteInput; +} +/** An input for mutations affecting `Invite` */ +export interface InviteInput { + id?: string; + email?: ConstructiveInternalTypeEmail; + senderId?: string; + inviteToken?: string; + inviteValid?: boolean; + inviteLimit?: number; + inviteCount?: number; + multiple?: boolean; + data?: unknown; + expiresAt?: 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; + 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 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?: ConstructiveInternalTypeEmail; + senderId?: string; + receiverId?: string; + inviteToken?: string; + inviteValid?: boolean; + inviteLimit?: number; + inviteCount?: number; + multiple?: boolean; + data?: unknown; + expiresAt?: string; + createdAt?: string; + updatedAt?: string; + entityId: string; +} +export interface UpdateOrgMemberInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgMember` being updated. */ + orgMemberPatch: OrgMemberPatch; +} +/** Represents an update to a `OrgMember`. Fields that are set will be updated. */ +export interface OrgMemberPatch { + id?: string; + isAdmin?: boolean; + actorId?: string; + entityId?: string; +} +export interface UpdateAppPermissionDefaultInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AppPermissionDefault` being updated. */ + appPermissionDefaultPatch: AppPermissionDefaultPatch; +} +/** Represents an update to a `AppPermissionDefault`. Fields that are set will be updated. */ +export interface AppPermissionDefaultPatch { + id?: string; + permissions?: string; +} +export interface UpdateOrgPermissionDefaultInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgPermissionDefault` being updated. */ + orgPermissionDefaultPatch: OrgPermissionDefaultPatch; +} +/** Represents an update to a `OrgPermissionDefault`. Fields that are set will be updated. */ +export interface OrgPermissionDefaultPatch { + id?: string; + permissions?: string; + entityId?: string; +} +export interface UpdateAppAdminGrantInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AppAdminGrant` being updated. */ + appAdminGrantPatch: AppAdminGrantPatch; +} +/** Represents an update to a `AppAdminGrant`. Fields that are set will be updated. */ +export interface AppAdminGrantPatch { + id?: string; + isGrant?: boolean; + actorId?: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateAppOwnerGrantInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AppOwnerGrant` being updated. */ + appOwnerGrantPatch: AppOwnerGrantPatch; +} +/** Represents an update to a `AppOwnerGrant`. Fields that are set will be updated. */ +export interface AppOwnerGrantPatch { + id?: string; + isGrant?: boolean; + 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; + /** An object where the defined keys will be set on the `OrgAdminGrant` being updated. */ + orgAdminGrantPatch: OrgAdminGrantPatch; +} +/** Represents an update to a `OrgAdminGrant`. Fields that are set will be updated. */ +export interface OrgAdminGrantPatch { + id?: string; + isGrant?: boolean; + actorId?: string; + entityId?: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateOrgOwnerGrantInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgOwnerGrant` being updated. */ + orgOwnerGrantPatch: OrgOwnerGrantPatch; +} +/** Represents an update to a `OrgOwnerGrant`. Fields that are set will be updated. */ +export interface OrgOwnerGrantPatch { + id?: string; + isGrant?: boolean; + actorId?: string; + entityId?: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateMembershipTypeInput { + clientMutationId?: string; + 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 { + id?: number; + name?: string; + description?: string; + prefix?: string; +} +export interface UpdateAppPermissionInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AppPermission` being updated. */ + appPermissionPatch: AppPermissionPatch; +} +/** Represents an update to a `AppPermission`. Fields that are set will be updated. */ +export interface AppPermissionPatch { + id?: string; + name?: string; + bitnum?: number; + bitstr?: string; + description?: string; +} +export interface UpdateOrgPermissionInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgPermission` being updated. */ + orgPermissionPatch: OrgPermissionPatch; +} +/** Represents an update to a `OrgPermission`. Fields that are set will be updated. */ +export interface OrgPermissionPatch { + id?: string; + name?: string; + bitnum?: number; + bitstr?: string; + description?: string; +} +export interface UpdateAppLimitInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AppLimit` being updated. */ + appLimitPatch: AppLimitPatch; +} +/** Represents an update to a `AppLimit`. Fields that are set will be updated. */ +export interface AppLimitPatch { + id?: string; + name?: string; + actorId?: string; + num?: number; + max?: number; +} +export interface UpdateAppAchievementInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AppAchievement` being updated. */ + appAchievementPatch: AppAchievementPatch; +} +/** Represents an update to a `AppAchievement`. Fields that are set will be updated. */ +export interface AppAchievementPatch { + id?: string; + actorId?: string; + name?: string; + count?: number; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateAppStepInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AppStep` being updated. */ + appStepPatch: AppStepPatch; +} +/** Represents an update to a `AppStep`. Fields that are set will be updated. */ +export interface AppStepPatch { + id?: string; + actorId?: string; + name?: string; + count?: number; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateClaimedInviteInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `ClaimedInvite` being updated. */ + claimedInvitePatch: ClaimedInvitePatch; +} +/** Represents an update to a `ClaimedInvite`. Fields that are set will be updated. */ +export interface ClaimedInvitePatch { + id?: string; + data?: unknown; + senderId?: string; + receiverId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateAppGrantInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AppGrant` being updated. */ + appGrantPatch: AppGrantPatch; +} +/** Represents an update to a `AppGrant`. Fields that are set will be updated. */ +export interface AppGrantPatch { + id?: string; + permissions?: string; + isGrant?: boolean; + actorId?: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +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 UpdateOrgLimitInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgLimit` being updated. */ + orgLimitPatch: OrgLimitPatch; +} +/** Represents an update to a `OrgLimit`. Fields that are set will be updated. */ +export interface OrgLimitPatch { + id?: string; + name?: string; + actorId?: string; + num?: number; + max?: number; + entityId?: string; +} +export interface UpdateOrgClaimedInviteInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgClaimedInvite` being updated. */ + orgClaimedInvitePatch: OrgClaimedInvitePatch; +} +/** Represents an update to a `OrgClaimedInvite`. Fields that are set will be updated. */ +export interface OrgClaimedInvitePatch { + id?: string; + data?: unknown; + senderId?: string; + receiverId?: string; + createdAt?: string; + updatedAt?: string; + entityId?: string; +} +export interface UpdateOrgGrantInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgGrant` being updated. */ + orgGrantPatch: OrgGrantPatch; +} +/** Represents an update to a `OrgGrant`. Fields that are set will be updated. */ +export interface OrgGrantPatch { + id?: string; + permissions?: string; + isGrant?: boolean; + actorId?: string; + entityId?: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateOrgMembershipDefaultInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgMembershipDefault` being updated. */ + orgMembershipDefaultPatch: OrgMembershipDefaultPatch; +} +/** Represents an update to a `OrgMembershipDefault`. Fields that are set will be updated. */ +export interface OrgMembershipDefaultPatch { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + entityId?: string; + deleteMemberCascadeGroups?: boolean; + createGroupsCascadeMembers?: boolean; +} +export interface UpdateAppLevelRequirementInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AppLevelRequirement` being updated. */ + appLevelRequirementPatch: AppLevelRequirementPatch; +} +/** Represents an update to a `AppLevelRequirement`. Fields that are set will be updated. */ +export interface AppLevelRequirementPatch { + id?: string; + name?: string; + level?: string; + description?: string; + requiredCount?: number; + 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; + /** 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?: ConstructiveInternalTypeEmail; + senderId?: string; + inviteToken?: string; + inviteValid?: boolean; + inviteLimit?: number; + inviteCount?: number; + multiple?: boolean; + data?: unknown; + expiresAt?: 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; + 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 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?: ConstructiveInternalTypeEmail; + senderId?: string; + receiverId?: string; + inviteToken?: string; + inviteValid?: boolean; + inviteLimit?: number; + inviteCount?: number; + multiple?: boolean; + data?: unknown; + expiresAt?: string; + createdAt?: string; + updatedAt?: string; + entityId?: string; +} +export interface DeleteOrgMemberInput { + clientMutationId?: string; + id: string; +} +export interface DeleteAppPermissionDefaultInput { + clientMutationId?: string; + id: string; +} +export interface DeleteOrgPermissionDefaultInput { + clientMutationId?: string; + id: string; +} +export interface DeleteAppAdminGrantInput { + clientMutationId?: string; + id: string; +} +export interface DeleteAppOwnerGrantInput { + clientMutationId?: string; + id: string; +} +export interface DeleteAppLimitDefaultInput { + clientMutationId?: string; + id: string; +} +export interface DeleteOrgLimitDefaultInput { + clientMutationId?: string; + id: string; +} +export interface DeleteOrgAdminGrantInput { + clientMutationId?: string; + id: string; +} +export interface DeleteOrgOwnerGrantInput { + clientMutationId?: string; + id: string; +} +export interface DeleteMembershipTypeInput { + clientMutationId?: string; + id: number; +} +export interface DeleteAppPermissionInput { + clientMutationId?: string; + id: string; +} +export interface DeleteOrgPermissionInput { + clientMutationId?: string; + id: string; +} +export interface DeleteAppLimitInput { + clientMutationId?: string; + id: string; +} +export interface DeleteAppAchievementInput { + clientMutationId?: string; + id: string; +} +export interface DeleteAppStepInput { + clientMutationId?: string; + id: string; +} +export interface DeleteClaimedInviteInput { + clientMutationId?: string; + id: string; +} +export interface DeleteAppGrantInput { + clientMutationId?: string; + id: string; +} +export interface DeleteAppMembershipDefaultInput { + clientMutationId?: string; + id: string; +} +export interface DeleteOrgLimitInput { + clientMutationId?: string; + id: string; +} +export interface DeleteOrgClaimedInviteInput { + clientMutationId?: string; + id: string; +} +export interface DeleteOrgGrantInput { + clientMutationId?: string; + id: string; +} +export interface DeleteOrgMembershipDefaultInput { + clientMutationId?: string; + id: string; +} +export interface DeleteAppLevelRequirementInput { + clientMutationId?: string; + id: string; +} +export interface DeleteAppLevelInput { + clientMutationId?: string; + id: string; +} +export interface DeleteInviteInput { + clientMutationId?: string; + id: string; +} +export interface DeleteAppMembershipInput { + clientMutationId?: string; + id: string; +} +export interface DeleteOrgMembershipInput { + clientMutationId?: string; + id: string; +} +export interface DeleteOrgInviteInput { + clientMutationId?: string; + id: string; +} +/** A connection to a list of `AppPermission` values. */ +export interface AppPermissionConnection { + nodes: AppPermission[]; + edges: AppPermissionEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `OrgPermission` values. */ +export interface OrgPermissionConnection { + nodes: OrgPermission[]; + edges: OrgPermissionEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `AppLevelRequirement` values. */ +export interface AppLevelRequirementConnection { + nodes: AppLevelRequirement[]; + edges: AppLevelRequirementEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `OrgMember` values. */ +export interface OrgMemberConnection { + nodes: OrgMember[]; + edges: OrgMemberEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** 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[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `AppAdminGrant` values. */ +export interface AppAdminGrantConnection { + nodes: AppAdminGrant[]; + edges: AppAdminGrantEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `AppOwnerGrant` values. */ +export interface AppOwnerGrantConnection { + nodes: AppOwnerGrant[]; + edges: AppOwnerGrantEdge[]; + 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[]; + edges: OrgAdminGrantEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `OrgOwnerGrant` values. */ +export interface OrgOwnerGrantConnection { + nodes: OrgOwnerGrant[]; + edges: OrgOwnerGrantEdge[]; + 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 `AppLimit` values. */ +export interface AppLimitConnection { + nodes: AppLimit[]; + edges: AppLimitEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `AppAchievement` values. */ +export interface AppAchievementConnection { + nodes: AppAchievement[]; + edges: AppAchievementEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `AppStep` values. */ +export interface AppStepConnection { + nodes: AppStep[]; + edges: AppStepEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `ClaimedInvite` values. */ +export interface ClaimedInviteConnection { + nodes: ClaimedInvite[]; + edges: ClaimedInviteEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `AppGrant` values. */ +export interface AppGrantConnection { + nodes: AppGrant[]; + edges: AppGrantEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `AppMembershipDefault` values. */ +export interface AppMembershipDefaultConnection { + nodes: AppMembershipDefault[]; + edges: AppMembershipDefaultEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `OrgLimit` values. */ +export interface OrgLimitConnection { + nodes: OrgLimit[]; + edges: OrgLimitEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `OrgClaimedInvite` values. */ +export interface OrgClaimedInviteConnection { + nodes: OrgClaimedInvite[]; + edges: OrgClaimedInviteEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `OrgGrant` values. */ +export interface OrgGrantConnection { + nodes: OrgGrant[]; + edges: OrgGrantEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `OrgMembershipDefault` values. */ +export interface OrgMembershipDefaultConnection { + nodes: OrgMembershipDefault[]; + edges: OrgMembershipDefaultEdge[]; + 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[]; + edges: InviteEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** 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 `OrgMembership` values. */ +export interface OrgMembershipConnection { + nodes: OrgMembership[]; + edges: OrgMembershipEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `OrgInvite` values. */ +export interface OrgInviteConnection { + nodes: OrgInvite[]; + edges: OrgInviteEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** Root meta schema type */ +export interface MetaSchema { + tables: MetaTable[]; +} +export interface SubmitInviteCodePayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export interface SubmitOrgInviteCodePayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export interface CreateOrgMemberPayload { + clientMutationId?: string | null; + /** The `OrgMember` that was created by this mutation. */ + orgMember?: OrgMember | null; + orgMemberEdge?: OrgMemberEdge | null; +} +export interface CreateAppPermissionDefaultPayload { + clientMutationId?: string | null; + /** The `AppPermissionDefault` that was created by this mutation. */ + appPermissionDefault?: AppPermissionDefault | null; + appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; +} +export interface CreateOrgPermissionDefaultPayload { + clientMutationId?: string | null; + /** The `OrgPermissionDefault` that was created by this mutation. */ + orgPermissionDefault?: OrgPermissionDefault | null; + orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; +} +export interface CreateAppAdminGrantPayload { + clientMutationId?: string | null; + /** The `AppAdminGrant` that was created by this mutation. */ + appAdminGrant?: AppAdminGrant | null; + appAdminGrantEdge?: AppAdminGrantEdge | null; +} +export interface CreateAppOwnerGrantPayload { + clientMutationId?: string | null; + /** The `AppOwnerGrant` that was created by this mutation. */ + 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. */ + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; +} +export interface CreateOrgOwnerGrantPayload { + clientMutationId?: string | null; + /** The `OrgOwnerGrant` that was created by this mutation. */ + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; +} +export interface CreateMembershipTypePayload { + clientMutationId?: string | null; + /** The `MembershipType` that was created by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; +} +export interface CreateAppPermissionPayload { + clientMutationId?: string | null; + /** The `AppPermission` that was created by this mutation. */ + appPermission?: AppPermission | null; + appPermissionEdge?: AppPermissionEdge | null; +} +export interface CreateOrgPermissionPayload { + clientMutationId?: string | null; + /** The `OrgPermission` that was created by this mutation. */ + orgPermission?: OrgPermission | null; + orgPermissionEdge?: OrgPermissionEdge | null; +} +export interface CreateAppLimitPayload { + clientMutationId?: string | null; + /** The `AppLimit` that was created by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; +} +export interface CreateAppAchievementPayload { + clientMutationId?: string | null; + /** The `AppAchievement` that was created by this mutation. */ + appAchievement?: AppAchievement | null; + appAchievementEdge?: AppAchievementEdge | null; +} +export interface CreateAppStepPayload { + clientMutationId?: string | null; + /** The `AppStep` that was created by this mutation. */ + appStep?: AppStep | null; + appStepEdge?: AppStepEdge | null; +} +export interface CreateClaimedInvitePayload { + clientMutationId?: string | null; + /** The `ClaimedInvite` that was created by this mutation. */ + claimedInvite?: ClaimedInvite | null; + claimedInviteEdge?: ClaimedInviteEdge | null; +} +export interface CreateAppGrantPayload { + clientMutationId?: string | null; + /** The `AppGrant` that was created by this mutation. */ + appGrant?: AppGrant | null; + appGrantEdge?: AppGrantEdge | null; +} +export interface CreateAppMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `AppMembershipDefault` that was created by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export interface CreateOrgLimitPayload { + clientMutationId?: string | null; + /** The `OrgLimit` that was created by this mutation. */ + orgLimit?: OrgLimit | null; + orgLimitEdge?: OrgLimitEdge | null; +} +export interface CreateOrgClaimedInvitePayload { + clientMutationId?: string | null; + /** The `OrgClaimedInvite` that was created by this mutation. */ + orgClaimedInvite?: OrgClaimedInvite | null; + orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; +} +export interface CreateOrgGrantPayload { + clientMutationId?: string | null; + /** The `OrgGrant` that was created by this mutation. */ + orgGrant?: OrgGrant | null; + orgGrantEdge?: OrgGrantEdge | null; +} +export interface CreateOrgMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `OrgMembershipDefault` that was created by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; +} +export interface CreateAppLevelRequirementPayload { + clientMutationId?: string | null; + /** The `AppLevelRequirement` that was created by this mutation. */ + 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 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 CreateOrgInvitePayload { + clientMutationId?: string | null; + /** The `OrgInvite` that was created by this mutation. */ + orgInvite?: OrgInvite | null; + orgInviteEdge?: OrgInviteEdge | null; +} +export interface UpdateOrgMemberPayload { + clientMutationId?: string | null; + /** The `OrgMember` that was updated by this mutation. */ + orgMember?: OrgMember | null; + orgMemberEdge?: OrgMemberEdge | null; +} +export interface UpdateAppPermissionDefaultPayload { + clientMutationId?: string | null; + /** The `AppPermissionDefault` that was updated by this mutation. */ + appPermissionDefault?: AppPermissionDefault | null; + appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; +} +export interface UpdateOrgPermissionDefaultPayload { + clientMutationId?: string | null; + /** The `OrgPermissionDefault` that was updated by this mutation. */ + orgPermissionDefault?: OrgPermissionDefault | null; + orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; +} +export interface UpdateAppAdminGrantPayload { + clientMutationId?: string | null; + /** The `AppAdminGrant` that was updated by this mutation. */ + appAdminGrant?: AppAdminGrant | null; + appAdminGrantEdge?: AppAdminGrantEdge | null; +} +export interface UpdateAppOwnerGrantPayload { + clientMutationId?: string | null; + /** The `AppOwnerGrant` that was updated by this mutation. */ + 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. */ + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; +} +export interface UpdateOrgOwnerGrantPayload { + clientMutationId?: string | null; + /** The `OrgOwnerGrant` that was updated by this mutation. */ + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; +} +export interface UpdateMembershipTypePayload { + clientMutationId?: string | null; + /** The `MembershipType` that was updated by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; +} +export interface UpdateAppPermissionPayload { + clientMutationId?: string | null; + /** The `AppPermission` that was updated by this mutation. */ + appPermission?: AppPermission | null; + appPermissionEdge?: AppPermissionEdge | null; +} +export interface UpdateOrgPermissionPayload { + clientMutationId?: string | null; + /** The `OrgPermission` that was updated by this mutation. */ + orgPermission?: OrgPermission | null; + orgPermissionEdge?: OrgPermissionEdge | null; +} +export interface UpdateAppLimitPayload { + clientMutationId?: string | null; + /** The `AppLimit` that was updated by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; +} +export interface UpdateAppAchievementPayload { + clientMutationId?: string | null; + /** The `AppAchievement` that was updated by this mutation. */ + appAchievement?: AppAchievement | null; + appAchievementEdge?: AppAchievementEdge | null; +} +export interface UpdateAppStepPayload { + clientMutationId?: string | null; + /** The `AppStep` that was updated by this mutation. */ + appStep?: AppStep | null; + appStepEdge?: AppStepEdge | null; +} +export interface UpdateClaimedInvitePayload { + clientMutationId?: string | null; + /** The `ClaimedInvite` that was updated by this mutation. */ + claimedInvite?: ClaimedInvite | null; + claimedInviteEdge?: ClaimedInviteEdge | null; +} +export interface UpdateAppGrantPayload { + clientMutationId?: string | null; + /** The `AppGrant` that was updated by this mutation. */ + appGrant?: AppGrant | null; + appGrantEdge?: AppGrantEdge | null; +} +export interface UpdateAppMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `AppMembershipDefault` that was updated by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export interface UpdateOrgLimitPayload { + clientMutationId?: string | null; + /** The `OrgLimit` that was updated by this mutation. */ + orgLimit?: OrgLimit | null; + orgLimitEdge?: OrgLimitEdge | null; +} +export interface UpdateOrgClaimedInvitePayload { + clientMutationId?: string | null; + /** The `OrgClaimedInvite` that was updated by this mutation. */ + orgClaimedInvite?: OrgClaimedInvite | null; + orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; +} +export interface UpdateOrgGrantPayload { + clientMutationId?: string | null; + /** The `OrgGrant` that was updated by this mutation. */ + orgGrant?: OrgGrant | null; + orgGrantEdge?: OrgGrantEdge | null; +} +export interface UpdateOrgMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `OrgMembershipDefault` that was updated by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; +} +export interface UpdateAppLevelRequirementPayload { + clientMutationId?: string | null; + /** The `AppLevelRequirement` that was updated by this mutation. */ + 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 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 UpdateOrgInvitePayload { + clientMutationId?: string | null; + /** The `OrgInvite` that was updated by this mutation. */ + orgInvite?: OrgInvite | null; + orgInviteEdge?: OrgInviteEdge | null; +} +export interface DeleteOrgMemberPayload { + clientMutationId?: string | null; + /** The `OrgMember` that was deleted by this mutation. */ + orgMember?: OrgMember | null; + orgMemberEdge?: OrgMemberEdge | null; +} +export interface DeleteAppPermissionDefaultPayload { + clientMutationId?: string | null; + /** The `AppPermissionDefault` that was deleted by this mutation. */ + appPermissionDefault?: AppPermissionDefault | null; + appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; +} +export interface DeleteOrgPermissionDefaultPayload { + clientMutationId?: string | null; + /** The `OrgPermissionDefault` that was deleted by this mutation. */ + orgPermissionDefault?: OrgPermissionDefault | null; + orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; +} +export interface DeleteAppAdminGrantPayload { + clientMutationId?: string | null; + /** The `AppAdminGrant` that was deleted by this mutation. */ + appAdminGrant?: AppAdminGrant | null; + appAdminGrantEdge?: AppAdminGrantEdge | null; +} +export interface DeleteAppOwnerGrantPayload { + clientMutationId?: string | null; + /** The `AppOwnerGrant` that was deleted by this mutation. */ + 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. */ + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; +} +export interface DeleteOrgOwnerGrantPayload { + clientMutationId?: string | null; + /** The `OrgOwnerGrant` that was deleted by this mutation. */ + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; +} +export interface DeleteMembershipTypePayload { + clientMutationId?: string | null; + /** The `MembershipType` that was deleted by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; +} +export interface DeleteAppPermissionPayload { + clientMutationId?: string | null; + /** The `AppPermission` that was deleted by this mutation. */ + appPermission?: AppPermission | null; + appPermissionEdge?: AppPermissionEdge | null; +} +export interface DeleteOrgPermissionPayload { + clientMutationId?: string | null; + /** The `OrgPermission` that was deleted by this mutation. */ + orgPermission?: OrgPermission | null; + orgPermissionEdge?: OrgPermissionEdge | null; +} +export interface DeleteAppLimitPayload { + clientMutationId?: string | null; + /** The `AppLimit` that was deleted by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; +} +export interface DeleteAppAchievementPayload { + clientMutationId?: string | null; + /** The `AppAchievement` that was deleted by this mutation. */ + appAchievement?: AppAchievement | null; + appAchievementEdge?: AppAchievementEdge | null; +} +export interface DeleteAppStepPayload { + clientMutationId?: string | null; + /** The `AppStep` that was deleted by this mutation. */ + appStep?: AppStep | null; + appStepEdge?: AppStepEdge | null; +} +export interface DeleteClaimedInvitePayload { + clientMutationId?: string | null; + /** The `ClaimedInvite` that was deleted by this mutation. */ + claimedInvite?: ClaimedInvite | null; + claimedInviteEdge?: ClaimedInviteEdge | null; +} +export interface DeleteAppGrantPayload { + clientMutationId?: string | null; + /** The `AppGrant` that was deleted by this mutation. */ + appGrant?: AppGrant | null; + appGrantEdge?: AppGrantEdge | null; +} +export interface DeleteAppMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `AppMembershipDefault` that was deleted by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export interface DeleteOrgLimitPayload { + clientMutationId?: string | null; + /** The `OrgLimit` that was deleted by this mutation. */ + orgLimit?: OrgLimit | null; + orgLimitEdge?: OrgLimitEdge | null; +} +export interface DeleteOrgClaimedInvitePayload { + clientMutationId?: string | null; + /** The `OrgClaimedInvite` that was deleted by this mutation. */ + orgClaimedInvite?: OrgClaimedInvite | null; + orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; +} +export interface DeleteOrgGrantPayload { + clientMutationId?: string | null; + /** The `OrgGrant` that was deleted by this mutation. */ + orgGrant?: OrgGrant | null; + orgGrantEdge?: OrgGrantEdge | null; +} +export interface DeleteOrgMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `OrgMembershipDefault` that was deleted by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; +} +export interface DeleteAppLevelRequirementPayload { + clientMutationId?: string | null; + /** The `AppLevelRequirement` that was deleted by this mutation. */ + 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 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 DeleteOrgInvitePayload { + clientMutationId?: string | null; + /** The `OrgInvite` that was deleted by this mutation. */ + orgInvite?: OrgInvite | null; + orgInviteEdge?: OrgInviteEdge | null; +} +/** A `AppPermission` edge in the connection. */ +export interface AppPermissionEdge { + cursor?: string | null; + /** The `AppPermission` at the end of the edge. */ + node?: AppPermission | null; +} +/** Information about pagination in a connection. */ +export interface PageInfo { + /** When paginating forwards, are there more items? */ + hasNextPage: boolean; + /** When paginating backwards, are there more items? */ + hasPreviousPage: boolean; + /** When paginating backwards, the cursor to continue. */ + startCursor?: string | null; + /** When paginating forwards, the cursor to continue. */ + endCursor?: string | null; +} +/** A `OrgPermission` edge in the connection. */ +export interface OrgPermissionEdge { + cursor?: string | null; + /** The `OrgPermission` at the end of the edge. */ + node?: OrgPermission | null; +} +/** A `AppLevelRequirement` edge in the connection. */ +export interface AppLevelRequirementEdge { + cursor?: string | null; + /** The `AppLevelRequirement` at the end of the edge. */ + node?: AppLevelRequirement | 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 { + cursor?: string | null; + /** The `AppPermissionDefault` at the end of the edge. */ + node?: AppPermissionDefault | null; +} +/** A `OrgPermissionDefault` edge in the connection. */ +export interface OrgPermissionDefaultEdge { + cursor?: string | null; + /** The `OrgPermissionDefault` at the end of the edge. */ + node?: OrgPermissionDefault | null; +} +/** A `AppAdminGrant` edge in the connection. */ +export interface AppAdminGrantEdge { + cursor?: string | null; + /** The `AppAdminGrant` at the end of the edge. */ + node?: AppAdminGrant | null; +} +/** A `AppOwnerGrant` edge in the connection. */ +export interface AppOwnerGrantEdge { + cursor?: string | null; + /** 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; + /** The `OrgAdminGrant` at the end of the edge. */ + node?: OrgAdminGrant | null; +} +/** A `OrgOwnerGrant` edge in the connection. */ +export interface OrgOwnerGrantEdge { + cursor?: string | null; + /** The `OrgOwnerGrant` at the end of the edge. */ + node?: OrgOwnerGrant | 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 `AppLimit` edge in the connection. */ +export interface AppLimitEdge { + cursor?: string | null; + /** The `AppLimit` at the end of the edge. */ + node?: AppLimit | null; +} +/** A `AppAchievement` edge in the connection. */ +export interface AppAchievementEdge { + cursor?: string | null; + /** The `AppAchievement` at the end of the edge. */ + node?: AppAchievement | null; +} +/** A `AppStep` edge in the connection. */ +export interface AppStepEdge { + cursor?: string | null; + /** The `AppStep` at the end of the edge. */ + node?: AppStep | null; +} +/** A `ClaimedInvite` edge in the connection. */ +export interface ClaimedInviteEdge { + cursor?: string | null; + /** The `ClaimedInvite` at the end of the edge. */ + node?: ClaimedInvite | null; +} +/** A `AppGrant` edge in the connection. */ +export interface AppGrantEdge { + cursor?: string | null; + /** The `AppGrant` at the end of the edge. */ + node?: AppGrant | null; +} +/** A `AppMembershipDefault` edge in the connection. */ +export interface AppMembershipDefaultEdge { + cursor?: string | null; + /** The `AppMembershipDefault` at the end of the edge. */ + node?: AppMembershipDefault | null; +} +/** A `OrgLimit` edge in the connection. */ +export interface OrgLimitEdge { + cursor?: string | null; + /** The `OrgLimit` at the end of the edge. */ + node?: OrgLimit | null; +} +/** A `OrgClaimedInvite` edge in the connection. */ +export interface OrgClaimedInviteEdge { + cursor?: string | null; + /** The `OrgClaimedInvite` at the end of the edge. */ + node?: OrgClaimedInvite | null; +} +/** A `OrgGrant` edge in the connection. */ +export interface OrgGrantEdge { + cursor?: string | null; + /** The `OrgGrant` at the end of the edge. */ + node?: OrgGrant | 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 `AppMembership` edge in the connection. */ +export interface AppMembershipEdge { + cursor?: string | null; + /** The `AppMembership` at the end of the edge. */ + node?: AppMembership | null; +} +/** A `OrgMembership` edge in the connection. */ +export interface OrgMembershipEdge { + cursor?: string | null; + /** The `OrgMembership` at the end of the edge. */ + node?: OrgMembership | null; +} +/** A `OrgInvite` edge in the connection. */ +export interface OrgInviteEdge { + cursor?: string | null; + /** The `OrgInvite` at the end of the edge. */ + node?: OrgInvite | null; +} +/** Information about a database table */ +export interface MetaTable { + name: string; + schemaName: string; + fields: MetaField[]; + indexes: MetaIndex[]; + constraints: MetaConstraints; + foreignKeyConstraints: MetaForeignKeyConstraint[]; + primaryKeyConstraints: MetaPrimaryKeyConstraint[]; + uniqueConstraints: MetaUniqueConstraint[]; + relations: MetaRelations; + inflection: MetaInflection; + query: MetaQuery; +} +/** Information about a table field/column */ +export interface MetaField { + name: string; + type: MetaType; + isNotNull: boolean; + hasDefault: boolean; +} +/** Information about a database index */ +export interface MetaIndex { + name: string; + isUnique: boolean; + isPrimary: boolean; + columns: string[]; + fields?: MetaField[] | null; +} +/** Table constraints */ +export interface MetaConstraints { + primaryKey?: MetaPrimaryKeyConstraint | null; + unique: MetaUniqueConstraint[]; + foreignKey: MetaForeignKeyConstraint[]; +} +/** Information about a foreign key constraint */ +export interface MetaForeignKeyConstraint { + name: string; + fields: MetaField[]; + referencedTable: string; + referencedFields: string[]; + refFields?: MetaField[] | null; + refTable?: MetaRefTable | null; +} +/** Information about a primary key constraint */ +export interface MetaPrimaryKeyConstraint { + name: string; + fields: MetaField[]; +} +/** Information about a unique constraint */ +export interface MetaUniqueConstraint { + name: string; + fields: MetaField[]; +} +/** Table relations */ +export interface MetaRelations { + belongsTo: MetaBelongsToRelation[]; + has: MetaHasRelation[]; + hasOne: MetaHasRelation[]; + hasMany: MetaHasRelation[]; + manyToMany: MetaManyToManyRelation[]; +} +/** Table inflection names */ +export interface MetaInflection { + tableType: string; + allRows: string; + connection: string; + edge: string; + filterType?: string | null; + orderByType: string; + conditionType: string; + patchType?: string | null; + createInputType: string; + createPayloadType: string; + updatePayloadType?: string | null; + deletePayloadType: string; +} +/** Table query/mutation names */ +export interface MetaQuery { + all: string; + one?: string | null; + create?: string | null; + update?: string | null; + delete?: string | null; +} +/** Information about a PostgreSQL type */ +export interface MetaType { + pgType: string; + gqlType: string; + isArray: boolean; + isNotNull?: boolean | null; + hasDefault?: boolean | null; +} +/** Reference to a related table */ +export interface MetaRefTable { + name: string; +} +/** A belongs-to (forward FK) relation */ +export interface MetaBelongsToRelation { + fieldName?: string | null; + isUnique: boolean; + type?: string | null; + keys: MetaField[]; + references: MetaRefTable; +} +/** A has-one or has-many (reverse FK) relation */ +export interface MetaHasRelation { + fieldName?: string | null; + isUnique: boolean; + type?: string | null; + keys: MetaField[]; + referencedBy: MetaRefTable; +} +/** A many-to-many relation via junction table */ +export interface MetaManyToManyRelation { + fieldName?: string | null; + type?: string | null; + junctionTable: MetaRefTable; + junctionLeftConstraint: MetaForeignKeyConstraint; + junctionLeftKeyAttributes: MetaField[]; + junctionRightConstraint: MetaForeignKeyConstraint; + junctionRightKeyAttributes: MetaField[]; + leftKeyAttributes: MetaField[]; + rightKeyAttributes: MetaField[]; + rightTable: MetaRefTable; +} diff --git a/sdk/constructive-react/src/admin/types.ts b/sdk/constructive-react/src/admin/types.ts new file mode 100644 index 000000000..f9bd9b893 --- /dev/null +++ b/sdk/constructive-react/src/admin/types.ts @@ -0,0 +1,473 @@ +/** + * Entity types and filter types + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export type ConstructiveInternalTypeEmail = unknown; +export type ConstructiveInternalTypeImage = unknown; +export interface AppPermission { + id: string | null; + name: string | null; + bitnum: number | null; + bitstr: string | null; + description: string | null; +} +export interface OrgPermission { + id: string | null; + name: string | null; + bitnum: number | null; + bitstr: string | null; + description: string | null; +} +export interface AppLevelRequirement { + id: string | null; + name: string | null; + level: string | null; + description: string | null; + requiredCount: number | null; + priority: number | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface OrgMember { + id: string | null; + isAdmin: boolean | null; + actorId: string | null; + entityId: string | null; +} +export interface AppPermissionDefault { + id: string | null; + permissions: string | null; +} +export interface OrgPermissionDefault { + id: string | null; + permissions: string | null; + entityId: string | null; +} +export interface AppAdminGrant { + id: string | null; + isGrant: boolean | null; + actorId: string | null; + grantorId: string | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface AppOwnerGrant { + id: string | null; + isGrant: boolean | null; + actorId: string | null; + grantorId: string | null; + 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; + actorId: string | null; + entityId: string | null; + grantorId: string | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface OrgOwnerGrant { + id: string | null; + isGrant: boolean | null; + actorId: string | null; + entityId: string | null; + grantorId: string | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface MembershipType { + id: number | null; + name: string | null; + description: string | null; + prefix: string | null; +} +export interface AppLimit { + id: string | null; + name: string | null; + actorId: string | null; + num: number | null; + max: number | null; +} +export interface AppAchievement { + id: string | null; + actorId: string | null; + name: string | null; + count: number | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface AppStep { + id: string | null; + actorId: string | null; + name: string | null; + count: number | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface ClaimedInvite { + id: string | null; + data: unknown | null; + senderId: string | null; + receiverId: string | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface AppGrant { + id: string | null; + permissions: string | null; + isGrant: boolean | null; + actorId: string | null; + grantorId: string | null; + 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 OrgLimit { + id: string | null; + name: string | null; + actorId: string | null; + num: number | null; + max: number | null; + entityId: string | null; +} +export interface OrgClaimedInvite { + id: string | null; + data: unknown | null; + senderId: string | null; + receiverId: string | null; + createdAt: string | null; + updatedAt: string | null; + entityId: string | null; +} +export interface OrgGrant { + id: string | null; + permissions: string | null; + isGrant: boolean | null; + actorId: string | null; + entityId: string | null; + grantorId: string | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface OrgMembershipDefault { + id: string | null; + createdAt: string | null; + updatedAt: string | null; + createdBy: string | null; + updatedBy: string | null; + isApproved: boolean | null; + entityId: string | null; + 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; + senderId: string | null; + inviteToken: string | null; + inviteValid: boolean | null; + inviteLimit: number | null; + inviteCount: number | null; + multiple: boolean | null; + data: unknown | null; + expiresAt: string | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface AppMembership { + id: string | null; + createdAt: string | null; + updatedAt: string | null; + createdBy: string | null; + updatedBy: string | null; + isApproved: boolean | null; + isBanned: boolean | null; + isDisabled: boolean | null; + isVerified: boolean | null; + isActive: boolean | null; + isOwner: boolean | null; + isAdmin: boolean | null; + permissions: string | null; + granted: string | null; + actorId: string | null; +} +export interface OrgMembership { + id: string | null; + createdAt: string | null; + updatedAt: string | null; + createdBy: string | null; + updatedBy: string | null; + isApproved: boolean | null; + isBanned: boolean | null; + isDisabled: boolean | null; + isActive: boolean | null; + isOwner: boolean | null; + isAdmin: boolean | null; + permissions: string | null; + granted: string | null; + actorId: string | null; + entityId: string | null; +} +export interface OrgInvite { + id: string | null; + email: ConstructiveInternalTypeEmail | null; + senderId: string | null; + receiverId: string | null; + inviteToken: string | null; + inviteValid: boolean | null; + inviteLimit: number | null; + inviteCount: number | null; + multiple: boolean | null; + data: unknown | null; + expiresAt: string | null; + createdAt: string | null; + updatedAt: string | null; + entityId: string | null; +} +export interface StringFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; + includes?: string; + notIncludes?: string; + includesInsensitive?: string; + notIncludesInsensitive?: string; + startsWith?: string; + notStartsWith?: string; + startsWithInsensitive?: string; + notStartsWithInsensitive?: string; + endsWith?: string; + notEndsWith?: string; + endsWithInsensitive?: string; + notEndsWithInsensitive?: string; + like?: string; + notLike?: string; + likeInsensitive?: string; + notLikeInsensitive?: string; +} +export interface IntFilter { + isNull?: boolean; + equalTo?: number; + notEqualTo?: number; + distinctFrom?: number; + notDistinctFrom?: number; + in?: number[]; + notIn?: number[]; + lessThan?: number; + lessThanOrEqualTo?: number; + greaterThan?: number; + greaterThanOrEqualTo?: number; +} +export interface FloatFilter { + isNull?: boolean; + equalTo?: number; + notEqualTo?: number; + distinctFrom?: number; + notDistinctFrom?: number; + in?: number[]; + notIn?: number[]; + lessThan?: number; + lessThanOrEqualTo?: number; + greaterThan?: number; + greaterThanOrEqualTo?: number; +} +export interface BooleanFilter { + isNull?: boolean; + equalTo?: boolean; + notEqualTo?: boolean; +} +export interface UUIDFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; +} +export interface DatetimeFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface DateFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface JSONFilter { + isNull?: boolean; + equalTo?: Record; + notEqualTo?: Record; + distinctFrom?: Record; + notDistinctFrom?: Record; + contains?: unknown; + containedBy?: unknown; + containsKey?: string; + containsAllKeys?: string[]; + containsAnyKeys?: string[]; +} +export interface BigIntFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface BigFloatFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface BitStringFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; +} +export interface InternetAddressFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; + contains?: string; + containedBy?: string; + containsOrContainedBy?: string; +} +export interface FullTextFilter { + matches?: string; +} +export interface StringListFilter { + isNull?: boolean; + equalTo?: string[]; + notEqualTo?: string[]; + distinctFrom?: string[]; + notDistinctFrom?: string[]; + lessThan?: string[]; + lessThanOrEqualTo?: string[]; + greaterThan?: string[]; + greaterThanOrEqualTo?: string[]; + contains?: string[]; + containedBy?: string[]; + overlaps?: string[]; + anyEqualTo?: string; + anyNotEqualTo?: string; + anyLessThan?: string; + anyLessThanOrEqualTo?: string; + anyGreaterThan?: string; + anyGreaterThanOrEqualTo?: string; +} +export interface IntListFilter { + isNull?: boolean; + equalTo?: number[]; + notEqualTo?: number[]; + distinctFrom?: number[]; + notDistinctFrom?: number[]; + lessThan?: number[]; + lessThanOrEqualTo?: number[]; + greaterThan?: number[]; + greaterThanOrEqualTo?: number[]; + contains?: number[]; + containedBy?: number[]; + overlaps?: number[]; + anyEqualTo?: number; + anyNotEqualTo?: number; + anyLessThan?: number; + anyLessThanOrEqualTo?: number; + anyGreaterThan?: number; + anyGreaterThanOrEqualTo?: number; +} +export interface UUIDListFilter { + isNull?: boolean; + equalTo?: string[]; + notEqualTo?: string[]; + distinctFrom?: string[]; + notDistinctFrom?: string[]; + lessThan?: string[]; + lessThanOrEqualTo?: string[]; + greaterThan?: string[]; + greaterThanOrEqualTo?: string[]; + contains?: string[]; + containedBy?: string[]; + overlaps?: string[]; + anyEqualTo?: string; + anyNotEqualTo?: string; + anyLessThan?: string; + anyLessThanOrEqualTo?: string; + anyGreaterThan?: string; + anyGreaterThanOrEqualTo?: string; +} diff --git a/sdk/constructive-react/src/auth/README.md b/sdk/constructive-react/src/auth/README.md new file mode 100644 index 000000000..394db5052 --- /dev/null +++ b/sdk/constructive-react/src/auth/README.md @@ -0,0 +1,54 @@ +# Generated GraphQL SDK + +

+ +

+ + + +## Overview + +- **Tables:** 7 +- **Custom queries:** 4 +- **Custom mutations:** 16 + +**Generators:** ORM, React Query + +## Modules + +### ORM Client (`./orm`) + +Prisma-like ORM client for programmatic GraphQL access. + +```typescript +import { createClient } from './orm'; + +const db = createClient({ + endpoint: 'https://api.example.com/graphql', +}); +``` + +See [orm/README.md](./orm/README.md) for full API reference. + +### React Query Hooks (`./hooks`) + +Type-safe React Query hooks for data fetching and mutations. + +```typescript +import { configure } from './hooks'; +import { useCarsQuery } from './hooks'; + +configure({ endpoint: 'https://api.example.com/graphql' }); +``` + +See [hooks/README.md](./hooks/README.md) for full hook reference. + +--- + +Built by the [Constructive](https://constructive.io) team. + +## Disclaimer + +AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED "AS IS", AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND. + +No developer or entity involved in creating this software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the code, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value. diff --git a/sdk/constructive-react/src/auth/hooks/README.md b/sdk/constructive-react/src/auth/hooks/README.md new file mode 100644 index 000000000..874473cda --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/README.md @@ -0,0 +1,454 @@ +# React Query Hooks + +

+ +

+ + + +## Setup + +```typescript +import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; +import { configure } from './hooks'; + +configure({ + endpoint: 'https://api.example.com/graphql', + headers: { Authorization: 'Bearer ' }, +}); + +const queryClient = new QueryClient(); + +function App() { + return ( + + + + ); +} +``` + +## Hooks + +| Hook | Type | Description | +|------|------|-------------| +| `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 | +| `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 | +| `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 | +| `useCurrentIpAddressQuery` | Query | currentIpAddress | +| `useCurrentUserAgentQuery` | Query | currentUserAgent | +| `useCurrentUserIdQuery` | Query | currentUserId | +| `useCurrentUserQuery` | Query | currentUser | +| `useSignOutMutation` | Mutation | signOut | +| `useSendAccountDeletionEmailMutation` | Mutation | sendAccountDeletionEmail | +| `useCheckPasswordMutation` | Mutation | checkPassword | +| `useConfirmDeleteAccountMutation` | Mutation | confirmDeleteAccount | +| `useSetPasswordMutation` | Mutation | setPassword | +| `useVerifyEmailMutation` | Mutation | verifyEmail | +| `useResetPasswordMutation` | Mutation | resetPassword | +| `useSignInOneTimeTokenMutation` | Mutation | signInOneTimeToken | +| `useSignInMutation` | Mutation | signIn | +| `useSignUpMutation` | Mutation | signUp | +| `useOneTimeTokenMutation` | Mutation | oneTimeToken | +| `useExtendTokenExpiresMutation` | Mutation | extendTokenExpires | +| `useForgotPasswordMutation` | Mutation | forgotPassword | +| `useSendVerificationEmailMutation` | Mutation | sendVerificationEmail | +| `useVerifyPasswordMutation` | Mutation | verifyPassword | +| `useVerifyTotpMutation` | Mutation | verifyTotp | + +## Table Hooks + +### RoleType + +```typescript +// List all roleTypes +const { data, isLoading } = useRoleTypesQuery({ + selection: { fields: { id: true, name: true } }, +}); + +// Get one roleType +const { data: item } = useRoleTypeQuery({ + id: '', + selection: { fields: { id: true, name: true } }, +}); + +// Create a roleType +const { mutate: create } = useCreateRoleTypeMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '' }); +``` + +### 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: '' }); +``` + +### PhoneNumber + +```typescript +// List all phoneNumbers +const { data, isLoading } = usePhoneNumbersQuery({ + selection: { fields: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }, +}); + +// Get one phoneNumber +const { data: item } = usePhoneNumberQuery({ + id: '', + selection: { fields: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }, +}); + +// Create a phoneNumber +const { mutate: create } = useCreatePhoneNumberMutation({ + selection: { fields: { id: true } }, +}); +create({ ownerId: '', cc: '', number: '', isVerified: '', isPrimary: '' }); +``` + +### ConnectedAccount + +```typescript +// List all connectedAccounts +const { data, isLoading } = useConnectedAccountsQuery({ + selection: { fields: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } }, +}); + +// Get one connectedAccount +const { data: item } = useConnectedAccountQuery({ + id: '', + selection: { fields: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } }, +}); + +// Create a connectedAccount +const { mutate: create } = useCreateConnectedAccountMutation({ + selection: { fields: { id: true } }, +}); +create({ ownerId: '', service: '', identifier: '', details: '', isVerified: '' }); +``` + +### 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 +// 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 auditLog +const { data: item } = useAuditLogQuery({ + id: '', + selection: { fields: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } }, +}); + +// Create a auditLog +const { mutate: create } = useCreateAuditLogMutation({ + selection: { fields: { id: true } }, +}); +create({ event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }); +``` + +### User + +```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 } }, +}); + +// Get one user +const { data: item } = useUserQuery({ + id: '', + selection: { fields: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true } }, +}); + +// Create a user +const { mutate: create } = useCreateUserMutation({ + selection: { fields: { id: true } }, +}); +create({ username: '', displayName: '', profilePicture: '', searchTsv: '', type: '', searchTsvRank: '' }); +``` + +## Custom Operation Hooks + +### `useCurrentIpAddressQuery` + +currentIpAddress + +- **Type:** query +- **Arguments:** none + +### `useCurrentUserAgentQuery` + +currentUserAgent + +- **Type:** query +- **Arguments:** none + +### `useCurrentUserIdQuery` + +currentUserId + +- **Type:** query +- **Arguments:** none + +### `useCurrentUserQuery` + +currentUser + +- **Type:** query +- **Arguments:** none + +### `useSignOutMutation` + +signOut + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SignOutInput (required) | + +### `useSendAccountDeletionEmailMutation` + +sendAccountDeletionEmail + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SendAccountDeletionEmailInput (required) | + +### `useCheckPasswordMutation` + +checkPassword + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | CheckPasswordInput (required) | + +### `useConfirmDeleteAccountMutation` + +confirmDeleteAccount + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ConfirmDeleteAccountInput (required) | + +### `useSetPasswordMutation` + +setPassword + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SetPasswordInput (required) | + +### `useVerifyEmailMutation` + +verifyEmail + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | VerifyEmailInput (required) | + +### `useResetPasswordMutation` + +resetPassword + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ResetPasswordInput (required) | + +### `useSignInOneTimeTokenMutation` + +signInOneTimeToken + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SignInOneTimeTokenInput (required) | + +### `useSignInMutation` + +signIn + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SignInInput (required) | + +### `useSignUpMutation` + +signUp + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SignUpInput (required) | + +### `useOneTimeTokenMutation` + +oneTimeToken + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | OneTimeTokenInput (required) | + +### `useExtendTokenExpiresMutation` + +extendTokenExpires + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ExtendTokenExpiresInput (required) | + +### `useForgotPasswordMutation` + +forgotPassword + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ForgotPasswordInput (required) | + +### `useSendVerificationEmailMutation` + +sendVerificationEmail + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SendVerificationEmailInput (required) | + +### `useVerifyPasswordMutation` + +verifyPassword + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | VerifyPasswordInput (required) | + +### `useVerifyTotpMutation` + +verifyTotp + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | VerifyTotpInput (required) | + +--- + +Built by the [Constructive](https://constructive.io) team. + +## Disclaimer + +AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED "AS IS", AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND. + +No developer or entity involved in creating this software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the code, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value. diff --git a/sdk/constructive-react/src/auth/hooks/client.ts b/sdk/constructive-react/src/auth/hooks/client.ts new file mode 100644 index 000000000..47b9aa63f --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/client.ts @@ -0,0 +1,42 @@ +/** + * ORM client wrapper for React Query hooks + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { createClient } from '../orm'; +import type { OrmClientConfig } from '../orm/client'; + +export type { OrmClientConfig } from '../orm/client'; +export type { GraphQLAdapter, GraphQLError, QueryResult } from '../orm/client'; +export { GraphQLRequestError } from '../orm/client'; + +type OrmClientInstance = ReturnType; +let client: OrmClientInstance | null = null; + +/** + * Configure the ORM client for React Query hooks + * + * @example + * ```ts + * import { configure } from './generated/hooks'; + * + * configure({ + * endpoint: 'https://api.example.com/graphql', + * headers: { Authorization: 'Bearer ' }, + * }); + * ``` + */ +export function configure(config: OrmClientConfig): void { + client = createClient(config); +} + +/** + * Get the configured ORM client instance + * @throws Error if configure() has not been called + */ +export function getClient(): OrmClientInstance { + if (!client) { + throw new Error('ORM client not configured. Call configure() before using hooks.'); + } + return client; +} diff --git a/sdk/constructive-react/src/auth/hooks/index.ts b/sdk/constructive-react/src/auth/hooks/index.ts new file mode 100644 index 000000000..895139908 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/index.ts @@ -0,0 +1,39 @@ +/** + * GraphQL SDK + * @generated by @constructive-io/graphql-codegen + * + * Tables: RoleType, CryptoAddress, PhoneNumber, ConnectedAccount, Email, AuditLog, User + * + * Usage: + * + * 1. Configure the client: + * ```ts + * import { configure } from './generated'; + * + * configure({ + * endpoint: 'https://api.example.com/graphql', + * headers: { Authorization: 'Bearer ' }, + * }); + * ``` + * + * 2. Use the hooks: + * ```tsx + * import { useCarsQuery, useCreateCarMutation } from './generated'; + * + * function MyComponent() { + * const { data, isLoading } = useCarsQuery({ + * selection: { fields: { id: true }, first: 10 }, + * }); + * const { mutate } = useCreateCarMutation({ + * selection: { fields: { id: true } }, + * }); + * // ... + * } + * ``` + */ +export * from './client'; +export * from './query-keys'; +export * from './mutation-keys'; +export * from './invalidation'; +export * from './queries'; +export * from './mutations'; diff --git a/sdk/constructive-react/src/auth/hooks/invalidation.ts b/sdk/constructive-react/src/auth/hooks/invalidation.ts new file mode 100644 index 000000000..355b6040a --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/invalidation.ts @@ -0,0 +1,210 @@ +/** + * Cache invalidation helpers + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +// ============================================================================ +// Type-safe cache invalidation utilities +// +// Features: +// - Simple invalidation helpers per entity +// - Cascade invalidation for parent-child relationships +// - Remove helpers for delete operations +// ============================================================================ + +import type { QueryClient } from '@tanstack/react-query'; +import { + roleTypeKeys, + cryptoAddressKeys, + phoneNumberKeys, + connectedAccountKeys, + emailKeys, + auditLogKeys, + userKeys, +} from './query-keys'; +/** +// ============================================================================ +// Invalidation Helpers +// ============================================================================ + + * Type-safe query invalidation helpers + * + * @example + * ```ts + * // Invalidate all user queries + * invalidate.user.all(queryClient); + * + * // Invalidate user lists + * invalidate.user.lists(queryClient); + * + * // Invalidate specific user + * invalidate.user.detail(queryClient, userId); + * ``` + */ +export const invalidate = { + /** Invalidate roleType queries */ roleType: { + /** Invalidate all roleType queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: roleTypeKeys.all, + }), + /** Invalidate roleType list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: roleTypeKeys.lists(), + }), + /** Invalidate a specific roleType */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: roleTypeKeys.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 phoneNumber queries */ phoneNumber: { + /** Invalidate all phoneNumber queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: phoneNumberKeys.all, + }), + /** Invalidate phoneNumber list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: phoneNumberKeys.lists(), + }), + /** Invalidate a specific phoneNumber */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: phoneNumberKeys.detail(id), + }), + }, + /** Invalidate connectedAccount queries */ connectedAccount: { + /** Invalidate all connectedAccount queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: connectedAccountKeys.all, + }), + /** Invalidate connectedAccount list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: connectedAccountKeys.lists(), + }), + /** Invalidate a specific connectedAccount */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + 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({ + queryKey: auditLogKeys.all, + }), + /** Invalidate auditLog list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: auditLogKeys.lists(), + }), + /** Invalidate a specific auditLog */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: auditLogKeys.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), + }), + }, +} as const; +/** + +// ============================================================================ +// Remove Helpers (for delete operations) +// ============================================================================ + + * Remove queries from cache (for delete operations) + * + * Use these when an entity is deleted to remove it from cache + * instead of just invalidating (which would trigger a refetch). + */ +export const remove = { + /** Remove roleType from cache */ roleType: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: roleTypeKeys.detail(id), + }); + }, + /** Remove cryptoAddress from cache */ cryptoAddress: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: cryptoAddressKeys.detail(id), + }); + }, + /** Remove phoneNumber from cache */ phoneNumber: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: phoneNumberKeys.detail(id), + }); + }, + /** Remove connectedAccount from cache */ connectedAccount: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: connectedAccountKeys.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), + }); + }, + /** Remove user from cache */ user: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: userKeys.detail(id), + }); + }, +} as const; diff --git a/sdk/constructive-react/src/auth/hooks/mutation-keys.ts b/sdk/constructive-react/src/auth/hooks/mutation-keys.ts new file mode 100644 index 000000000..2c43a7d85 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutation-keys.ts @@ -0,0 +1,180 @@ +/** + * Centralized mutation key factory + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +// ============================================================================ +// Mutation keys for tracking in-flight mutations +// +// Benefits: +// - Track mutation state with useIsMutating +// - Implement optimistic updates with proper rollback +// - Deduplicate identical mutations +// - Coordinate related mutations +// ============================================================================ + +// ============================================================================ +// Entity Mutation Keys +// ============================================================================ + +export const roleTypeMutationKeys = { + /** All roleType mutation keys */ all: ['mutation', 'roletype'] as const, + /** Create roleType mutation key */ create: () => ['mutation', 'roletype', 'create'] as const, + /** Update roleType mutation key */ update: (id: string | number) => + ['mutation', 'roletype', 'update', id] as const, + /** Delete roleType mutation key */ delete: (id: string | number) => + ['mutation', 'roletype', '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 phoneNumberMutationKeys = { + /** All phoneNumber mutation keys */ all: ['mutation', 'phonenumber'] as const, + /** Create phoneNumber mutation key */ create: () => + ['mutation', 'phonenumber', 'create'] as const, + /** Update phoneNumber mutation key */ update: (id: string | number) => + ['mutation', 'phonenumber', 'update', id] as const, + /** Delete phoneNumber mutation key */ delete: (id: string | number) => + ['mutation', 'phonenumber', 'delete', id] as const, +} as const; +export const connectedAccountMutationKeys = { + /** All connectedAccount mutation keys */ all: ['mutation', 'connectedaccount'] as const, + /** Create connectedAccount mutation key */ create: () => + ['mutation', 'connectedaccount', 'create'] as const, + /** Update connectedAccount mutation key */ update: (id: string | number) => + ['mutation', 'connectedaccount', 'update', id] as const, + /** 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, + /** Update auditLog mutation key */ update: (id: string | number) => + ['mutation', 'auditlog', 'update', id] as const, + /** Delete auditLog mutation key */ delete: (id: string | number) => + ['mutation', 'auditlog', '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; + +// ============================================================================ +// Custom Mutation Keys +// ============================================================================ + +export const customMutationKeys = { + /** Mutation key for signOut */ signOut: (identifier?: string) => + identifier + ? (['mutation', 'signOut', identifier] as const) + : (['mutation', 'signOut'] as const), + /** Mutation key for sendAccountDeletionEmail */ sendAccountDeletionEmail: ( + identifier?: string + ) => + identifier + ? (['mutation', 'sendAccountDeletionEmail', identifier] as const) + : (['mutation', 'sendAccountDeletionEmail'] as const), + /** Mutation key for checkPassword */ checkPassword: (identifier?: string) => + identifier + ? (['mutation', 'checkPassword', identifier] as const) + : (['mutation', 'checkPassword'] as const), + /** Mutation key for confirmDeleteAccount */ confirmDeleteAccount: (identifier?: string) => + identifier + ? (['mutation', 'confirmDeleteAccount', identifier] as const) + : (['mutation', 'confirmDeleteAccount'] as const), + /** Mutation key for setPassword */ setPassword: (identifier?: string) => + identifier + ? (['mutation', 'setPassword', identifier] as const) + : (['mutation', 'setPassword'] as const), + /** Mutation key for verifyEmail */ verifyEmail: (identifier?: string) => + identifier + ? (['mutation', 'verifyEmail', identifier] as const) + : (['mutation', 'verifyEmail'] as const), + /** Mutation key for resetPassword */ resetPassword: (identifier?: string) => + identifier + ? (['mutation', 'resetPassword', identifier] as const) + : (['mutation', 'resetPassword'] as const), + /** Mutation key for signInOneTimeToken */ signInOneTimeToken: (identifier?: string) => + identifier + ? (['mutation', 'signInOneTimeToken', identifier] as const) + : (['mutation', 'signInOneTimeToken'] as const), + /** Mutation key for signIn */ signIn: (identifier?: string) => + identifier ? (['mutation', 'signIn', identifier] as const) : (['mutation', 'signIn'] as const), + /** Mutation key for signUp */ signUp: (identifier?: string) => + identifier ? (['mutation', 'signUp', identifier] as const) : (['mutation', 'signUp'] as const), + /** Mutation key for oneTimeToken */ oneTimeToken: (identifier?: string) => + identifier + ? (['mutation', 'oneTimeToken', identifier] as const) + : (['mutation', 'oneTimeToken'] as const), + /** Mutation key for extendTokenExpires */ extendTokenExpires: (identifier?: string) => + identifier + ? (['mutation', 'extendTokenExpires', identifier] as const) + : (['mutation', 'extendTokenExpires'] as const), + /** Mutation key for forgotPassword */ forgotPassword: (identifier?: string) => + identifier + ? (['mutation', 'forgotPassword', identifier] as const) + : (['mutation', 'forgotPassword'] as const), + /** Mutation key for sendVerificationEmail */ sendVerificationEmail: (identifier?: string) => + identifier + ? (['mutation', 'sendVerificationEmail', identifier] as const) + : (['mutation', 'sendVerificationEmail'] as const), + /** Mutation key for verifyPassword */ verifyPassword: (identifier?: string) => + identifier + ? (['mutation', 'verifyPassword', identifier] as const) + : (['mutation', 'verifyPassword'] as const), + /** Mutation key for verifyTotp */ verifyTotp: (identifier?: string) => + identifier + ? (['mutation', 'verifyTotp', identifier] as const) + : (['mutation', 'verifyTotp'] as const), +} as const; +/** + +// ============================================================================ +// Unified Mutation Key Store +// ============================================================================ + + * Unified mutation key store + * + * Use this for tracking in-flight mutations with useIsMutating. + * + * @example + * ```ts + * import { useIsMutating } from '@tanstack/react-query'; + * import { mutationKeys } from './generated'; + * + * // Check if any user mutations are in progress + * const isMutatingUser = useIsMutating({ mutationKey: mutationKeys.user.all }); + * + * // Check if a specific user is being updated + * const isUpdating = useIsMutating({ mutationKey: mutationKeys.user.update(userId) }); + * ``` + */ +export const mutationKeys = { + roleType: roleTypeMutationKeys, + cryptoAddress: cryptoAddressMutationKeys, + phoneNumber: phoneNumberMutationKeys, + connectedAccount: connectedAccountMutationKeys, + email: emailMutationKeys, + auditLog: auditLogMutationKeys, + 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 new file mode 100644 index 000000000..9d2309644 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/index.ts @@ -0,0 +1,42 @@ +/** + * Mutation hooks barrel export + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export * from './useCreateRoleTypeMutation'; +export * from './useUpdateRoleTypeMutation'; +export * from './useDeleteRoleTypeMutation'; +export * from './useCreateCryptoAddressMutation'; +export * from './useUpdateCryptoAddressMutation'; +export * from './useDeleteCryptoAddressMutation'; +export * from './useCreatePhoneNumberMutation'; +export * from './useUpdatePhoneNumberMutation'; +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 './useCreateUserMutation'; +export * from './useUpdateUserMutation'; +export * from './useDeleteUserMutation'; +export * from './useSignOutMutation'; +export * from './useSendAccountDeletionEmailMutation'; +export * from './useCheckPasswordMutation'; +export * from './useConfirmDeleteAccountMutation'; +export * from './useSetPasswordMutation'; +export * from './useVerifyEmailMutation'; +export * from './useResetPasswordMutation'; +export * from './useSignInOneTimeTokenMutation'; +export * from './useSignInMutation'; +export * from './useSignUpMutation'; +export * from './useOneTimeTokenMutation'; +export * from './useExtendTokenExpiresMutation'; +export * from './useForgotPasswordMutation'; +export * from './useSendVerificationEmailMutation'; +export * from './useVerifyPasswordMutation'; +export * from './useVerifyTotpMutation'; diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useCheckPasswordMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useCheckPasswordMutation.ts new file mode 100644 index 000000000..36b79e2fe --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useCheckPasswordMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for checkPassword + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } 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 { customMutationKeys } from '../mutation-keys'; +import type { CheckPasswordVariables } from '../../orm/mutation'; +import type { CheckPasswordPayloadSelect, CheckPasswordPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { CheckPasswordVariables } from '../../orm/mutation'; +export type { CheckPasswordPayloadSelect } from '../../orm/input-types'; +export function useCheckPasswordMutation( + params: { + selection: { + fields: S & CheckPasswordPayloadSelect; + } & HookStrictSelect, CheckPasswordPayloadSelect>; + } & Omit< + UseMutationOptions< + { + checkPassword: InferSelectResult | null; + }, + Error, + CheckPasswordVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + checkPassword: InferSelectResult | null; + }, + Error, + CheckPasswordVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.checkPassword(), + mutationFn: (variables: CheckPasswordVariables) => + getClient() + .mutation.checkPassword(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useConfirmDeleteAccountMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useConfirmDeleteAccountMutation.ts new file mode 100644 index 000000000..2a430d07a --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useConfirmDeleteAccountMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for confirmDeleteAccount + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } 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 { customMutationKeys } from '../mutation-keys'; +import type { ConfirmDeleteAccountVariables } from '../../orm/mutation'; +import type { + ConfirmDeleteAccountPayloadSelect, + ConfirmDeleteAccountPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { ConfirmDeleteAccountVariables } from '../../orm/mutation'; +export type { ConfirmDeleteAccountPayloadSelect } from '../../orm/input-types'; +export function useConfirmDeleteAccountMutation( + params: { + selection: { + fields: S & ConfirmDeleteAccountPayloadSelect; + } & HookStrictSelect, ConfirmDeleteAccountPayloadSelect>; + } & Omit< + UseMutationOptions< + { + confirmDeleteAccount: InferSelectResult | null; + }, + Error, + ConfirmDeleteAccountVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + confirmDeleteAccount: InferSelectResult | null; + }, + Error, + ConfirmDeleteAccountVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.confirmDeleteAccount(), + mutationFn: (variables: ConfirmDeleteAccountVariables) => + getClient() + .mutation.confirmDeleteAccount(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useCreateAuditLogMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useCreateAuditLogMutation.ts new file mode 100644 index 000000000..e05ac6080 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useCreateAuditLogMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for AuditLog + * @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 { auditLogKeys } from '../query-keys'; +import { auditLogMutationKeys } from '../mutation-keys'; +import type { + AuditLogSelect, + AuditLogWithRelations, + CreateAuditLogInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AuditLogSelect, + AuditLogWithRelations, + CreateAuditLogInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a AuditLog + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateAuditLogMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateAuditLogMutation( + params: { + selection: { + fields: S & AuditLogSelect; + } & HookStrictSelect, AuditLogSelect>; + } & Omit< + UseMutationOptions< + { + createAuditLog: { + auditLog: InferSelectResult; + }; + }, + Error, + CreateAuditLogInput['auditLog'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createAuditLog: { + auditLog: InferSelectResult; + }; + }, + Error, + CreateAuditLogInput['auditLog'] +>; +export function useCreateAuditLogMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: auditLogMutationKeys.create(), + mutationFn: (data: CreateAuditLogInput['auditLog']) => + getClient() + .auditLog.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: auditLogKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useCreateConnectedAccountMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useCreateConnectedAccountMutation.ts new file mode 100644 index 000000000..0e381461b --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useCreateConnectedAccountMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for ConnectedAccount + * @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 { connectedAccountKeys } from '../query-keys'; +import { connectedAccountMutationKeys } from '../mutation-keys'; +import type { + ConnectedAccountSelect, + ConnectedAccountWithRelations, + CreateConnectedAccountInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ConnectedAccountSelect, + ConnectedAccountWithRelations, + CreateConnectedAccountInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a ConnectedAccount + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateConnectedAccountMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateConnectedAccountMutation( + params: { + selection: { + fields: S & ConnectedAccountSelect; + } & HookStrictSelect, ConnectedAccountSelect>; + } & Omit< + UseMutationOptions< + { + createConnectedAccount: { + connectedAccount: InferSelectResult; + }; + }, + Error, + CreateConnectedAccountInput['connectedAccount'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createConnectedAccount: { + connectedAccount: InferSelectResult; + }; + }, + Error, + CreateConnectedAccountInput['connectedAccount'] +>; +export function useCreateConnectedAccountMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: connectedAccountMutationKeys.create(), + mutationFn: (data: CreateConnectedAccountInput['connectedAccount']) => + getClient() + .connectedAccount.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: connectedAccountKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useCreateCryptoAddressMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useCreateCryptoAddressMutation.ts new file mode 100644 index 000000000..cddfe450c --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useCreateCryptoAddressMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for CryptoAddress + * @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 { cryptoAddressKeys } from '../query-keys'; +import { cryptoAddressMutationKeys } from '../mutation-keys'; +import type { + CryptoAddressSelect, + CryptoAddressWithRelations, + CreateCryptoAddressInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + CryptoAddressSelect, + CryptoAddressWithRelations, + CreateCryptoAddressInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a CryptoAddress + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateCryptoAddressMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateCryptoAddressMutation( + params: { + selection: { + fields: S & CryptoAddressSelect; + } & HookStrictSelect, CryptoAddressSelect>; + } & Omit< + UseMutationOptions< + { + createCryptoAddress: { + cryptoAddress: InferSelectResult; + }; + }, + Error, + CreateCryptoAddressInput['cryptoAddress'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createCryptoAddress: { + cryptoAddress: InferSelectResult; + }; + }, + Error, + CreateCryptoAddressInput['cryptoAddress'] +>; +export function useCreateCryptoAddressMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: cryptoAddressMutationKeys.create(), + mutationFn: (data: CreateCryptoAddressInput['cryptoAddress']) => + getClient() + .cryptoAddress.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: cryptoAddressKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useCreateEmailMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useCreateEmailMutation.ts new file mode 100644 index 000000000..ff6741c90 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useCreateEmailMutation.ts @@ -0,0 +1,80 @@ +/** + * Create mutation hook for Email + * @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 { emailKeys } from '../query-keys'; +import { emailMutationKeys } from '../mutation-keys'; +import type { EmailSelect, EmailWithRelations, CreateEmailInput } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { EmailSelect, EmailWithRelations, CreateEmailInput } from '../../orm/input-types'; +/** + * Mutation hook for creating a Email + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateEmailMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateEmailMutation( + params: { + selection: { + fields: S & EmailSelect; + } & HookStrictSelect, EmailSelect>; + } & Omit< + UseMutationOptions< + { + createEmail: { + email: InferSelectResult; + }; + }, + Error, + CreateEmailInput['email'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createEmail: { + email: InferSelectResult; + }; + }, + Error, + CreateEmailInput['email'] +>; +export function useCreateEmailMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: emailMutationKeys.create(), + mutationFn: (data: CreateEmailInput['email']) => + getClient() + .email.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: emailKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useCreatePhoneNumberMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useCreatePhoneNumberMutation.ts new file mode 100644 index 000000000..f0a8f239b --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useCreatePhoneNumberMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for PhoneNumber + * @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 { phoneNumberKeys } from '../query-keys'; +import { phoneNumberMutationKeys } from '../mutation-keys'; +import type { + PhoneNumberSelect, + PhoneNumberWithRelations, + CreatePhoneNumberInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PhoneNumberSelect, + PhoneNumberWithRelations, + CreatePhoneNumberInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a PhoneNumber + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePhoneNumberMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePhoneNumberMutation( + params: { + selection: { + fields: S & PhoneNumberSelect; + } & HookStrictSelect, PhoneNumberSelect>; + } & Omit< + UseMutationOptions< + { + createPhoneNumber: { + phoneNumber: InferSelectResult; + }; + }, + Error, + CreatePhoneNumberInput['phoneNumber'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPhoneNumber: { + phoneNumber: InferSelectResult; + }; + }, + Error, + CreatePhoneNumberInput['phoneNumber'] +>; +export function useCreatePhoneNumberMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: phoneNumberMutationKeys.create(), + mutationFn: (data: CreatePhoneNumberInput['phoneNumber']) => + getClient() + .phoneNumber.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: phoneNumberKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useCreateRoleTypeMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useCreateRoleTypeMutation.ts new file mode 100644 index 000000000..212be3f45 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useCreateRoleTypeMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for RoleType + * @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 { roleTypeKeys } from '../query-keys'; +import { roleTypeMutationKeys } from '../mutation-keys'; +import type { + RoleTypeSelect, + RoleTypeWithRelations, + CreateRoleTypeInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + RoleTypeSelect, + RoleTypeWithRelations, + CreateRoleTypeInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a RoleType + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateRoleTypeMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateRoleTypeMutation( + params: { + selection: { + fields: S & RoleTypeSelect; + } & HookStrictSelect, RoleTypeSelect>; + } & Omit< + UseMutationOptions< + { + createRoleType: { + roleType: InferSelectResult; + }; + }, + Error, + CreateRoleTypeInput['roleType'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createRoleType: { + roleType: InferSelectResult; + }; + }, + Error, + CreateRoleTypeInput['roleType'] +>; +export function useCreateRoleTypeMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: roleTypeMutationKeys.create(), + mutationFn: (data: CreateRoleTypeInput['roleType']) => + getClient() + .roleType.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: roleTypeKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useCreateUserMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useCreateUserMutation.ts new file mode 100644 index 000000000..0d5bfff47 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useCreateUserMutation.ts @@ -0,0 +1,80 @@ +/** + * Create mutation hook for User + * @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 { userKeys } from '../query-keys'; +import { userMutationKeys } from '../mutation-keys'; +import type { UserSelect, UserWithRelations, CreateUserInput } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { UserSelect, UserWithRelations, CreateUserInput } from '../../orm/input-types'; +/** + * Mutation hook for creating a User + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateUserMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateUserMutation( + params: { + selection: { + fields: S & UserSelect; + } & HookStrictSelect, UserSelect>; + } & Omit< + UseMutationOptions< + { + createUser: { + user: InferSelectResult; + }; + }, + Error, + CreateUserInput['user'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createUser: { + user: InferSelectResult; + }; + }, + Error, + CreateUserInput['user'] +>; +export function useCreateUserMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: userMutationKeys.create(), + mutationFn: (data: CreateUserInput['user']) => + getClient() + .user.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: userKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useDeleteAuditLogMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useDeleteAuditLogMutation.ts new file mode 100644 index 000000000..694be08d8 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useDeleteAuditLogMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for AuditLog + * @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 { auditLogKeys } from '../query-keys'; +import { auditLogMutationKeys } from '../mutation-keys'; +import type { AuditLogSelect, AuditLogWithRelations } from '../../orm/input-types'; +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 + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteAuditLogMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteAuditLogMutation( + params: { + selection: { + fields: S & AuditLogSelect; + } & HookStrictSelect, AuditLogSelect>; + } & Omit< + UseMutationOptions< + { + deleteAuditLog: { + auditLog: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteAuditLog: { + auditLog: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteAuditLogMutation( + 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: auditLogMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .auditLog.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: auditLogKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: auditLogKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useDeleteConnectedAccountMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useDeleteConnectedAccountMutation.ts new file mode 100644 index 000000000..29212bade --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useDeleteConnectedAccountMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for ConnectedAccount + * @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 { connectedAccountKeys } from '../query-keys'; +import { connectedAccountMutationKeys } from '../mutation-keys'; +import type { ConnectedAccountSelect, ConnectedAccountWithRelations } from '../../orm/input-types'; +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 + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteConnectedAccountMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteConnectedAccountMutation( + params: { + selection: { + fields: S & ConnectedAccountSelect; + } & HookStrictSelect, ConnectedAccountSelect>; + } & Omit< + UseMutationOptions< + { + deleteConnectedAccount: { + connectedAccount: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteConnectedAccount: { + connectedAccount: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteConnectedAccountMutation( + 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: connectedAccountMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .connectedAccount.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: connectedAccountKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: connectedAccountKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useDeleteCryptoAddressMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useDeleteCryptoAddressMutation.ts new file mode 100644 index 000000000..15d7507ac --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useDeleteCryptoAddressMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for CryptoAddress + * @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 { cryptoAddressKeys } from '../query-keys'; +import { cryptoAddressMutationKeys } from '../mutation-keys'; +import type { CryptoAddressSelect, CryptoAddressWithRelations } from '../../orm/input-types'; +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 + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteCryptoAddressMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteCryptoAddressMutation( + params: { + selection: { + fields: S & CryptoAddressSelect; + } & HookStrictSelect, CryptoAddressSelect>; + } & Omit< + UseMutationOptions< + { + deleteCryptoAddress: { + cryptoAddress: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteCryptoAddress: { + cryptoAddress: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteCryptoAddressMutation( + 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: cryptoAddressMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .cryptoAddress.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: cryptoAddressKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: cryptoAddressKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useDeleteEmailMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useDeleteEmailMutation.ts new file mode 100644 index 000000000..55d906a64 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useDeleteEmailMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for Email + * @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 { emailKeys } from '../query-keys'; +import { emailMutationKeys } from '../mutation-keys'; +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 + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteEmailMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteEmailMutation( + params: { + selection: { + fields: S & EmailSelect; + } & HookStrictSelect, EmailSelect>; + } & Omit< + UseMutationOptions< + { + deleteEmail: { + email: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteEmail: { + email: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteEmailMutation( + 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: emailMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .email.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: emailKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: emailKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useDeletePhoneNumberMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useDeletePhoneNumberMutation.ts new file mode 100644 index 000000000..a76ed1b26 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useDeletePhoneNumberMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for PhoneNumber + * @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 { phoneNumberKeys } from '../query-keys'; +import { phoneNumberMutationKeys } from '../mutation-keys'; +import type { PhoneNumberSelect, PhoneNumberWithRelations } from '../../orm/input-types'; +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 + * + * @example + * ```tsx + * const { mutate, isPending } = useDeletePhoneNumberMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeletePhoneNumberMutation( + params: { + selection: { + fields: S & PhoneNumberSelect; + } & HookStrictSelect, PhoneNumberSelect>; + } & Omit< + UseMutationOptions< + { + deletePhoneNumber: { + phoneNumber: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deletePhoneNumber: { + phoneNumber: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeletePhoneNumberMutation( + 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: phoneNumberMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .phoneNumber.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: phoneNumberKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: phoneNumberKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useDeleteRoleTypeMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useDeleteRoleTypeMutation.ts new file mode 100644 index 000000000..34495fa52 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useDeleteRoleTypeMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for RoleType + * @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 { roleTypeKeys } from '../query-keys'; +import { roleTypeMutationKeys } from '../mutation-keys'; +import type { RoleTypeSelect, RoleTypeWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { RoleTypeSelect, RoleTypeWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a RoleType with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteRoleTypeMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 123 }); + * ``` + */ +export function useDeleteRoleTypeMutation( + params: { + selection: { + fields: S & RoleTypeSelect; + } & HookStrictSelect, RoleTypeSelect>; + } & Omit< + UseMutationOptions< + { + deleteRoleType: { + roleType: InferSelectResult; + }; + }, + Error, + { + id: number; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteRoleType: { + roleType: InferSelectResult; + }; + }, + Error, + { + id: number; + } +>; +export function useDeleteRoleTypeMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: number; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: roleTypeMutationKeys.all, + mutationFn: ({ id }: { id: number }) => + getClient() + .roleType.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: roleTypeKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: roleTypeKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useDeleteUserMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useDeleteUserMutation.ts new file mode 100644 index 000000000..77880ad09 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useDeleteUserMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for User + * @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 { userKeys } from '../query-keys'; +import { userMutationKeys } from '../mutation-keys'; +import type { UserSelect, UserWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { UserSelect, UserWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a User with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteUserMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteUserMutation( + params: { + selection: { + fields: S & UserSelect; + } & HookStrictSelect, UserSelect>; + } & Omit< + UseMutationOptions< + { + deleteUser: { + user: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteUser: { + user: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteUserMutation( + 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: userMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .user.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: userKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: userKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useExtendTokenExpiresMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useExtendTokenExpiresMutation.ts new file mode 100644 index 000000000..d5d081a1f --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useExtendTokenExpiresMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for extendTokenExpires + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } 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 { customMutationKeys } from '../mutation-keys'; +import type { ExtendTokenExpiresVariables } from '../../orm/mutation'; +import type { + ExtendTokenExpiresPayloadSelect, + ExtendTokenExpiresPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { ExtendTokenExpiresVariables } from '../../orm/mutation'; +export type { ExtendTokenExpiresPayloadSelect } from '../../orm/input-types'; +export function useExtendTokenExpiresMutation( + params: { + selection: { + fields: S & ExtendTokenExpiresPayloadSelect; + } & HookStrictSelect, ExtendTokenExpiresPayloadSelect>; + } & Omit< + UseMutationOptions< + { + extendTokenExpires: InferSelectResult | null; + }, + Error, + ExtendTokenExpiresVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + extendTokenExpires: InferSelectResult | null; + }, + Error, + ExtendTokenExpiresVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.extendTokenExpires(), + mutationFn: (variables: ExtendTokenExpiresVariables) => + getClient() + .mutation.extendTokenExpires(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useForgotPasswordMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useForgotPasswordMutation.ts new file mode 100644 index 000000000..a30ced386 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useForgotPasswordMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for forgotPassword + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } 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 { customMutationKeys } from '../mutation-keys'; +import type { ForgotPasswordVariables } from '../../orm/mutation'; +import type { ForgotPasswordPayloadSelect, ForgotPasswordPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { ForgotPasswordVariables } from '../../orm/mutation'; +export type { ForgotPasswordPayloadSelect } from '../../orm/input-types'; +export function useForgotPasswordMutation( + params: { + selection: { + fields: S & ForgotPasswordPayloadSelect; + } & HookStrictSelect, ForgotPasswordPayloadSelect>; + } & Omit< + UseMutationOptions< + { + forgotPassword: InferSelectResult | null; + }, + Error, + ForgotPasswordVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + forgotPassword: InferSelectResult | null; + }, + Error, + ForgotPasswordVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.forgotPassword(), + mutationFn: (variables: ForgotPasswordVariables) => + getClient() + .mutation.forgotPassword(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useOneTimeTokenMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useOneTimeTokenMutation.ts new file mode 100644 index 000000000..0215b7d08 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useOneTimeTokenMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for oneTimeToken + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } 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 { customMutationKeys } from '../mutation-keys'; +import type { OneTimeTokenVariables } from '../../orm/mutation'; +import type { OneTimeTokenPayloadSelect, OneTimeTokenPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { OneTimeTokenVariables } from '../../orm/mutation'; +export type { OneTimeTokenPayloadSelect } from '../../orm/input-types'; +export function useOneTimeTokenMutation( + params: { + selection: { + fields: S & OneTimeTokenPayloadSelect; + } & HookStrictSelect, OneTimeTokenPayloadSelect>; + } & Omit< + UseMutationOptions< + { + oneTimeToken: InferSelectResult | null; + }, + Error, + OneTimeTokenVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + oneTimeToken: InferSelectResult | null; + }, + Error, + OneTimeTokenVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.oneTimeToken(), + mutationFn: (variables: OneTimeTokenVariables) => + getClient() + .mutation.oneTimeToken(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useResetPasswordMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useResetPasswordMutation.ts new file mode 100644 index 000000000..383cb8fa3 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useResetPasswordMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for resetPassword + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } 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 { customMutationKeys } from '../mutation-keys'; +import type { ResetPasswordVariables } from '../../orm/mutation'; +import type { ResetPasswordPayloadSelect, ResetPasswordPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { ResetPasswordVariables } from '../../orm/mutation'; +export type { ResetPasswordPayloadSelect } from '../../orm/input-types'; +export function useResetPasswordMutation( + params: { + selection: { + fields: S & ResetPasswordPayloadSelect; + } & HookStrictSelect, ResetPasswordPayloadSelect>; + } & Omit< + UseMutationOptions< + { + resetPassword: InferSelectResult | null; + }, + Error, + ResetPasswordVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + resetPassword: InferSelectResult | null; + }, + Error, + ResetPasswordVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.resetPassword(), + mutationFn: (variables: ResetPasswordVariables) => + getClient() + .mutation.resetPassword(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useSendAccountDeletionEmailMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useSendAccountDeletionEmailMutation.ts new file mode 100644 index 000000000..55a179118 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useSendAccountDeletionEmailMutation.ts @@ -0,0 +1,60 @@ +/** + * Custom mutation hook for sendAccountDeletionEmail + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } 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 { customMutationKeys } from '../mutation-keys'; +import type { SendAccountDeletionEmailVariables } from '../../orm/mutation'; +import type { + SendAccountDeletionEmailPayloadSelect, + SendAccountDeletionEmailPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { SendAccountDeletionEmailVariables } from '../../orm/mutation'; +export type { SendAccountDeletionEmailPayloadSelect } from '../../orm/input-types'; +export function useSendAccountDeletionEmailMutation< + S extends SendAccountDeletionEmailPayloadSelect, +>( + params: { + selection: { + fields: S & SendAccountDeletionEmailPayloadSelect; + } & HookStrictSelect, SendAccountDeletionEmailPayloadSelect>; + } & Omit< + UseMutationOptions< + { + sendAccountDeletionEmail: InferSelectResult | null; + }, + Error, + SendAccountDeletionEmailVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + sendAccountDeletionEmail: InferSelectResult | null; + }, + Error, + SendAccountDeletionEmailVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.sendAccountDeletionEmail(), + mutationFn: (variables: SendAccountDeletionEmailVariables) => + getClient() + .mutation.sendAccountDeletionEmail(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useSendVerificationEmailMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useSendVerificationEmailMutation.ts new file mode 100644 index 000000000..ea9ee0d76 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useSendVerificationEmailMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for sendVerificationEmail + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } 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 { customMutationKeys } from '../mutation-keys'; +import type { SendVerificationEmailVariables } from '../../orm/mutation'; +import type { + SendVerificationEmailPayloadSelect, + SendVerificationEmailPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { SendVerificationEmailVariables } from '../../orm/mutation'; +export type { SendVerificationEmailPayloadSelect } from '../../orm/input-types'; +export function useSendVerificationEmailMutation( + params: { + selection: { + fields: S & SendVerificationEmailPayloadSelect; + } & HookStrictSelect, SendVerificationEmailPayloadSelect>; + } & Omit< + UseMutationOptions< + { + sendVerificationEmail: InferSelectResult | null; + }, + Error, + SendVerificationEmailVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + sendVerificationEmail: InferSelectResult | null; + }, + Error, + SendVerificationEmailVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.sendVerificationEmail(), + mutationFn: (variables: SendVerificationEmailVariables) => + getClient() + .mutation.sendVerificationEmail(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useSetPasswordMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useSetPasswordMutation.ts new file mode 100644 index 000000000..af901aba1 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useSetPasswordMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for setPassword + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } 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 { customMutationKeys } from '../mutation-keys'; +import type { SetPasswordVariables } from '../../orm/mutation'; +import type { SetPasswordPayloadSelect, SetPasswordPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { SetPasswordVariables } from '../../orm/mutation'; +export type { SetPasswordPayloadSelect } from '../../orm/input-types'; +export function useSetPasswordMutation( + params: { + selection: { + fields: S & SetPasswordPayloadSelect; + } & HookStrictSelect, SetPasswordPayloadSelect>; + } & Omit< + UseMutationOptions< + { + setPassword: InferSelectResult | null; + }, + Error, + SetPasswordVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + setPassword: InferSelectResult | null; + }, + Error, + SetPasswordVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.setPassword(), + mutationFn: (variables: SetPasswordVariables) => + getClient() + .mutation.setPassword(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useSignInMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useSignInMutation.ts new file mode 100644 index 000000000..ff20ed5c4 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useSignInMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for signIn + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } 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 { customMutationKeys } from '../mutation-keys'; +import type { SignInVariables } from '../../orm/mutation'; +import type { SignInPayloadSelect, SignInPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { SignInVariables } from '../../orm/mutation'; +export type { SignInPayloadSelect } from '../../orm/input-types'; +export function useSignInMutation( + params: { + selection: { + fields: S & SignInPayloadSelect; + } & HookStrictSelect, SignInPayloadSelect>; + } & Omit< + UseMutationOptions< + { + signIn: InferSelectResult | null; + }, + Error, + SignInVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + signIn: InferSelectResult | null; + }, + Error, + SignInVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.signIn(), + mutationFn: (variables: SignInVariables) => + getClient() + .mutation.signIn(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useSignInOneTimeTokenMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useSignInOneTimeTokenMutation.ts new file mode 100644 index 000000000..2485fe1a6 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useSignInOneTimeTokenMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for signInOneTimeToken + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } 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 { customMutationKeys } from '../mutation-keys'; +import type { SignInOneTimeTokenVariables } from '../../orm/mutation'; +import type { + SignInOneTimeTokenPayloadSelect, + SignInOneTimeTokenPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { SignInOneTimeTokenVariables } from '../../orm/mutation'; +export type { SignInOneTimeTokenPayloadSelect } from '../../orm/input-types'; +export function useSignInOneTimeTokenMutation( + params: { + selection: { + fields: S & SignInOneTimeTokenPayloadSelect; + } & HookStrictSelect, SignInOneTimeTokenPayloadSelect>; + } & Omit< + UseMutationOptions< + { + signInOneTimeToken: InferSelectResult | null; + }, + Error, + SignInOneTimeTokenVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + signInOneTimeToken: InferSelectResult | null; + }, + Error, + SignInOneTimeTokenVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.signInOneTimeToken(), + mutationFn: (variables: SignInOneTimeTokenVariables) => + getClient() + .mutation.signInOneTimeToken(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useSignOutMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useSignOutMutation.ts new file mode 100644 index 000000000..fba4da1f5 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useSignOutMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for signOut + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } 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 { customMutationKeys } from '../mutation-keys'; +import type { SignOutVariables } from '../../orm/mutation'; +import type { SignOutPayloadSelect, SignOutPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { SignOutVariables } from '../../orm/mutation'; +export type { SignOutPayloadSelect } from '../../orm/input-types'; +export function useSignOutMutation( + params: { + selection: { + fields: S & SignOutPayloadSelect; + } & HookStrictSelect, SignOutPayloadSelect>; + } & Omit< + UseMutationOptions< + { + signOut: InferSelectResult | null; + }, + Error, + SignOutVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + signOut: InferSelectResult | null; + }, + Error, + SignOutVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.signOut(), + mutationFn: (variables: SignOutVariables) => + getClient() + .mutation.signOut(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useSignUpMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useSignUpMutation.ts new file mode 100644 index 000000000..8dc94a896 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useSignUpMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for signUp + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } 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 { customMutationKeys } from '../mutation-keys'; +import type { SignUpVariables } from '../../orm/mutation'; +import type { SignUpPayloadSelect, SignUpPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { SignUpVariables } from '../../orm/mutation'; +export type { SignUpPayloadSelect } from '../../orm/input-types'; +export function useSignUpMutation( + params: { + selection: { + fields: S & SignUpPayloadSelect; + } & HookStrictSelect, SignUpPayloadSelect>; + } & Omit< + UseMutationOptions< + { + signUp: InferSelectResult | null; + }, + Error, + SignUpVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + signUp: InferSelectResult | null; + }, + Error, + SignUpVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.signUp(), + mutationFn: (variables: SignUpVariables) => + getClient() + .mutation.signUp(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useUpdateAuditLogMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useUpdateAuditLogMutation.ts new file mode 100644 index 000000000..c1f3aba69 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useUpdateAuditLogMutation.ts @@ -0,0 +1,102 @@ +/** + * Update mutation hook for AuditLog + * @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 { auditLogKeys } from '../query-keys'; +import { auditLogMutationKeys } from '../mutation-keys'; +import type { AuditLogSelect, AuditLogWithRelations, AuditLogPatch } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AuditLogSelect, AuditLogWithRelations, AuditLogPatch } from '../../orm/input-types'; +/** + * Mutation hook for updating a AuditLog + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateAuditLogMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', auditLogPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateAuditLogMutation( + params: { + selection: { + fields: S & AuditLogSelect; + } & HookStrictSelect, AuditLogSelect>; + } & Omit< + UseMutationOptions< + { + updateAuditLog: { + auditLog: InferSelectResult; + }; + }, + Error, + { + id: string; + auditLogPatch: AuditLogPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateAuditLog: { + auditLog: InferSelectResult; + }; + }, + Error, + { + id: string; + auditLogPatch: AuditLogPatch; + } +>; +export function useUpdateAuditLogMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + auditLogPatch: AuditLogPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: auditLogMutationKeys.all, + mutationFn: ({ id, auditLogPatch }: { id: string; auditLogPatch: AuditLogPatch }) => + getClient() + .auditLog.update({ + where: { + id, + }, + data: auditLogPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: auditLogKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: auditLogKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useUpdateConnectedAccountMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useUpdateConnectedAccountMutation.ts new file mode 100644 index 000000000..826dce155 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useUpdateConnectedAccountMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for ConnectedAccount + * @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 { connectedAccountKeys } from '../query-keys'; +import { connectedAccountMutationKeys } from '../mutation-keys'; +import type { + ConnectedAccountSelect, + ConnectedAccountWithRelations, + ConnectedAccountPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ConnectedAccountSelect, + ConnectedAccountWithRelations, + ConnectedAccountPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a ConnectedAccount + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateConnectedAccountMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', connectedAccountPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateConnectedAccountMutation( + params: { + selection: { + fields: S & ConnectedAccountSelect; + } & HookStrictSelect, ConnectedAccountSelect>; + } & Omit< + UseMutationOptions< + { + updateConnectedAccount: { + connectedAccount: InferSelectResult; + }; + }, + Error, + { + id: string; + connectedAccountPatch: ConnectedAccountPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateConnectedAccount: { + connectedAccount: InferSelectResult; + }; + }, + Error, + { + id: string; + connectedAccountPatch: ConnectedAccountPatch; + } +>; +export function useUpdateConnectedAccountMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + connectedAccountPatch: ConnectedAccountPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: connectedAccountMutationKeys.all, + mutationFn: ({ + id, + connectedAccountPatch, + }: { + id: string; + connectedAccountPatch: ConnectedAccountPatch; + }) => + getClient() + .connectedAccount.update({ + where: { + id, + }, + data: connectedAccountPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: connectedAccountKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: connectedAccountKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useUpdateCryptoAddressMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useUpdateCryptoAddressMutation.ts new file mode 100644 index 000000000..f1987ec6e --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useUpdateCryptoAddressMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for CryptoAddress + * @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 { cryptoAddressKeys } from '../query-keys'; +import { cryptoAddressMutationKeys } from '../mutation-keys'; +import type { + CryptoAddressSelect, + CryptoAddressWithRelations, + CryptoAddressPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + CryptoAddressSelect, + CryptoAddressWithRelations, + CryptoAddressPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a CryptoAddress + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateCryptoAddressMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', cryptoAddressPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateCryptoAddressMutation( + params: { + selection: { + fields: S & CryptoAddressSelect; + } & HookStrictSelect, CryptoAddressSelect>; + } & Omit< + UseMutationOptions< + { + updateCryptoAddress: { + cryptoAddress: InferSelectResult; + }; + }, + Error, + { + id: string; + cryptoAddressPatch: CryptoAddressPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateCryptoAddress: { + cryptoAddress: InferSelectResult; + }; + }, + Error, + { + id: string; + cryptoAddressPatch: CryptoAddressPatch; + } +>; +export function useUpdateCryptoAddressMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + cryptoAddressPatch: CryptoAddressPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: cryptoAddressMutationKeys.all, + mutationFn: ({ + id, + cryptoAddressPatch, + }: { + id: string; + cryptoAddressPatch: CryptoAddressPatch; + }) => + getClient() + .cryptoAddress.update({ + where: { + id, + }, + data: cryptoAddressPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: cryptoAddressKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: cryptoAddressKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useUpdateEmailMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useUpdateEmailMutation.ts new file mode 100644 index 000000000..89c8a59da --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useUpdateEmailMutation.ts @@ -0,0 +1,102 @@ +/** + * Update mutation hook for Email + * @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 { emailKeys } from '../query-keys'; +import { emailMutationKeys } from '../mutation-keys'; +import type { EmailSelect, EmailWithRelations, EmailPatch } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { EmailSelect, EmailWithRelations, EmailPatch } from '../../orm/input-types'; +/** + * Mutation hook for updating a Email + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateEmailMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', emailPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateEmailMutation( + params: { + selection: { + fields: S & EmailSelect; + } & HookStrictSelect, EmailSelect>; + } & Omit< + UseMutationOptions< + { + updateEmail: { + email: InferSelectResult; + }; + }, + Error, + { + id: string; + emailPatch: EmailPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateEmail: { + email: InferSelectResult; + }; + }, + Error, + { + id: string; + emailPatch: EmailPatch; + } +>; +export function useUpdateEmailMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + emailPatch: EmailPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: emailMutationKeys.all, + mutationFn: ({ id, emailPatch }: { id: string; emailPatch: EmailPatch }) => + getClient() + .email.update({ + where: { + id, + }, + data: emailPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: emailKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: emailKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useUpdatePhoneNumberMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useUpdatePhoneNumberMutation.ts new file mode 100644 index 000000000..e78b8e139 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useUpdatePhoneNumberMutation.ts @@ -0,0 +1,110 @@ +/** + * Update mutation hook for PhoneNumber + * @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 { phoneNumberKeys } from '../query-keys'; +import { phoneNumberMutationKeys } from '../mutation-keys'; +import type { + PhoneNumberSelect, + PhoneNumberWithRelations, + PhoneNumberPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PhoneNumberSelect, + PhoneNumberWithRelations, + PhoneNumberPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a PhoneNumber + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdatePhoneNumberMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', phoneNumberPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdatePhoneNumberMutation( + params: { + selection: { + fields: S & PhoneNumberSelect; + } & HookStrictSelect, PhoneNumberSelect>; + } & Omit< + UseMutationOptions< + { + updatePhoneNumber: { + phoneNumber: InferSelectResult; + }; + }, + Error, + { + id: string; + phoneNumberPatch: PhoneNumberPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePhoneNumber: { + phoneNumber: InferSelectResult; + }; + }, + Error, + { + id: string; + phoneNumberPatch: PhoneNumberPatch; + } +>; +export function useUpdatePhoneNumberMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + phoneNumberPatch: PhoneNumberPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: phoneNumberMutationKeys.all, + mutationFn: ({ id, phoneNumberPatch }: { id: string; phoneNumberPatch: PhoneNumberPatch }) => + getClient() + .phoneNumber.update({ + where: { + id, + }, + data: phoneNumberPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: phoneNumberKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: phoneNumberKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useUpdateRoleTypeMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useUpdateRoleTypeMutation.ts new file mode 100644 index 000000000..b25b4efcb --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useUpdateRoleTypeMutation.ts @@ -0,0 +1,102 @@ +/** + * Update mutation hook for RoleType + * @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 { roleTypeKeys } from '../query-keys'; +import { roleTypeMutationKeys } from '../mutation-keys'; +import type { RoleTypeSelect, RoleTypeWithRelations, RoleTypePatch } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { RoleTypeSelect, RoleTypeWithRelations, RoleTypePatch } from '../../orm/input-types'; +/** + * Mutation hook for updating a RoleType + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateRoleTypeMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', roleTypePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateRoleTypeMutation( + params: { + selection: { + fields: S & RoleTypeSelect; + } & HookStrictSelect, RoleTypeSelect>; + } & Omit< + UseMutationOptions< + { + updateRoleType: { + roleType: InferSelectResult; + }; + }, + Error, + { + id: number; + roleTypePatch: RoleTypePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateRoleType: { + roleType: InferSelectResult; + }; + }, + Error, + { + id: number; + roleTypePatch: RoleTypePatch; + } +>; +export function useUpdateRoleTypeMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: number; + roleTypePatch: RoleTypePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: roleTypeMutationKeys.all, + mutationFn: ({ id, roleTypePatch }: { id: number; roleTypePatch: RoleTypePatch }) => + getClient() + .roleType.update({ + where: { + id, + }, + data: roleTypePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: roleTypeKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: roleTypeKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useUpdateUserMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useUpdateUserMutation.ts new file mode 100644 index 000000000..d1ab02501 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useUpdateUserMutation.ts @@ -0,0 +1,102 @@ +/** + * Update mutation hook for User + * @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 { userKeys } from '../query-keys'; +import { userMutationKeys } from '../mutation-keys'; +import type { UserSelect, UserWithRelations, UserPatch } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { UserSelect, UserWithRelations, UserPatch } from '../../orm/input-types'; +/** + * Mutation hook for updating a User + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateUserMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', userPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateUserMutation( + params: { + selection: { + fields: S & UserSelect; + } & HookStrictSelect, UserSelect>; + } & Omit< + UseMutationOptions< + { + updateUser: { + user: InferSelectResult; + }; + }, + Error, + { + id: string; + userPatch: UserPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateUser: { + user: InferSelectResult; + }; + }, + Error, + { + id: string; + userPatch: UserPatch; + } +>; +export function useUpdateUserMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + userPatch: UserPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: userMutationKeys.all, + mutationFn: ({ id, userPatch }: { id: string; userPatch: UserPatch }) => + getClient() + .user.update({ + where: { + id, + }, + data: userPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: userKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: userKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useVerifyEmailMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useVerifyEmailMutation.ts new file mode 100644 index 000000000..6103a9bc1 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useVerifyEmailMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for verifyEmail + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } 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 { customMutationKeys } from '../mutation-keys'; +import type { VerifyEmailVariables } from '../../orm/mutation'; +import type { VerifyEmailPayloadSelect, VerifyEmailPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { VerifyEmailVariables } from '../../orm/mutation'; +export type { VerifyEmailPayloadSelect } from '../../orm/input-types'; +export function useVerifyEmailMutation( + params: { + selection: { + fields: S & VerifyEmailPayloadSelect; + } & HookStrictSelect, VerifyEmailPayloadSelect>; + } & Omit< + UseMutationOptions< + { + verifyEmail: InferSelectResult | null; + }, + Error, + VerifyEmailVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + verifyEmail: InferSelectResult | null; + }, + Error, + VerifyEmailVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.verifyEmail(), + mutationFn: (variables: VerifyEmailVariables) => + getClient() + .mutation.verifyEmail(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useVerifyPasswordMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useVerifyPasswordMutation.ts new file mode 100644 index 000000000..0cd31b8f3 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useVerifyPasswordMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for verifyPassword + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } 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 { customMutationKeys } from '../mutation-keys'; +import type { VerifyPasswordVariables } from '../../orm/mutation'; +import type { VerifyPasswordPayloadSelect, VerifyPasswordPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { VerifyPasswordVariables } from '../../orm/mutation'; +export type { VerifyPasswordPayloadSelect } from '../../orm/input-types'; +export function useVerifyPasswordMutation( + params: { + selection: { + fields: S & VerifyPasswordPayloadSelect; + } & HookStrictSelect, VerifyPasswordPayloadSelect>; + } & Omit< + UseMutationOptions< + { + verifyPassword: InferSelectResult | null; + }, + Error, + VerifyPasswordVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + verifyPassword: InferSelectResult | null; + }, + Error, + VerifyPasswordVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.verifyPassword(), + mutationFn: (variables: VerifyPasswordVariables) => + getClient() + .mutation.verifyPassword(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useVerifyTotpMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useVerifyTotpMutation.ts new file mode 100644 index 000000000..418d599a7 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useVerifyTotpMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for verifyTotp + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } 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 { customMutationKeys } from '../mutation-keys'; +import type { VerifyTotpVariables } from '../../orm/mutation'; +import type { VerifyTotpPayloadSelect, VerifyTotpPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { VerifyTotpVariables } from '../../orm/mutation'; +export type { VerifyTotpPayloadSelect } from '../../orm/input-types'; +export function useVerifyTotpMutation( + params: { + selection: { + fields: S & VerifyTotpPayloadSelect; + } & HookStrictSelect, VerifyTotpPayloadSelect>; + } & Omit< + UseMutationOptions< + { + verifyTotp: InferSelectResult | null; + }, + Error, + VerifyTotpVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + verifyTotp: InferSelectResult | null; + }, + Error, + VerifyTotpVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.verifyTotp(), + mutationFn: (variables: VerifyTotpVariables) => + getClient() + .mutation.verifyTotp(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/queries/index.ts b/sdk/constructive-react/src/auth/hooks/queries/index.ts new file mode 100644 index 000000000..8b206fe2d --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/queries/index.ts @@ -0,0 +1,23 @@ +/** + * Query hooks barrel export + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export * from './useRoleTypesQuery'; +export * from './useRoleTypeQuery'; +export * from './useCryptoAddressesQuery'; +export * from './useCryptoAddressQuery'; +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 './useUsersQuery'; +export * from './useUserQuery'; +export * from './useCurrentIpAddressQuery'; +export * from './useCurrentUserAgentQuery'; +export * from './useCurrentUserIdQuery'; +export * from './useCurrentUserQuery'; diff --git a/sdk/constructive-react/src/auth/hooks/queries/useAuditLogQuery.ts b/sdk/constructive-react/src/auth/hooks/queries/useAuditLogQuery.ts new file mode 100644 index 000000000..99af2d7fe --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/queries/useAuditLogQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for AuditLog + * @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 { auditLogKeys } from '../query-keys'; +import type { AuditLogSelect, AuditLogWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AuditLogSelect, AuditLogWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const auditLogQueryKey = auditLogKeys.detail; +/** + * Query hook for fetching a single AuditLog + * + * @example + * ```tsx + * const { data, isLoading } = useAuditLogQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useAuditLogQuery< + S extends AuditLogSelect, + TData = { + auditLog: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AuditLogSelect>; + } & Omit< + UseQueryOptions< + { + auditLog: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAuditLogQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: auditLogKeys.detail(params.id), + queryFn: () => + getClient() + .auditLog.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single AuditLog without React hooks + * + * @example + * ```ts + * const data = await fetchAuditLogQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchAuditLogQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AuditLogSelect>; +}): Promise<{ + auditLog: InferSelectResult | null; +}>; +export async function fetchAuditLogQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .auditLog.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single AuditLog for SSR or cache warming + * + * @example + * ```ts + * await prefetchAuditLogQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchAuditLogQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AuditLogSelect>; + } +): Promise; +export async function prefetchAuditLogQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: auditLogKeys.detail(params.id), + queryFn: () => + getClient() + .auditLog.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/queries/useAuditLogsQuery.ts b/sdk/constructive-react/src/auth/hooks/queries/useAuditLogsQuery.ts new file mode 100644 index 000000000..2fd0f9384 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/queries/useAuditLogsQuery.ts @@ -0,0 +1,145 @@ +/** + * List query hook for AuditLog + * @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 { auditLogKeys } from '../query-keys'; +import type { + AuditLogSelect, + AuditLogWithRelations, + AuditLogFilter, + AuditLogOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + AuditLogSelect, + AuditLogWithRelations, + AuditLogFilter, + AuditLogOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const auditLogsQueryKey = auditLogKeys.list; +/** + * Query hook for fetching AuditLog list + * + * @example + * ```tsx + * const { data, isLoading } = useAuditLogsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useAuditLogsQuery< + S extends AuditLogSelect, + TData = { + auditLogs: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AuditLogSelect>; + } & Omit< + UseQueryOptions< + { + auditLogs: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAuditLogsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: auditLogKeys.list(args), + queryFn: () => getClient().auditLog.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch AuditLog list without React hooks + * + * @example + * ```ts + * const data = await fetchAuditLogsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchAuditLogsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AuditLogSelect>; +}): Promise<{ + auditLogs: ConnectionResult>; +}>; +export async function fetchAuditLogsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().auditLog.findMany(args).unwrap(); +} +/** + * Prefetch AuditLog list for SSR or cache warming + * + * @example + * ```ts + * await prefetchAuditLogsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchAuditLogsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AuditLogSelect>; + } +): Promise; +export async function prefetchAuditLogsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: auditLogKeys.list(args), + queryFn: () => getClient().auditLog.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/queries/useConnectedAccountQuery.ts b/sdk/constructive-react/src/auth/hooks/queries/useConnectedAccountQuery.ts new file mode 100644 index 000000000..21a88edf9 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/queries/useConnectedAccountQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for ConnectedAccount + * @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 { connectedAccountKeys } from '../query-keys'; +import type { ConnectedAccountSelect, ConnectedAccountWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ConnectedAccountSelect, ConnectedAccountWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const connectedAccountQueryKey = connectedAccountKeys.detail; +/** + * Query hook for fetching a single ConnectedAccount + * + * @example + * ```tsx + * const { data, isLoading } = useConnectedAccountQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useConnectedAccountQuery< + S extends ConnectedAccountSelect, + TData = { + connectedAccount: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ConnectedAccountSelect>; + } & Omit< + UseQueryOptions< + { + connectedAccount: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useConnectedAccountQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: connectedAccountKeys.detail(params.id), + queryFn: () => + getClient() + .connectedAccount.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single ConnectedAccount without React hooks + * + * @example + * ```ts + * const data = await fetchConnectedAccountQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchConnectedAccountQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ConnectedAccountSelect>; +}): Promise<{ + connectedAccount: InferSelectResult | null; +}>; +export async function fetchConnectedAccountQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .connectedAccount.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single ConnectedAccount for SSR or cache warming + * + * @example + * ```ts + * await prefetchConnectedAccountQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchConnectedAccountQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ConnectedAccountSelect>; + } +): Promise; +export async function prefetchConnectedAccountQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: connectedAccountKeys.detail(params.id), + queryFn: () => + getClient() + .connectedAccount.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/queries/useConnectedAccountsQuery.ts b/sdk/constructive-react/src/auth/hooks/queries/useConnectedAccountsQuery.ts new file mode 100644 index 000000000..326e1b80c --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/queries/useConnectedAccountsQuery.ts @@ -0,0 +1,163 @@ +/** + * List query hook for ConnectedAccount + * @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 { connectedAccountKeys } from '../query-keys'; +import type { + ConnectedAccountSelect, + ConnectedAccountWithRelations, + ConnectedAccountFilter, + ConnectedAccountOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + ConnectedAccountSelect, + ConnectedAccountWithRelations, + ConnectedAccountFilter, + ConnectedAccountOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const connectedAccountsQueryKey = connectedAccountKeys.list; +/** + * Query hook for fetching ConnectedAccount list + * + * @example + * ```tsx + * const { data, isLoading } = useConnectedAccountsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useConnectedAccountsQuery< + S extends ConnectedAccountSelect, + TData = { + connectedAccounts: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ConnectedAccountSelect>; + } & Omit< + UseQueryOptions< + { + connectedAccounts: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useConnectedAccountsQuery( + params: { + selection: ListSelectionConfig< + ConnectedAccountSelect, + ConnectedAccountFilter, + ConnectedAccountOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + ConnectedAccountSelect, + ConnectedAccountFilter, + ConnectedAccountOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: connectedAccountKeys.list(args), + queryFn: () => getClient().connectedAccount.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch ConnectedAccount list without React hooks + * + * @example + * ```ts + * const data = await fetchConnectedAccountsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchConnectedAccountsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ConnectedAccountSelect>; +}): Promise<{ + connectedAccounts: ConnectionResult>; +}>; +export async function fetchConnectedAccountsQuery(params: { + selection: ListSelectionConfig< + ConnectedAccountSelect, + ConnectedAccountFilter, + ConnectedAccountOrderBy + >; +}) { + const args = buildListSelectionArgs< + ConnectedAccountSelect, + ConnectedAccountFilter, + ConnectedAccountOrderBy + >(params.selection); + return getClient().connectedAccount.findMany(args).unwrap(); +} +/** + * Prefetch ConnectedAccount list for SSR or cache warming + * + * @example + * ```ts + * await prefetchConnectedAccountsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchConnectedAccountsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ConnectedAccountSelect>; + } +): Promise; +export async function prefetchConnectedAccountsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + ConnectedAccountSelect, + ConnectedAccountFilter, + ConnectedAccountOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + ConnectedAccountSelect, + ConnectedAccountFilter, + ConnectedAccountOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: connectedAccountKeys.list(args), + queryFn: () => getClient().connectedAccount.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/queries/useCryptoAddressQuery.ts b/sdk/constructive-react/src/auth/hooks/queries/useCryptoAddressQuery.ts new file mode 100644 index 000000000..cc9c73a90 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/queries/useCryptoAddressQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for CryptoAddress + * @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 { cryptoAddressKeys } from '../query-keys'; +import type { CryptoAddressSelect, CryptoAddressWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { CryptoAddressSelect, CryptoAddressWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const cryptoAddressQueryKey = cryptoAddressKeys.detail; +/** + * Query hook for fetching a single CryptoAddress + * + * @example + * ```tsx + * const { data, isLoading } = useCryptoAddressQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useCryptoAddressQuery< + S extends CryptoAddressSelect, + TData = { + cryptoAddress: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, CryptoAddressSelect>; + } & Omit< + UseQueryOptions< + { + cryptoAddress: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useCryptoAddressQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: cryptoAddressKeys.detail(params.id), + queryFn: () => + getClient() + .cryptoAddress.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single CryptoAddress without React hooks + * + * @example + * ```ts + * const data = await fetchCryptoAddressQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchCryptoAddressQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, CryptoAddressSelect>; +}): Promise<{ + cryptoAddress: InferSelectResult | null; +}>; +export async function fetchCryptoAddressQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .cryptoAddress.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single CryptoAddress for SSR or cache warming + * + * @example + * ```ts + * await prefetchCryptoAddressQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchCryptoAddressQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, CryptoAddressSelect>; + } +): Promise; +export async function prefetchCryptoAddressQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: cryptoAddressKeys.detail(params.id), + queryFn: () => + getClient() + .cryptoAddress.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/queries/useCryptoAddressesQuery.ts b/sdk/constructive-react/src/auth/hooks/queries/useCryptoAddressesQuery.ts new file mode 100644 index 000000000..33cafeede --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/queries/useCryptoAddressesQuery.ts @@ -0,0 +1,151 @@ +/** + * List query hook for CryptoAddress + * @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 { cryptoAddressKeys } from '../query-keys'; +import type { + CryptoAddressSelect, + CryptoAddressWithRelations, + CryptoAddressFilter, + CryptoAddressOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + CryptoAddressSelect, + CryptoAddressWithRelations, + CryptoAddressFilter, + CryptoAddressOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const cryptoAddressesQueryKey = cryptoAddressKeys.list; +/** + * Query hook for fetching CryptoAddress list + * + * @example + * ```tsx + * const { data, isLoading } = useCryptoAddressesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useCryptoAddressesQuery< + S extends CryptoAddressSelect, + TData = { + cryptoAddresses: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, CryptoAddressSelect>; + } & Omit< + UseQueryOptions< + { + cryptoAddresses: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useCryptoAddressesQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + CryptoAddressSelect, + CryptoAddressFilter, + CryptoAddressOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: cryptoAddressKeys.list(args), + queryFn: () => getClient().cryptoAddress.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch CryptoAddress list without React hooks + * + * @example + * ```ts + * const data = await fetchCryptoAddressesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchCryptoAddressesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, CryptoAddressSelect>; +}): Promise<{ + cryptoAddresses: ConnectionResult>; +}>; +export async function fetchCryptoAddressesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + CryptoAddressSelect, + CryptoAddressFilter, + CryptoAddressOrderBy + >(params.selection); + return getClient().cryptoAddress.findMany(args).unwrap(); +} +/** + * Prefetch CryptoAddress list for SSR or cache warming + * + * @example + * ```ts + * await prefetchCryptoAddressesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchCryptoAddressesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, CryptoAddressSelect>; + } +): Promise; +export async function prefetchCryptoAddressesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs< + CryptoAddressSelect, + CryptoAddressFilter, + CryptoAddressOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: cryptoAddressKeys.list(args), + queryFn: () => getClient().cryptoAddress.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/queries/useCurrentIpAddressQuery.ts b/sdk/constructive-react/src/auth/hooks/queries/useCurrentIpAddressQuery.ts new file mode 100644 index 000000000..525306e3b --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/queries/useCurrentIpAddressQuery.ts @@ -0,0 +1,90 @@ +/** + * Custom query hook for currentIpAddress + * @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'; +/** Query key factory - re-exported from query-keys.ts */ +export const currentIpAddressQueryKey = customQueryKeys.currentIpAddress; +/** + * Query hook for currentIpAddress + * + * @example + * ```tsx + * const { data, isLoading } = useCurrentIpAddressQuery(); + * + * if (data?.currentIpAddress) { + * console.log(data.currentIpAddress); + * } + * ``` + */ +export function useCurrentIpAddressQuery< + TData = { + currentIpAddress: string | null; + }, +>( + params?: Omit< + UseQueryOptions< + { + currentIpAddress: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useCurrentIpAddressQuery< + TData = { + currentIpAddress: string | null; + }, +>( + params?: Omit< + UseQueryOptions< + { + currentIpAddress: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult { + const queryOptions = params ?? {}; + return useQuery({ + queryKey: currentIpAddressQueryKey(), + queryFn: () => getClient().query.currentIpAddress().unwrap(), + ...queryOptions, + }); +} +/** + * Fetch currentIpAddress without React hooks + * + * @example + * ```ts + * const data = await fetchCurrentIpAddressQuery(); + * ``` + */ +export async function fetchCurrentIpAddressQuery() { + return getClient().query.currentIpAddress().unwrap(); +} +/** + * Prefetch currentIpAddress for SSR or cache warming + * + * @example + * ```ts + * await prefetchCurrentIpAddressQuery(queryClient); + * ``` + */ +export async function prefetchCurrentIpAddressQuery(queryClient: QueryClient): Promise { + await queryClient.prefetchQuery({ + queryKey: currentIpAddressQueryKey(), + queryFn: () => getClient().query.currentIpAddress().unwrap(), + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/queries/useCurrentUserAgentQuery.ts b/sdk/constructive-react/src/auth/hooks/queries/useCurrentUserAgentQuery.ts new file mode 100644 index 000000000..5a9c544d9 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/queries/useCurrentUserAgentQuery.ts @@ -0,0 +1,90 @@ +/** + * Custom query hook for currentUserAgent + * @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'; +/** Query key factory - re-exported from query-keys.ts */ +export const currentUserAgentQueryKey = customQueryKeys.currentUserAgent; +/** + * Query hook for currentUserAgent + * + * @example + * ```tsx + * const { data, isLoading } = useCurrentUserAgentQuery(); + * + * if (data?.currentUserAgent) { + * console.log(data.currentUserAgent); + * } + * ``` + */ +export function useCurrentUserAgentQuery< + TData = { + currentUserAgent: string | null; + }, +>( + params?: Omit< + UseQueryOptions< + { + currentUserAgent: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useCurrentUserAgentQuery< + TData = { + currentUserAgent: string | null; + }, +>( + params?: Omit< + UseQueryOptions< + { + currentUserAgent: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult { + const queryOptions = params ?? {}; + return useQuery({ + queryKey: currentUserAgentQueryKey(), + queryFn: () => getClient().query.currentUserAgent().unwrap(), + ...queryOptions, + }); +} +/** + * Fetch currentUserAgent without React hooks + * + * @example + * ```ts + * const data = await fetchCurrentUserAgentQuery(); + * ``` + */ +export async function fetchCurrentUserAgentQuery() { + return getClient().query.currentUserAgent().unwrap(); +} +/** + * Prefetch currentUserAgent for SSR or cache warming + * + * @example + * ```ts + * await prefetchCurrentUserAgentQuery(queryClient); + * ``` + */ +export async function prefetchCurrentUserAgentQuery(queryClient: QueryClient): Promise { + await queryClient.prefetchQuery({ + queryKey: currentUserAgentQueryKey(), + queryFn: () => getClient().query.currentUserAgent().unwrap(), + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/queries/useCurrentUserIdQuery.ts b/sdk/constructive-react/src/auth/hooks/queries/useCurrentUserIdQuery.ts new file mode 100644 index 000000000..5f65326cc --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/queries/useCurrentUserIdQuery.ts @@ -0,0 +1,90 @@ +/** + * Custom query hook for currentUserId + * @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'; +/** Query key factory - re-exported from query-keys.ts */ +export const currentUserIdQueryKey = customQueryKeys.currentUserId; +/** + * Query hook for currentUserId + * + * @example + * ```tsx + * const { data, isLoading } = useCurrentUserIdQuery(); + * + * if (data?.currentUserId) { + * console.log(data.currentUserId); + * } + * ``` + */ +export function useCurrentUserIdQuery< + TData = { + currentUserId: string | null; + }, +>( + params?: Omit< + UseQueryOptions< + { + currentUserId: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useCurrentUserIdQuery< + TData = { + currentUserId: string | null; + }, +>( + params?: Omit< + UseQueryOptions< + { + currentUserId: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult { + const queryOptions = params ?? {}; + return useQuery({ + queryKey: currentUserIdQueryKey(), + queryFn: () => getClient().query.currentUserId().unwrap(), + ...queryOptions, + }); +} +/** + * Fetch currentUserId without React hooks + * + * @example + * ```ts + * const data = await fetchCurrentUserIdQuery(); + * ``` + */ +export async function fetchCurrentUserIdQuery() { + return getClient().query.currentUserId().unwrap(); +} +/** + * Prefetch currentUserId for SSR or cache warming + * + * @example + * ```ts + * await prefetchCurrentUserIdQuery(queryClient); + * ``` + */ +export async function prefetchCurrentUserIdQuery(queryClient: QueryClient): Promise { + await queryClient.prefetchQuery({ + queryKey: currentUserIdQueryKey(), + queryFn: () => getClient().query.currentUserId().unwrap(), + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/queries/useCurrentUserQuery.ts b/sdk/constructive-react/src/auth/hooks/queries/useCurrentUserQuery.ts new file mode 100644 index 000000000..0bc463f03 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/queries/useCurrentUserQuery.ts @@ -0,0 +1,125 @@ +/** + * Custom query hook for currentUser + * @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 { UserSelect, User } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { UserSelect } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const currentUserQueryKey = customQueryKeys.currentUser; +/** + * Query hook for currentUser + * + * @example + * ```tsx + * const { data, isLoading } = useCurrentUserQuery({ selection: { fields: { id: true } } }); + * + * if (data?.currentUser) { + * console.log(data.currentUser); + * } + * ``` + */ +export function useCurrentUserQuery< + S extends UserSelect, + TData = { + currentUser: InferSelectResult | null; + }, +>( + params: { + selection: { + fields: S & UserSelect; + } & HookStrictSelect, UserSelect>; + } & Omit< + UseQueryOptions< + { + currentUser: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useCurrentUserQuery( + params: { + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: currentUserQueryKey(), + queryFn: () => + getClient() + .query.currentUser({ + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch currentUser without React hooks + * + * @example + * ```ts + * const data = await fetchCurrentUserQuery({ selection: { fields: { id: true } } }); + * ``` + */ +export async function fetchCurrentUserQuery(params: { + selection: { + fields: S & UserSelect; + } & HookStrictSelect, UserSelect>; +}): Promise<{ + currentUser: InferSelectResult | null; +}>; +export async function fetchCurrentUserQuery(params: { selection: SelectionConfig }) { + const args = buildSelectionArgs(params.selection); + return getClient() + .query.currentUser({ + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch currentUser for SSR or cache warming + * + * @example + * ```ts + * await prefetchCurrentUserQuery(queryClient, { selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchCurrentUserQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S & UserSelect; + } & HookStrictSelect, UserSelect>; + } +): Promise; +export async function prefetchCurrentUserQuery( + queryClient: QueryClient, + params: { + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: currentUserQueryKey(), + queryFn: () => + getClient() + .query.currentUser({ + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/queries/useEmailQuery.ts b/sdk/constructive-react/src/auth/hooks/queries/useEmailQuery.ts new file mode 100644 index 000000000..d954e6328 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/queries/useEmailQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for Email + * @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 { emailKeys } from '../query-keys'; +import type { EmailSelect, EmailWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +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 + * + * @example + * ```tsx + * const { data, isLoading } = useEmailQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useEmailQuery< + S extends EmailSelect, + TData = { + email: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, EmailSelect>; + } & Omit< + UseQueryOptions< + { + email: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useEmailQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: emailKeys.detail(params.id), + queryFn: () => + getClient() + .email.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single Email without React hooks + * + * @example + * ```ts + * const data = await fetchEmailQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchEmailQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, EmailSelect>; +}): Promise<{ + email: InferSelectResult | null; +}>; +export async function fetchEmailQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .email.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single Email for SSR or cache warming + * + * @example + * ```ts + * await prefetchEmailQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchEmailQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, EmailSelect>; + } +): Promise; +export async function prefetchEmailQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: emailKeys.detail(params.id), + queryFn: () => + getClient() + .email.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/queries/useEmailsQuery.ts b/sdk/constructive-react/src/auth/hooks/queries/useEmailsQuery.ts new file mode 100644 index 000000000..1dca30b06 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/queries/useEmailsQuery.ts @@ -0,0 +1,139 @@ +/** + * List query hook for Email + * @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 { emailKeys } from '../query-keys'; +import type { + EmailSelect, + EmailWithRelations, + EmailFilter, + EmailOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + EmailSelect, + EmailWithRelations, + EmailFilter, + EmailOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const emailsQueryKey = emailKeys.list; +/** + * Query hook for fetching Email list + * + * @example + * ```tsx + * const { data, isLoading } = useEmailsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useEmailsQuery< + S extends EmailSelect, + TData = { + emails: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, EmailSelect>; + } & Omit< + UseQueryOptions< + { + emails: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useEmailsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: emailKeys.list(args), + queryFn: () => getClient().email.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch Email list without React hooks + * + * @example + * ```ts + * const data = await fetchEmailsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchEmailsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, EmailSelect>; +}): Promise<{ + emails: ConnectionResult>; +}>; +export async function fetchEmailsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs(params.selection); + return getClient().email.findMany(args).unwrap(); +} +/** + * Prefetch Email list for SSR or cache warming + * + * @example + * ```ts + * await prefetchEmailsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchEmailsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, EmailSelect>; + } +): Promise; +export async function prefetchEmailsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: emailKeys.list(args), + queryFn: () => getClient().email.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/queries/usePhoneNumberQuery.ts b/sdk/constructive-react/src/auth/hooks/queries/usePhoneNumberQuery.ts new file mode 100644 index 000000000..7c7f6a47d --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/queries/usePhoneNumberQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for PhoneNumber + * @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 { phoneNumberKeys } from '../query-keys'; +import type { PhoneNumberSelect, PhoneNumberWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { PhoneNumberSelect, PhoneNumberWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const phoneNumberQueryKey = phoneNumberKeys.detail; +/** + * Query hook for fetching a single PhoneNumber + * + * @example + * ```tsx + * const { data, isLoading } = usePhoneNumberQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePhoneNumberQuery< + S extends PhoneNumberSelect, + TData = { + phoneNumber: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PhoneNumberSelect>; + } & Omit< + UseQueryOptions< + { + phoneNumber: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePhoneNumberQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: phoneNumberKeys.detail(params.id), + queryFn: () => + getClient() + .phoneNumber.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single PhoneNumber without React hooks + * + * @example + * ```ts + * const data = await fetchPhoneNumberQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPhoneNumberQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PhoneNumberSelect>; +}): Promise<{ + phoneNumber: InferSelectResult | null; +}>; +export async function fetchPhoneNumberQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .phoneNumber.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single PhoneNumber for SSR or cache warming + * + * @example + * ```ts + * await prefetchPhoneNumberQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPhoneNumberQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PhoneNumberSelect>; + } +): Promise; +export async function prefetchPhoneNumberQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: phoneNumberKeys.detail(params.id), + queryFn: () => + getClient() + .phoneNumber.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/queries/usePhoneNumbersQuery.ts b/sdk/constructive-react/src/auth/hooks/queries/usePhoneNumbersQuery.ts new file mode 100644 index 000000000..3282244e1 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/queries/usePhoneNumbersQuery.ts @@ -0,0 +1,145 @@ +/** + * List query hook for PhoneNumber + * @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 { phoneNumberKeys } from '../query-keys'; +import type { + PhoneNumberSelect, + PhoneNumberWithRelations, + PhoneNumberFilter, + PhoneNumberOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PhoneNumberSelect, + PhoneNumberWithRelations, + PhoneNumberFilter, + PhoneNumberOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const phoneNumbersQueryKey = phoneNumberKeys.list; +/** + * Query hook for fetching PhoneNumber list + * + * @example + * ```tsx + * const { data, isLoading } = usePhoneNumbersQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePhoneNumbersQuery< + S extends PhoneNumberSelect, + TData = { + phoneNumbers: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, PhoneNumberSelect>; + } & Omit< + UseQueryOptions< + { + phoneNumbers: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePhoneNumbersQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: phoneNumberKeys.list(args), + queryFn: () => getClient().phoneNumber.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch PhoneNumber list without React hooks + * + * @example + * ```ts + * const data = await fetchPhoneNumbersQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPhoneNumbersQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, PhoneNumberSelect>; +}): Promise<{ + phoneNumbers: ConnectionResult>; +}>; +export async function fetchPhoneNumbersQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().phoneNumber.findMany(args).unwrap(); +} +/** + * Prefetch PhoneNumber list for SSR or cache warming + * + * @example + * ```ts + * await prefetchPhoneNumbersQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPhoneNumbersQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, PhoneNumberSelect>; + } +): Promise; +export async function prefetchPhoneNumbersQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: phoneNumberKeys.list(args), + queryFn: () => getClient().phoneNumber.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/queries/useRoleTypeQuery.ts b/sdk/constructive-react/src/auth/hooks/queries/useRoleTypeQuery.ts new file mode 100644 index 000000000..6320e76b4 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/queries/useRoleTypeQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for RoleType + * @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 { roleTypeKeys } from '../query-keys'; +import type { RoleTypeSelect, RoleTypeWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { RoleTypeSelect, RoleTypeWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const roleTypeQueryKey = roleTypeKeys.detail; +/** + * Query hook for fetching a single RoleType + * + * @example + * ```tsx + * const { data, isLoading } = useRoleTypeQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useRoleTypeQuery< + S extends RoleTypeSelect, + TData = { + roleType: InferSelectResult | null; + }, +>( + params: { + id: number; + selection: { + fields: S; + } & HookStrictSelect, RoleTypeSelect>; + } & Omit< + UseQueryOptions< + { + roleType: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useRoleTypeQuery( + params: { + id: number; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: roleTypeKeys.detail(params.id), + queryFn: () => + getClient() + .roleType.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single RoleType without React hooks + * + * @example + * ```ts + * const data = await fetchRoleTypeQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchRoleTypeQuery(params: { + id: number; + selection: { + fields: S; + } & HookStrictSelect, RoleTypeSelect>; +}): Promise<{ + roleType: InferSelectResult | null; +}>; +export async function fetchRoleTypeQuery(params: { + id: number; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .roleType.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single RoleType for SSR or cache warming + * + * @example + * ```ts + * await prefetchRoleTypeQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchRoleTypeQuery( + queryClient: QueryClient, + params: { + id: number; + selection: { + fields: S; + } & HookStrictSelect, RoleTypeSelect>; + } +): Promise; +export async function prefetchRoleTypeQuery( + queryClient: QueryClient, + params: { + id: number; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: roleTypeKeys.detail(params.id), + queryFn: () => + getClient() + .roleType.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/queries/useRoleTypesQuery.ts b/sdk/constructive-react/src/auth/hooks/queries/useRoleTypesQuery.ts new file mode 100644 index 000000000..9819ceed5 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/queries/useRoleTypesQuery.ts @@ -0,0 +1,145 @@ +/** + * List query hook for RoleType + * @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 { roleTypeKeys } from '../query-keys'; +import type { + RoleTypeSelect, + RoleTypeWithRelations, + RoleTypeFilter, + RoleTypeOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + RoleTypeSelect, + RoleTypeWithRelations, + RoleTypeFilter, + RoleTypeOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const roleTypesQueryKey = roleTypeKeys.list; +/** + * Query hook for fetching RoleType list + * + * @example + * ```tsx + * const { data, isLoading } = useRoleTypesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useRoleTypesQuery< + S extends RoleTypeSelect, + TData = { + roleTypes: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, RoleTypeSelect>; + } & Omit< + UseQueryOptions< + { + roleTypes: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useRoleTypesQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: roleTypeKeys.list(args), + queryFn: () => getClient().roleType.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch RoleType list without React hooks + * + * @example + * ```ts + * const data = await fetchRoleTypesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchRoleTypesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, RoleTypeSelect>; +}): Promise<{ + roleTypes: ConnectionResult>; +}>; +export async function fetchRoleTypesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().roleType.findMany(args).unwrap(); +} +/** + * Prefetch RoleType list for SSR or cache warming + * + * @example + * ```ts + * await prefetchRoleTypesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchRoleTypesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, RoleTypeSelect>; + } +): Promise; +export async function prefetchRoleTypesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: roleTypeKeys.list(args), + queryFn: () => getClient().roleType.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/queries/useUserQuery.ts b/sdk/constructive-react/src/auth/hooks/queries/useUserQuery.ts new file mode 100644 index 000000000..c6ca9d01b --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/queries/useUserQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for User + * @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 { userKeys } from '../query-keys'; +import type { UserSelect, UserWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { UserSelect, UserWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const userQueryKey = userKeys.detail; +/** + * Query hook for fetching a single User + * + * @example + * ```tsx + * const { data, isLoading } = useUserQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useUserQuery< + S extends UserSelect, + TData = { + user: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, UserSelect>; + } & Omit< + UseQueryOptions< + { + user: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useUserQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: userKeys.detail(params.id), + queryFn: () => + getClient() + .user.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single User without React hooks + * + * @example + * ```ts + * const data = await fetchUserQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchUserQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, UserSelect>; +}): Promise<{ + user: InferSelectResult | null; +}>; +export async function fetchUserQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .user.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single User for SSR or cache warming + * + * @example + * ```ts + * await prefetchUserQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchUserQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, UserSelect>; + } +): Promise; +export async function prefetchUserQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: userKeys.detail(params.id), + queryFn: () => + getClient() + .user.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/queries/useUsersQuery.ts b/sdk/constructive-react/src/auth/hooks/queries/useUsersQuery.ts new file mode 100644 index 000000000..478d3eab4 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/queries/useUsersQuery.ts @@ -0,0 +1,129 @@ +/** + * List query hook for User + * @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 { userKeys } from '../query-keys'; +import type { UserSelect, UserWithRelations, UserFilter, UserOrderBy } from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { UserSelect, UserWithRelations, UserFilter, UserOrderBy } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const usersQueryKey = userKeys.list; +/** + * Query hook for fetching User list + * + * @example + * ```tsx + * const { data, isLoading } = useUsersQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useUsersQuery< + S extends UserSelect, + TData = { + users: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, UserSelect>; + } & Omit< + UseQueryOptions< + { + users: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useUsersQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: userKeys.list(args), + queryFn: () => getClient().user.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch User list without React hooks + * + * @example + * ```ts + * const data = await fetchUsersQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchUsersQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, UserSelect>; +}): Promise<{ + users: ConnectionResult>; +}>; +export async function fetchUsersQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs(params.selection); + return getClient().user.findMany(args).unwrap(); +} +/** + * Prefetch User list for SSR or cache warming + * + * @example + * ```ts + * await prefetchUsersQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchUsersQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, UserSelect>; + } +): Promise; +export async function prefetchUsersQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: userKeys.list(args), + queryFn: () => getClient().user.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/query-keys.ts b/sdk/constructive-react/src/auth/hooks/query-keys.ts new file mode 100644 index 000000000..e3e2a4530 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/query-keys.ts @@ -0,0 +1,129 @@ +/** + * Centralized query key factory + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +// ============================================================================ +// This file provides a centralized, type-safe query key factory following +// the lukemorales query-key-factory pattern for React Query. +// +// Benefits: +// - Single source of truth for all query keys +// - Type-safe key access with autocomplete +// - Hierarchical invalidation (invalidate all 'user.*' queries) +// - Scoped keys for parent-child relationships +// ============================================================================ + +// ============================================================================ +// Entity Query Keys +// ============================================================================ + +export const roleTypeKeys = { + /** All roleType queries */ all: ['roletype'] as const, + /** List query keys */ lists: () => [...roleTypeKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...roleTypeKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...roleTypeKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...roleTypeKeys.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 phoneNumberKeys = { + /** All phoneNumber queries */ all: ['phonenumber'] as const, + /** List query keys */ lists: () => [...phoneNumberKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...phoneNumberKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...phoneNumberKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...phoneNumberKeys.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, + /** List query key with variables */ list: (variables?: object) => + [...connectedAccountKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...connectedAccountKeys.all, 'detail'] as const, + /** 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, + /** List query key with variables */ list: (variables?: object) => + [...auditLogKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...auditLogKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...auditLogKeys.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, + /** List query key with variables */ list: (variables?: object) => + [...userKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...userKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...userKeys.details(), id] as const, +} as const; + +// ============================================================================ +// Custom Query Keys +// ============================================================================ + +export const customQueryKeys = { + /** Query key for currentIpAddress */ currentIpAddress: () => ['currentIpAddress'] as const, + /** Query key for currentUserAgent */ currentUserAgent: () => ['currentUserAgent'] as const, + /** Query key for currentUserId */ currentUserId: () => ['currentUserId'] as const, + /** Query key for currentUser */ currentUser: () => ['currentUser'] as const, +} as const; +/** + +// ============================================================================ +// Unified Query Key Store +// ============================================================================ + + * Unified query key store + * + * Use this for type-safe query key access across your application. + * + * @example + * ```ts + * // Invalidate all user queries + * queryClient.invalidateQueries({ queryKey: queryKeys.user.all }); + * + * // Invalidate user list queries + * queryClient.invalidateQueries({ queryKey: queryKeys.user.lists() }); + * + * // Invalidate specific user + * queryClient.invalidateQueries({ queryKey: queryKeys.user.detail(userId) }); + * ``` + */ +export const queryKeys = { + roleType: roleTypeKeys, + cryptoAddress: cryptoAddressKeys, + phoneNumber: phoneNumberKeys, + connectedAccount: connectedAccountKeys, + email: emailKeys, + auditLog: auditLogKeys, + user: userKeys, + custom: customQueryKeys, +} as const; +/** Type representing all available query key scopes */ +export type QueryKeyScope = keyof typeof queryKeys; diff --git a/sdk/constructive-react/src/auth/hooks/selection.ts b/sdk/constructive-react/src/auth/hooks/selection.ts new file mode 100644 index 000000000..2952aab64 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/selection.ts @@ -0,0 +1,60 @@ +/** + * Selection helpers for React Query hooks + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export interface SelectionConfig { + fields: TFields; +} + +export interface ListSelectionConfig extends SelectionConfig { + where?: TWhere; + orderBy?: TOrderBy[]; + first?: number; + last?: number; + after?: string; + before?: string; + offset?: number; +} + +function ensureSelectionFields( + selection: SelectionConfig | undefined +): asserts selection is SelectionConfig { + if (!selection || typeof selection !== 'object' || !('fields' in selection)) { + throw new Error( + 'Invalid hook params: `selection.fields` is required. Example: { selection: { fields: { id: true } } }' + ); + } +} + +export function buildSelectionArgs(selection: SelectionConfig): { + select: TFields; +} { + ensureSelectionFields(selection); + return { select: selection.fields }; +} + +export function buildListSelectionArgs( + selection: ListSelectionConfig +): { + select: TFields; + where?: TWhere; + orderBy?: TOrderBy[]; + first?: number; + last?: number; + after?: string; + before?: string; + offset?: number; +} { + ensureSelectionFields(selection); + return { + select: selection.fields, + where: selection.where, + orderBy: selection.orderBy, + first: selection.first, + last: selection.last, + after: selection.after, + before: selection.before, + offset: selection.offset, + }; +} diff --git a/sdk/constructive-react/src/auth/hooks/skills/auditLog.md b/sdk/constructive-react/src/auth/hooks/skills/auditLog.md new file mode 100644 index 000000000..0ca36458e --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/skills/auditLog.md @@ -0,0 +1,34 @@ +# 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/auth/hooks/skills/checkPassword.md b/sdk/constructive-react/src/auth/hooks/skills/checkPassword.md new file mode 100644 index 000000000..1e3a05a56 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/skills/checkPassword.md @@ -0,0 +1,20 @@ +# 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/auth/hooks/skills/confirmDeleteAccount.md b/sdk/constructive-react/src/auth/hooks/skills/confirmDeleteAccount.md new file mode 100644 index 000000000..a3804e870 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/skills/confirmDeleteAccount.md @@ -0,0 +1,20 @@ +# 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/auth/hooks/skills/connectedAccount.md b/sdk/constructive-react/src/auth/hooks/skills/connectedAccount.md new file mode 100644 index 000000000..b086ecbdf --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/skills/connectedAccount.md @@ -0,0 +1,34 @@ +# 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/auth/hooks/skills/cryptoAddress.md b/sdk/constructive-react/src/auth/hooks/skills/cryptoAddress.md new file mode 100644 index 000000000..c7f4682ce --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/skills/cryptoAddress.md @@ -0,0 +1,34 @@ +# 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/auth/hooks/skills/currentIpAddress.md b/sdk/constructive-react/src/auth/hooks/skills/currentIpAddress.md new file mode 100644 index 000000000..e972130f5 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/skills/currentIpAddress.md @@ -0,0 +1,19 @@ +# 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/auth/hooks/skills/currentUser.md b/sdk/constructive-react/src/auth/hooks/skills/currentUser.md new file mode 100644 index 000000000..4467284e4 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/skills/currentUser.md @@ -0,0 +1,19 @@ +# 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/auth/hooks/skills/currentUserAgent.md b/sdk/constructive-react/src/auth/hooks/skills/currentUserAgent.md new file mode 100644 index 000000000..2df182c94 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/skills/currentUserAgent.md @@ -0,0 +1,19 @@ +# 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/auth/hooks/skills/currentUserId.md b/sdk/constructive-react/src/auth/hooks/skills/currentUserId.md new file mode 100644 index 000000000..076feac70 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/skills/currentUserId.md @@ -0,0 +1,19 @@ +# 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/auth/hooks/skills/email.md b/sdk/constructive-react/src/auth/hooks/skills/email.md new file mode 100644 index 000000000..f89e18fa5 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/skills/email.md @@ -0,0 +1,34 @@ +# 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/auth/hooks/skills/extendTokenExpires.md b/sdk/constructive-react/src/auth/hooks/skills/extendTokenExpires.md new file mode 100644 index 000000000..54ce19f07 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/skills/extendTokenExpires.md @@ -0,0 +1,20 @@ +# 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/auth/hooks/skills/forgotPassword.md b/sdk/constructive-react/src/auth/hooks/skills/forgotPassword.md new file mode 100644 index 000000000..fba9ffcb2 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/skills/forgotPassword.md @@ -0,0 +1,20 @@ +# 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/auth/hooks/skills/oneTimeToken.md b/sdk/constructive-react/src/auth/hooks/skills/oneTimeToken.md new file mode 100644 index 000000000..cfe0d893f --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/skills/oneTimeToken.md @@ -0,0 +1,20 @@ +# 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/auth/hooks/skills/phoneNumber.md b/sdk/constructive-react/src/auth/hooks/skills/phoneNumber.md new file mode 100644 index 000000000..643a1e6f9 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/skills/phoneNumber.md @@ -0,0 +1,34 @@ +# 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/auth/hooks/skills/resetPassword.md b/sdk/constructive-react/src/auth/hooks/skills/resetPassword.md new file mode 100644 index 000000000..f4d93698a --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/skills/resetPassword.md @@ -0,0 +1,20 @@ +# 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/auth/hooks/skills/roleType.md b/sdk/constructive-react/src/auth/hooks/skills/roleType.md new file mode 100644 index 000000000..b1716f353 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/skills/roleType.md @@ -0,0 +1,34 @@ +# 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/auth/hooks/skills/sendAccountDeletionEmail.md b/sdk/constructive-react/src/auth/hooks/skills/sendAccountDeletionEmail.md new file mode 100644 index 000000000..f6b77609e --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/skills/sendAccountDeletionEmail.md @@ -0,0 +1,20 @@ +# 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/auth/hooks/skills/sendVerificationEmail.md b/sdk/constructive-react/src/auth/hooks/skills/sendVerificationEmail.md new file mode 100644 index 000000000..0b2dd7d1f --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/skills/sendVerificationEmail.md @@ -0,0 +1,20 @@ +# 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/auth/hooks/skills/setPassword.md b/sdk/constructive-react/src/auth/hooks/skills/setPassword.md new file mode 100644 index 000000000..d0c5dd0f7 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/skills/setPassword.md @@ -0,0 +1,20 @@ +# 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/auth/hooks/skills/signIn.md b/sdk/constructive-react/src/auth/hooks/skills/signIn.md new file mode 100644 index 000000000..f55de032e --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/skills/signIn.md @@ -0,0 +1,20 @@ +# 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/auth/hooks/skills/signInOneTimeToken.md b/sdk/constructive-react/src/auth/hooks/skills/signInOneTimeToken.md new file mode 100644 index 000000000..9326b4fca --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/skills/signInOneTimeToken.md @@ -0,0 +1,20 @@ +# 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/auth/hooks/skills/signOut.md b/sdk/constructive-react/src/auth/hooks/skills/signOut.md new file mode 100644 index 000000000..1be81c9ef --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/skills/signOut.md @@ -0,0 +1,20 @@ +# 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/auth/hooks/skills/signUp.md b/sdk/constructive-react/src/auth/hooks/skills/signUp.md new file mode 100644 index 000000000..ab7ff4422 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/skills/signUp.md @@ -0,0 +1,20 @@ +# 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/auth/hooks/skills/user.md b/sdk/constructive-react/src/auth/hooks/skills/user.md new file mode 100644 index 000000000..d9044e83c --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/skills/user.md @@ -0,0 +1,34 @@ +# 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/auth/hooks/skills/verifyEmail.md b/sdk/constructive-react/src/auth/hooks/skills/verifyEmail.md new file mode 100644 index 000000000..67e42fb87 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/skills/verifyEmail.md @@ -0,0 +1,20 @@ +# 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/auth/hooks/skills/verifyPassword.md b/sdk/constructive-react/src/auth/hooks/skills/verifyPassword.md new file mode 100644 index 000000000..a1e5074c6 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/skills/verifyPassword.md @@ -0,0 +1,20 @@ +# 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/auth/hooks/skills/verifyTotp.md b/sdk/constructive-react/src/auth/hooks/skills/verifyTotp.md new file mode 100644 index 000000000..d2b9ad825 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/skills/verifyTotp.md @@ -0,0 +1,20 @@ +# 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/auth/index.ts b/sdk/constructive-react/src/auth/index.ts new file mode 100644 index 000000000..2b8402539 --- /dev/null +++ b/sdk/constructive-react/src/auth/index.ts @@ -0,0 +1,7 @@ +/** + * GraphQL SDK - auto-generated, do not edit + * @generated by @constructive-io/graphql-codegen + */ +export * from './types'; +export * from './hooks'; +export * from './orm'; diff --git a/sdk/constructive-react/src/auth/orm/README.md b/sdk/constructive-react/src/auth/orm/README.md new file mode 100644 index 000000000..8b32eca79 --- /dev/null +++ b/sdk/constructive-react/src/auth/orm/README.md @@ -0,0 +1,573 @@ +# ORM Client + +

+ +

+ + + +## Setup + +```typescript +import { createClient } from './orm'; + +const db = createClient({ + endpoint: 'https://api.example.com/graphql', + headers: { Authorization: 'Bearer ' }, +}); +``` + +## Models + +| Model | Operations | +|-------|------------| +| `roleType` | findMany, findOne, create, update, delete | +| `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 | +| `user` | findMany, findOne, create, update, delete | + +## Table Operations + +### `db.roleType` + +CRUD operations for RoleType records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | Int | No | +| `name` | String | Yes | + +**Operations:** + +```typescript +// List all roleType records +const items = await db.roleType.findMany({ select: { id: true, name: true } }).execute(); + +// Get one by id +const item = await db.roleType.findOne({ id: '', select: { id: true, name: true } }).execute(); + +// Create +const created = await db.roleType.create({ data: { name: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.roleType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.roleType.delete({ where: { id: '' } }).execute(); +``` + +### `db.cryptoAddress` + +CRUD operations for CryptoAddress 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.phoneNumber` + +CRUD operations for PhoneNumber records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `ownerId` | UUID | Yes | +| `cc` | String | Yes | +| `number` | String | Yes | +| `isVerified` | Boolean | Yes | +| `isPrimary` | Boolean | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all phoneNumber records +const items = await db.phoneNumber.findMany({ select: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.phoneNumber.findOne({ id: '', select: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.phoneNumber.create({ data: { ownerId: '', cc: '', number: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.phoneNumber.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.phoneNumber.delete({ where: { id: '' } }).execute(); +``` + +### `db.connectedAccount` + +CRUD operations for ConnectedAccount records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `ownerId` | UUID | Yes | +| `service` | String | Yes | +| `identifier` | String | Yes | +| `details` | JSON | Yes | +| `isVerified` | Boolean | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all connectedAccount records +const items = await db.connectedAccount.findMany({ select: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.connectedAccount.findOne({ id: '', select: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.connectedAccount.create({ data: { ownerId: '', service: '', identifier: '', details: '', isVerified: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.connectedAccount.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.connectedAccount.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. + +**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 | +| `createdAt` | 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(); + +// 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(); + +// Create +const created = await db.auditLog.create({ data: { event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.auditLog.update({ where: { id: '' }, data: { event: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.auditLog.delete({ where: { id: '' } }).execute(); +``` + +### `db.user` + +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 | +| `searchTsvRank` | Float | 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(); + +// 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(); + +// Create +const created = await db.user.create({ data: { username: '', displayName: '', profilePicture: '', searchTsv: '', type: '', searchTsvRank: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.user.update({ where: { id: '' }, data: { username: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.user.delete({ where: { id: '' } }).execute(); +``` + +## Custom Operations + +### `db.query.currentIpAddress` + +currentIpAddress + +- **Type:** query +- **Arguments:** none + +```typescript +const result = await db.query.currentIpAddress().execute(); +``` + +### `db.query.currentUserAgent` + +currentUserAgent + +- **Type:** query +- **Arguments:** none + +```typescript +const result = await db.query.currentUserAgent().execute(); +``` + +### `db.query.currentUserId` + +currentUserId + +- **Type:** query +- **Arguments:** none + +```typescript +const result = await db.query.currentUserId().execute(); +``` + +### `db.query.currentUser` + +currentUser + +- **Type:** query +- **Arguments:** none + +```typescript +const result = await db.query.currentUser().execute(); +``` + +### `db.mutation.signOut` + +signOut + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SignOutInput (required) | + +```typescript +const result = await db.mutation.signOut({ input: '' }).execute(); +``` + +### `db.mutation.sendAccountDeletionEmail` + +sendAccountDeletionEmail + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SendAccountDeletionEmailInput (required) | + +```typescript +const result = await db.mutation.sendAccountDeletionEmail({ input: '' }).execute(); +``` + +### `db.mutation.checkPassword` + +checkPassword + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | CheckPasswordInput (required) | + +```typescript +const result = await db.mutation.checkPassword({ input: '' }).execute(); +``` + +### `db.mutation.confirmDeleteAccount` + +confirmDeleteAccount + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ConfirmDeleteAccountInput (required) | + +```typescript +const result = await db.mutation.confirmDeleteAccount({ input: '' }).execute(); +``` + +### `db.mutation.setPassword` + +setPassword + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SetPasswordInput (required) | + +```typescript +const result = await db.mutation.setPassword({ input: '' }).execute(); +``` + +### `db.mutation.verifyEmail` + +verifyEmail + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | VerifyEmailInput (required) | + +```typescript +const result = await db.mutation.verifyEmail({ input: '' }).execute(); +``` + +### `db.mutation.resetPassword` + +resetPassword + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ResetPasswordInput (required) | + +```typescript +const result = await db.mutation.resetPassword({ input: '' }).execute(); +``` + +### `db.mutation.signInOneTimeToken` + +signInOneTimeToken + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SignInOneTimeTokenInput (required) | + +```typescript +const result = await db.mutation.signInOneTimeToken({ input: '' }).execute(); +``` + +### `db.mutation.signIn` + +signIn + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SignInInput (required) | + +```typescript +const result = await db.mutation.signIn({ input: '' }).execute(); +``` + +### `db.mutation.signUp` + +signUp + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SignUpInput (required) | + +```typescript +const result = await db.mutation.signUp({ input: '' }).execute(); +``` + +### `db.mutation.oneTimeToken` + +oneTimeToken + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | OneTimeTokenInput (required) | + +```typescript +const result = await db.mutation.oneTimeToken({ input: '' }).execute(); +``` + +### `db.mutation.extendTokenExpires` + +extendTokenExpires + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ExtendTokenExpiresInput (required) | + +```typescript +const result = await db.mutation.extendTokenExpires({ input: '' }).execute(); +``` + +### `db.mutation.forgotPassword` + +forgotPassword + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ForgotPasswordInput (required) | + +```typescript +const result = await db.mutation.forgotPassword({ input: '' }).execute(); +``` + +### `db.mutation.sendVerificationEmail` + +sendVerificationEmail + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SendVerificationEmailInput (required) | + +```typescript +const result = await db.mutation.sendVerificationEmail({ input: '' }).execute(); +``` + +### `db.mutation.verifyPassword` + +verifyPassword + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | VerifyPasswordInput (required) | + +```typescript +const result = await db.mutation.verifyPassword({ input: '' }).execute(); +``` + +### `db.mutation.verifyTotp` + +verifyTotp + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | VerifyTotpInput (required) | + +```typescript +const result = await db.mutation.verifyTotp({ input: '' }).execute(); +``` + +--- + +Built by the [Constructive](https://constructive.io) team. + +## Disclaimer + +AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED "AS IS", AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND. + +No developer or entity involved in creating this software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the code, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value. diff --git a/sdk/constructive-react/src/auth/orm/client.ts b/sdk/constructive-react/src/auth/orm/client.ts new file mode 100644 index 000000000..c0f12c466 --- /dev/null +++ b/sdk/constructive-react/src/auth/orm/client.ts @@ -0,0 +1,137 @@ +/** + * ORM Client - Runtime GraphQL executor + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-types'; + +export type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-types'; + +/** + * Default adapter that uses fetch for HTTP requests. + * This is used when no custom adapter is provided. + */ +export class FetchAdapter implements GraphQLAdapter { + private headers: Record; + + constructor( + private endpoint: string, + headers?: Record + ) { + this.headers = headers ?? {}; + } + + async execute(document: string, variables?: Record): Promise> { + const response = await fetch(this.endpoint, { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + Accept: 'application/json', + ...this.headers, + }, + body: JSON.stringify({ + query: document, + variables: variables ?? {}, + }), + }); + + if (!response.ok) { + return { + ok: false, + data: null, + errors: [{ message: `HTTP ${response.status}: ${response.statusText}` }], + }; + } + + const json = (await response.json()) as { + data?: T; + errors?: GraphQLError[]; + }; + + if (json.errors && json.errors.length > 0) { + return { + ok: false, + data: null, + errors: json.errors, + }; + } + + return { + ok: true, + data: json.data as T, + errors: undefined, + }; + } + + setHeaders(headers: Record): void { + this.headers = { ...this.headers, ...headers }; + } + + getEndpoint(): string { + return this.endpoint; + } +} + +/** + * Configuration for creating an ORM client. + * Either provide endpoint (and optional headers) for HTTP requests, + * or provide a custom adapter for alternative execution strategies. + */ +export interface OrmClientConfig { + /** GraphQL endpoint URL (required if adapter not provided) */ + endpoint?: string; + /** Default headers for HTTP requests (only used with endpoint) */ + headers?: Record; + /** Custom adapter for GraphQL execution (overrides endpoint/headers) */ + adapter?: GraphQLAdapter; +} + +/** + * Error thrown when GraphQL request fails + */ +export class GraphQLRequestError extends Error { + constructor( + public readonly errors: GraphQLError[], + public readonly data: unknown = null + ) { + const messages = errors.map((e) => e.message).join('; '); + super(`GraphQL Error: ${messages}`); + this.name = 'GraphQLRequestError'; + } +} + +export class OrmClient { + private adapter: GraphQLAdapter; + + constructor(config: OrmClientConfig) { + if (config.adapter) { + this.adapter = config.adapter; + } else if (config.endpoint) { + this.adapter = new FetchAdapter(config.endpoint, config.headers); + } else { + throw new Error('OrmClientConfig requires either an endpoint or a custom adapter'); + } + } + + async execute(document: string, variables?: Record): Promise> { + return this.adapter.execute(document, variables); + } + + /** + * Set headers for requests. + * Only works if the adapter supports headers. + */ + setHeaders(headers: Record): void { + if (this.adapter.setHeaders) { + this.adapter.setHeaders(headers); + } + } + + /** + * Get the endpoint URL. + * Returns empty string if the adapter doesn't have an endpoint. + */ + getEndpoint(): string { + return this.adapter.getEndpoint?.() ?? ''; + } +} diff --git a/sdk/constructive-react/src/auth/orm/index.ts b/sdk/constructive-react/src/auth/orm/index.ts new file mode 100644 index 000000000..da3c30436 --- /dev/null +++ b/sdk/constructive-react/src/auth/orm/index.ts @@ -0,0 +1,60 @@ +/** + * ORM Client - createClient factory + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from './client'; +import type { OrmClientConfig } from './client'; +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 { UserModel } from './models/user'; +import { createQueryOperations } from './query'; +import { createMutationOperations } from './mutation'; +export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; +export { GraphQLRequestError } from './client'; +export { QueryBuilder } from './query-builder'; +export * from './select-types'; +export * from './models'; +export { createQueryOperations } from './query'; +export { createMutationOperations } from './mutation'; +/** + * Create an ORM client instance + * + * @example + * ```typescript + * const db = createClient({ + * endpoint: 'https://api.example.com/graphql', + * headers: { Authorization: 'Bearer token' }, + * }); + * + * // Query users + * const users = await db.user.findMany({ + * select: { id: true, name: true }, + * first: 10, + * }).execute(); + * + * // Create a user + * const newUser = await db.user.create({ + * data: { name: 'John', email: 'john@example.com' }, + * select: { id: true }, + * }).execute(); + * ``` + */ +export function createClient(config: OrmClientConfig) { + const client = new OrmClient(config); + return { + roleType: new RoleTypeModel(client), + cryptoAddress: new CryptoAddressModel(client), + phoneNumber: new PhoneNumberModel(client), + connectedAccount: new ConnectedAccountModel(client), + email: new EmailModel(client), + auditLog: new AuditLogModel(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 new file mode 100644 index 000000000..eaf804378 --- /dev/null +++ b/sdk/constructive-react/src/auth/orm/input-types.ts @@ -0,0 +1,1594 @@ +/** + * GraphQL types for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +// ============ Scalar Filter Types ============ +export interface StringFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; + includes?: string; + notIncludes?: string; + includesInsensitive?: string; + notIncludesInsensitive?: string; + startsWith?: string; + notStartsWith?: string; + startsWithInsensitive?: string; + notStartsWithInsensitive?: string; + endsWith?: string; + notEndsWith?: string; + endsWithInsensitive?: string; + notEndsWithInsensitive?: string; + like?: string; + notLike?: string; + likeInsensitive?: string; + notLikeInsensitive?: string; +} +export interface IntFilter { + isNull?: boolean; + equalTo?: number; + notEqualTo?: number; + distinctFrom?: number; + notDistinctFrom?: number; + in?: number[]; + notIn?: number[]; + lessThan?: number; + lessThanOrEqualTo?: number; + greaterThan?: number; + greaterThanOrEqualTo?: number; +} +export interface FloatFilter { + isNull?: boolean; + equalTo?: number; + notEqualTo?: number; + distinctFrom?: number; + notDistinctFrom?: number; + in?: number[]; + notIn?: number[]; + lessThan?: number; + lessThanOrEqualTo?: number; + greaterThan?: number; + greaterThanOrEqualTo?: number; +} +export interface BooleanFilter { + isNull?: boolean; + equalTo?: boolean; + notEqualTo?: boolean; +} +export interface UUIDFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; +} +export interface DatetimeFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface DateFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface JSONFilter { + isNull?: boolean; + equalTo?: Record; + notEqualTo?: Record; + distinctFrom?: Record; + notDistinctFrom?: Record; + contains?: Record; + containedBy?: Record; + containsKey?: string; + containsAllKeys?: string[]; + containsAnyKeys?: string[]; +} +export interface BigIntFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface BigFloatFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface BitStringFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; +} +export interface InternetAddressFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; + contains?: string; + containsOrEqualTo?: string; + containedBy?: string; + containedByOrEqualTo?: string; + containsOrContainedBy?: string; +} +export interface FullTextFilter { + matches?: string; +} +export interface StringListFilter { + isNull?: boolean; + equalTo?: string[]; + notEqualTo?: string[]; + distinctFrom?: string[]; + notDistinctFrom?: string[]; + lessThan?: string[]; + lessThanOrEqualTo?: string[]; + greaterThan?: string[]; + greaterThanOrEqualTo?: string[]; + contains?: string[]; + containedBy?: string[]; + overlaps?: string[]; + anyEqualTo?: string; + anyNotEqualTo?: string; + anyLessThan?: string; + anyLessThanOrEqualTo?: string; + anyGreaterThan?: string; + anyGreaterThanOrEqualTo?: string; +} +export interface IntListFilter { + isNull?: boolean; + equalTo?: number[]; + notEqualTo?: number[]; + distinctFrom?: number[]; + notDistinctFrom?: number[]; + lessThan?: number[]; + lessThanOrEqualTo?: number[]; + greaterThan?: number[]; + greaterThanOrEqualTo?: number[]; + contains?: number[]; + containedBy?: number[]; + overlaps?: number[]; + anyEqualTo?: number; + anyNotEqualTo?: number; + anyLessThan?: number; + anyLessThanOrEqualTo?: number; + anyGreaterThan?: number; + anyGreaterThanOrEqualTo?: number; +} +export interface UUIDListFilter { + isNull?: boolean; + equalTo?: string[]; + notEqualTo?: string[]; + distinctFrom?: string[]; + notDistinctFrom?: string[]; + lessThan?: string[]; + lessThanOrEqualTo?: string[]; + greaterThan?: string[]; + greaterThanOrEqualTo?: string[]; + contains?: string[]; + containedBy?: string[]; + overlaps?: string[]; + anyEqualTo?: string; + anyNotEqualTo?: string; + anyLessThan?: string; + anyLessThanOrEqualTo?: string; + anyGreaterThan?: string; + anyGreaterThanOrEqualTo?: string; +} +// ============ Custom Scalar Types ============ +export type ConstructiveInternalTypeEmail = unknown; +export type ConstructiveInternalTypeImage = unknown; +export type ConstructiveInternalTypeOrigin = unknown; +// ============ Entity Types ============ +export interface RoleType { + id: number; + name?: string | null; +} +export interface CryptoAddress { + id: string; + ownerId?: string | null; + address?: string | null; + isVerified?: boolean | null; + isPrimary?: boolean | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface PhoneNumber { + id: string; + ownerId?: string | null; + cc?: string | null; + number?: string | null; + isVerified?: boolean | null; + isPrimary?: boolean | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface ConnectedAccount { + id: string; + ownerId?: string | null; + /** The service used, e.g. `twitter` or `github`. */ + service?: string | null; + /** A unique identifier for the user within the service */ + identifier?: string | null; + /** Additional profile details extracted from this login method */ + details?: Record | null; + 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; +} +export interface AuditLog { + id: string; + event?: string | null; + actorId?: string | null; + origin?: ConstructiveInternalTypeOrigin | null; + userAgent?: string | null; + ipAddress?: string | null; + success?: boolean | null; + createdAt?: 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; +} +// ============ Relation Helper Types ============ +export interface ConnectionResult { + nodes: T[]; + totalCount: number; + pageInfo: PageInfo; +} +export interface PageInfo { + hasNextPage: boolean; + hasPreviousPage: boolean; + startCursor?: string | null; + endCursor?: string | null; +} +// ============ Entity Relation Types ============ +export interface RoleTypeRelations {} +export interface CryptoAddressRelations { + owner?: User | null; +} +export interface PhoneNumberRelations { + owner?: User | null; +} +export interface ConnectedAccountRelations { + owner?: User | null; +} +export interface EmailRelations { + owner?: User | null; +} +export interface AuditLogRelations { + actor?: User | null; +} +export interface UserRelations { + roleType?: RoleType | null; +} +// ============ Entity Types With Relations ============ +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 UserWithRelations = User & UserRelations; +// ============ Entity Select Types ============ +export type RoleTypeSelect = { + id?: boolean; + name?: boolean; +}; +export type CryptoAddressSelect = { + id?: boolean; + ownerId?: boolean; + address?: boolean; + isVerified?: boolean; + isPrimary?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + owner?: { + select: UserSelect; + }; +}; +export type PhoneNumberSelect = { + id?: boolean; + ownerId?: boolean; + cc?: boolean; + number?: boolean; + isVerified?: boolean; + isPrimary?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + owner?: { + select: UserSelect; + }; +}; +export type ConnectedAccountSelect = { + id?: boolean; + ownerId?: boolean; + service?: boolean; + identifier?: boolean; + details?: boolean; + isVerified?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + owner?: { + 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; + actorId?: boolean; + origin?: boolean; + userAgent?: boolean; + ipAddress?: boolean; + success?: boolean; + createdAt?: boolean; + actor?: { + select: UserSelect; + }; +}; +export type UserSelect = { + id?: boolean; + username?: boolean; + displayName?: boolean; + profilePicture?: boolean; + searchTsv?: boolean; + type?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + searchTsvRank?: boolean; + roleType?: { + select: RoleTypeSelect; + }; +}; +// ============ Table Filter Types ============ +export interface RoleTypeFilter { + id?: IntFilter; + name?: StringFilter; + and?: RoleTypeFilter[]; + or?: RoleTypeFilter[]; + not?: RoleTypeFilter; +} +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 PhoneNumberFilter { + id?: UUIDFilter; + ownerId?: UUIDFilter; + cc?: StringFilter; + number?: StringFilter; + isVerified?: BooleanFilter; + isPrimary?: BooleanFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: PhoneNumberFilter[]; + or?: PhoneNumberFilter[]; + not?: PhoneNumberFilter; +} +export interface ConnectedAccountFilter { + id?: UUIDFilter; + ownerId?: UUIDFilter; + service?: StringFilter; + identifier?: StringFilter; + details?: JSONFilter; + isVerified?: BooleanFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: 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; + actorId?: UUIDFilter; + origin?: StringFilter; + userAgent?: StringFilter; + ipAddress?: InternetAddressFilter; + success?: BooleanFilter; + createdAt?: DatetimeFilter; + and?: AuditLogFilter[]; + or?: AuditLogFilter[]; + not?: AuditLogFilter; +} +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; +} +// ============ Table Condition Types ============ +export interface RoleTypeCondition { + id?: number | null; + name?: string | null; +} +export interface CryptoAddressCondition { + id?: string | null; + ownerId?: string | null; + address?: string | null; + isVerified?: boolean | null; + isPrimary?: boolean | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface PhoneNumberCondition { + id?: string | null; + ownerId?: string | null; + cc?: string | null; + number?: string | null; + isVerified?: boolean | null; + isPrimary?: boolean | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface ConnectedAccountCondition { + id?: string | null; + ownerId?: string | null; + service?: string | null; + identifier?: string | null; + details?: unknown | null; + isVerified?: boolean | null; + 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; + actorId?: string | null; + origin?: unknown | null; + userAgent?: string | null; + ipAddress?: string | null; + success?: boolean | null; + createdAt?: 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; +} +// ============ OrderBy Types ============ +export type RoleTypeOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC'; +export type CryptoAddressOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'ADDRESS_ASC' + | 'ADDRESS_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 PhoneNumberOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'CC_ASC' + | 'CC_DESC' + | 'NUMBER_ASC' + | 'NUMBER_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 ConnectedAccountOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'SERVICE_ASC' + | 'SERVICE_DESC' + | 'IDENTIFIER_ASC' + | 'IDENTIFIER_DESC' + | 'DETAILS_ASC' + | 'DETAILS_DESC' + | 'IS_VERIFIED_ASC' + | 'IS_VERIFIED_DESC' + | 'CREATED_AT_ASC' + | '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' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'EVENT_ASC' + | 'EVENT_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ORIGIN_ASC' + | 'ORIGIN_DESC' + | 'USER_AGENT_ASC' + | 'USER_AGENT_DESC' + | 'IP_ADDRESS_ASC' + | 'IP_ADDRESS_DESC' + | 'SUCCESS_ASC' + | 'SUCCESS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_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'; +// ============ CRUD Input Types ============ +export interface CreateRoleTypeInput { + clientMutationId?: string; + roleType: { + name: string; + }; +} +export interface RoleTypePatch { + name?: string | null; +} +export interface UpdateRoleTypeInput { + clientMutationId?: string; + id: number; + roleTypePatch: RoleTypePatch; +} +export interface DeleteRoleTypeInput { + clientMutationId?: string; + id: number; +} +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 CreatePhoneNumberInput { + clientMutationId?: string; + phoneNumber: { + ownerId?: string; + cc: string; + number: string; + isVerified?: boolean; + isPrimary?: boolean; + }; +} +export interface PhoneNumberPatch { + ownerId?: string | null; + cc?: string | null; + number?: string | null; + isVerified?: boolean | null; + isPrimary?: boolean | null; +} +export interface UpdatePhoneNumberInput { + clientMutationId?: string; + id: string; + phoneNumberPatch: PhoneNumberPatch; +} +export interface DeletePhoneNumberInput { + clientMutationId?: string; + id: string; +} +export interface CreateConnectedAccountInput { + clientMutationId?: string; + connectedAccount: { + ownerId?: string; + service: string; + identifier: string; + details: Record; + isVerified?: boolean; + }; +} +export interface ConnectedAccountPatch { + ownerId?: string | null; + service?: string | null; + identifier?: string | null; + details?: Record | null; + isVerified?: boolean | null; +} +export interface UpdateConnectedAccountInput { + clientMutationId?: string; + id: string; + connectedAccountPatch: ConnectedAccountPatch; +} +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: { + event: string; + actorId?: string; + origin?: ConstructiveInternalTypeOrigin; + userAgent?: string; + ipAddress?: string; + success: boolean; + }; +} +export interface AuditLogPatch { + event?: string | null; + actorId?: string | null; + origin?: ConstructiveInternalTypeOrigin | null; + userAgent?: string | null; + ipAddress?: string | null; + success?: boolean | null; +} +export interface UpdateAuditLogInput { + clientMutationId?: string; + id: string; + auditLogPatch: AuditLogPatch; +} +export interface DeleteAuditLogInput { + 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; +} +// ============ Connection Fields Map ============ +export const connectionFieldsMap = {} as Record>; +// ============ Custom Input Types (from schema) ============ +export interface SignOutInput { + clientMutationId?: string; +} +export interface SendAccountDeletionEmailInput { + clientMutationId?: string; +} +export interface CheckPasswordInput { + clientMutationId?: string; + password?: string; +} +export interface ConfirmDeleteAccountInput { + clientMutationId?: string; + userId?: string; + token?: string; +} +export interface SetPasswordInput { + clientMutationId?: string; + currentPassword?: string; + newPassword?: string; +} +export interface VerifyEmailInput { + clientMutationId?: string; + emailId?: string; + token?: string; +} +export interface ResetPasswordInput { + clientMutationId?: string; + roleId?: string; + resetToken?: string; + newPassword?: string; +} +export interface SignInOneTimeTokenInput { + clientMutationId?: string; + token?: string; + credentialKind?: string; +} +export interface SignInInput { + clientMutationId?: string; + email?: string; + password?: string; + rememberMe?: boolean; + credentialKind?: string; + csrfToken?: string; +} +export interface SignUpInput { + clientMutationId?: string; + email?: string; + password?: string; + rememberMe?: boolean; + credentialKind?: string; + csrfToken?: string; +} +export interface OneTimeTokenInput { + clientMutationId?: string; + email?: string; + password?: string; + origin?: ConstructiveInternalTypeOrigin; + rememberMe?: boolean; +} +export interface ExtendTokenExpiresInput { + clientMutationId?: string; + amount?: IntervalInput; +} +export interface ForgotPasswordInput { + clientMutationId?: string; + email?: ConstructiveInternalTypeEmail; +} +export interface SendVerificationEmailInput { + clientMutationId?: string; + email?: ConstructiveInternalTypeEmail; +} +export interface VerifyPasswordInput { + clientMutationId?: string; + password: string; +} +export interface VerifyTotpInput { + clientMutationId?: string; + totpValue: string; +} +/** An interval of time that has passed where the smallest distinct unit is a second. */ +export interface IntervalInput { + /** + * A quantity of seconds. This is the only non-integer field, as all the other + * fields will dump their overflow into a smaller unit of time. Intervals don’t + * have a smaller unit than seconds. + */ + seconds?: number; + /** A quantity of minutes. */ + minutes?: number; + /** A quantity of hours. */ + hours?: number; + /** A quantity of days. */ + days?: number; + /** A quantity of months. */ + months?: number; + /** A quantity of years. */ + years?: number; +} +// ============ Payload/Return Types (for custom operations) ============ +export interface SignOutPayload { + clientMutationId?: string | null; +} +export type SignOutPayloadSelect = { + clientMutationId?: boolean; +}; +export interface SendAccountDeletionEmailPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type SendAccountDeletionEmailPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface CheckPasswordPayload { + clientMutationId?: string | null; +} +export type CheckPasswordPayloadSelect = { + clientMutationId?: boolean; +}; +export interface ConfirmDeleteAccountPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type ConfirmDeleteAccountPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface SetPasswordPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type SetPasswordPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface VerifyEmailPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type VerifyEmailPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface ResetPasswordPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type ResetPasswordPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface SignInOneTimeTokenPayload { + clientMutationId?: string | null; + result?: SignInOneTimeTokenRecord | null; +} +export type SignInOneTimeTokenPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: SignInOneTimeTokenRecordSelect; + }; +}; +export interface SignInPayload { + clientMutationId?: string | null; + result?: SignInRecord | null; +} +export type SignInPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: SignInRecordSelect; + }; +}; +export interface SignUpPayload { + clientMutationId?: string | null; + result?: SignUpRecord | null; +} +export type SignUpPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: SignUpRecordSelect; + }; +}; +export interface OneTimeTokenPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type OneTimeTokenPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface ExtendTokenExpiresPayload { + clientMutationId?: string | null; + result?: ExtendTokenExpiresRecord[] | null; +} +export type ExtendTokenExpiresPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: ExtendTokenExpiresRecordSelect; + }; +}; +export interface ForgotPasswordPayload { + clientMutationId?: string | null; +} +export type ForgotPasswordPayloadSelect = { + clientMutationId?: boolean; +}; +export interface SendVerificationEmailPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type SendVerificationEmailPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface VerifyPasswordPayload { + clientMutationId?: string | null; + result?: Session | null; +} +export type VerifyPasswordPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: SessionSelect; + }; +}; +export interface VerifyTotpPayload { + clientMutationId?: string | null; + result?: Session | null; +} +export type VerifyTotpPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: SessionSelect; + }; +}; +export interface CreateRoleTypePayload { + clientMutationId?: string | null; + /** The `RoleType` that was created by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; +} +export type CreateRoleTypePayloadSelect = { + clientMutationId?: boolean; + roleType?: { + select: RoleTypeSelect; + }; + roleTypeEdge?: { + select: RoleTypeEdgeSelect; + }; +}; +export interface UpdateRoleTypePayload { + clientMutationId?: string | null; + /** The `RoleType` that was updated by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; +} +export type UpdateRoleTypePayloadSelect = { + clientMutationId?: boolean; + roleType?: { + select: RoleTypeSelect; + }; + roleTypeEdge?: { + select: RoleTypeEdgeSelect; + }; +}; +export interface DeleteRoleTypePayload { + clientMutationId?: string | null; + /** The `RoleType` that was deleted by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; +} +export type DeleteRoleTypePayloadSelect = { + clientMutationId?: boolean; + roleType?: { + select: RoleTypeSelect; + }; + roleTypeEdge?: { + select: RoleTypeEdgeSelect; + }; +}; +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 CreatePhoneNumberPayload { + clientMutationId?: string | null; + /** The `PhoneNumber` that was created by this mutation. */ + phoneNumber?: PhoneNumber | null; + phoneNumberEdge?: PhoneNumberEdge | null; +} +export type CreatePhoneNumberPayloadSelect = { + clientMutationId?: boolean; + phoneNumber?: { + select: PhoneNumberSelect; + }; + phoneNumberEdge?: { + select: PhoneNumberEdgeSelect; + }; +}; +export interface UpdatePhoneNumberPayload { + clientMutationId?: string | null; + /** The `PhoneNumber` that was updated by this mutation. */ + phoneNumber?: PhoneNumber | null; + phoneNumberEdge?: PhoneNumberEdge | null; +} +export type UpdatePhoneNumberPayloadSelect = { + clientMutationId?: boolean; + phoneNumber?: { + select: PhoneNumberSelect; + }; + phoneNumberEdge?: { + select: PhoneNumberEdgeSelect; + }; +}; +export interface DeletePhoneNumberPayload { + clientMutationId?: string | null; + /** The `PhoneNumber` that was deleted by this mutation. */ + phoneNumber?: PhoneNumber | null; + phoneNumberEdge?: PhoneNumberEdge | null; +} +export type DeletePhoneNumberPayloadSelect = { + clientMutationId?: boolean; + phoneNumber?: { + select: PhoneNumberSelect; + }; + phoneNumberEdge?: { + select: PhoneNumberEdgeSelect; + }; +}; +export interface CreateConnectedAccountPayload { + clientMutationId?: string | null; + /** The `ConnectedAccount` that was created by this mutation. */ + connectedAccount?: ConnectedAccount | null; + connectedAccountEdge?: ConnectedAccountEdge | null; +} +export type CreateConnectedAccountPayloadSelect = { + clientMutationId?: boolean; + connectedAccount?: { + select: ConnectedAccountSelect; + }; + connectedAccountEdge?: { + select: ConnectedAccountEdgeSelect; + }; +}; +export interface UpdateConnectedAccountPayload { + clientMutationId?: string | null; + /** The `ConnectedAccount` that was updated by this mutation. */ + connectedAccount?: ConnectedAccount | null; + connectedAccountEdge?: ConnectedAccountEdge | null; +} +export type UpdateConnectedAccountPayloadSelect = { + clientMutationId?: boolean; + connectedAccount?: { + select: ConnectedAccountSelect; + }; + connectedAccountEdge?: { + select: ConnectedAccountEdgeSelect; + }; +}; +export interface DeleteConnectedAccountPayload { + clientMutationId?: string | null; + /** The `ConnectedAccount` that was deleted by this mutation. */ + connectedAccount?: ConnectedAccount | null; + connectedAccountEdge?: ConnectedAccountEdge | null; +} +export type DeleteConnectedAccountPayloadSelect = { + clientMutationId?: boolean; + connectedAccount?: { + select: ConnectedAccountSelect; + }; + connectedAccountEdge?: { + 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. */ + auditLog?: AuditLog | null; + auditLogEdge?: AuditLogEdge | null; +} +export type CreateAuditLogPayloadSelect = { + clientMutationId?: boolean; + auditLog?: { + select: AuditLogSelect; + }; + auditLogEdge?: { + select: AuditLogEdgeSelect; + }; +}; +export interface UpdateAuditLogPayload { + clientMutationId?: string | null; + /** The `AuditLog` that was updated by this mutation. */ + auditLog?: AuditLog | null; + auditLogEdge?: AuditLogEdge | null; +} +export type UpdateAuditLogPayloadSelect = { + clientMutationId?: boolean; + auditLog?: { + select: AuditLogSelect; + }; + auditLogEdge?: { + select: AuditLogEdgeSelect; + }; +}; +export interface DeleteAuditLogPayload { + clientMutationId?: string | null; + /** The `AuditLog` that was deleted by this mutation. */ + auditLog?: AuditLog | null; + auditLogEdge?: AuditLogEdge | null; +} +export type DeleteAuditLogPayloadSelect = { + clientMutationId?: boolean; + auditLog?: { + select: AuditLogSelect; + }; + auditLogEdge?: { + select: AuditLogEdgeSelect; + }; +}; +export interface CreateUserPayload { + clientMutationId?: string | null; + /** The `User` that was created by this mutation. */ + user?: User | null; + userEdge?: UserEdge | null; +} +export type CreateUserPayloadSelect = { + clientMutationId?: boolean; + user?: { + select: UserSelect; + }; + userEdge?: { + select: UserEdgeSelect; + }; +}; +export interface UpdateUserPayload { + clientMutationId?: string | null; + /** The `User` that was updated by this mutation. */ + user?: User | null; + userEdge?: UserEdge | null; +} +export type UpdateUserPayloadSelect = { + clientMutationId?: boolean; + user?: { + select: UserSelect; + }; + userEdge?: { + select: UserEdgeSelect; + }; +}; +export interface DeleteUserPayload { + clientMutationId?: string | null; + /** The `User` that was deleted by this mutation. */ + user?: User | null; + userEdge?: UserEdge | null; +} +export type DeleteUserPayloadSelect = { + clientMutationId?: boolean; + user?: { + select: UserSelect; + }; + userEdge?: { + select: UserEdgeSelect; + }; +}; +export interface SignInOneTimeTokenRecord { + id?: string | null; + userId?: string | null; + accessToken?: string | null; + accessTokenExpiresAt?: string | null; + isVerified?: boolean | null; + totpEnabled?: boolean | null; +} +export type SignInOneTimeTokenRecordSelect = { + id?: boolean; + userId?: boolean; + accessToken?: boolean; + accessTokenExpiresAt?: boolean; + isVerified?: boolean; + totpEnabled?: boolean; +}; +export interface SignInRecord { + id?: string | null; + userId?: string | null; + accessToken?: string | null; + accessTokenExpiresAt?: string | null; + isVerified?: boolean | null; + totpEnabled?: boolean | null; +} +export type SignInRecordSelect = { + id?: boolean; + userId?: boolean; + accessToken?: boolean; + accessTokenExpiresAt?: boolean; + isVerified?: boolean; + totpEnabled?: boolean; +}; +export interface SignUpRecord { + id?: string | null; + userId?: string | null; + accessToken?: string | null; + accessTokenExpiresAt?: string | null; + isVerified?: boolean | null; + totpEnabled?: boolean | null; +} +export type SignUpRecordSelect = { + id?: boolean; + userId?: boolean; + accessToken?: boolean; + accessTokenExpiresAt?: boolean; + isVerified?: boolean; + totpEnabled?: boolean; +}; +export interface ExtendTokenExpiresRecord { + id?: string | null; + sessionId?: string | null; + expiresAt?: string | null; +} +export type ExtendTokenExpiresRecordSelect = { + id?: boolean; + sessionId?: boolean; + expiresAt?: boolean; +}; +export interface Session { + id: string; + userId?: string | null; + isAnonymous: boolean; + expiresAt: string; + revokedAt?: string | null; + origin?: ConstructiveInternalTypeOrigin | null; + ip?: string | null; + uagent?: string | null; + fingerprintMode: string; + lastPasswordVerified?: string | null; + lastMfaVerified?: string | null; + csrfSecret?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export type SessionSelect = { + id?: boolean; + userId?: boolean; + isAnonymous?: boolean; + expiresAt?: boolean; + revokedAt?: boolean; + origin?: boolean; + ip?: boolean; + uagent?: boolean; + fingerprintMode?: boolean; + lastPasswordVerified?: boolean; + lastMfaVerified?: boolean; + csrfSecret?: boolean; + createdAt?: boolean; + updatedAt?: boolean; +}; +/** A `RoleType` edge in the connection. */ +export interface RoleTypeEdge { + cursor?: string | null; + /** The `RoleType` at the end of the edge. */ + node?: RoleType | null; +} +export type RoleTypeEdgeSelect = { + cursor?: boolean; + node?: { + select: RoleTypeSelect; + }; +}; +/** 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 `PhoneNumber` edge in the connection. */ +export interface PhoneNumberEdge { + cursor?: string | null; + /** The `PhoneNumber` at the end of the edge. */ + node?: PhoneNumber | null; +} +export type PhoneNumberEdgeSelect = { + cursor?: boolean; + node?: { + select: PhoneNumberSelect; + }; +}; +/** A `ConnectedAccount` edge in the connection. */ +export interface ConnectedAccountEdge { + cursor?: string | null; + /** The `ConnectedAccount` at the end of the edge. */ + node?: ConnectedAccount | null; +} +export type ConnectedAccountEdgeSelect = { + cursor?: boolean; + node?: { + 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; + /** The `AuditLog` at the end of the edge. */ + node?: AuditLog | null; +} +export type AuditLogEdgeSelect = { + cursor?: boolean; + node?: { + select: AuditLogSelect; + }; +}; +/** A `User` edge in the connection. */ +export interface UserEdge { + cursor?: string | null; + /** The `User` at the end of the edge. */ + node?: User | null; +} +export type UserEdgeSelect = { + cursor?: boolean; + node?: { + select: UserSelect; + }; +}; diff --git a/sdk/constructive-react/src/auth/orm/models/auditLog.ts b/sdk/constructive-react/src/auth/orm/models/auditLog.ts new file mode 100644 index 000000000..3d6aacb4e --- /dev/null +++ b/sdk/constructive-react/src/auth/orm/models/auditLog.ts @@ -0,0 +1,236 @@ +/** + * AuditLog 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 { + AuditLog, + AuditLogWithRelations, + AuditLogSelect, + AuditLogFilter, + AuditLogOrderBy, + CreateAuditLogInput, + UpdateAuditLogInput, + AuditLogPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AuditLogModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + auditLogs: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AuditLog', + 'auditLogs', + 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, + }, + 'AuditLogFilter', + 'AuditLogOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AuditLog', + fieldName: 'auditLogs', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + auditLogs: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'AuditLog', + 'auditLogs', + args.select, + { + where: args?.where, + }, + 'AuditLogFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AuditLog', + fieldName: 'auditLogs', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + auditLog: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AuditLog', + 'auditLogs', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AuditLogFilter', + 'AuditLogOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AuditLog', + fieldName: 'auditLog', + document, + variables, + transform: (data: { + auditLogs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + auditLog: data.auditLogs?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAuditLog: { + auditLog: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AuditLog', + 'createAuditLog', + 'auditLog', + args.select, + args.data, + 'CreateAuditLogInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AuditLog', + fieldName: 'createAuditLog', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AuditLogPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAuditLog: { + auditLog: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AuditLog', + 'updateAuditLog', + 'auditLog', + args.select, + args.where.id, + args.data, + 'UpdateAuditLogInput', + 'id', + 'auditLogPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AuditLog', + fieldName: 'updateAuditLog', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAuditLog: { + auditLog: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AuditLog', + 'deleteAuditLog', + 'auditLog', + args.where.id, + 'DeleteAuditLogInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AuditLog', + fieldName: 'deleteAuditLog', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/auth/orm/models/connectedAccount.ts b/sdk/constructive-react/src/auth/orm/models/connectedAccount.ts new file mode 100644 index 000000000..0f2523553 --- /dev/null +++ b/sdk/constructive-react/src/auth/orm/models/connectedAccount.ts @@ -0,0 +1,236 @@ +/** + * ConnectedAccount 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 { + ConnectedAccount, + ConnectedAccountWithRelations, + ConnectedAccountSelect, + ConnectedAccountFilter, + ConnectedAccountOrderBy, + CreateConnectedAccountInput, + UpdateConnectedAccountInput, + ConnectedAccountPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ConnectedAccountModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + connectedAccounts: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'ConnectedAccount', + 'connectedAccounts', + 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, + }, + 'ConnectedAccountFilter', + 'ConnectedAccountOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ConnectedAccount', + fieldName: 'connectedAccounts', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + connectedAccounts: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'ConnectedAccount', + 'connectedAccounts', + args.select, + { + where: args?.where, + }, + 'ConnectedAccountFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ConnectedAccount', + fieldName: 'connectedAccounts', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + connectedAccount: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ConnectedAccount', + 'connectedAccounts', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ConnectedAccountFilter', + 'ConnectedAccountOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ConnectedAccount', + fieldName: 'connectedAccount', + document, + variables, + transform: (data: { + connectedAccounts?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + connectedAccount: data.connectedAccounts?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createConnectedAccount: { + connectedAccount: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ConnectedAccount', + 'createConnectedAccount', + 'connectedAccount', + args.select, + args.data, + 'CreateConnectedAccountInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ConnectedAccount', + fieldName: 'createConnectedAccount', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ConnectedAccountPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateConnectedAccount: { + connectedAccount: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ConnectedAccount', + 'updateConnectedAccount', + 'connectedAccount', + args.select, + args.where.id, + args.data, + 'UpdateConnectedAccountInput', + 'id', + 'connectedAccountPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ConnectedAccount', + fieldName: 'updateConnectedAccount', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteConnectedAccount: { + connectedAccount: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ConnectedAccount', + 'deleteConnectedAccount', + 'connectedAccount', + args.where.id, + 'DeleteConnectedAccountInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ConnectedAccount', + fieldName: 'deleteConnectedAccount', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/auth/orm/models/cryptoAddress.ts b/sdk/constructive-react/src/auth/orm/models/cryptoAddress.ts new file mode 100644 index 000000000..8d0c9b387 --- /dev/null +++ b/sdk/constructive-react/src/auth/orm/models/cryptoAddress.ts @@ -0,0 +1,236 @@ +/** + * CryptoAddress 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 { + CryptoAddress, + CryptoAddressWithRelations, + CryptoAddressSelect, + CryptoAddressFilter, + CryptoAddressOrderBy, + CreateCryptoAddressInput, + UpdateCryptoAddressInput, + CryptoAddressPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class CryptoAddressModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + cryptoAddresses: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'CryptoAddress', + 'cryptoAddresses', + 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, + }, + 'CryptoAddressFilter', + 'CryptoAddressOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'CryptoAddress', + fieldName: 'cryptoAddresses', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + cryptoAddresses: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'CryptoAddress', + 'cryptoAddresses', + args.select, + { + where: args?.where, + }, + 'CryptoAddressFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'CryptoAddress', + fieldName: 'cryptoAddresses', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + cryptoAddress: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'CryptoAddress', + 'cryptoAddresses', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'CryptoAddressFilter', + 'CryptoAddressOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'CryptoAddress', + fieldName: 'cryptoAddress', + document, + variables, + transform: (data: { + cryptoAddresses?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + cryptoAddress: data.cryptoAddresses?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createCryptoAddress: { + cryptoAddress: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'CryptoAddress', + 'createCryptoAddress', + 'cryptoAddress', + args.select, + args.data, + 'CreateCryptoAddressInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'CryptoAddress', + fieldName: 'createCryptoAddress', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + CryptoAddressPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateCryptoAddress: { + cryptoAddress: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'CryptoAddress', + 'updateCryptoAddress', + 'cryptoAddress', + args.select, + args.where.id, + args.data, + 'UpdateCryptoAddressInput', + 'id', + 'cryptoAddressPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'CryptoAddress', + fieldName: 'updateCryptoAddress', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteCryptoAddress: { + cryptoAddress: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'CryptoAddress', + 'deleteCryptoAddress', + 'cryptoAddress', + args.where.id, + 'DeleteCryptoAddressInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'CryptoAddress', + fieldName: 'deleteCryptoAddress', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/auth/orm/models/email.ts b/sdk/constructive-react/src/auth/orm/models/email.ts new file mode 100644 index 000000000..d03c2180b --- /dev/null +++ b/sdk/constructive-react/src/auth/orm/models/email.ts @@ -0,0 +1,236 @@ +/** + * Email 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 { + Email, + EmailWithRelations, + EmailSelect, + EmailFilter, + EmailOrderBy, + CreateEmailInput, + UpdateEmailInput, + EmailPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class EmailModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + emails: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Email', + 'emails', + 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, + }, + 'EmailFilter', + 'EmailOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Email', + fieldName: 'emails', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + emails: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'Email', + 'emails', + args.select, + { + where: args?.where, + }, + 'EmailFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Email', + fieldName: 'emails', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + email: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'Email', + 'emails', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'EmailFilter', + 'EmailOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Email', + fieldName: 'email', + document, + variables, + transform: (data: { + emails?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + email: data.emails?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createEmail: { + email: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Email', + 'createEmail', + 'email', + args.select, + args.data, + 'CreateEmailInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Email', + fieldName: 'createEmail', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + EmailPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateEmail: { + email: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'Email', + 'updateEmail', + 'email', + args.select, + args.where.id, + args.data, + 'UpdateEmailInput', + 'id', + 'emailPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Email', + fieldName: 'updateEmail', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteEmail: { + email: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'Email', + 'deleteEmail', + 'email', + args.where.id, + 'DeleteEmailInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Email', + fieldName: 'deleteEmail', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/auth/orm/models/index.ts b/sdk/constructive-react/src/auth/orm/models/index.ts new file mode 100644 index 000000000..f0e6c6b1f --- /dev/null +++ b/sdk/constructive-react/src/auth/orm/models/index.ts @@ -0,0 +1,12 @@ +/** + * Models barrel export + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +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 { UserModel } from './user'; diff --git a/sdk/constructive-react/src/auth/orm/models/phoneNumber.ts b/sdk/constructive-react/src/auth/orm/models/phoneNumber.ts new file mode 100644 index 000000000..8122dff00 --- /dev/null +++ b/sdk/constructive-react/src/auth/orm/models/phoneNumber.ts @@ -0,0 +1,236 @@ +/** + * PhoneNumber 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 { + PhoneNumber, + PhoneNumberWithRelations, + PhoneNumberSelect, + PhoneNumberFilter, + PhoneNumberOrderBy, + CreatePhoneNumberInput, + UpdatePhoneNumberInput, + PhoneNumberPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PhoneNumberModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + phoneNumbers: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PhoneNumber', + 'phoneNumbers', + 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, + }, + 'PhoneNumberFilter', + 'PhoneNumberOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PhoneNumber', + fieldName: 'phoneNumbers', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + phoneNumbers: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'PhoneNumber', + 'phoneNumbers', + args.select, + { + where: args?.where, + }, + 'PhoneNumberFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PhoneNumber', + fieldName: 'phoneNumbers', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + phoneNumber: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PhoneNumber', + 'phoneNumbers', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PhoneNumberFilter', + 'PhoneNumberOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PhoneNumber', + fieldName: 'phoneNumber', + document, + variables, + transform: (data: { + phoneNumbers?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + phoneNumber: data.phoneNumbers?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPhoneNumber: { + phoneNumber: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PhoneNumber', + 'createPhoneNumber', + 'phoneNumber', + args.select, + args.data, + 'CreatePhoneNumberInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PhoneNumber', + fieldName: 'createPhoneNumber', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PhoneNumberPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePhoneNumber: { + phoneNumber: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PhoneNumber', + 'updatePhoneNumber', + 'phoneNumber', + args.select, + args.where.id, + args.data, + 'UpdatePhoneNumberInput', + 'id', + 'phoneNumberPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PhoneNumber', + fieldName: 'updatePhoneNumber', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePhoneNumber: { + phoneNumber: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PhoneNumber', + 'deletePhoneNumber', + 'phoneNumber', + args.where.id, + 'DeletePhoneNumberInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PhoneNumber', + fieldName: 'deletePhoneNumber', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/auth/orm/models/roleType.ts b/sdk/constructive-react/src/auth/orm/models/roleType.ts new file mode 100644 index 000000000..dce555ddb --- /dev/null +++ b/sdk/constructive-react/src/auth/orm/models/roleType.ts @@ -0,0 +1,236 @@ +/** + * RoleType 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 { + RoleType, + RoleTypeWithRelations, + RoleTypeSelect, + RoleTypeFilter, + RoleTypeOrderBy, + CreateRoleTypeInput, + UpdateRoleTypeInput, + RoleTypePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class RoleTypeModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + roleTypes: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'RoleType', + 'roleTypes', + 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, + }, + 'RoleTypeFilter', + 'RoleTypeOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RoleType', + fieldName: 'roleTypes', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + roleTypes: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'RoleType', + 'roleTypes', + args.select, + { + where: args?.where, + }, + 'RoleTypeFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RoleType', + fieldName: 'roleTypes', + document, + variables, + }); + } + findOne( + args: { + id: number; + select: S; + } & StrictSelect + ): QueryBuilder<{ + roleType: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'RoleType', + 'roleTypes', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'RoleTypeFilter', + 'RoleTypeOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RoleType', + fieldName: 'roleType', + document, + variables, + transform: (data: { + roleTypes?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + roleType: data.roleTypes?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createRoleType: { + roleType: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'RoleType', + 'createRoleType', + 'roleType', + args.select, + args.data, + 'CreateRoleTypeInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RoleType', + fieldName: 'createRoleType', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: number; + }, + RoleTypePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateRoleType: { + roleType: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'RoleType', + 'updateRoleType', + 'roleType', + args.select, + args.where.id, + args.data, + 'UpdateRoleTypeInput', + 'id', + 'roleTypePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RoleType', + fieldName: 'updateRoleType', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: number; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteRoleType: { + roleType: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'RoleType', + 'deleteRoleType', + 'roleType', + args.where.id, + 'DeleteRoleTypeInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RoleType', + fieldName: 'deleteRoleType', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/auth/orm/models/user.ts b/sdk/constructive-react/src/auth/orm/models/user.ts new file mode 100644 index 000000000..7adeca16a --- /dev/null +++ b/sdk/constructive-react/src/auth/orm/models/user.ts @@ -0,0 +1,236 @@ +/** + * User 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 { + User, + UserWithRelations, + UserSelect, + UserFilter, + UserOrderBy, + CreateUserInput, + UpdateUserInput, + UserPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class UserModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + users: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'User', + 'users', + 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, + }, + 'UserFilter', + 'UserOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'User', + fieldName: 'users', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + users: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'User', + 'users', + args.select, + { + where: args?.where, + }, + 'UserFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'User', + fieldName: 'users', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + user: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'User', + 'users', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'UserFilter', + 'UserOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'User', + fieldName: 'user', + document, + variables, + transform: (data: { + users?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + user: data.users?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createUser: { + user: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'User', + 'createUser', + 'user', + args.select, + args.data, + 'CreateUserInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'User', + fieldName: 'createUser', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + UserPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateUser: { + user: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'User', + 'updateUser', + 'user', + args.select, + args.where.id, + args.data, + 'UpdateUserInput', + 'id', + 'userPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'User', + fieldName: 'updateUser', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteUser: { + user: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'User', + 'deleteUser', + 'user', + args.where.id, + 'DeleteUserInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'User', + fieldName: 'deleteUser', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/auth/orm/mutation/index.ts b/sdk/constructive-react/src/auth/orm/mutation/index.ts new file mode 100644 index 000000000..4428311bb --- /dev/null +++ b/sdk/constructive-react/src/auth/orm/mutation/index.ts @@ -0,0 +1,575 @@ +/** + * Custom mutation operations + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { QueryBuilder, buildCustomDocument } from '../query-builder'; +import type { InferSelectResult, StrictSelect } from '../select-types'; +import type { + SignOutInput, + SendAccountDeletionEmailInput, + CheckPasswordInput, + ConfirmDeleteAccountInput, + SetPasswordInput, + VerifyEmailInput, + ResetPasswordInput, + SignInOneTimeTokenInput, + SignInInput, + SignUpInput, + OneTimeTokenInput, + ExtendTokenExpiresInput, + ForgotPasswordInput, + SendVerificationEmailInput, + VerifyPasswordInput, + VerifyTotpInput, + SignOutPayload, + SendAccountDeletionEmailPayload, + CheckPasswordPayload, + ConfirmDeleteAccountPayload, + SetPasswordPayload, + VerifyEmailPayload, + ResetPasswordPayload, + SignInOneTimeTokenPayload, + SignInPayload, + SignUpPayload, + OneTimeTokenPayload, + ExtendTokenExpiresPayload, + ForgotPasswordPayload, + SendVerificationEmailPayload, + VerifyPasswordPayload, + VerifyTotpPayload, + SignOutPayloadSelect, + SendAccountDeletionEmailPayloadSelect, + CheckPasswordPayloadSelect, + ConfirmDeleteAccountPayloadSelect, + SetPasswordPayloadSelect, + VerifyEmailPayloadSelect, + ResetPasswordPayloadSelect, + SignInOneTimeTokenPayloadSelect, + SignInPayloadSelect, + SignUpPayloadSelect, + OneTimeTokenPayloadSelect, + ExtendTokenExpiresPayloadSelect, + ForgotPasswordPayloadSelect, + SendVerificationEmailPayloadSelect, + VerifyPasswordPayloadSelect, + VerifyTotpPayloadSelect, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export interface SignOutVariables { + input: SignOutInput; +} +export interface SendAccountDeletionEmailVariables { + input: SendAccountDeletionEmailInput; +} +export interface CheckPasswordVariables { + input: CheckPasswordInput; +} +export interface ConfirmDeleteAccountVariables { + input: ConfirmDeleteAccountInput; +} +export interface SetPasswordVariables { + input: SetPasswordInput; +} +export interface VerifyEmailVariables { + input: VerifyEmailInput; +} +export interface ResetPasswordVariables { + input: ResetPasswordInput; +} +export interface SignInOneTimeTokenVariables { + input: SignInOneTimeTokenInput; +} +export interface SignInVariables { + input: SignInInput; +} +export interface SignUpVariables { + input: SignUpInput; +} +export interface OneTimeTokenVariables { + input: OneTimeTokenInput; +} +export interface ExtendTokenExpiresVariables { + input: ExtendTokenExpiresInput; +} +export interface ForgotPasswordVariables { + input: ForgotPasswordInput; +} +export interface SendVerificationEmailVariables { + input: SendVerificationEmailInput; +} +export interface VerifyPasswordVariables { + input: VerifyPasswordInput; +} +export interface VerifyTotpVariables { + input: VerifyTotpInput; +} +export function createMutationOperations(client: OrmClient) { + return { + signOut: ( + args: SignOutVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + signOut: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SignOut', + fieldName: 'signOut', + ...buildCustomDocument( + 'mutation', + 'SignOut', + 'signOut', + options.select, + args, + [ + { + name: 'input', + type: 'SignOutInput!', + }, + ], + connectionFieldsMap, + 'SignOutPayload' + ), + }), + sendAccountDeletionEmail: ( + args: SendAccountDeletionEmailVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + sendAccountDeletionEmail: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SendAccountDeletionEmail', + fieldName: 'sendAccountDeletionEmail', + ...buildCustomDocument( + 'mutation', + 'SendAccountDeletionEmail', + 'sendAccountDeletionEmail', + options.select, + args, + [ + { + name: 'input', + type: 'SendAccountDeletionEmailInput!', + }, + ], + connectionFieldsMap, + 'SendAccountDeletionEmailPayload' + ), + }), + checkPassword: ( + args: CheckPasswordVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + checkPassword: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'CheckPassword', + fieldName: 'checkPassword', + ...buildCustomDocument( + 'mutation', + 'CheckPassword', + 'checkPassword', + options.select, + args, + [ + { + name: 'input', + type: 'CheckPasswordInput!', + }, + ], + connectionFieldsMap, + 'CheckPasswordPayload' + ), + }), + confirmDeleteAccount: ( + args: ConfirmDeleteAccountVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + confirmDeleteAccount: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ConfirmDeleteAccount', + fieldName: 'confirmDeleteAccount', + ...buildCustomDocument( + 'mutation', + 'ConfirmDeleteAccount', + 'confirmDeleteAccount', + options.select, + args, + [ + { + name: 'input', + type: 'ConfirmDeleteAccountInput!', + }, + ], + connectionFieldsMap, + 'ConfirmDeleteAccountPayload' + ), + }), + setPassword: ( + args: SetPasswordVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + setPassword: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SetPassword', + fieldName: 'setPassword', + ...buildCustomDocument( + 'mutation', + 'SetPassword', + 'setPassword', + options.select, + args, + [ + { + name: 'input', + type: 'SetPasswordInput!', + }, + ], + connectionFieldsMap, + 'SetPasswordPayload' + ), + }), + verifyEmail: ( + args: VerifyEmailVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + verifyEmail: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'VerifyEmail', + fieldName: 'verifyEmail', + ...buildCustomDocument( + 'mutation', + 'VerifyEmail', + 'verifyEmail', + options.select, + args, + [ + { + name: 'input', + type: 'VerifyEmailInput!', + }, + ], + connectionFieldsMap, + 'VerifyEmailPayload' + ), + }), + resetPassword: ( + args: ResetPasswordVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + resetPassword: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ResetPassword', + fieldName: 'resetPassword', + ...buildCustomDocument( + 'mutation', + 'ResetPassword', + 'resetPassword', + options.select, + args, + [ + { + name: 'input', + type: 'ResetPasswordInput!', + }, + ], + connectionFieldsMap, + 'ResetPasswordPayload' + ), + }), + signInOneTimeToken: ( + args: SignInOneTimeTokenVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + signInOneTimeToken: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SignInOneTimeToken', + fieldName: 'signInOneTimeToken', + ...buildCustomDocument( + 'mutation', + 'SignInOneTimeToken', + 'signInOneTimeToken', + options.select, + args, + [ + { + name: 'input', + type: 'SignInOneTimeTokenInput!', + }, + ], + connectionFieldsMap, + 'SignInOneTimeTokenPayload' + ), + }), + signIn: ( + args: SignInVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + signIn: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SignIn', + fieldName: 'signIn', + ...buildCustomDocument( + 'mutation', + 'SignIn', + 'signIn', + options.select, + args, + [ + { + name: 'input', + type: 'SignInInput!', + }, + ], + connectionFieldsMap, + 'SignInPayload' + ), + }), + signUp: ( + args: SignUpVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + signUp: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SignUp', + fieldName: 'signUp', + ...buildCustomDocument( + 'mutation', + 'SignUp', + 'signUp', + options.select, + args, + [ + { + name: 'input', + type: 'SignUpInput!', + }, + ], + connectionFieldsMap, + 'SignUpPayload' + ), + }), + oneTimeToken: ( + args: OneTimeTokenVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + oneTimeToken: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'OneTimeToken', + fieldName: 'oneTimeToken', + ...buildCustomDocument( + 'mutation', + 'OneTimeToken', + 'oneTimeToken', + options.select, + args, + [ + { + name: 'input', + type: 'OneTimeTokenInput!', + }, + ], + connectionFieldsMap, + 'OneTimeTokenPayload' + ), + }), + extendTokenExpires: ( + args: ExtendTokenExpiresVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + extendTokenExpires: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ExtendTokenExpires', + fieldName: 'extendTokenExpires', + ...buildCustomDocument( + 'mutation', + 'ExtendTokenExpires', + 'extendTokenExpires', + options.select, + args, + [ + { + name: 'input', + type: 'ExtendTokenExpiresInput!', + }, + ], + connectionFieldsMap, + 'ExtendTokenExpiresPayload' + ), + }), + forgotPassword: ( + args: ForgotPasswordVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + forgotPassword: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ForgotPassword', + fieldName: 'forgotPassword', + ...buildCustomDocument( + 'mutation', + 'ForgotPassword', + 'forgotPassword', + options.select, + args, + [ + { + name: 'input', + type: 'ForgotPasswordInput!', + }, + ], + connectionFieldsMap, + 'ForgotPasswordPayload' + ), + }), + sendVerificationEmail: ( + args: SendVerificationEmailVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + sendVerificationEmail: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SendVerificationEmail', + fieldName: 'sendVerificationEmail', + ...buildCustomDocument( + 'mutation', + 'SendVerificationEmail', + 'sendVerificationEmail', + options.select, + args, + [ + { + name: 'input', + type: 'SendVerificationEmailInput!', + }, + ], + connectionFieldsMap, + 'SendVerificationEmailPayload' + ), + }), + verifyPassword: ( + args: VerifyPasswordVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + verifyPassword: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'VerifyPassword', + fieldName: 'verifyPassword', + ...buildCustomDocument( + 'mutation', + 'VerifyPassword', + 'verifyPassword', + options.select, + args, + [ + { + name: 'input', + type: 'VerifyPasswordInput!', + }, + ], + connectionFieldsMap, + 'VerifyPasswordPayload' + ), + }), + verifyTotp: ( + args: VerifyTotpVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + verifyTotp: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'VerifyTotp', + fieldName: 'verifyTotp', + ...buildCustomDocument( + 'mutation', + 'VerifyTotp', + 'verifyTotp', + options.select, + args, + [ + { + name: 'input', + type: 'VerifyTotpInput!', + }, + ], + connectionFieldsMap, + 'VerifyTotpPayload' + ), + }), + }; +} diff --git a/sdk/constructive-react/src/auth/orm/query-builder.ts b/sdk/constructive-react/src/auth/orm/query-builder.ts new file mode 100644 index 000000000..67c3992b5 --- /dev/null +++ b/sdk/constructive-react/src/auth/orm/query-builder.ts @@ -0,0 +1,847 @@ +/** + * Query Builder - Builds and executes GraphQL operations + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { parseType, print } from '@0no-co/graphql.web'; +import * as t from 'gql-ast'; +import type { ArgumentNode, EnumValueNode, FieldNode, VariableDefinitionNode } from 'graphql'; + +import { GraphQLRequestError, OrmClient, QueryResult } from './client'; + +export interface QueryBuilderConfig { + client: OrmClient; + operation: 'query' | 'mutation'; + operationName: string; + fieldName: string; + document: string; + variables?: Record; + transform?: (data: any) => TResult; +} + +export class QueryBuilder { + private config: QueryBuilderConfig; + + constructor(config: QueryBuilderConfig) { + this.config = config; + } + + /** + * Execute the query and return a discriminated union result + * Use result.ok to check success, or .unwrap() to throw on error + */ + async execute(): Promise> { + const rawResult = await this.config.client.execute( + this.config.document, + this.config.variables + ); + if (!rawResult.ok) { + return rawResult; + } + if (!this.config.transform) { + return rawResult as unknown as QueryResult; + } + return { + ok: true, + data: this.config.transform(rawResult.data), + errors: undefined, + }; + } + + /** + * Execute and unwrap the result, throwing GraphQLRequestError on failure + * @throws {GraphQLRequestError} If the query returns errors + */ + async unwrap(): Promise { + const result = await this.execute(); + if (!result.ok) { + throw new GraphQLRequestError(result.errors, result.data); + } + return result.data; + } + + /** + * Execute and unwrap, returning defaultValue on error instead of throwing + */ + async unwrapOr(defaultValue: D): Promise { + const result = await this.execute(); + if (!result.ok) { + return defaultValue; + } + return result.data; + } + + /** + * Execute and unwrap, calling onError callback on failure + */ + async unwrapOrElse( + onError: (errors: import('./client').GraphQLError[]) => D + ): Promise { + const result = await this.execute(); + if (!result.ok) { + return onError(result.errors); + } + return result.data; + } + + toGraphQL(): string { + return this.config.document; + } + + getVariables(): Record | undefined { + return this.config.variables; + } +} + +const OP_QUERY = 'query' as unknown as import('graphql').OperationTypeNode; +const OP_MUTATION = 'mutation' as unknown as import('graphql').OperationTypeNode; +const ENUM_VALUE_KIND = 'EnumValue' as unknown as EnumValueNode['kind']; + +// ============================================================================ +// Selection Builders +// ============================================================================ + +export function buildSelections( + select: Record | undefined, + connectionFieldsMap?: Record>, + entityType?: string +): FieldNode[] { + if (!select) { + return []; + } + + const fields: FieldNode[] = []; + const entityConnections = entityType ? connectionFieldsMap?.[entityType] : undefined; + + for (const [key, value] of Object.entries(select)) { + if (value === false || value === undefined) { + continue; + } + + if (value === true) { + fields.push(t.field({ name: key })); + continue; + } + + if (typeof value === 'object' && value !== null) { + const nested = value as { + select?: Record; + first?: number; + filter?: Record; + orderBy?: string[]; + connection?: boolean; + }; + + if (!nested.select || typeof nested.select !== 'object') { + throw new Error( + `Invalid selection for field "${key}": nested selections must include a "select" object.` + ); + } + + const relatedEntityType = entityConnections?.[key]; + const nestedSelections = buildSelections( + nested.select, + connectionFieldsMap, + relatedEntityType + ); + const isConnection = + nested.connection === true || + nested.first !== undefined || + nested.filter !== undefined || + relatedEntityType !== undefined; + const args = buildArgs([ + buildOptionalArg('first', nested.first), + nested.filter + ? t.argument({ + name: 'filter', + value: buildValueAst(nested.filter), + }) + : null, + buildEnumListArg('orderBy', nested.orderBy), + ]); + + if (isConnection) { + fields.push( + t.field({ + name: key, + args, + selectionSet: t.selectionSet({ + selections: buildConnectionSelections(nestedSelections), + }), + }) + ); + } else { + fields.push( + t.field({ + name: key, + args, + selectionSet: t.selectionSet({ selections: nestedSelections }), + }) + ); + } + } + } + + return fields; +} + +// ============================================================================ +// Document Builders +// ============================================================================ + +export function buildFindManyDocument( + operationName: string, + queryField: string, + select: TSelect, + args: { + where?: TWhere; + orderBy?: string[]; + first?: number; + last?: number; + after?: string; + before?: string; + offset?: number; + }, + filterTypeName: string, + orderByTypeName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + const variableDefinitions: VariableDefinitionNode[] = []; + const queryArgs: ArgumentNode[] = []; + const variables: Record = {}; + + addVariable( + { + varName: 'where', + argName: 'filter', + typeName: filterTypeName, + value: args.where, + }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { + varName: 'orderBy', + typeName: '[' + orderByTypeName + '!]', + value: args.orderBy?.length ? args.orderBy : undefined, + }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { varName: 'first', typeName: 'Int', value: args.first }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { varName: 'last', typeName: 'Int', value: args.last }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { varName: 'after', typeName: 'Cursor', value: args.after }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { varName: 'before', typeName: 'Cursor', value: args.before }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { varName: 'offset', typeName: 'Int', value: args.offset }, + variableDefinitions, + queryArgs, + variables + ); + + const document = t.document({ + definitions: [ + t.operationDefinition({ + operation: OP_QUERY, + name: operationName + 'Query', + variableDefinitions: variableDefinitions.length ? variableDefinitions : undefined, + selectionSet: t.selectionSet({ + selections: [ + t.field({ + name: queryField, + args: queryArgs.length ? queryArgs : undefined, + selectionSet: t.selectionSet({ + selections: buildConnectionSelections(selections), + }), + }), + ], + }), + }), + ], + }); + + return { document: print(document), variables }; +} + +export function buildFindFirstDocument( + operationName: string, + queryField: string, + select: TSelect, + args: { where?: TWhere }, + filterTypeName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + const variableDefinitions: VariableDefinitionNode[] = []; + const queryArgs: ArgumentNode[] = []; + const variables: Record = {}; + + // Always add first: 1 for findFirst + addVariable( + { varName: 'first', typeName: 'Int', value: 1 }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { + varName: 'where', + argName: 'filter', + typeName: filterTypeName, + value: args.where, + }, + variableDefinitions, + queryArgs, + variables + ); + + const document = t.document({ + definitions: [ + t.operationDefinition({ + operation: OP_QUERY, + name: operationName + 'Query', + variableDefinitions, + selectionSet: t.selectionSet({ + selections: [ + t.field({ + name: queryField, + args: queryArgs, + selectionSet: t.selectionSet({ + selections: [ + t.field({ + name: 'nodes', + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + }), + ], + }), + }), + ], + }); + + return { document: print(document), variables }; +} + +export function buildCreateDocument( + operationName: string, + mutationField: string, + entityField: string, + select: TSelect, + data: TData, + inputTypeName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ + name: entityField, + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + variables: { + input: { + [entityField]: data, + }, + }, + }; +} + +export function buildUpdateDocument( + operationName: string, + mutationField: string, + entityField: string, + select: TSelect, + where: TWhere, + data: TData, + inputTypeName: string, + patchFieldName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ + name: entityField, + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + variables: { + input: { + id: where.id, + [patchFieldName]: data, + }, + }, + }; +} + +export function buildUpdateByPkDocument( + operationName: string, + mutationField: string, + entityField: string, + select: TSelect, + id: string | number, + data: TData, + inputTypeName: string, + idFieldName: string, + patchFieldName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ + name: entityField, + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + variables: { + input: { + [idFieldName]: id, + [patchFieldName]: data, + }, + }, + }; +} + +export function buildFindOneDocument( + operationName: string, + queryField: string, + id: string | number, + select: TSelect, + idArgName: string, + idTypeName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + const variableDefinitions: VariableDefinitionNode[] = [ + t.variableDefinition({ + variable: t.variable({ name: idArgName }), + type: parseType(idTypeName), + }), + ]; + + const queryArgs: ArgumentNode[] = [ + t.argument({ + name: idArgName, + value: t.variable({ name: idArgName }), + }), + ]; + + const document = t.document({ + definitions: [ + t.operationDefinition({ + operation: OP_QUERY, + name: operationName + 'Query', + variableDefinitions, + selectionSet: t.selectionSet({ + selections: [ + t.field({ + name: queryField, + args: queryArgs, + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + }), + ], + }); + + return { + document: print(document), + variables: { [idArgName]: id }, + }; +} + +export function buildDeleteDocument( + operationName: string, + mutationField: string, + entityField: string, + where: TWhere, + inputTypeName: string, + select?: TSelect, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const entitySelections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ + name: entityField, + selectionSet: t.selectionSet({ + selections: entitySelections, + }), + }), + ], + }), + variables: { + input: { + id: where.id, + }, + }, + }; +} + +export function buildDeleteByPkDocument( + operationName: string, + mutationField: string, + entityField: string, + id: string | number, + inputTypeName: string, + idFieldName: string, + select?: TSelect, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const entitySelections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ + name: entityField, + selectionSet: t.selectionSet({ selections: entitySelections }), + }), + ], + }), + variables: { + input: { + [idFieldName]: id, + }, + }, + }; +} + +export function buildCustomDocument( + operationType: 'query' | 'mutation', + operationName: string, + fieldName: string, + select: TSelect, + args: TArgs, + variableDefinitions: Array<{ name: string; type: string }>, + connectionFieldsMap?: Record>, + entityType?: string +): { document: string; variables: Record } { + let actualSelect: TSelect = select; + let isConnection = false; + + if (isCustomSelectionWrapper(select)) { + actualSelect = select.select as TSelect; + isConnection = select.connection === true; + } + + const selections = actualSelect + ? buildSelections(actualSelect as Record, connectionFieldsMap, entityType) + : []; + + const variableDefs = variableDefinitions.map((definition) => + t.variableDefinition({ + variable: t.variable({ name: definition.name }), + type: parseType(definition.type), + }) + ); + const fieldArgs = variableDefinitions.map((definition) => + t.argument({ + name: definition.name, + value: t.variable({ name: definition.name }), + }) + ); + + const fieldSelections = isConnection ? buildConnectionSelections(selections) : selections; + + const document = t.document({ + definitions: [ + t.operationDefinition({ + operation: operationType === 'mutation' ? OP_MUTATION : OP_QUERY, + name: operationName, + variableDefinitions: variableDefs.length ? variableDefs : undefined, + selectionSet: t.selectionSet({ + selections: [ + t.field({ + name: fieldName, + args: fieldArgs.length ? fieldArgs : undefined, + selectionSet: fieldSelections.length + ? t.selectionSet({ selections: fieldSelections }) + : undefined, + }), + ], + }), + }), + ], + }); + + return { + document: print(document), + variables: (args ?? {}) as Record, + }; +} + +function isCustomSelectionWrapper( + value: unknown +): value is { select: Record; connection?: boolean } { + if (!value || typeof value !== 'object' || Array.isArray(value)) { + return false; + } + + const record = value as Record; + const keys = Object.keys(record); + + if (!keys.includes('select') || !keys.includes('connection')) { + return false; + } + + if (keys.some((key) => key !== 'select' && key !== 'connection')) { + return false; + } + + return !!record.select && typeof record.select === 'object' && !Array.isArray(record.select); +} + +// ============================================================================ +// Helper Functions +// ============================================================================ + +function buildArgs(args: Array): ArgumentNode[] { + return args.filter((arg): arg is ArgumentNode => arg !== null); +} + +function buildOptionalArg(name: string, value: number | string | undefined): ArgumentNode | null { + if (value === undefined) { + return null; + } + const valueNode = + typeof value === 'number' ? t.intValue({ value: value.toString() }) : t.stringValue({ value }); + return t.argument({ name, value: valueNode }); +} + +function buildEnumListArg(name: string, values: string[] | undefined): ArgumentNode | null { + if (!values || values.length === 0) { + return null; + } + return t.argument({ + name, + value: t.listValue({ + values: values.map((value) => buildEnumValue(value)), + }), + }); +} + +function buildEnumValue(value: string): EnumValueNode { + return { + kind: ENUM_VALUE_KIND, + value, + }; +} + +function buildPageInfoSelections(): FieldNode[] { + return [ + t.field({ name: 'hasNextPage' }), + t.field({ name: 'hasPreviousPage' }), + t.field({ name: 'startCursor' }), + t.field({ name: 'endCursor' }), + ]; +} + +function buildConnectionSelections(nodeSelections: FieldNode[]): FieldNode[] { + return [ + t.field({ + name: 'nodes', + selectionSet: t.selectionSet({ selections: nodeSelections }), + }), + t.field({ name: 'totalCount' }), + t.field({ + name: 'pageInfo', + selectionSet: t.selectionSet({ selections: buildPageInfoSelections() }), + }), + ]; +} + +interface VariableSpec { + varName: string; + argName?: string; + typeName: string; + value: unknown; +} + +interface InputMutationConfig { + operationName: string; + mutationField: string; + inputTypeName: string; + resultSelections: FieldNode[]; +} + +function buildInputMutationDocument(config: InputMutationConfig): string { + const document = t.document({ + definitions: [ + t.operationDefinition({ + operation: OP_MUTATION, + name: config.operationName + 'Mutation', + variableDefinitions: [ + t.variableDefinition({ + variable: t.variable({ name: 'input' }), + type: parseType(config.inputTypeName + '!'), + }), + ], + selectionSet: t.selectionSet({ + selections: [ + t.field({ + name: config.mutationField, + args: [ + t.argument({ + name: 'input', + value: t.variable({ name: 'input' }), + }), + ], + selectionSet: t.selectionSet({ + selections: config.resultSelections, + }), + }), + ], + }), + }), + ], + }); + return print(document); +} + +function addVariable( + spec: VariableSpec, + definitions: VariableDefinitionNode[], + args: ArgumentNode[], + variables: Record +): void { + if (spec.value === undefined) return; + + definitions.push( + t.variableDefinition({ + variable: t.variable({ name: spec.varName }), + type: parseType(spec.typeName), + }) + ); + args.push( + t.argument({ + name: spec.argName ?? spec.varName, + value: t.variable({ name: spec.varName }), + }) + ); + variables[spec.varName] = spec.value; +} + +function buildValueAst( + value: unknown +): + | ReturnType + | ReturnType + | ReturnType + | ReturnType + | ReturnType + | ReturnType + | ReturnType + | EnumValueNode { + if (value === null) { + return t.nullValue(); + } + + if (typeof value === 'boolean') { + return t.booleanValue({ value }); + } + + if (typeof value === 'number') { + return Number.isInteger(value) + ? t.intValue({ value: value.toString() }) + : t.floatValue({ value: value.toString() }); + } + + if (typeof value === 'string') { + return t.stringValue({ value }); + } + + if (Array.isArray(value)) { + return t.listValue({ + values: value.map((item) => buildValueAst(item)), + }); + } + + if (typeof value === 'object' && value !== null) { + const obj = value as Record; + return t.objectValue({ + fields: Object.entries(obj).map(([key, val]) => + t.objectField({ + name: key, + value: buildValueAst(val), + }) + ), + }); + } + + throw new Error('Unsupported value type: ' + typeof value); +} diff --git a/sdk/constructive-react/src/auth/orm/query/index.ts b/sdk/constructive-react/src/auth/orm/query/index.ts new file mode 100644 index 000000000..69150c6c7 --- /dev/null +++ b/sdk/constructive-react/src/auth/orm/query/index.ts @@ -0,0 +1,94 @@ +/** + * Custom query operations + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { QueryBuilder, buildCustomDocument } from '../query-builder'; +import type { InferSelectResult, StrictSelect } from '../select-types'; +import type { User, UserSelect } from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export function createQueryOperations(client: OrmClient) { + return { + currentIpAddress: (options?: { select?: Record }) => + new QueryBuilder<{ + currentIpAddress: string | null; + }>({ + client, + operation: 'query', + operationName: 'CurrentIpAddress', + fieldName: 'currentIpAddress', + ...buildCustomDocument( + 'query', + 'CurrentIpAddress', + 'currentIpAddress', + options?.select, + undefined, + [], + connectionFieldsMap, + undefined + ), + }), + currentUserAgent: (options?: { select?: Record }) => + new QueryBuilder<{ + currentUserAgent: string | null; + }>({ + client, + operation: 'query', + operationName: 'CurrentUserAgent', + fieldName: 'currentUserAgent', + ...buildCustomDocument( + 'query', + 'CurrentUserAgent', + 'currentUserAgent', + options?.select, + undefined, + [], + connectionFieldsMap, + undefined + ), + }), + currentUserId: (options?: { select?: Record }) => + new QueryBuilder<{ + currentUserId: string | null; + }>({ + client, + operation: 'query', + operationName: 'CurrentUserId', + fieldName: 'currentUserId', + ...buildCustomDocument( + 'query', + 'CurrentUserId', + 'currentUserId', + options?.select, + undefined, + [], + connectionFieldsMap, + undefined + ), + }), + currentUser: ( + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + currentUser: InferSelectResult | null; + }>({ + client, + operation: 'query', + operationName: 'CurrentUser', + fieldName: 'currentUser', + ...buildCustomDocument( + 'query', + 'CurrentUser', + 'currentUser', + options.select, + undefined, + [], + connectionFieldsMap, + 'User' + ), + }), + }; +} diff --git a/sdk/constructive-react/src/auth/orm/select-types.ts b/sdk/constructive-react/src/auth/orm/select-types.ts new file mode 100644 index 000000000..80165efa6 --- /dev/null +++ b/sdk/constructive-react/src/auth/orm/select-types.ts @@ -0,0 +1,140 @@ +/** + * Type utilities for select inference + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export interface ConnectionResult { + nodes: T[]; + totalCount: number; + pageInfo: PageInfo; +} + +export interface PageInfo { + hasNextPage: boolean; + hasPreviousPage: boolean; + startCursor?: string | null; + endCursor?: string | null; +} + +export interface FindManyArgs { + select?: TSelect; + where?: TWhere; + orderBy?: TOrderBy[]; + first?: number; + last?: number; + after?: string; + before?: string; + offset?: number; +} + +export interface FindFirstArgs { + select?: TSelect; + where?: TWhere; +} + +export interface CreateArgs { + data: TData; + select?: TSelect; +} + +export interface UpdateArgs { + where: TWhere; + data: TData; + select?: TSelect; +} + +export type FindOneArgs = { + select?: TSelect; +} & Record; + +export interface DeleteArgs { + where: TWhere; + select?: TSelect; +} + +type DepthLevel = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10; +type DecrementDepth = { + 0: 0; + 1: 0; + 2: 1; + 3: 2; + 4: 3; + 5: 4; + 6: 5; + 7: 6; + 8: 7; + 9: 8; + 10: 9; +}; + +/** + * Recursively validates select objects, rejecting unknown keys. + * + * NOTE: Depth is intentionally capped to avoid circular-instantiation issues + * in very large cyclic schemas. + */ +export type DeepExact = Depth extends 0 + ? T extends Shape + ? T + : never + : T extends Shape + ? Exclude extends never + ? { + [K in keyof T]: K extends keyof Shape + ? T[K] extends { select: infer NS } + ? Extract extends { + select?: infer ShapeNS; + } + ? DeepExact< + Omit & { + select: DeepExact, DecrementDepth[Depth]>; + }, + Extract, + DecrementDepth[Depth] + > + : never + : T[K] + : never; + } + : never + : never; + +/** + * Enforces exact select shape while keeping contextual typing on `S extends XxxSelect`. + * Use this as an intersection in overloads: + * `{ select: S } & StrictSelect`. + */ +export type StrictSelect = S extends DeepExact ? {} : never; + +/** + * Hook-optimized strict select variant. + * + * Uses a shallower recursion depth to keep editor autocomplete responsive + * in large schemas while still validating common nested-select mistakes. + */ +export type HookStrictSelect = S extends DeepExact ? {} : never; + +/** + * Infer result type from select configuration + */ +export type InferSelectResult = TSelect extends undefined + ? TEntity + : { + [K in keyof TSelect as TSelect[K] extends false | undefined + ? never + : K]: TSelect[K] extends true + ? K extends keyof TEntity + ? TEntity[K] + : never + : TSelect[K] extends { select: infer NestedSelect } + ? K extends keyof TEntity + ? NonNullable extends ConnectionResult + ? ConnectionResult> + : + | InferSelectResult, NestedSelect> + | (null extends TEntity[K] ? null : never) + : never + : K extends keyof TEntity + ? TEntity[K] + : never; + }; diff --git a/sdk/constructive-react/src/auth/orm/skills/auditLog.md b/sdk/constructive-react/src/auth/orm/skills/auditLog.md new file mode 100644 index 000000000..d7eed269a --- /dev/null +++ b/sdk/constructive-react/src/auth/orm/skills/auditLog.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..1c5c3d8ba --- /dev/null +++ b/sdk/constructive-react/src/auth/orm/skills/checkPassword.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..4d76c3194 --- /dev/null +++ b/sdk/constructive-react/src/auth/orm/skills/confirmDeleteAccount.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..ff7e10281 --- /dev/null +++ b/sdk/constructive-react/src/auth/orm/skills/connectedAccount.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..70e896572 --- /dev/null +++ b/sdk/constructive-react/src/auth/orm/skills/cryptoAddress.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..63d2d9969 --- /dev/null +++ b/sdk/constructive-react/src/auth/orm/skills/currentIpAddress.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..ca907fcb4 --- /dev/null +++ b/sdk/constructive-react/src/auth/orm/skills/currentUser.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..e5ba1e850 --- /dev/null +++ b/sdk/constructive-react/src/auth/orm/skills/currentUserAgent.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..c27ebc8c5 --- /dev/null +++ b/sdk/constructive-react/src/auth/orm/skills/currentUserId.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..9bc21e74f --- /dev/null +++ b/sdk/constructive-react/src/auth/orm/skills/email.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..d587afacb --- /dev/null +++ b/sdk/constructive-react/src/auth/orm/skills/extendTokenExpires.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..38c59f662 --- /dev/null +++ b/sdk/constructive-react/src/auth/orm/skills/forgotPassword.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..2ac3f962d --- /dev/null +++ b/sdk/constructive-react/src/auth/orm/skills/oneTimeToken.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..2a77480fa --- /dev/null +++ b/sdk/constructive-react/src/auth/orm/skills/phoneNumber.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..fe676ada5 --- /dev/null +++ b/sdk/constructive-react/src/auth/orm/skills/resetPassword.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..261296f03 --- /dev/null +++ b/sdk/constructive-react/src/auth/orm/skills/roleType.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..aaf0470b5 --- /dev/null +++ b/sdk/constructive-react/src/auth/orm/skills/sendAccountDeletionEmail.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..2f0cfea9a --- /dev/null +++ b/sdk/constructive-react/src/auth/orm/skills/sendVerificationEmail.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..bbf15b68d --- /dev/null +++ b/sdk/constructive-react/src/auth/orm/skills/setPassword.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..d49334136 --- /dev/null +++ b/sdk/constructive-react/src/auth/orm/skills/signIn.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..9a87fd088 --- /dev/null +++ b/sdk/constructive-react/src/auth/orm/skills/signInOneTimeToken.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..7ada67374 --- /dev/null +++ b/sdk/constructive-react/src/auth/orm/skills/signOut.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..8c999d2b8 --- /dev/null +++ b/sdk/constructive-react/src/auth/orm/skills/signUp.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..e80b99583 --- /dev/null +++ b/sdk/constructive-react/src/auth/orm/skills/user.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..c9a3f4ac1 --- /dev/null +++ b/sdk/constructive-react/src/auth/orm/skills/verifyEmail.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..10b75c518 --- /dev/null +++ b/sdk/constructive-react/src/auth/orm/skills/verifyPassword.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..5541069f3 --- /dev/null +++ b/sdk/constructive-react/src/auth/orm/skills/verifyTotp.md @@ -0,0 +1,19 @@ +# 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/orm/types.ts b/sdk/constructive-react/src/auth/orm/types.ts new file mode 100644 index 000000000..7c1120bcd --- /dev/null +++ b/sdk/constructive-react/src/auth/orm/types.ts @@ -0,0 +1,8 @@ +/** + * Types re-export + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +// Re-export all types from input-types +export * from './input-types'; diff --git a/sdk/constructive-react/src/auth/schema-types.ts b/sdk/constructive-react/src/auth/schema-types.ts new file mode 100644 index 000000000..71af54297 --- /dev/null +++ b/sdk/constructive-react/src/auth/schema-types.ts @@ -0,0 +1,1416 @@ +/** + * GraphQL schema types for custom operations + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import type { + AuditLog, + ConnectedAccount, + CryptoAddress, + Email, + PhoneNumber, + RoleType, + User, + BigFloatFilter, + BigIntFilter, + BitStringFilter, + BooleanFilter, + DateFilter, + DatetimeFilter, + FloatFilter, + FullTextFilter, + IntFilter, + IntListFilter, + InternetAddressFilter, + JSONFilter, + StringFilter, + StringListFilter, + UUIDFilter, + UUIDListFilter, +} from './types'; +export type ConstructiveInternalTypeEmail = unknown; +export type ConstructiveInternalTypeImage = unknown; +export type ConstructiveInternalTypeOrigin = unknown; +/** 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 `CryptoAddress`. */ +export type CryptoAddressOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'ADDRESS_ASC' + | 'ADDRESS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `PhoneNumber`. */ +export type PhoneNumberOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NUMBER_ASC' + | 'NUMBER_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `ConnectedAccount`. */ +export type ConnectedAccountOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'SERVICE_ASC' + | 'SERVICE_DESC' + | 'IDENTIFIER_ASC' + | 'IDENTIFIER_DESC' + | 'CREATED_AT_ASC' + | '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 `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' + | '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'; +/** + * A condition to be used against `RoleType` object types. All fields are tested + * for equality and combined with a logical ‘and.’ + */ +export interface RoleTypeCondition { + /** Checks for equality with the object’s `id` field. */ + id?: number; + /** Checks for equality with the object’s `name` field. */ + name?: string; +} +/** A filter to be used against `RoleType` object types. All fields are combined with a logical ‘and.’ */ +export interface RoleTypeFilter { + /** Filter by the object’s `id` field. */ + id?: IntFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Checks for all expressions in this list. */ + and?: RoleTypeFilter[]; + /** Checks for any expressions in this list. */ + or?: RoleTypeFilter[]; + /** Negates the expression. */ + not?: RoleTypeFilter; +} +/** + * A condition to be used against `CryptoAddress` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface CryptoAddressCondition { + /** 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 `address` field. */ + address?: string; + /** 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 `CryptoAddress` object types. All fields are combined with a logical ‘and.’ */ +export interface CryptoAddressFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `address` field. */ + address?: StringFilter; + /** 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?: CryptoAddressFilter[]; + /** Checks for any expressions in this list. */ + or?: CryptoAddressFilter[]; + /** Negates the expression. */ + not?: CryptoAddressFilter; +} +/** + * A condition to be used against `PhoneNumber` object types. All fields are tested + * for equality and combined with a logical ‘and.’ + */ +export interface PhoneNumberCondition { + /** 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 `cc` field. */ + cc?: string; + /** Checks for equality with the object’s `number` field. */ + number?: string; + /** 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 `PhoneNumber` object types. All fields are combined with a logical ‘and.’ */ +export interface PhoneNumberFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `cc` field. */ + cc?: StringFilter; + /** Filter by the object’s `number` field. */ + number?: StringFilter; + /** 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?: PhoneNumberFilter[]; + /** Checks for any expressions in this list. */ + or?: PhoneNumberFilter[]; + /** Negates the expression. */ + not?: PhoneNumberFilter; +} +/** + * A condition to be used against `ConnectedAccount` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface ConnectedAccountCondition { + /** 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 `service` field. */ + service?: string; + /** Checks for equality with the object’s `identifier` field. */ + identifier?: string; + /** Checks for equality with the object’s `details` field. */ + details?: unknown; + /** Checks for equality with the object’s `isVerified` field. */ + isVerified?: 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 `ConnectedAccount` object types. All fields are combined with a logical ‘and.’ */ +export interface ConnectedAccountFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `service` field. */ + service?: StringFilter; + /** Filter by the object’s `identifier` field. */ + identifier?: StringFilter; + /** Filter by the object’s `details` field. */ + details?: JSONFilter; + /** Filter by the object’s `isVerified` field. */ + isVerified?: 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?: ConnectedAccountFilter[]; + /** Checks for any expressions in this list. */ + or?: 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.’ + */ +export interface AuditLogCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `event` field. */ + event?: string; + /** Checks for equality with the object’s `actorId` field. */ + actorId?: string; + /** Checks for equality with the object’s `origin` field. */ + origin?: ConstructiveInternalTypeOrigin; + /** Checks for equality with the object’s `userAgent` field. */ + userAgent?: string; + /** Checks for equality with the object’s `ipAddress` field. */ + ipAddress?: string; + /** Checks for equality with the object’s `success` field. */ + success?: boolean; + /** Checks for equality with the object’s `createdAt` field. */ + createdAt?: string; +} +/** A filter to be used against `AuditLog` object types. All fields are combined with a logical ‘and.’ */ +export interface AuditLogFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `event` field. */ + event?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `origin` field. */ + origin?: ConstructiveInternalTypeOriginFilter; + /** Filter by the object’s `userAgent` field. */ + userAgent?: StringFilter; + /** Filter by the object’s `ipAddress` field. */ + ipAddress?: InternetAddressFilter; + /** Filter by the object’s `success` field. */ + success?: BooleanFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: AuditLogFilter[]; + /** Checks for any expressions in this list. */ + or?: AuditLogFilter[]; + /** Negates the expression. */ + not?: AuditLogFilter; +} +/** A filter to be used against ConstructiveInternalTypeOrigin fields. All fields are combined with a logical ‘and.’ */ +export interface ConstructiveInternalTypeOriginFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: ConstructiveInternalTypeOrigin; + /** Not equal to the specified value. */ + notEqualTo?: ConstructiveInternalTypeOrigin; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: ConstructiveInternalTypeOrigin; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: ConstructiveInternalTypeOrigin; + /** Included in the specified list. */ + in?: ConstructiveInternalTypeOrigin[]; + /** Not included in the specified list. */ + notIn?: ConstructiveInternalTypeOrigin[]; + /** Less than the specified value. */ + lessThan?: ConstructiveInternalTypeOrigin; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: ConstructiveInternalTypeOrigin; + /** Greater than the specified value. */ + greaterThan?: ConstructiveInternalTypeOrigin; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: ConstructiveInternalTypeOrigin; + /** Contains the specified string (case-sensitive). */ + includes?: ConstructiveInternalTypeOrigin; + /** Does not contain the specified string (case-sensitive). */ + notIncludes?: ConstructiveInternalTypeOrigin; + /** Contains the specified string (case-insensitive). */ + includesInsensitive?: ConstructiveInternalTypeOrigin; + /** Does not contain the specified string (case-insensitive). */ + notIncludesInsensitive?: ConstructiveInternalTypeOrigin; + /** Starts with the specified string (case-sensitive). */ + startsWith?: ConstructiveInternalTypeOrigin; + /** Does not start with the specified string (case-sensitive). */ + notStartsWith?: ConstructiveInternalTypeOrigin; + /** Starts with the specified string (case-insensitive). */ + startsWithInsensitive?: ConstructiveInternalTypeOrigin; + /** Does not start with the specified string (case-insensitive). */ + notStartsWithInsensitive?: ConstructiveInternalTypeOrigin; + /** Ends with the specified string (case-sensitive). */ + endsWith?: ConstructiveInternalTypeOrigin; + /** Does not end with the specified string (case-sensitive). */ + notEndsWith?: ConstructiveInternalTypeOrigin; + /** Ends with the specified string (case-insensitive). */ + endsWithInsensitive?: ConstructiveInternalTypeOrigin; + /** Does not end with the specified string (case-insensitive). */ + notEndsWithInsensitive?: ConstructiveInternalTypeOrigin; + /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + like?: ConstructiveInternalTypeOrigin; + /** 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?: ConstructiveInternalTypeOrigin; + /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + likeInsensitive?: ConstructiveInternalTypeOrigin; + /** 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?: ConstructiveInternalTypeOrigin; + /** Equal to the specified value (case-insensitive). */ + equalToInsensitive?: string; + /** Not equal to the specified value (case-insensitive). */ + notEqualToInsensitive?: string; + /** Not equal to the specified value, treating null like an ordinary value (case-insensitive). */ + distinctFromInsensitive?: string; + /** Equal to the specified value, treating null like an ordinary value (case-insensitive). */ + notDistinctFromInsensitive?: string; + /** Included in the specified list (case-insensitive). */ + inInsensitive?: string[]; + /** Not included in the specified list (case-insensitive). */ + notInInsensitive?: string[]; + /** Less than the specified value (case-insensitive). */ + lessThanInsensitive?: string; + /** Less than or equal to the specified value (case-insensitive). */ + lessThanOrEqualToInsensitive?: string; + /** Greater than the specified value (case-insensitive). */ + greaterThanInsensitive?: string; + /** Greater than or equal to the specified value (case-insensitive). */ + greaterThanOrEqualToInsensitive?: string; +} +/** 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 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; +} +export interface SignOutInput { + clientMutationId?: string; +} +export interface SendAccountDeletionEmailInput { + clientMutationId?: string; +} +export interface CheckPasswordInput { + clientMutationId?: string; + password?: string; +} +export interface ConfirmDeleteAccountInput { + clientMutationId?: string; + userId?: string; + token?: string; +} +export interface SetPasswordInput { + clientMutationId?: string; + currentPassword?: string; + newPassword?: string; +} +export interface VerifyEmailInput { + clientMutationId?: string; + emailId?: string; + token?: string; +} +export interface ResetPasswordInput { + clientMutationId?: string; + roleId?: string; + resetToken?: string; + newPassword?: string; +} +export interface SignInOneTimeTokenInput { + clientMutationId?: string; + token?: string; + credentialKind?: string; +} +export interface SignInInput { + clientMutationId?: string; + email?: string; + password?: string; + rememberMe?: boolean; + credentialKind?: string; + csrfToken?: string; +} +export interface SignUpInput { + clientMutationId?: string; + email?: string; + password?: string; + rememberMe?: boolean; + credentialKind?: string; + csrfToken?: string; +} +export interface OneTimeTokenInput { + clientMutationId?: string; + email?: string; + password?: string; + origin?: ConstructiveInternalTypeOrigin; + rememberMe?: boolean; +} +export interface ExtendTokenExpiresInput { + clientMutationId?: string; + amount?: IntervalInput; +} +/** An interval of time that has passed where the smallest distinct unit is a second. */ +export interface IntervalInput { + /** + * A quantity of seconds. This is the only non-integer field, as all the other + * fields will dump their overflow into a smaller unit of time. Intervals don’t + * have a smaller unit than seconds. + */ + seconds?: number; + /** A quantity of minutes. */ + minutes?: number; + /** A quantity of hours. */ + hours?: number; + /** A quantity of days. */ + days?: number; + /** A quantity of months. */ + months?: number; + /** A quantity of years. */ + years?: number; +} +export interface ForgotPasswordInput { + clientMutationId?: string; + email?: ConstructiveInternalTypeEmail; +} +export interface SendVerificationEmailInput { + clientMutationId?: string; + email?: ConstructiveInternalTypeEmail; +} +export interface VerifyPasswordInput { + clientMutationId?: string; + password: string; +} +export interface VerifyTotpInput { + clientMutationId?: string; + totpValue: string; +} +export interface CreateRoleTypeInput { + clientMutationId?: string; + /** The `RoleType` to be created by this mutation. */ + roleType: RoleTypeInput; +} +/** An input for mutations affecting `RoleType` */ +export interface RoleTypeInput { + id: number; + name: string; +} +export interface CreateCryptoAddressInput { + clientMutationId?: string; + /** The `CryptoAddress` to be created by this mutation. */ + cryptoAddress: CryptoAddressInput; +} +/** An input for mutations affecting `CryptoAddress` */ +export interface CryptoAddressInput { + id?: string; + ownerId?: string; + address: string; + isVerified?: boolean; + isPrimary?: boolean; + createdAt?: string; + updatedAt?: string; +} +export interface CreatePhoneNumberInput { + clientMutationId?: string; + /** The `PhoneNumber` to be created by this mutation. */ + phoneNumber: PhoneNumberInput; +} +/** An input for mutations affecting `PhoneNumber` */ +export interface PhoneNumberInput { + id?: string; + ownerId?: string; + cc: string; + number: string; + isVerified?: boolean; + isPrimary?: boolean; + createdAt?: string; + updatedAt?: string; +} +export interface CreateConnectedAccountInput { + clientMutationId?: string; + /** The `ConnectedAccount` to be created by this mutation. */ + connectedAccount: ConnectedAccountInput; +} +/** An input for mutations affecting `ConnectedAccount` */ +export interface ConnectedAccountInput { + id?: string; + ownerId?: string; + /** The service used, e.g. `twitter` or `github`. */ + service: string; + /** A unique identifier for the user within the service */ + identifier: string; + /** Additional profile details extracted from this login method */ + details: unknown; + 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. */ + auditLog: AuditLogInput; +} +/** An input for mutations affecting `AuditLog` */ +export interface AuditLogInput { + id?: string; + event: string; + actorId?: string; + origin?: ConstructiveInternalTypeOrigin; + userAgent?: string; + ipAddress?: string; + success: boolean; + createdAt?: 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 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 UpdateCryptoAddressInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `CryptoAddress` being updated. */ + cryptoAddressPatch: CryptoAddressPatch; +} +/** Represents an update to a `CryptoAddress`. Fields that are set will be updated. */ +export interface CryptoAddressPatch { + id?: string; + ownerId?: string; + address?: string; + isVerified?: boolean; + isPrimary?: boolean; + createdAt?: string; + updatedAt?: string; +} +export interface UpdatePhoneNumberInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `PhoneNumber` being updated. */ + phoneNumberPatch: PhoneNumberPatch; +} +/** Represents an update to a `PhoneNumber`. Fields that are set will be updated. */ +export interface PhoneNumberPatch { + id?: string; + ownerId?: string; + cc?: string; + number?: string; + isVerified?: boolean; + isPrimary?: boolean; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateConnectedAccountInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `ConnectedAccount` being updated. */ + connectedAccountPatch: ConnectedAccountPatch; +} +/** Represents an update to a `ConnectedAccount`. Fields that are set will be updated. */ +export interface ConnectedAccountPatch { + id?: string; + ownerId?: string; + /** The service used, e.g. `twitter` or `github`. */ + service?: string; + /** A unique identifier for the user within the service */ + identifier?: string; + /** Additional profile details extracted from this login method */ + details?: unknown; + 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; + /** An object where the defined keys will be set on the `AuditLog` being updated. */ + auditLogPatch: AuditLogPatch; +} +/** Represents an update to a `AuditLog`. Fields that are set will be updated. */ +export interface AuditLogPatch { + id?: string; + event?: string; + actorId?: string; + origin?: ConstructiveInternalTypeOrigin; + userAgent?: string; + ipAddress?: string; + success?: boolean; + createdAt?: 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 DeleteRoleTypeInput { + clientMutationId?: string; + id: number; +} +export interface DeleteCryptoAddressInput { + clientMutationId?: string; + id: string; +} +export interface DeletePhoneNumberInput { + clientMutationId?: string; + id: string; +} +export interface DeleteConnectedAccountInput { + clientMutationId?: string; + id: string; +} +export interface DeleteEmailInput { + clientMutationId?: string; + id: string; +} +export interface DeleteAuditLogInput { + clientMutationId?: string; + id: string; +} +export interface DeleteUserInput { + clientMutationId?: string; + id: string; +} +/** 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 `CryptoAddress` values. */ +export interface CryptoAddressConnection { + nodes: CryptoAddress[]; + edges: CryptoAddressEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `PhoneNumber` values. */ +export interface PhoneNumberConnection { + nodes: PhoneNumber[]; + edges: PhoneNumberEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `ConnectedAccount` values. */ +export interface ConnectedAccountConnection { + nodes: ConnectedAccount[]; + edges: ConnectedAccountEdge[]; + 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[]; + edges: AuditLogEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `User` values. */ +export interface UserConnection { + nodes: User[]; + edges: UserEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** Root meta schema type */ +export interface MetaSchema { + tables: MetaTable[]; +} +export interface SignOutPayload { + clientMutationId?: string | null; +} +export interface SendAccountDeletionEmailPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export interface CheckPasswordPayload { + clientMutationId?: string | null; +} +export interface ConfirmDeleteAccountPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export interface SetPasswordPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export interface VerifyEmailPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export interface ResetPasswordPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export interface SignInOneTimeTokenPayload { + clientMutationId?: string | null; + result?: SignInOneTimeTokenRecord | null; +} +export interface SignInPayload { + clientMutationId?: string | null; + result?: SignInRecord | null; +} +export interface SignUpPayload { + clientMutationId?: string | null; + result?: SignUpRecord | null; +} +export interface OneTimeTokenPayload { + clientMutationId?: string | null; + result?: string | null; +} +export interface ExtendTokenExpiresPayload { + clientMutationId?: string | null; + result?: ExtendTokenExpiresRecord[] | null; +} +export interface ForgotPasswordPayload { + clientMutationId?: string | null; +} +export interface SendVerificationEmailPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export interface VerifyPasswordPayload { + clientMutationId?: string | null; + result?: Session | null; +} +export interface VerifyTotpPayload { + clientMutationId?: string | null; + result?: Session | null; +} +export interface CreateRoleTypePayload { + clientMutationId?: string | null; + /** The `RoleType` that was created by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; +} +export interface CreateCryptoAddressPayload { + clientMutationId?: string | null; + /** The `CryptoAddress` that was created by this mutation. */ + cryptoAddress?: CryptoAddress | null; + cryptoAddressEdge?: CryptoAddressEdge | null; +} +export interface CreatePhoneNumberPayload { + clientMutationId?: string | null; + /** The `PhoneNumber` that was created by this mutation. */ + phoneNumber?: PhoneNumber | null; + phoneNumberEdge?: PhoneNumberEdge | null; +} +export interface CreateConnectedAccountPayload { + clientMutationId?: string | null; + /** The `ConnectedAccount` that was created by this mutation. */ + 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 CreateUserPayload { + clientMutationId?: string | null; + /** The `User` that was created by this mutation. */ + user?: User | null; + userEdge?: UserEdge | null; +} +export interface UpdateRoleTypePayload { + clientMutationId?: string | null; + /** The `RoleType` that was updated by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; +} +export interface UpdateCryptoAddressPayload { + clientMutationId?: string | null; + /** The `CryptoAddress` that was updated by this mutation. */ + cryptoAddress?: CryptoAddress | null; + cryptoAddressEdge?: CryptoAddressEdge | null; +} +export interface UpdatePhoneNumberPayload { + clientMutationId?: string | null; + /** The `PhoneNumber` that was updated by this mutation. */ + phoneNumber?: PhoneNumber | null; + phoneNumberEdge?: PhoneNumberEdge | null; +} +export interface UpdateConnectedAccountPayload { + clientMutationId?: string | null; + /** The `ConnectedAccount` that was updated by this mutation. */ + 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 UpdateUserPayload { + clientMutationId?: string | null; + /** The `User` that was updated by this mutation. */ + user?: User | null; + userEdge?: UserEdge | null; +} +export interface DeleteRoleTypePayload { + clientMutationId?: string | null; + /** The `RoleType` that was deleted by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; +} +export interface DeleteCryptoAddressPayload { + clientMutationId?: string | null; + /** The `CryptoAddress` that was deleted by this mutation. */ + cryptoAddress?: CryptoAddress | null; + cryptoAddressEdge?: CryptoAddressEdge | null; +} +export interface DeletePhoneNumberPayload { + clientMutationId?: string | null; + /** The `PhoneNumber` that was deleted by this mutation. */ + phoneNumber?: PhoneNumber | null; + phoneNumberEdge?: PhoneNumberEdge | null; +} +export interface DeleteConnectedAccountPayload { + clientMutationId?: string | null; + /** The `ConnectedAccount` that was deleted by this mutation. */ + 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 DeleteUserPayload { + clientMutationId?: string | null; + /** The `User` that was deleted by this mutation. */ + user?: User | null; + userEdge?: UserEdge | null; +} +/** A `RoleType` edge in the connection. */ +export interface RoleTypeEdge { + cursor?: string | null; + /** The `RoleType` at the end of the edge. */ + node?: RoleType | null; +} +/** Information about pagination in a connection. */ +export interface PageInfo { + /** When paginating forwards, are there more items? */ + hasNextPage: boolean; + /** When paginating backwards, are there more items? */ + hasPreviousPage: boolean; + /** When paginating backwards, the cursor to continue. */ + startCursor?: string | null; + /** When paginating forwards, the cursor to continue. */ + endCursor?: string | null; +} +/** A `CryptoAddress` edge in the connection. */ +export interface CryptoAddressEdge { + cursor?: string | null; + /** The `CryptoAddress` at the end of the edge. */ + node?: CryptoAddress | null; +} +/** A `PhoneNumber` edge in the connection. */ +export interface PhoneNumberEdge { + cursor?: string | null; + /** The `PhoneNumber` at the end of the edge. */ + node?: PhoneNumber | null; +} +/** A `ConnectedAccount` edge in the connection. */ +export interface ConnectedAccountEdge { + cursor?: string | null; + /** 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 `User` edge in the connection. */ +export interface UserEdge { + cursor?: string | null; + /** The `User` at the end of the edge. */ + node?: User | null; +} +/** Information about a database table */ +export interface MetaTable { + name: string; + schemaName: string; + fields: MetaField[]; + indexes: MetaIndex[]; + constraints: MetaConstraints; + foreignKeyConstraints: MetaForeignKeyConstraint[]; + primaryKeyConstraints: MetaPrimaryKeyConstraint[]; + uniqueConstraints: MetaUniqueConstraint[]; + relations: MetaRelations; + inflection: MetaInflection; + query: MetaQuery; +} +export interface SignInOneTimeTokenRecord { + id?: string | null; + userId?: string | null; + accessToken?: string | null; + accessTokenExpiresAt?: string | null; + isVerified?: boolean | null; + totpEnabled?: boolean | null; +} +export interface SignInRecord { + id?: string | null; + userId?: string | null; + accessToken?: string | null; + accessTokenExpiresAt?: string | null; + isVerified?: boolean | null; + totpEnabled?: boolean | null; +} +export interface SignUpRecord { + id?: string | null; + userId?: string | null; + accessToken?: string | null; + accessTokenExpiresAt?: string | null; + isVerified?: boolean | null; + totpEnabled?: boolean | null; +} +export interface ExtendTokenExpiresRecord { + id?: string | null; + sessionId?: string | null; + expiresAt?: string | null; +} +export interface Session { + id: string; + userId?: string | null; + isAnonymous: boolean; + expiresAt: string; + revokedAt?: string | null; + origin?: ConstructiveInternalTypeOrigin | null; + ip?: string | null; + uagent?: string | null; + fingerprintMode: string; + lastPasswordVerified?: string | null; + lastMfaVerified?: string | null; + csrfSecret?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +/** Information about a table field/column */ +export interface MetaField { + name: string; + type: MetaType; + isNotNull: boolean; + hasDefault: boolean; +} +/** Information about a database index */ +export interface MetaIndex { + name: string; + isUnique: boolean; + isPrimary: boolean; + columns: string[]; + fields?: MetaField[] | null; +} +/** Table constraints */ +export interface MetaConstraints { + primaryKey?: MetaPrimaryKeyConstraint | null; + unique: MetaUniqueConstraint[]; + foreignKey: MetaForeignKeyConstraint[]; +} +/** Information about a foreign key constraint */ +export interface MetaForeignKeyConstraint { + name: string; + fields: MetaField[]; + referencedTable: string; + referencedFields: string[]; + refFields?: MetaField[] | null; + refTable?: MetaRefTable | null; +} +/** Information about a primary key constraint */ +export interface MetaPrimaryKeyConstraint { + name: string; + fields: MetaField[]; +} +/** Information about a unique constraint */ +export interface MetaUniqueConstraint { + name: string; + fields: MetaField[]; +} +/** Table relations */ +export interface MetaRelations { + belongsTo: MetaBelongsToRelation[]; + has: MetaHasRelation[]; + hasOne: MetaHasRelation[]; + hasMany: MetaHasRelation[]; + manyToMany: MetaManyToManyRelation[]; +} +/** Table inflection names */ +export interface MetaInflection { + tableType: string; + allRows: string; + connection: string; + edge: string; + filterType?: string | null; + orderByType: string; + conditionType: string; + patchType?: string | null; + createInputType: string; + createPayloadType: string; + updatePayloadType?: string | null; + deletePayloadType: string; +} +/** Table query/mutation names */ +export interface MetaQuery { + all: string; + one?: string | null; + create?: string | null; + update?: string | null; + delete?: string | null; +} +/** Information about a PostgreSQL type */ +export interface MetaType { + pgType: string; + gqlType: string; + isArray: boolean; + isNotNull?: boolean | null; + hasDefault?: boolean | null; +} +/** Reference to a related table */ +export interface MetaRefTable { + name: string; +} +/** A belongs-to (forward FK) relation */ +export interface MetaBelongsToRelation { + fieldName?: string | null; + isUnique: boolean; + type?: string | null; + keys: MetaField[]; + references: MetaRefTable; +} +/** A has-one or has-many (reverse FK) relation */ +export interface MetaHasRelation { + fieldName?: string | null; + isUnique: boolean; + type?: string | null; + keys: MetaField[]; + referencedBy: MetaRefTable; +} +/** A many-to-many relation via junction table */ +export interface MetaManyToManyRelation { + fieldName?: string | null; + type?: string | null; + junctionTable: MetaRefTable; + junctionLeftConstraint: MetaForeignKeyConstraint; + junctionLeftKeyAttributes: MetaField[]; + junctionRightConstraint: MetaForeignKeyConstraint; + junctionRightKeyAttributes: MetaField[]; + leftKeyAttributes: MetaField[]; + rightKeyAttributes: MetaField[]; + rightTable: MetaRefTable; +} diff --git a/sdk/constructive-react/src/auth/types.ts b/sdk/constructive-react/src/auth/types.ts new file mode 100644 index 000000000..400bc21ad --- /dev/null +++ b/sdk/constructive-react/src/auth/types.ts @@ -0,0 +1,288 @@ +/** + * Entity types and filter types + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export type ConstructiveInternalTypeEmail = unknown; +export type ConstructiveInternalTypeImage = unknown; +export type ConstructiveInternalTypeOrigin = unknown; +export interface RoleType { + id: number | null; + name: string | null; +} +export interface CryptoAddress { + id: string | null; + ownerId: string | null; + address: string | null; + isVerified: boolean | null; + isPrimary: boolean | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface PhoneNumber { + id: string | null; + ownerId: string | null; + cc: string | null; + number: string | null; + isVerified: boolean | null; + isPrimary: boolean | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface ConnectedAccount { + id: string | null; + ownerId: string | null; + service: string | null; + identifier: string | null; + details: unknown | null; + isVerified: boolean | null; + 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; + actorId: string | null; + origin: ConstructiveInternalTypeOrigin | null; + userAgent: string | null; + ipAddress: string | null; + success: boolean | null; + createdAt: 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 StringFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; + includes?: string; + notIncludes?: string; + includesInsensitive?: string; + notIncludesInsensitive?: string; + startsWith?: string; + notStartsWith?: string; + startsWithInsensitive?: string; + notStartsWithInsensitive?: string; + endsWith?: string; + notEndsWith?: string; + endsWithInsensitive?: string; + notEndsWithInsensitive?: string; + like?: string; + notLike?: string; + likeInsensitive?: string; + notLikeInsensitive?: string; +} +export interface IntFilter { + isNull?: boolean; + equalTo?: number; + notEqualTo?: number; + distinctFrom?: number; + notDistinctFrom?: number; + in?: number[]; + notIn?: number[]; + lessThan?: number; + lessThanOrEqualTo?: number; + greaterThan?: number; + greaterThanOrEqualTo?: number; +} +export interface FloatFilter { + isNull?: boolean; + equalTo?: number; + notEqualTo?: number; + distinctFrom?: number; + notDistinctFrom?: number; + in?: number[]; + notIn?: number[]; + lessThan?: number; + lessThanOrEqualTo?: number; + greaterThan?: number; + greaterThanOrEqualTo?: number; +} +export interface BooleanFilter { + isNull?: boolean; + equalTo?: boolean; + notEqualTo?: boolean; +} +export interface UUIDFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; +} +export interface DatetimeFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface DateFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface JSONFilter { + isNull?: boolean; + equalTo?: Record; + notEqualTo?: Record; + distinctFrom?: Record; + notDistinctFrom?: Record; + contains?: unknown; + containedBy?: unknown; + containsKey?: string; + containsAllKeys?: string[]; + containsAnyKeys?: string[]; +} +export interface BigIntFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface BigFloatFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface BitStringFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; +} +export interface InternetAddressFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; + contains?: string; + containedBy?: string; + containsOrContainedBy?: string; +} +export interface FullTextFilter { + matches?: string; +} +export interface StringListFilter { + isNull?: boolean; + equalTo?: string[]; + notEqualTo?: string[]; + distinctFrom?: string[]; + notDistinctFrom?: string[]; + lessThan?: string[]; + lessThanOrEqualTo?: string[]; + greaterThan?: string[]; + greaterThanOrEqualTo?: string[]; + contains?: string[]; + containedBy?: string[]; + overlaps?: string[]; + anyEqualTo?: string; + anyNotEqualTo?: string; + anyLessThan?: string; + anyLessThanOrEqualTo?: string; + anyGreaterThan?: string; + anyGreaterThanOrEqualTo?: string; +} +export interface IntListFilter { + isNull?: boolean; + equalTo?: number[]; + notEqualTo?: number[]; + distinctFrom?: number[]; + notDistinctFrom?: number[]; + lessThan?: number[]; + lessThanOrEqualTo?: number[]; + greaterThan?: number[]; + greaterThanOrEqualTo?: number[]; + contains?: number[]; + containedBy?: number[]; + overlaps?: number[]; + anyEqualTo?: number; + anyNotEqualTo?: number; + anyLessThan?: number; + anyLessThanOrEqualTo?: number; + anyGreaterThan?: number; + anyGreaterThanOrEqualTo?: number; +} +export interface UUIDListFilter { + isNull?: boolean; + equalTo?: string[]; + notEqualTo?: string[]; + distinctFrom?: string[]; + notDistinctFrom?: string[]; + lessThan?: string[]; + lessThanOrEqualTo?: string[]; + greaterThan?: string[]; + greaterThanOrEqualTo?: string[]; + contains?: string[]; + containedBy?: string[]; + overlaps?: string[]; + anyEqualTo?: string; + anyNotEqualTo?: string; + anyLessThan?: string; + anyLessThanOrEqualTo?: string; + anyGreaterThan?: string; + anyGreaterThanOrEqualTo?: string; +} diff --git a/sdk/constructive-react/src/index.ts b/sdk/constructive-react/src/index.ts new file mode 100644 index 000000000..640720bc2 --- /dev/null +++ b/sdk/constructive-react/src/index.ts @@ -0,0 +1,8 @@ +/** + * @constructive-io/react - Auto-generated React Query hooks and ORM client + * @generated by @constructive-io/graphql-codegen + */ +export * as admin from './admin'; +export * as auth from './auth'; +export * as objects from './objects'; +export * as public_ from './public'; diff --git a/sdk/constructive-react/src/objects/README.md b/sdk/constructive-react/src/objects/README.md new file mode 100644 index 000000000..6e9e681ab --- /dev/null +++ b/sdk/constructive-react/src/objects/README.md @@ -0,0 +1,54 @@ +# Generated GraphQL SDK + +

+ +

+ + + +## Overview + +- **Tables:** 5 +- **Custom queries:** 4 +- **Custom mutations:** 8 + +**Generators:** ORM, React Query + +## Modules + +### ORM Client (`./orm`) + +Prisma-like ORM client for programmatic GraphQL access. + +```typescript +import { createClient } from './orm'; + +const db = createClient({ + endpoint: 'https://api.example.com/graphql', +}); +``` + +See [orm/README.md](./orm/README.md) for full API reference. + +### React Query Hooks (`./hooks`) + +Type-safe React Query hooks for data fetching and mutations. + +```typescript +import { configure } from './hooks'; +import { useCarsQuery } from './hooks'; + +configure({ endpoint: 'https://api.example.com/graphql' }); +``` + +See [hooks/README.md](./hooks/README.md) for full hook reference. + +--- + +Built by the [Constructive](https://constructive.io) team. + +## Disclaimer + +AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED "AS IS", AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND. + +No developer or entity involved in creating this software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the code, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value. diff --git a/sdk/constructive-react/src/objects/hooks/README.md b/sdk/constructive-react/src/objects/hooks/README.md new file mode 100644 index 000000000..3ca2a948d --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/README.md @@ -0,0 +1,327 @@ +# React Query Hooks + +

+ +

+ + + +## Setup + +```typescript +import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; +import { configure } from './hooks'; + +configure({ + endpoint: 'https://api.example.com/graphql', + headers: { Authorization: 'Bearer ' }, +}); + +const queryClient = new QueryClient(); + +function App() { + return ( + + + + ); +} +``` + +## Hooks + +| Hook | Type | Description | +|------|------|-------------| +| `useGetAllQuery` | Query | List all getAll | +| `useCreateGetAllRecordMutation` | Mutation | Create a getAllRecord | +| `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 | +| `useRefsQuery` | Query | List all refs | +| `useRefQuery` | Query | Get one ref | +| `useCreateRefMutation` | Mutation | Create a ref | +| `useUpdateRefMutation` | Mutation | Update a ref | +| `useDeleteRefMutation` | Mutation | Delete a ref | +| `useStoresQuery` | Query | List all stores | +| `useStoreQuery` | Query | Get one store | +| `useCreateStoreMutation` | Mutation | Create a store | +| `useUpdateStoreMutation` | Mutation | Update a store | +| `useDeleteStoreMutation` | Mutation | Delete a store | +| `useCommitsQuery` | Query | List all commits | +| `useCommitQuery` | Query | Get one commit | +| `useCreateCommitMutation` | Mutation | Create a commit | +| `useUpdateCommitMutation` | Mutation | Update a commit | +| `useDeleteCommitMutation` | Mutation | Delete a commit | +| `useRevParseQuery` | Query | revParse | +| `useGetAllObjectsFromRootQuery` | Query | Reads and enables pagination through a set of `Object`. | +| `useGetPathObjectsFromRootQuery` | Query | Reads and enables pagination through a set of `Object`. | +| `useGetObjectAtPathQuery` | Query | getObjectAtPath | +| `useFreezeObjectsMutation` | Mutation | freezeObjects | +| `useInitEmptyRepoMutation` | Mutation | initEmptyRepo | +| `useRemoveNodeAtPathMutation` | Mutation | removeNodeAtPath | +| `useSetDataAtPathMutation` | Mutation | setDataAtPath | +| `useSetPropsAndCommitMutation` | Mutation | setPropsAndCommit | +| `useInsertNodeAtPathMutation` | Mutation | insertNodeAtPath | +| `useUpdateNodeAtPathMutation` | Mutation | updateNodeAtPath | +| `useSetAndCommitMutation` | Mutation | setAndCommit | + +## Table Hooks + +### GetAllRecord + +```typescript +// List all getAll +const { data, isLoading } = useGetAllQuery({ + selection: { fields: { path: true, data: true } }, +}); + +// Create a getAllRecord +const { mutate: create } = useCreateGetAllRecordMutation({ + selection: { fields: { id: true } }, +}); +create({ path: '', data: '' }); +``` + +### Object + +```typescript +// List all objects +const { data, isLoading } = useObjectsQuery({ + selection: { fields: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }, +}); + +// Get one object +const { data: item } = useObjectQuery({ + id: '', + selection: { fields: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }, +}); + +// Create a object +const { mutate: create } = useCreateObjectMutation({ + selection: { fields: { id: true } }, +}); +create({ hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }); +``` + +### Ref + +```typescript +// List all refs +const { data, isLoading } = useRefsQuery({ + selection: { fields: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }, +}); + +// Get one ref +const { data: item } = useRefQuery({ + id: '', + selection: { fields: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }, +}); + +// Create a ref +const { mutate: create } = useCreateRefMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '', databaseId: '', storeId: '', commitId: '' }); +``` + +### Store + +```typescript +// List all stores +const { data, isLoading } = useStoresQuery({ + selection: { fields: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }, +}); + +// Get one store +const { data: item } = useStoreQuery({ + id: '', + selection: { fields: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }, +}); + +// Create a store +const { mutate: create } = useCreateStoreMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '', databaseId: '', hash: '' }); +``` + +### Commit + +```typescript +// List all commits +const { data, isLoading } = useCommitsQuery({ + selection: { fields: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }, +}); + +// Get one commit +const { data: item } = useCommitQuery({ + id: '', + selection: { fields: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }, +}); + +// Create a commit +const { mutate: create } = useCreateCommitMutation({ + selection: { fields: { id: true } }, +}); +create({ message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }); +``` + +## Custom Operation Hooks + +### `useRevParseQuery` + +revParse + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `dbId` | UUID | + | `storeId` | UUID | + | `refname` | String | + +### `useGetAllObjectsFromRootQuery` + +Reads and enables pagination through a set of `Object`. + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `databaseId` | UUID | + | `id` | UUID | + | `first` | Int | + | `offset` | Int | + | `after` | Cursor | + +### `useGetPathObjectsFromRootQuery` + +Reads and enables pagination through a set of `Object`. + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `databaseId` | UUID | + | `id` | UUID | + | `path` | [String] | + | `first` | Int | + | `offset` | Int | + | `after` | Cursor | + +### `useGetObjectAtPathQuery` + +getObjectAtPath + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `dbId` | UUID | + | `storeId` | UUID | + | `path` | [String] | + | `refname` | String | + +### `useFreezeObjectsMutation` + +freezeObjects + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | FreezeObjectsInput (required) | + +### `useInitEmptyRepoMutation` + +initEmptyRepo + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | InitEmptyRepoInput (required) | + +### `useRemoveNodeAtPathMutation` + +removeNodeAtPath + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | RemoveNodeAtPathInput (required) | + +### `useSetDataAtPathMutation` + +setDataAtPath + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SetDataAtPathInput (required) | + +### `useSetPropsAndCommitMutation` + +setPropsAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SetPropsAndCommitInput (required) | + +### `useInsertNodeAtPathMutation` + +insertNodeAtPath + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | InsertNodeAtPathInput (required) | + +### `useUpdateNodeAtPathMutation` + +updateNodeAtPath + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | UpdateNodeAtPathInput (required) | + +### `useSetAndCommitMutation` + +setAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SetAndCommitInput (required) | + +--- + +Built by the [Constructive](https://constructive.io) team. + +## Disclaimer + +AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED "AS IS", AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND. + +No developer or entity involved in creating this software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the code, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value. diff --git a/sdk/constructive-react/src/objects/hooks/client.ts b/sdk/constructive-react/src/objects/hooks/client.ts new file mode 100644 index 000000000..47b9aa63f --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/client.ts @@ -0,0 +1,42 @@ +/** + * ORM client wrapper for React Query hooks + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { createClient } from '../orm'; +import type { OrmClientConfig } from '../orm/client'; + +export type { OrmClientConfig } from '../orm/client'; +export type { GraphQLAdapter, GraphQLError, QueryResult } from '../orm/client'; +export { GraphQLRequestError } from '../orm/client'; + +type OrmClientInstance = ReturnType; +let client: OrmClientInstance | null = null; + +/** + * Configure the ORM client for React Query hooks + * + * @example + * ```ts + * import { configure } from './generated/hooks'; + * + * configure({ + * endpoint: 'https://api.example.com/graphql', + * headers: { Authorization: 'Bearer ' }, + * }); + * ``` + */ +export function configure(config: OrmClientConfig): void { + client = createClient(config); +} + +/** + * Get the configured ORM client instance + * @throws Error if configure() has not been called + */ +export function getClient(): OrmClientInstance { + if (!client) { + throw new Error('ORM client not configured. Call configure() before using hooks.'); + } + return client; +} diff --git a/sdk/constructive-react/src/objects/hooks/index.ts b/sdk/constructive-react/src/objects/hooks/index.ts new file mode 100644 index 000000000..d2615956f --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/index.ts @@ -0,0 +1,39 @@ +/** + * GraphQL SDK + * @generated by @constructive-io/graphql-codegen + * + * Tables: GetAllRecord, Object, Ref, Store, Commit + * + * Usage: + * + * 1. Configure the client: + * ```ts + * import { configure } from './generated'; + * + * configure({ + * endpoint: 'https://api.example.com/graphql', + * headers: { Authorization: 'Bearer ' }, + * }); + * ``` + * + * 2. Use the hooks: + * ```tsx + * import { useCarsQuery, useCreateCarMutation } from './generated'; + * + * function MyComponent() { + * const { data, isLoading } = useCarsQuery({ + * selection: { fields: { id: true }, first: 10 }, + * }); + * const { mutate } = useCreateCarMutation({ + * selection: { fields: { id: true } }, + * }); + * // ... + * } + * ``` + */ +export * from './client'; +export * from './query-keys'; +export * from './mutation-keys'; +export * from './invalidation'; +export * from './queries'; +export * from './mutations'; diff --git a/sdk/constructive-react/src/objects/hooks/invalidation.ts b/sdk/constructive-react/src/objects/hooks/invalidation.ts new file mode 100644 index 000000000..f05662b38 --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/invalidation.ts @@ -0,0 +1,152 @@ +/** + * Cache invalidation helpers + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +// ============================================================================ +// Type-safe cache invalidation utilities +// +// Features: +// - Simple invalidation helpers per entity +// - Cascade invalidation for parent-child relationships +// - Remove helpers for delete operations +// ============================================================================ + +import type { QueryClient } from '@tanstack/react-query'; +import { getAllRecordKeys, objectKeys, refKeys, storeKeys, commitKeys } from './query-keys'; +/** +// ============================================================================ +// Invalidation Helpers +// ============================================================================ + + * Type-safe query invalidation helpers + * + * @example + * ```ts + * // Invalidate all user queries + * invalidate.user.all(queryClient); + * + * // Invalidate user lists + * invalidate.user.lists(queryClient); + * + * // Invalidate specific user + * invalidate.user.detail(queryClient, userId); + * ``` + */ +export const invalidate = { + /** Invalidate getAllRecord queries */ getAllRecord: { + /** Invalidate all getAllRecord queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: getAllRecordKeys.all, + }), + /** Invalidate getAllRecord list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: getAllRecordKeys.lists(), + }), + /** Invalidate a specific getAllRecord */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: getAllRecordKeys.detail(id), + }), + }, + /** Invalidate object queries */ object: { + /** Invalidate all object queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: objectKeys.all, + }), + /** Invalidate object list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: objectKeys.lists(), + }), + /** Invalidate a specific object */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: objectKeys.detail(id), + }), + }, + /** Invalidate ref queries */ ref: { + /** Invalidate all ref queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: refKeys.all, + }), + /** Invalidate ref list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: refKeys.lists(), + }), + /** Invalidate a specific ref */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: refKeys.detail(id), + }), + }, + /** Invalidate store queries */ store: { + /** Invalidate all store queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: storeKeys.all, + }), + /** Invalidate store list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: storeKeys.lists(), + }), + /** Invalidate a specific store */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: storeKeys.detail(id), + }), + }, + /** Invalidate commit queries */ commit: { + /** Invalidate all commit queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: commitKeys.all, + }), + /** Invalidate commit list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: commitKeys.lists(), + }), + /** Invalidate a specific commit */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: commitKeys.detail(id), + }), + }, +} as const; +/** + +// ============================================================================ +// Remove Helpers (for delete operations) +// ============================================================================ + + * Remove queries from cache (for delete operations) + * + * Use these when an entity is deleted to remove it from cache + * instead of just invalidating (which would trigger a refetch). + */ +export const remove = { + /** Remove getAllRecord from cache */ getAllRecord: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: getAllRecordKeys.detail(id), + }); + }, + /** Remove object from cache */ object: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: objectKeys.detail(id), + }); + }, + /** Remove ref from cache */ ref: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: refKeys.detail(id), + }); + }, + /** Remove store from cache */ store: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: storeKeys.detail(id), + }); + }, + /** Remove commit from cache */ commit: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: commitKeys.detail(id), + }); + }, +} as const; diff --git a/sdk/constructive-react/src/objects/hooks/mutation-keys.ts b/sdk/constructive-react/src/objects/hooks/mutation-keys.ts new file mode 100644 index 000000000..7492d3b27 --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/mutation-keys.ts @@ -0,0 +1,130 @@ +/** + * Centralized mutation key factory + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +// ============================================================================ +// Mutation keys for tracking in-flight mutations +// +// Benefits: +// - Track mutation state with useIsMutating +// - Implement optimistic updates with proper rollback +// - Deduplicate identical mutations +// - Coordinate related mutations +// ============================================================================ + +// ============================================================================ +// Entity Mutation Keys +// ============================================================================ + +export const getAllRecordMutationKeys = { + /** All getAllRecord mutation keys */ all: ['mutation', 'getallrecord'] as const, + /** Create getAllRecord mutation key */ create: () => + ['mutation', 'getallrecord', 'create'] as const, + /** Update getAllRecord mutation key */ update: (id: string | number) => + ['mutation', 'getallrecord', 'update', id] as const, + /** Delete getAllRecord mutation key */ delete: (id: string | number) => + ['mutation', 'getallrecord', 'delete', id] as const, +} as const; +export const objectMutationKeys = { + /** All object mutation keys */ all: ['mutation', 'object'] as const, + /** Create object mutation key */ create: () => ['mutation', 'object', 'create'] as const, + /** Update object mutation key */ update: (id: string | number) => + ['mutation', 'object', 'update', id] as const, + /** Delete object mutation key */ delete: (id: string | number) => + ['mutation', 'object', '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, + /** Update ref mutation key */ update: (id: string | number) => + ['mutation', 'ref', 'update', id] as const, + /** Delete ref mutation key */ delete: (id: string | number) => + ['mutation', 'ref', 'delete', id] as const, +} as const; +export const storeMutationKeys = { + /** All store mutation keys */ all: ['mutation', 'store'] as const, + /** Create store mutation key */ create: () => ['mutation', 'store', 'create'] as const, + /** Update store mutation key */ update: (id: string | number) => + ['mutation', 'store', 'update', id] as const, + /** Delete store mutation key */ delete: (id: string | number) => + ['mutation', 'store', '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, + /** Update commit mutation key */ update: (id: string | number) => + ['mutation', 'commit', 'update', id] as const, + /** Delete commit mutation key */ delete: (id: string | number) => + ['mutation', 'commit', 'delete', id] as const, +} as const; + +// ============================================================================ +// Custom Mutation Keys +// ============================================================================ + +export const customMutationKeys = { + /** Mutation key for freezeObjects */ freezeObjects: (identifier?: string) => + identifier + ? (['mutation', 'freezeObjects', identifier] as const) + : (['mutation', 'freezeObjects'] as const), + /** Mutation key for initEmptyRepo */ initEmptyRepo: (identifier?: string) => + identifier + ? (['mutation', 'initEmptyRepo', identifier] as const) + : (['mutation', 'initEmptyRepo'] as const), + /** Mutation key for removeNodeAtPath */ removeNodeAtPath: (identifier?: string) => + identifier + ? (['mutation', 'removeNodeAtPath', identifier] as const) + : (['mutation', 'removeNodeAtPath'] as const), + /** Mutation key for setDataAtPath */ setDataAtPath: (identifier?: string) => + identifier + ? (['mutation', 'setDataAtPath', identifier] as const) + : (['mutation', 'setDataAtPath'] as const), + /** Mutation key for setPropsAndCommit */ setPropsAndCommit: (identifier?: string) => + identifier + ? (['mutation', 'setPropsAndCommit', identifier] as const) + : (['mutation', 'setPropsAndCommit'] as const), + /** Mutation key for insertNodeAtPath */ insertNodeAtPath: (identifier?: string) => + identifier + ? (['mutation', 'insertNodeAtPath', identifier] as const) + : (['mutation', 'insertNodeAtPath'] as const), + /** Mutation key for updateNodeAtPath */ updateNodeAtPath: (identifier?: string) => + identifier + ? (['mutation', 'updateNodeAtPath', identifier] as const) + : (['mutation', 'updateNodeAtPath'] as const), + /** Mutation key for setAndCommit */ setAndCommit: (identifier?: string) => + identifier + ? (['mutation', 'setAndCommit', identifier] as const) + : (['mutation', 'setAndCommit'] as const), +} as const; +/** + +// ============================================================================ +// Unified Mutation Key Store +// ============================================================================ + + * Unified mutation key store + * + * Use this for tracking in-flight mutations with useIsMutating. + * + * @example + * ```ts + * import { useIsMutating } from '@tanstack/react-query'; + * import { mutationKeys } from './generated'; + * + * // Check if any user mutations are in progress + * const isMutatingUser = useIsMutating({ mutationKey: mutationKeys.user.all }); + * + * // Check if a specific user is being updated + * const isUpdating = useIsMutating({ mutationKey: mutationKeys.user.update(userId) }); + * ``` + */ +export const mutationKeys = { + getAllRecord: getAllRecordMutationKeys, + object: objectMutationKeys, + ref: refMutationKeys, + store: storeMutationKeys, + commit: commitMutationKeys, + custom: customMutationKeys, +} as const; diff --git a/sdk/constructive-react/src/objects/hooks/mutations/index.ts b/sdk/constructive-react/src/objects/hooks/mutations/index.ts new file mode 100644 index 000000000..af4d44d6c --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/mutations/index.ts @@ -0,0 +1,26 @@ +/** + * Mutation hooks barrel export + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export * from './useCreateGetAllRecordMutation'; +export * from './useCreateObjectMutation'; +export * from './useUpdateObjectMutation'; +export * from './useDeleteObjectMutation'; +export * from './useCreateRefMutation'; +export * from './useUpdateRefMutation'; +export * from './useDeleteRefMutation'; +export * from './useCreateStoreMutation'; +export * from './useUpdateStoreMutation'; +export * from './useDeleteStoreMutation'; +export * from './useCreateCommitMutation'; +export * from './useUpdateCommitMutation'; +export * from './useDeleteCommitMutation'; +export * from './useFreezeObjectsMutation'; +export * from './useInitEmptyRepoMutation'; +export * from './useRemoveNodeAtPathMutation'; +export * from './useSetDataAtPathMutation'; +export * from './useSetPropsAndCommitMutation'; +export * from './useInsertNodeAtPathMutation'; +export * from './useUpdateNodeAtPathMutation'; +export * from './useSetAndCommitMutation'; diff --git a/sdk/constructive-react/src/objects/hooks/mutations/useCreateCommitMutation.ts b/sdk/constructive-react/src/objects/hooks/mutations/useCreateCommitMutation.ts new file mode 100644 index 000000000..7e803c25a --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/mutations/useCreateCommitMutation.ts @@ -0,0 +1,80 @@ +/** + * Create mutation hook for Commit + * @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 { commitKeys } from '../query-keys'; +import { commitMutationKeys } from '../mutation-keys'; +import type { CommitSelect, CommitWithRelations, CreateCommitInput } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { CommitSelect, CommitWithRelations, CreateCommitInput } from '../../orm/input-types'; +/** + * Mutation hook for creating a Commit + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateCommitMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateCommitMutation( + params: { + selection: { + fields: S & CommitSelect; + } & HookStrictSelect, CommitSelect>; + } & Omit< + UseMutationOptions< + { + createCommit: { + commit: InferSelectResult; + }; + }, + Error, + CreateCommitInput['commit'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createCommit: { + commit: InferSelectResult; + }; + }, + Error, + CreateCommitInput['commit'] +>; +export function useCreateCommitMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: commitMutationKeys.create(), + mutationFn: (data: CreateCommitInput['commit']) => + getClient() + .commit.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: commitKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/objects/hooks/mutations/useCreateGetAllRecordMutation.ts b/sdk/constructive-react/src/objects/hooks/mutations/useCreateGetAllRecordMutation.ts new file mode 100644 index 000000000..d7761690b --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/mutations/useCreateGetAllRecordMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for GetAllRecord + * @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 { getAllRecordKeys } from '../query-keys'; +import { getAllRecordMutationKeys } from '../mutation-keys'; +import type { + GetAllRecordSelect, + GetAllRecordWithRelations, + CreateGetAllRecordInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + GetAllRecordSelect, + GetAllRecordWithRelations, + CreateGetAllRecordInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a GetAllRecord + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateGetAllRecordMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateGetAllRecordMutation( + params: { + selection: { + fields: S & GetAllRecordSelect; + } & HookStrictSelect, GetAllRecordSelect>; + } & Omit< + UseMutationOptions< + { + createGetAllRecord: { + getAllRecord: InferSelectResult; + }; + }, + Error, + CreateGetAllRecordInput['getAllRecord'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createGetAllRecord: { + getAllRecord: InferSelectResult; + }; + }, + Error, + CreateGetAllRecordInput['getAllRecord'] +>; +export function useCreateGetAllRecordMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: getAllRecordMutationKeys.create(), + mutationFn: (data: CreateGetAllRecordInput['getAllRecord']) => + getClient() + .getAllRecord.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: getAllRecordKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/objects/hooks/mutations/useCreateObjectMutation.ts b/sdk/constructive-react/src/objects/hooks/mutations/useCreateObjectMutation.ts new file mode 100644 index 000000000..c9d4c9828 --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/mutations/useCreateObjectMutation.ts @@ -0,0 +1,80 @@ +/** + * Create mutation hook for Object + * @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 { objectKeys } from '../query-keys'; +import { objectMutationKeys } from '../mutation-keys'; +import type { ObjectSelect, ObjectWithRelations, CreateObjectInput } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ObjectSelect, ObjectWithRelations, CreateObjectInput } from '../../orm/input-types'; +/** + * Mutation hook for creating a Object + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateObjectMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateObjectMutation( + params: { + selection: { + fields: S & ObjectSelect; + } & HookStrictSelect, ObjectSelect>; + } & Omit< + UseMutationOptions< + { + createObject: { + object: InferSelectResult; + }; + }, + Error, + CreateObjectInput['object'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createObject: { + object: InferSelectResult; + }; + }, + Error, + CreateObjectInput['object'] +>; +export function useCreateObjectMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: objectMutationKeys.create(), + mutationFn: (data: CreateObjectInput['object']) => + getClient() + .object.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: objectKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/objects/hooks/mutations/useCreateRefMutation.ts b/sdk/constructive-react/src/objects/hooks/mutations/useCreateRefMutation.ts new file mode 100644 index 000000000..6f26a224e --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/mutations/useCreateRefMutation.ts @@ -0,0 +1,80 @@ +/** + * Create mutation hook for Ref + * @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 { refKeys } from '../query-keys'; +import { refMutationKeys } from '../mutation-keys'; +import type { RefSelect, RefWithRelations, CreateRefInput } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { RefSelect, RefWithRelations, CreateRefInput } from '../../orm/input-types'; +/** + * Mutation hook for creating a Ref + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateRefMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateRefMutation( + params: { + selection: { + fields: S & RefSelect; + } & HookStrictSelect, RefSelect>; + } & Omit< + UseMutationOptions< + { + createRef: { + ref: InferSelectResult; + }; + }, + Error, + CreateRefInput['ref'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createRef: { + ref: InferSelectResult; + }; + }, + Error, + CreateRefInput['ref'] +>; +export function useCreateRefMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: refMutationKeys.create(), + mutationFn: (data: CreateRefInput['ref']) => + getClient() + .ref.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: refKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/objects/hooks/mutations/useCreateStoreMutation.ts b/sdk/constructive-react/src/objects/hooks/mutations/useCreateStoreMutation.ts new file mode 100644 index 000000000..54c3b2ab9 --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/mutations/useCreateStoreMutation.ts @@ -0,0 +1,80 @@ +/** + * Create mutation hook for Store + * @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 { storeKeys } from '../query-keys'; +import { storeMutationKeys } from '../mutation-keys'; +import type { StoreSelect, StoreWithRelations, CreateStoreInput } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { StoreSelect, StoreWithRelations, CreateStoreInput } from '../../orm/input-types'; +/** + * Mutation hook for creating a Store + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateStoreMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateStoreMutation( + params: { + selection: { + fields: S & StoreSelect; + } & HookStrictSelect, StoreSelect>; + } & Omit< + UseMutationOptions< + { + createStore: { + store: InferSelectResult; + }; + }, + Error, + CreateStoreInput['store'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createStore: { + store: InferSelectResult; + }; + }, + Error, + CreateStoreInput['store'] +>; +export function useCreateStoreMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: storeMutationKeys.create(), + mutationFn: (data: CreateStoreInput['store']) => + getClient() + .store.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: storeKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/objects/hooks/mutations/useDeleteCommitMutation.ts b/sdk/constructive-react/src/objects/hooks/mutations/useDeleteCommitMutation.ts new file mode 100644 index 000000000..435da8423 --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/mutations/useDeleteCommitMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for Commit + * @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 { commitKeys } from '../query-keys'; +import { commitMutationKeys } from '../mutation-keys'; +import type { CommitSelect, CommitWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { CommitSelect, CommitWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a Commit with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteCommitMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteCommitMutation( + params: { + selection: { + fields: S & CommitSelect; + } & HookStrictSelect, CommitSelect>; + } & Omit< + UseMutationOptions< + { + deleteCommit: { + commit: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteCommit: { + commit: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteCommitMutation( + 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: commitMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .commit.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: commitKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: commitKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/objects/hooks/mutations/useDeleteObjectMutation.ts b/sdk/constructive-react/src/objects/hooks/mutations/useDeleteObjectMutation.ts new file mode 100644 index 000000000..c1027ecd6 --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/mutations/useDeleteObjectMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for Object + * @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 { objectKeys } from '../query-keys'; +import { objectMutationKeys } from '../mutation-keys'; +import type { ObjectSelect, ObjectWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ObjectSelect, ObjectWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a Object with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteObjectMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteObjectMutation( + params: { + selection: { + fields: S & ObjectSelect; + } & HookStrictSelect, ObjectSelect>; + } & Omit< + UseMutationOptions< + { + deleteObject: { + object: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteObject: { + object: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteObjectMutation( + 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: objectMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .object.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: objectKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: objectKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/objects/hooks/mutations/useDeleteRefMutation.ts b/sdk/constructive-react/src/objects/hooks/mutations/useDeleteRefMutation.ts new file mode 100644 index 000000000..5059da529 --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/mutations/useDeleteRefMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for Ref + * @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 { refKeys } from '../query-keys'; +import { refMutationKeys } from '../mutation-keys'; +import type { RefSelect, RefWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { RefSelect, RefWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a Ref with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteRefMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteRefMutation( + params: { + selection: { + fields: S & RefSelect; + } & HookStrictSelect, RefSelect>; + } & Omit< + UseMutationOptions< + { + deleteRef: { + ref: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteRef: { + ref: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteRefMutation( + 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: refMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .ref.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: refKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: refKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/objects/hooks/mutations/useDeleteStoreMutation.ts b/sdk/constructive-react/src/objects/hooks/mutations/useDeleteStoreMutation.ts new file mode 100644 index 000000000..d78ea3bb5 --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/mutations/useDeleteStoreMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for Store + * @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 { storeKeys } from '../query-keys'; +import { storeMutationKeys } from '../mutation-keys'; +import type { StoreSelect, StoreWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { StoreSelect, StoreWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a Store with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteStoreMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteStoreMutation( + params: { + selection: { + fields: S & StoreSelect; + } & HookStrictSelect, StoreSelect>; + } & Omit< + UseMutationOptions< + { + deleteStore: { + store: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteStore: { + store: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteStoreMutation( + 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: storeMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .store.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: storeKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: storeKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/objects/hooks/mutations/useFreezeObjectsMutation.ts b/sdk/constructive-react/src/objects/hooks/mutations/useFreezeObjectsMutation.ts new file mode 100644 index 000000000..334bdcf31 --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/mutations/useFreezeObjectsMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for freezeObjects + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } 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 { customMutationKeys } from '../mutation-keys'; +import type { FreezeObjectsVariables } from '../../orm/mutation'; +import type { FreezeObjectsPayloadSelect, FreezeObjectsPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { FreezeObjectsVariables } from '../../orm/mutation'; +export type { FreezeObjectsPayloadSelect } from '../../orm/input-types'; +export function useFreezeObjectsMutation( + params: { + selection: { + fields: S & FreezeObjectsPayloadSelect; + } & HookStrictSelect, FreezeObjectsPayloadSelect>; + } & Omit< + UseMutationOptions< + { + freezeObjects: InferSelectResult | null; + }, + Error, + FreezeObjectsVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + freezeObjects: InferSelectResult | null; + }, + Error, + FreezeObjectsVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.freezeObjects(), + mutationFn: (variables: FreezeObjectsVariables) => + getClient() + .mutation.freezeObjects(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/objects/hooks/mutations/useInitEmptyRepoMutation.ts b/sdk/constructive-react/src/objects/hooks/mutations/useInitEmptyRepoMutation.ts new file mode 100644 index 000000000..f82dc9e02 --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/mutations/useInitEmptyRepoMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for initEmptyRepo + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } 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 { customMutationKeys } from '../mutation-keys'; +import type { InitEmptyRepoVariables } from '../../orm/mutation'; +import type { InitEmptyRepoPayloadSelect, InitEmptyRepoPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { InitEmptyRepoVariables } from '../../orm/mutation'; +export type { InitEmptyRepoPayloadSelect } from '../../orm/input-types'; +export function useInitEmptyRepoMutation( + params: { + selection: { + fields: S & InitEmptyRepoPayloadSelect; + } & HookStrictSelect, InitEmptyRepoPayloadSelect>; + } & Omit< + UseMutationOptions< + { + initEmptyRepo: InferSelectResult | null; + }, + Error, + InitEmptyRepoVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + initEmptyRepo: InferSelectResult | null; + }, + Error, + InitEmptyRepoVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.initEmptyRepo(), + mutationFn: (variables: InitEmptyRepoVariables) => + getClient() + .mutation.initEmptyRepo(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/objects/hooks/mutations/useInsertNodeAtPathMutation.ts b/sdk/constructive-react/src/objects/hooks/mutations/useInsertNodeAtPathMutation.ts new file mode 100644 index 000000000..9da7a1bd5 --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/mutations/useInsertNodeAtPathMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for insertNodeAtPath + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } 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 { customMutationKeys } from '../mutation-keys'; +import type { InsertNodeAtPathVariables } from '../../orm/mutation'; +import type { InsertNodeAtPathPayloadSelect, InsertNodeAtPathPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { InsertNodeAtPathVariables } from '../../orm/mutation'; +export type { InsertNodeAtPathPayloadSelect } from '../../orm/input-types'; +export function useInsertNodeAtPathMutation( + params: { + selection: { + fields: S & InsertNodeAtPathPayloadSelect; + } & HookStrictSelect, InsertNodeAtPathPayloadSelect>; + } & Omit< + UseMutationOptions< + { + insertNodeAtPath: InferSelectResult | null; + }, + Error, + InsertNodeAtPathVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + insertNodeAtPath: InferSelectResult | null; + }, + Error, + InsertNodeAtPathVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.insertNodeAtPath(), + mutationFn: (variables: InsertNodeAtPathVariables) => + getClient() + .mutation.insertNodeAtPath(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/objects/hooks/mutations/useRemoveNodeAtPathMutation.ts b/sdk/constructive-react/src/objects/hooks/mutations/useRemoveNodeAtPathMutation.ts new file mode 100644 index 000000000..e44daf6bf --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/mutations/useRemoveNodeAtPathMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for removeNodeAtPath + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } 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 { customMutationKeys } from '../mutation-keys'; +import type { RemoveNodeAtPathVariables } from '../../orm/mutation'; +import type { RemoveNodeAtPathPayloadSelect, RemoveNodeAtPathPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { RemoveNodeAtPathVariables } from '../../orm/mutation'; +export type { RemoveNodeAtPathPayloadSelect } from '../../orm/input-types'; +export function useRemoveNodeAtPathMutation( + params: { + selection: { + fields: S & RemoveNodeAtPathPayloadSelect; + } & HookStrictSelect, RemoveNodeAtPathPayloadSelect>; + } & Omit< + UseMutationOptions< + { + removeNodeAtPath: InferSelectResult | null; + }, + Error, + RemoveNodeAtPathVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + removeNodeAtPath: InferSelectResult | null; + }, + Error, + RemoveNodeAtPathVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.removeNodeAtPath(), + mutationFn: (variables: RemoveNodeAtPathVariables) => + getClient() + .mutation.removeNodeAtPath(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/objects/hooks/mutations/useSetAndCommitMutation.ts b/sdk/constructive-react/src/objects/hooks/mutations/useSetAndCommitMutation.ts new file mode 100644 index 000000000..efbed7692 --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/mutations/useSetAndCommitMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for setAndCommit + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } 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 { customMutationKeys } from '../mutation-keys'; +import type { SetAndCommitVariables } from '../../orm/mutation'; +import type { SetAndCommitPayloadSelect, SetAndCommitPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { SetAndCommitVariables } from '../../orm/mutation'; +export type { SetAndCommitPayloadSelect } from '../../orm/input-types'; +export function useSetAndCommitMutation( + params: { + selection: { + fields: S & SetAndCommitPayloadSelect; + } & HookStrictSelect, SetAndCommitPayloadSelect>; + } & Omit< + UseMutationOptions< + { + setAndCommit: InferSelectResult | null; + }, + Error, + SetAndCommitVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + setAndCommit: InferSelectResult | null; + }, + Error, + SetAndCommitVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.setAndCommit(), + mutationFn: (variables: SetAndCommitVariables) => + getClient() + .mutation.setAndCommit(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/objects/hooks/mutations/useSetDataAtPathMutation.ts b/sdk/constructive-react/src/objects/hooks/mutations/useSetDataAtPathMutation.ts new file mode 100644 index 000000000..63f39667a --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/mutations/useSetDataAtPathMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for setDataAtPath + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } 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 { customMutationKeys } from '../mutation-keys'; +import type { SetDataAtPathVariables } from '../../orm/mutation'; +import type { SetDataAtPathPayloadSelect, SetDataAtPathPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { SetDataAtPathVariables } from '../../orm/mutation'; +export type { SetDataAtPathPayloadSelect } from '../../orm/input-types'; +export function useSetDataAtPathMutation( + params: { + selection: { + fields: S & SetDataAtPathPayloadSelect; + } & HookStrictSelect, SetDataAtPathPayloadSelect>; + } & Omit< + UseMutationOptions< + { + setDataAtPath: InferSelectResult | null; + }, + Error, + SetDataAtPathVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + setDataAtPath: InferSelectResult | null; + }, + Error, + SetDataAtPathVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.setDataAtPath(), + mutationFn: (variables: SetDataAtPathVariables) => + getClient() + .mutation.setDataAtPath(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/objects/hooks/mutations/useSetPropsAndCommitMutation.ts b/sdk/constructive-react/src/objects/hooks/mutations/useSetPropsAndCommitMutation.ts new file mode 100644 index 000000000..49e6bbcd0 --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/mutations/useSetPropsAndCommitMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for setPropsAndCommit + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } 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 { customMutationKeys } from '../mutation-keys'; +import type { SetPropsAndCommitVariables } from '../../orm/mutation'; +import type { + SetPropsAndCommitPayloadSelect, + SetPropsAndCommitPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { SetPropsAndCommitVariables } from '../../orm/mutation'; +export type { SetPropsAndCommitPayloadSelect } from '../../orm/input-types'; +export function useSetPropsAndCommitMutation( + params: { + selection: { + fields: S & SetPropsAndCommitPayloadSelect; + } & HookStrictSelect, SetPropsAndCommitPayloadSelect>; + } & Omit< + UseMutationOptions< + { + setPropsAndCommit: InferSelectResult | null; + }, + Error, + SetPropsAndCommitVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + setPropsAndCommit: InferSelectResult | null; + }, + Error, + SetPropsAndCommitVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.setPropsAndCommit(), + mutationFn: (variables: SetPropsAndCommitVariables) => + getClient() + .mutation.setPropsAndCommit(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/objects/hooks/mutations/useUpdateCommitMutation.ts b/sdk/constructive-react/src/objects/hooks/mutations/useUpdateCommitMutation.ts new file mode 100644 index 000000000..d03e177ec --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/mutations/useUpdateCommitMutation.ts @@ -0,0 +1,102 @@ +/** + * Update mutation hook for Commit + * @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 { commitKeys } from '../query-keys'; +import { commitMutationKeys } from '../mutation-keys'; +import type { CommitSelect, CommitWithRelations, CommitPatch } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { CommitSelect, CommitWithRelations, CommitPatch } from '../../orm/input-types'; +/** + * Mutation hook for updating a Commit + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateCommitMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', commitPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateCommitMutation( + params: { + selection: { + fields: S & CommitSelect; + } & HookStrictSelect, CommitSelect>; + } & Omit< + UseMutationOptions< + { + updateCommit: { + commit: InferSelectResult; + }; + }, + Error, + { + id: string; + commitPatch: CommitPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateCommit: { + commit: InferSelectResult; + }; + }, + Error, + { + id: string; + commitPatch: CommitPatch; + } +>; +export function useUpdateCommitMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + commitPatch: CommitPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: commitMutationKeys.all, + mutationFn: ({ id, commitPatch }: { id: string; commitPatch: CommitPatch }) => + getClient() + .commit.update({ + where: { + id, + }, + data: commitPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: commitKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: commitKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/objects/hooks/mutations/useUpdateNodeAtPathMutation.ts b/sdk/constructive-react/src/objects/hooks/mutations/useUpdateNodeAtPathMutation.ts new file mode 100644 index 000000000..79e3ebe21 --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/mutations/useUpdateNodeAtPathMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for updateNodeAtPath + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } 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 { customMutationKeys } from '../mutation-keys'; +import type { UpdateNodeAtPathVariables } from '../../orm/mutation'; +import type { UpdateNodeAtPathPayloadSelect, UpdateNodeAtPathPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { UpdateNodeAtPathVariables } from '../../orm/mutation'; +export type { UpdateNodeAtPathPayloadSelect } from '../../orm/input-types'; +export function useUpdateNodeAtPathMutation( + params: { + selection: { + fields: S & UpdateNodeAtPathPayloadSelect; + } & HookStrictSelect, UpdateNodeAtPathPayloadSelect>; + } & Omit< + UseMutationOptions< + { + updateNodeAtPath: InferSelectResult | null; + }, + Error, + UpdateNodeAtPathVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + updateNodeAtPath: InferSelectResult | null; + }, + Error, + UpdateNodeAtPathVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.updateNodeAtPath(), + mutationFn: (variables: UpdateNodeAtPathVariables) => + getClient() + .mutation.updateNodeAtPath(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/objects/hooks/mutations/useUpdateObjectMutation.ts b/sdk/constructive-react/src/objects/hooks/mutations/useUpdateObjectMutation.ts new file mode 100644 index 000000000..3c60807de --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/mutations/useUpdateObjectMutation.ts @@ -0,0 +1,102 @@ +/** + * Update mutation hook for Object + * @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 { objectKeys } from '../query-keys'; +import { objectMutationKeys } from '../mutation-keys'; +import type { ObjectSelect, ObjectWithRelations, ObjectPatch } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ObjectSelect, ObjectWithRelations, ObjectPatch } from '../../orm/input-types'; +/** + * Mutation hook for updating a Object + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateObjectMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', objectPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateObjectMutation( + params: { + selection: { + fields: S & ObjectSelect; + } & HookStrictSelect, ObjectSelect>; + } & Omit< + UseMutationOptions< + { + updateObject: { + object: InferSelectResult; + }; + }, + Error, + { + id: string; + objectPatch: ObjectPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateObject: { + object: InferSelectResult; + }; + }, + Error, + { + id: string; + objectPatch: ObjectPatch; + } +>; +export function useUpdateObjectMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + objectPatch: ObjectPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: objectMutationKeys.all, + mutationFn: ({ id, objectPatch }: { id: string; objectPatch: ObjectPatch }) => + getClient() + .object.update({ + where: { + id, + }, + data: objectPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: objectKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: objectKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/objects/hooks/mutations/useUpdateRefMutation.ts b/sdk/constructive-react/src/objects/hooks/mutations/useUpdateRefMutation.ts new file mode 100644 index 000000000..e9b413324 --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/mutations/useUpdateRefMutation.ts @@ -0,0 +1,102 @@ +/** + * Update mutation hook for Ref + * @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 { refKeys } from '../query-keys'; +import { refMutationKeys } from '../mutation-keys'; +import type { RefSelect, RefWithRelations, RefPatch } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { RefSelect, RefWithRelations, RefPatch } from '../../orm/input-types'; +/** + * Mutation hook for updating a Ref + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateRefMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', refPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateRefMutation( + params: { + selection: { + fields: S & RefSelect; + } & HookStrictSelect, RefSelect>; + } & Omit< + UseMutationOptions< + { + updateRef: { + ref: InferSelectResult; + }; + }, + Error, + { + id: string; + refPatch: RefPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateRef: { + ref: InferSelectResult; + }; + }, + Error, + { + id: string; + refPatch: RefPatch; + } +>; +export function useUpdateRefMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + refPatch: RefPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: refMutationKeys.all, + mutationFn: ({ id, refPatch }: { id: string; refPatch: RefPatch }) => + getClient() + .ref.update({ + where: { + id, + }, + data: refPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: refKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: refKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/objects/hooks/mutations/useUpdateStoreMutation.ts b/sdk/constructive-react/src/objects/hooks/mutations/useUpdateStoreMutation.ts new file mode 100644 index 000000000..8ddedfd0a --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/mutations/useUpdateStoreMutation.ts @@ -0,0 +1,102 @@ +/** + * Update mutation hook for Store + * @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 { storeKeys } from '../query-keys'; +import { storeMutationKeys } from '../mutation-keys'; +import type { StoreSelect, StoreWithRelations, StorePatch } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { StoreSelect, StoreWithRelations, StorePatch } from '../../orm/input-types'; +/** + * Mutation hook for updating a Store + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateStoreMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', storePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateStoreMutation( + params: { + selection: { + fields: S & StoreSelect; + } & HookStrictSelect, StoreSelect>; + } & Omit< + UseMutationOptions< + { + updateStore: { + store: InferSelectResult; + }; + }, + Error, + { + id: string; + storePatch: StorePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateStore: { + store: InferSelectResult; + }; + }, + Error, + { + id: string; + storePatch: StorePatch; + } +>; +export function useUpdateStoreMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + storePatch: StorePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: storeMutationKeys.all, + mutationFn: ({ id, storePatch }: { id: string; storePatch: StorePatch }) => + getClient() + .store.update({ + where: { + id, + }, + data: storePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: storeKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: storeKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/objects/hooks/queries/index.ts b/sdk/constructive-react/src/objects/hooks/queries/index.ts new file mode 100644 index 000000000..39e7edd6a --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/queries/index.ts @@ -0,0 +1,18 @@ +/** + * Query hooks barrel export + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export * from './useGetAllQuery'; +export * from './useObjectsQuery'; +export * from './useObjectQuery'; +export * from './useRefsQuery'; +export * from './useRefQuery'; +export * from './useStoresQuery'; +export * from './useStoreQuery'; +export * from './useCommitsQuery'; +export * from './useCommitQuery'; +export * from './useRevParseQuery'; +export * from './useGetAllObjectsFromRootQuery'; +export * from './useGetPathObjectsFromRootQuery'; +export * from './useGetObjectAtPathQuery'; diff --git a/sdk/constructive-react/src/objects/hooks/queries/useCommitQuery.ts b/sdk/constructive-react/src/objects/hooks/queries/useCommitQuery.ts new file mode 100644 index 000000000..99bfe6e3c --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/queries/useCommitQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for Commit + * @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 { commitKeys } from '../query-keys'; +import type { CommitSelect, CommitWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { CommitSelect, CommitWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const commitQueryKey = commitKeys.detail; +/** + * Query hook for fetching a single Commit + * + * @example + * ```tsx + * const { data, isLoading } = useCommitQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useCommitQuery< + S extends CommitSelect, + TData = { + commit: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, CommitSelect>; + } & Omit< + UseQueryOptions< + { + commit: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useCommitQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: commitKeys.detail(params.id), + queryFn: () => + getClient() + .commit.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single Commit without React hooks + * + * @example + * ```ts + * const data = await fetchCommitQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchCommitQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, CommitSelect>; +}): Promise<{ + commit: InferSelectResult | null; +}>; +export async function fetchCommitQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .commit.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single Commit for SSR or cache warming + * + * @example + * ```ts + * await prefetchCommitQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchCommitQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, CommitSelect>; + } +): Promise; +export async function prefetchCommitQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: commitKeys.detail(params.id), + queryFn: () => + getClient() + .commit.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/objects/hooks/queries/useCommitsQuery.ts b/sdk/constructive-react/src/objects/hooks/queries/useCommitsQuery.ts new file mode 100644 index 000000000..1ec69f698 --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/queries/useCommitsQuery.ts @@ -0,0 +1,139 @@ +/** + * List query hook for Commit + * @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 { commitKeys } from '../query-keys'; +import type { + CommitSelect, + CommitWithRelations, + CommitFilter, + CommitOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + CommitSelect, + CommitWithRelations, + CommitFilter, + CommitOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const commitsQueryKey = commitKeys.list; +/** + * Query hook for fetching Commit list + * + * @example + * ```tsx + * const { data, isLoading } = useCommitsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useCommitsQuery< + S extends CommitSelect, + TData = { + commits: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, CommitSelect>; + } & Omit< + UseQueryOptions< + { + commits: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useCommitsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: commitKeys.list(args), + queryFn: () => getClient().commit.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch Commit list without React hooks + * + * @example + * ```ts + * const data = await fetchCommitsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchCommitsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, CommitSelect>; +}): Promise<{ + commits: ConnectionResult>; +}>; +export async function fetchCommitsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs(params.selection); + return getClient().commit.findMany(args).unwrap(); +} +/** + * Prefetch Commit list for SSR or cache warming + * + * @example + * ```ts + * await prefetchCommitsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchCommitsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, CommitSelect>; + } +): Promise; +export async function prefetchCommitsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: commitKeys.list(args), + queryFn: () => getClient().commit.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/objects/hooks/queries/useGetAllObjectsFromRootQuery.ts b/sdk/constructive-react/src/objects/hooks/queries/useGetAllObjectsFromRootQuery.ts new file mode 100644 index 000000000..250ee6c18 --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/queries/useGetAllObjectsFromRootQuery.ts @@ -0,0 +1,108 @@ +/** + * Custom query hook for getAllObjectsFromRoot + * @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 { GetAllObjectsFromRootVariables } from '../../orm/query'; +import type { ObjectConnection } from '../../orm/input-types'; +export type { GetAllObjectsFromRootVariables } from '../../orm/query'; +/** Query key factory - re-exported from query-keys.ts */ +export const getAllObjectsFromRootQueryKey = customQueryKeys.getAllObjectsFromRoot; +/** + * Reads and enables pagination through a set of `Object`. + * + * @example + * ```tsx + * const { data, isLoading } = useGetAllObjectsFromRootQuery({ variables: { databaseId, id, first, offset, after } }); + * + * if (data?.getAllObjectsFromRoot) { + * console.log(data.getAllObjectsFromRoot); + * } + * ``` + */ +export function useGetAllObjectsFromRootQuery< + TData = { + getAllObjectsFromRoot: ObjectConnection | null; + }, +>( + params?: { + variables?: GetAllObjectsFromRootVariables; + } & Omit< + UseQueryOptions< + { + getAllObjectsFromRoot: ObjectConnection | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useGetAllObjectsFromRootQuery< + TData = { + getAllObjectsFromRoot: ObjectConnection | null; + }, +>( + params?: { + variables?: GetAllObjectsFromRootVariables; + } & Omit< + UseQueryOptions< + { + getAllObjectsFromRoot: ObjectConnection | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult { + const variables = params?.variables ?? {}; + const { variables: _variables, ...queryOptions } = params ?? {}; + void _variables; + return useQuery({ + queryKey: getAllObjectsFromRootQueryKey(variables), + queryFn: () => getClient().query.getAllObjectsFromRoot(variables).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch getAllObjectsFromRoot without React hooks + * + * @example + * ```ts + * const data = await fetchGetAllObjectsFromRootQuery({ variables: { databaseId, id, first, offset, after } }); + * ``` + */ +export async function fetchGetAllObjectsFromRootQuery(params?: { + variables?: GetAllObjectsFromRootVariables; +}) { + const variables = params?.variables ?? {}; + return getClient().query.getAllObjectsFromRoot(variables).unwrap(); +} +/** + * Prefetch getAllObjectsFromRoot for SSR or cache warming + * + * @example + * ```ts + * await prefetchGetAllObjectsFromRootQuery(queryClient, { variables: { databaseId, id, first, offset, after } }); + * ``` + */ +export async function prefetchGetAllObjectsFromRootQuery( + queryClient: QueryClient, + params?: { + variables?: GetAllObjectsFromRootVariables; + } +): Promise { + const variables = params?.variables ?? {}; + await queryClient.prefetchQuery({ + queryKey: getAllObjectsFromRootQueryKey(variables), + queryFn: () => getClient().query.getAllObjectsFromRoot(variables).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/objects/hooks/queries/useGetAllQuery.ts b/sdk/constructive-react/src/objects/hooks/queries/useGetAllQuery.ts new file mode 100644 index 000000000..fa74ed4aa --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/queries/useGetAllQuery.ts @@ -0,0 +1,145 @@ +/** + * List query hook for GetAllRecord + * @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 { getAllRecordKeys } from '../query-keys'; +import type { + GetAllRecordSelect, + GetAllRecordWithRelations, + GetAllRecordFilter, + GetAllRecordsOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + GetAllRecordSelect, + GetAllRecordWithRelations, + GetAllRecordFilter, + GetAllRecordsOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const getAllQueryKey = getAllRecordKeys.list; +/** + * Query hook for fetching GetAllRecord list + * + * @example + * ```tsx + * const { data, isLoading } = useGetAllQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useGetAllQuery< + S extends GetAllRecordSelect, + TData = { + getAll: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, GetAllRecordSelect>; + } & Omit< + UseQueryOptions< + { + getAll: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useGetAllQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: getAllRecordKeys.list(args), + queryFn: () => getClient().getAllRecord.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch GetAllRecord list without React hooks + * + * @example + * ```ts + * const data = await fetchGetAllQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchGetAllQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, GetAllRecordSelect>; +}): Promise<{ + getAll: ConnectionResult>; +}>; +export async function fetchGetAllQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().getAllRecord.findMany(args).unwrap(); +} +/** + * Prefetch GetAllRecord list for SSR or cache warming + * + * @example + * ```ts + * await prefetchGetAllQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchGetAllQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, GetAllRecordSelect>; + } +): Promise; +export async function prefetchGetAllQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: getAllRecordKeys.list(args), + queryFn: () => getClient().getAllRecord.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/objects/hooks/queries/useGetObjectAtPathQuery.ts b/sdk/constructive-react/src/objects/hooks/queries/useGetObjectAtPathQuery.ts new file mode 100644 index 000000000..f36831e83 --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/queries/useGetObjectAtPathQuery.ts @@ -0,0 +1,139 @@ +/** + * Custom query hook for getObjectAtPath + * @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 { GetObjectAtPathVariables } from '../../orm/query'; +import type { ObjectSelect, Object } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { GetObjectAtPathVariables } from '../../orm/query'; +export type { ObjectSelect } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const getObjectAtPathQueryKey = customQueryKeys.getObjectAtPath; +/** + * Query hook for getObjectAtPath + * + * @example + * ```tsx + * const { data, isLoading } = useGetObjectAtPathQuery({ variables: { dbId, storeId, path, refname }, selection: { fields: { id: true } } }); + * + * if (data?.getObjectAtPath) { + * console.log(data.getObjectAtPath); + * } + * ``` + */ +export function useGetObjectAtPathQuery< + S extends ObjectSelect, + TData = { + getObjectAtPath: InferSelectResult | null; + }, +>( + params: { + variables?: GetObjectAtPathVariables; + selection: { + fields: S & ObjectSelect; + } & HookStrictSelect, ObjectSelect>; + } & Omit< + UseQueryOptions< + { + getObjectAtPath: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useGetObjectAtPathQuery( + params: { + variables?: GetObjectAtPathVariables; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const variables = params.variables ?? {}; + const args = buildSelectionArgs(params.selection); + const { variables: _variables, selection: _selection, ...queryOptions } = params ?? {}; + void _variables; + void _selection; + return useQuery({ + queryKey: getObjectAtPathQueryKey(variables), + queryFn: () => + getClient() + .query.getObjectAtPath(variables, { + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch getObjectAtPath without React hooks + * + * @example + * ```ts + * const data = await fetchGetObjectAtPathQuery({ variables: { dbId, storeId, path, refname }, selection: { fields: { id: true } } }); + * ``` + */ +export async function fetchGetObjectAtPathQuery(params: { + variables?: GetObjectAtPathVariables; + selection: { + fields: S & ObjectSelect; + } & HookStrictSelect, ObjectSelect>; +}): Promise<{ + getObjectAtPath: InferSelectResult | null; +}>; +export async function fetchGetObjectAtPathQuery(params: { + variables?: GetObjectAtPathVariables; + selection: SelectionConfig; +}) { + const variables = params.variables ?? {}; + const args = buildSelectionArgs(params.selection); + return getClient() + .query.getObjectAtPath(variables, { + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch getObjectAtPath for SSR or cache warming + * + * @example + * ```ts + * await prefetchGetObjectAtPathQuery(queryClient, { variables: { dbId, storeId, path, refname }, selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchGetObjectAtPathQuery( + queryClient: QueryClient, + params: { + variables?: GetObjectAtPathVariables; + selection: { + fields: S & ObjectSelect; + } & HookStrictSelect, ObjectSelect>; + } +): Promise; +export async function prefetchGetObjectAtPathQuery( + queryClient: QueryClient, + params: { + variables?: GetObjectAtPathVariables; + selection: SelectionConfig; + } +): Promise { + const variables = params.variables ?? {}; + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: getObjectAtPathQueryKey(variables), + queryFn: () => + getClient() + .query.getObjectAtPath(variables, { + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/objects/hooks/queries/useGetPathObjectsFromRootQuery.ts b/sdk/constructive-react/src/objects/hooks/queries/useGetPathObjectsFromRootQuery.ts new file mode 100644 index 000000000..32bb021f8 --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/queries/useGetPathObjectsFromRootQuery.ts @@ -0,0 +1,108 @@ +/** + * Custom query hook for getPathObjectsFromRoot + * @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 { GetPathObjectsFromRootVariables } from '../../orm/query'; +import type { ObjectConnection } from '../../orm/input-types'; +export type { GetPathObjectsFromRootVariables } from '../../orm/query'; +/** Query key factory - re-exported from query-keys.ts */ +export const getPathObjectsFromRootQueryKey = customQueryKeys.getPathObjectsFromRoot; +/** + * Reads and enables pagination through a set of `Object`. + * + * @example + * ```tsx + * const { data, isLoading } = useGetPathObjectsFromRootQuery({ variables: { databaseId, id, path, first, offset, after } }); + * + * if (data?.getPathObjectsFromRoot) { + * console.log(data.getPathObjectsFromRoot); + * } + * ``` + */ +export function useGetPathObjectsFromRootQuery< + TData = { + getPathObjectsFromRoot: ObjectConnection | null; + }, +>( + params?: { + variables?: GetPathObjectsFromRootVariables; + } & Omit< + UseQueryOptions< + { + getPathObjectsFromRoot: ObjectConnection | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useGetPathObjectsFromRootQuery< + TData = { + getPathObjectsFromRoot: ObjectConnection | null; + }, +>( + params?: { + variables?: GetPathObjectsFromRootVariables; + } & Omit< + UseQueryOptions< + { + getPathObjectsFromRoot: ObjectConnection | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult { + const variables = params?.variables ?? {}; + const { variables: _variables, ...queryOptions } = params ?? {}; + void _variables; + return useQuery({ + queryKey: getPathObjectsFromRootQueryKey(variables), + queryFn: () => getClient().query.getPathObjectsFromRoot(variables).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch getPathObjectsFromRoot without React hooks + * + * @example + * ```ts + * const data = await fetchGetPathObjectsFromRootQuery({ variables: { databaseId, id, path, first, offset, after } }); + * ``` + */ +export async function fetchGetPathObjectsFromRootQuery(params?: { + variables?: GetPathObjectsFromRootVariables; +}) { + const variables = params?.variables ?? {}; + return getClient().query.getPathObjectsFromRoot(variables).unwrap(); +} +/** + * Prefetch getPathObjectsFromRoot for SSR or cache warming + * + * @example + * ```ts + * await prefetchGetPathObjectsFromRootQuery(queryClient, { variables: { databaseId, id, path, first, offset, after } }); + * ``` + */ +export async function prefetchGetPathObjectsFromRootQuery( + queryClient: QueryClient, + params?: { + variables?: GetPathObjectsFromRootVariables; + } +): Promise { + const variables = params?.variables ?? {}; + await queryClient.prefetchQuery({ + queryKey: getPathObjectsFromRootQueryKey(variables), + queryFn: () => getClient().query.getPathObjectsFromRoot(variables).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/objects/hooks/queries/useObjectQuery.ts b/sdk/constructive-react/src/objects/hooks/queries/useObjectQuery.ts new file mode 100644 index 000000000..a846ce36d --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/queries/useObjectQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for Object + * @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 { objectKeys } from '../query-keys'; +import type { ObjectSelect, ObjectWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ObjectSelect, ObjectWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const getNodeAtPathQueryKey = objectKeys.detail; +/** + * Query hook for fetching a single Object + * + * @example + * ```tsx + * const { data, isLoading } = useObjectQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useObjectQuery< + S extends ObjectSelect, + TData = { + getNodeAtPath: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ObjectSelect>; + } & Omit< + UseQueryOptions< + { + getNodeAtPath: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useObjectQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: objectKeys.detail(params.id), + queryFn: () => + getClient() + .object.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single Object without React hooks + * + * @example + * ```ts + * const data = await fetchObjectQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchObjectQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ObjectSelect>; +}): Promise<{ + getNodeAtPath: InferSelectResult | null; +}>; +export async function fetchObjectQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .object.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single Object for SSR or cache warming + * + * @example + * ```ts + * await prefetchObjectQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchObjectQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ObjectSelect>; + } +): Promise; +export async function prefetchObjectQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: objectKeys.detail(params.id), + queryFn: () => + getClient() + .object.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/objects/hooks/queries/useObjectsQuery.ts b/sdk/constructive-react/src/objects/hooks/queries/useObjectsQuery.ts new file mode 100644 index 000000000..963b611ad --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/queries/useObjectsQuery.ts @@ -0,0 +1,139 @@ +/** + * List query hook for Object + * @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 { objectKeys } from '../query-keys'; +import type { + ObjectSelect, + ObjectWithRelations, + ObjectFilter, + ObjectOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + ObjectSelect, + ObjectWithRelations, + ObjectFilter, + ObjectOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const objectsQueryKey = objectKeys.list; +/** + * Query hook for fetching Object list + * + * @example + * ```tsx + * const { data, isLoading } = useObjectsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useObjectsQuery< + S extends ObjectSelect, + TData = { + objects: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ObjectSelect>; + } & Omit< + UseQueryOptions< + { + objects: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useObjectsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: objectKeys.list(args), + queryFn: () => getClient().object.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch Object list without React hooks + * + * @example + * ```ts + * const data = await fetchObjectsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchObjectsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ObjectSelect>; +}): Promise<{ + objects: ConnectionResult>; +}>; +export async function fetchObjectsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs(params.selection); + return getClient().object.findMany(args).unwrap(); +} +/** + * Prefetch Object list for SSR or cache warming + * + * @example + * ```ts + * await prefetchObjectsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchObjectsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ObjectSelect>; + } +): Promise; +export async function prefetchObjectsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: objectKeys.list(args), + queryFn: () => getClient().object.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/objects/hooks/queries/useRefQuery.ts b/sdk/constructive-react/src/objects/hooks/queries/useRefQuery.ts new file mode 100644 index 000000000..b07bd3470 --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/queries/useRefQuery.ts @@ -0,0 +1,135 @@ +/** + * Single item query hook for Ref + * @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 { refKeys } from '../query-keys'; +import type { RefSelect, RefWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { RefSelect, RefWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const refQueryKey = refKeys.detail; +/** + * Query hook for fetching a single Ref + * + * @example + * ```tsx + * const { data, isLoading } = useRefQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useRefQuery< + S extends RefSelect, + TData = { + ref: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, RefSelect>; + } & Omit< + UseQueryOptions< + { + ref: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useRefQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: refKeys.detail(params.id), + queryFn: () => + getClient() + .ref.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single Ref without React hooks + * + * @example + * ```ts + * const data = await fetchRefQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchRefQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, RefSelect>; +}): Promise<{ + ref: InferSelectResult | null; +}>; +export async function fetchRefQuery(params: { id: string; selection: SelectionConfig }) { + const args = buildSelectionArgs(params.selection); + return getClient() + .ref.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single Ref for SSR or cache warming + * + * @example + * ```ts + * await prefetchRefQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchRefQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, RefSelect>; + } +): Promise; +export async function prefetchRefQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: refKeys.detail(params.id), + queryFn: () => + getClient() + .ref.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/objects/hooks/queries/useRefsQuery.ts b/sdk/constructive-react/src/objects/hooks/queries/useRefsQuery.ts new file mode 100644 index 000000000..fbe141158 --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/queries/useRefsQuery.ts @@ -0,0 +1,129 @@ +/** + * List query hook for Ref + * @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 { refKeys } from '../query-keys'; +import type { RefSelect, RefWithRelations, RefFilter, RefOrderBy } from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { RefSelect, RefWithRelations, RefFilter, RefOrderBy } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const refsQueryKey = refKeys.list; +/** + * Query hook for fetching Ref list + * + * @example + * ```tsx + * const { data, isLoading } = useRefsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useRefsQuery< + S extends RefSelect, + TData = { + refs: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, RefSelect>; + } & Omit< + UseQueryOptions< + { + refs: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useRefsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: refKeys.list(args), + queryFn: () => getClient().ref.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch Ref list without React hooks + * + * @example + * ```ts + * const data = await fetchRefsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchRefsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, RefSelect>; +}): Promise<{ + refs: ConnectionResult>; +}>; +export async function fetchRefsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs(params.selection); + return getClient().ref.findMany(args).unwrap(); +} +/** + * Prefetch Ref list for SSR or cache warming + * + * @example + * ```ts + * await prefetchRefsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchRefsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, RefSelect>; + } +): Promise; +export async function prefetchRefsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: refKeys.list(args), + queryFn: () => getClient().ref.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/objects/hooks/queries/useRevParseQuery.ts b/sdk/constructive-react/src/objects/hooks/queries/useRevParseQuery.ts new file mode 100644 index 000000000..d8b6226fb --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/queries/useRevParseQuery.ts @@ -0,0 +1,105 @@ +/** + * Custom query hook for revParse + * @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 { RevParseVariables } from '../../orm/query'; +export type { RevParseVariables } from '../../orm/query'; +/** Query key factory - re-exported from query-keys.ts */ +export const revParseQueryKey = customQueryKeys.revParse; +/** + * Query hook for revParse + * + * @example + * ```tsx + * const { data, isLoading } = useRevParseQuery({ variables: { dbId, storeId, refname } }); + * + * if (data?.revParse) { + * console.log(data.revParse); + * } + * ``` + */ +export function useRevParseQuery< + TData = { + revParse: string | null; + }, +>( + params?: { + variables?: RevParseVariables; + } & Omit< + UseQueryOptions< + { + revParse: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useRevParseQuery< + TData = { + revParse: string | null; + }, +>( + params?: { + variables?: RevParseVariables; + } & Omit< + UseQueryOptions< + { + revParse: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult { + const variables = params?.variables ?? {}; + const { variables: _variables, ...queryOptions } = params ?? {}; + void _variables; + return useQuery({ + queryKey: revParseQueryKey(variables), + queryFn: () => getClient().query.revParse(variables).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch revParse without React hooks + * + * @example + * ```ts + * const data = await fetchRevParseQuery({ variables: { dbId, storeId, refname } }); + * ``` + */ +export async function fetchRevParseQuery(params?: { variables?: RevParseVariables }) { + const variables = params?.variables ?? {}; + return getClient().query.revParse(variables).unwrap(); +} +/** + * Prefetch revParse for SSR or cache warming + * + * @example + * ```ts + * await prefetchRevParseQuery(queryClient, { variables: { dbId, storeId, refname } }); + * ``` + */ +export async function prefetchRevParseQuery( + queryClient: QueryClient, + params?: { + variables?: RevParseVariables; + } +): Promise { + const variables = params?.variables ?? {}; + await queryClient.prefetchQuery({ + queryKey: revParseQueryKey(variables), + queryFn: () => getClient().query.revParse(variables).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/objects/hooks/queries/useStoreQuery.ts b/sdk/constructive-react/src/objects/hooks/queries/useStoreQuery.ts new file mode 100644 index 000000000..984f8bf06 --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/queries/useStoreQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for Store + * @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 { storeKeys } from '../query-keys'; +import type { StoreSelect, StoreWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { StoreSelect, StoreWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const storeQueryKey = storeKeys.detail; +/** + * Query hook for fetching a single Store + * + * @example + * ```tsx + * const { data, isLoading } = useStoreQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useStoreQuery< + S extends StoreSelect, + TData = { + store: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, StoreSelect>; + } & Omit< + UseQueryOptions< + { + store: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useStoreQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: storeKeys.detail(params.id), + queryFn: () => + getClient() + .store.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single Store without React hooks + * + * @example + * ```ts + * const data = await fetchStoreQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchStoreQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, StoreSelect>; +}): Promise<{ + store: InferSelectResult | null; +}>; +export async function fetchStoreQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .store.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single Store for SSR or cache warming + * + * @example + * ```ts + * await prefetchStoreQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchStoreQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, StoreSelect>; + } +): Promise; +export async function prefetchStoreQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: storeKeys.detail(params.id), + queryFn: () => + getClient() + .store.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/objects/hooks/queries/useStoresQuery.ts b/sdk/constructive-react/src/objects/hooks/queries/useStoresQuery.ts new file mode 100644 index 000000000..07374bd06 --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/queries/useStoresQuery.ts @@ -0,0 +1,139 @@ +/** + * List query hook for Store + * @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 { storeKeys } from '../query-keys'; +import type { + StoreSelect, + StoreWithRelations, + StoreFilter, + StoreOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + StoreSelect, + StoreWithRelations, + StoreFilter, + StoreOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const storesQueryKey = storeKeys.list; +/** + * Query hook for fetching Store list + * + * @example + * ```tsx + * const { data, isLoading } = useStoresQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useStoresQuery< + S extends StoreSelect, + TData = { + stores: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, StoreSelect>; + } & Omit< + UseQueryOptions< + { + stores: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useStoresQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: storeKeys.list(args), + queryFn: () => getClient().store.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch Store list without React hooks + * + * @example + * ```ts + * const data = await fetchStoresQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchStoresQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, StoreSelect>; +}): Promise<{ + stores: ConnectionResult>; +}>; +export async function fetchStoresQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs(params.selection); + return getClient().store.findMany(args).unwrap(); +} +/** + * Prefetch Store list for SSR or cache warming + * + * @example + * ```ts + * await prefetchStoresQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchStoresQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, StoreSelect>; + } +): Promise; +export async function prefetchStoresQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: storeKeys.list(args), + queryFn: () => getClient().store.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/objects/hooks/query-keys.ts b/sdk/constructive-react/src/objects/hooks/query-keys.ts new file mode 100644 index 000000000..33724a9e8 --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/query-keys.ts @@ -0,0 +1,112 @@ +/** + * Centralized query key factory + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +// ============================================================================ +// This file provides a centralized, type-safe query key factory following +// the lukemorales query-key-factory pattern for React Query. +// +// Benefits: +// - Single source of truth for all query keys +// - Type-safe key access with autocomplete +// - Hierarchical invalidation (invalidate all 'user.*' queries) +// - Scoped keys for parent-child relationships +// ============================================================================ + +// ============================================================================ +// Entity Query Keys +// ============================================================================ + +export const getAllRecordKeys = { + /** All getAllRecord queries */ all: ['getallrecord'] as const, + /** List query keys */ lists: () => [...getAllRecordKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...getAllRecordKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...getAllRecordKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...getAllRecordKeys.details(), id] as const, +} as const; +export const objectKeys = { + /** All object queries */ all: ['object'] as const, + /** List query keys */ lists: () => [...objectKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...objectKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...objectKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...objectKeys.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, + /** List query key with variables */ list: (variables?: object) => + [...refKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...refKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...refKeys.details(), id] as const, +} as const; +export const storeKeys = { + /** All store queries */ all: ['store'] as const, + /** List query keys */ lists: () => [...storeKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...storeKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...storeKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...storeKeys.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, + /** List query key with variables */ list: (variables?: object) => + [...commitKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...commitKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...commitKeys.details(), id] as const, +} as const; + +// ============================================================================ +// Custom Query Keys +// ============================================================================ + +export const customQueryKeys = { + /** Query key for revParse */ revParse: (variables?: object) => ['revParse', variables] as const, + /** Query key for getAllObjectsFromRoot */ getAllObjectsFromRoot: (variables?: object) => + ['getAllObjectsFromRoot', variables] as const, + /** Query key for getPathObjectsFromRoot */ getPathObjectsFromRoot: (variables?: object) => + ['getPathObjectsFromRoot', variables] as const, + /** Query key for getObjectAtPath */ getObjectAtPath: (variables?: object) => + ['getObjectAtPath', variables] as const, +} as const; +/** + +// ============================================================================ +// Unified Query Key Store +// ============================================================================ + + * Unified query key store + * + * Use this for type-safe query key access across your application. + * + * @example + * ```ts + * // Invalidate all user queries + * queryClient.invalidateQueries({ queryKey: queryKeys.user.all }); + * + * // Invalidate user list queries + * queryClient.invalidateQueries({ queryKey: queryKeys.user.lists() }); + * + * // Invalidate specific user + * queryClient.invalidateQueries({ queryKey: queryKeys.user.detail(userId) }); + * ``` + */ +export const queryKeys = { + getAllRecord: getAllRecordKeys, + object: objectKeys, + ref: refKeys, + store: storeKeys, + commit: commitKeys, + custom: customQueryKeys, +} as const; +/** Type representing all available query key scopes */ +export type QueryKeyScope = keyof typeof queryKeys; diff --git a/sdk/constructive-react/src/objects/hooks/selection.ts b/sdk/constructive-react/src/objects/hooks/selection.ts new file mode 100644 index 000000000..2952aab64 --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/selection.ts @@ -0,0 +1,60 @@ +/** + * Selection helpers for React Query hooks + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export interface SelectionConfig { + fields: TFields; +} + +export interface ListSelectionConfig extends SelectionConfig { + where?: TWhere; + orderBy?: TOrderBy[]; + first?: number; + last?: number; + after?: string; + before?: string; + offset?: number; +} + +function ensureSelectionFields( + selection: SelectionConfig | undefined +): asserts selection is SelectionConfig { + if (!selection || typeof selection !== 'object' || !('fields' in selection)) { + throw new Error( + 'Invalid hook params: `selection.fields` is required. Example: { selection: { fields: { id: true } } }' + ); + } +} + +export function buildSelectionArgs(selection: SelectionConfig): { + select: TFields; +} { + ensureSelectionFields(selection); + return { select: selection.fields }; +} + +export function buildListSelectionArgs( + selection: ListSelectionConfig +): { + select: TFields; + where?: TWhere; + orderBy?: TOrderBy[]; + first?: number; + last?: number; + after?: string; + before?: string; + offset?: number; +} { + ensureSelectionFields(selection); + return { + select: selection.fields, + where: selection.where, + orderBy: selection.orderBy, + first: selection.first, + last: selection.last, + after: selection.after, + before: selection.before, + offset: selection.offset, + }; +} diff --git a/sdk/constructive-react/src/objects/hooks/skills/commit.md b/sdk/constructive-react/src/objects/hooks/skills/commit.md new file mode 100644 index 000000000..9e7270ced --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/skills/commit.md @@ -0,0 +1,34 @@ +# hooks-commit + + + +React Query hooks for Commit data operations + +## 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/objects/hooks/skills/freezeObjects.md b/sdk/constructive-react/src/objects/hooks/skills/freezeObjects.md new file mode 100644 index 000000000..af9fd90c4 --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/skills/freezeObjects.md @@ -0,0 +1,20 @@ +# 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/objects/hooks/skills/getAllObjectsFromRoot.md b/sdk/constructive-react/src/objects/hooks/skills/getAllObjectsFromRoot.md new file mode 100644 index 000000000..018c673b7 --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/skills/getAllObjectsFromRoot.md @@ -0,0 +1,19 @@ +# 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/objects/hooks/skills/getAllRecord.md b/sdk/constructive-react/src/objects/hooks/skills/getAllRecord.md new file mode 100644 index 000000000..9b7f82198 --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/skills/getAllRecord.md @@ -0,0 +1,31 @@ +# 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/objects/hooks/skills/getObjectAtPath.md b/sdk/constructive-react/src/objects/hooks/skills/getObjectAtPath.md new file mode 100644 index 000000000..c3b9f60f0 --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/skills/getObjectAtPath.md @@ -0,0 +1,19 @@ +# 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/objects/hooks/skills/getPathObjectsFromRoot.md b/sdk/constructive-react/src/objects/hooks/skills/getPathObjectsFromRoot.md new file mode 100644 index 000000000..dd7cdcd86 --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/skills/getPathObjectsFromRoot.md @@ -0,0 +1,19 @@ +# 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/objects/hooks/skills/initEmptyRepo.md b/sdk/constructive-react/src/objects/hooks/skills/initEmptyRepo.md new file mode 100644 index 000000000..abd88134d --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/skills/initEmptyRepo.md @@ -0,0 +1,20 @@ +# 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/objects/hooks/skills/insertNodeAtPath.md b/sdk/constructive-react/src/objects/hooks/skills/insertNodeAtPath.md new file mode 100644 index 000000000..7ca72d1cc --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/skills/insertNodeAtPath.md @@ -0,0 +1,20 @@ +# 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/objects/hooks/skills/object.md b/sdk/constructive-react/src/objects/hooks/skills/object.md new file mode 100644 index 000000000..869f55493 --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/skills/object.md @@ -0,0 +1,34 @@ +# 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/objects/hooks/skills/ref.md b/sdk/constructive-react/src/objects/hooks/skills/ref.md new file mode 100644 index 000000000..47cb13511 --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/skills/ref.md @@ -0,0 +1,34 @@ +# hooks-ref + + + +React Query hooks for Ref data operations + +## 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/objects/hooks/skills/removeNodeAtPath.md b/sdk/constructive-react/src/objects/hooks/skills/removeNodeAtPath.md new file mode 100644 index 000000000..55126cbd9 --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/skills/removeNodeAtPath.md @@ -0,0 +1,20 @@ +# 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/objects/hooks/skills/revParse.md b/sdk/constructive-react/src/objects/hooks/skills/revParse.md new file mode 100644 index 000000000..da24b1094 --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/skills/revParse.md @@ -0,0 +1,19 @@ +# 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/objects/hooks/skills/setAndCommit.md b/sdk/constructive-react/src/objects/hooks/skills/setAndCommit.md new file mode 100644 index 000000000..fe8ee1048 --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/skills/setAndCommit.md @@ -0,0 +1,20 @@ +# 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/objects/hooks/skills/setDataAtPath.md b/sdk/constructive-react/src/objects/hooks/skills/setDataAtPath.md new file mode 100644 index 000000000..1e407b642 --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/skills/setDataAtPath.md @@ -0,0 +1,20 @@ +# 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/objects/hooks/skills/setPropsAndCommit.md b/sdk/constructive-react/src/objects/hooks/skills/setPropsAndCommit.md new file mode 100644 index 000000000..1767c4d4a --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/skills/setPropsAndCommit.md @@ -0,0 +1,20 @@ +# 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/objects/hooks/skills/store.md b/sdk/constructive-react/src/objects/hooks/skills/store.md new file mode 100644 index 000000000..7ab006f5c --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/skills/store.md @@ -0,0 +1,34 @@ +# hooks-store + + + +React Query hooks for Store data operations + +## 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/objects/hooks/skills/updateNodeAtPath.md b/sdk/constructive-react/src/objects/hooks/skills/updateNodeAtPath.md new file mode 100644 index 000000000..0b608afea --- /dev/null +++ b/sdk/constructive-react/src/objects/hooks/skills/updateNodeAtPath.md @@ -0,0 +1,20 @@ +# 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/objects/index.ts b/sdk/constructive-react/src/objects/index.ts new file mode 100644 index 000000000..2b8402539 --- /dev/null +++ b/sdk/constructive-react/src/objects/index.ts @@ -0,0 +1,7 @@ +/** + * GraphQL SDK - auto-generated, do not edit + * @generated by @constructive-io/graphql-codegen + */ +export * from './types'; +export * from './hooks'; +export * from './orm'; diff --git a/sdk/constructive-react/src/objects/orm/README.md b/sdk/constructive-react/src/objects/orm/README.md new file mode 100644 index 000000000..fcdcb1d99 --- /dev/null +++ b/sdk/constructive-react/src/objects/orm/README.md @@ -0,0 +1,405 @@ +# ORM Client + +

+ +

+ + + +## Setup + +```typescript +import { createClient } from './orm'; + +const db = createClient({ + endpoint: 'https://api.example.com/graphql', + headers: { Authorization: 'Bearer ' }, +}); +``` + +## Models + +| Model | Operations | +|-------|------------| +| `getAllRecord` | findMany, findOne, create, update, delete | +| `object` | findMany, findOne, create, update, delete | +| `ref` | findMany, findOne, create, update, delete | +| `store` | findMany, findOne, create, update, delete | +| `commit` | findMany, findOne, create, update, delete | + +## Table Operations + +### `db.getAllRecord` + +CRUD operations for GetAllRecord records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `path` | String | Yes | +| `data` | JSON | Yes | + +**Operations:** + +```typescript +// List all getAllRecord records +const items = await db.getAllRecord.findMany({ select: { path: true, data: true } }).execute(); + +// Get one by id +const item = await db.getAllRecord.findOne({ id: '', select: { path: true, data: true } }).execute(); + +// Create +const created = await db.getAllRecord.create({ data: { path: '', data: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.getAllRecord.update({ where: { id: '' }, data: { path: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.getAllRecord.delete({ where: { id: '' } }).execute(); +``` + +### `db.object` + +CRUD operations for Object records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `hashUuid` | UUID | Yes | +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `kids` | UUID | Yes | +| `ktree` | String | Yes | +| `data` | JSON | Yes | +| `frzn` | Boolean | Yes | +| `createdAt` | Datetime | No | + +**Operations:** + +```typescript +// List all object records +const items = await db.object.findMany({ select: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); + +// Get one by id +const item = await db.object.findOne({ id: '', select: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); + +// Create +const created = await db.object.create({ data: { hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.object.update({ where: { id: '' }, data: { hashUuid: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.object.delete({ where: { id: '' } }).execute(); +``` + +### `db.ref` + +CRUD operations for Ref records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `databaseId` | UUID | Yes | +| `storeId` | UUID | Yes | +| `commitId` | UUID | Yes | + +**Operations:** + +```typescript +// 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.ref.findOne({ id: '', select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); + +// Create +const created = await db.ref.create({ data: { name: '', databaseId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.ref.delete({ where: { id: '' } }).execute(); +``` + +### `db.store` + +CRUD operations for Store records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `databaseId` | UUID | Yes | +| `hash` | UUID | Yes | +| `createdAt` | Datetime | No | + +**Operations:** + +```typescript +// 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.store.findOne({ id: '', select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); + +// Create +const created = await db.store.create({ data: { name: '', databaseId: '', hash: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.store.delete({ where: { id: '' } }).execute(); +``` + +### `db.commit` + +CRUD operations for Commit records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `message` | String | Yes | +| `databaseId` | UUID | Yes | +| `storeId` | UUID | Yes | +| `parentIds` | UUID | Yes | +| `authorId` | UUID | Yes | +| `committerId` | UUID | Yes | +| `treeId` | UUID | Yes | +| `date` | Datetime | Yes | + +**Operations:** + +```typescript +// List all commit records +const items = await db.commit.findMany({ select: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); + +// Get one by id +const item = await db.commit.findOne({ id: '', select: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); + +// Create +const created = await db.commit.create({ data: { message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.commit.update({ where: { id: '' }, data: { message: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.commit.delete({ where: { id: '' } }).execute(); +``` + +## Custom Operations + +### `db.query.revParse` + +revParse + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `dbId` | UUID | + | `storeId` | UUID | + | `refname` | String | + +```typescript +const result = await db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute(); +``` + +### `db.query.getAllObjectsFromRoot` + +Reads and enables pagination through a set of `Object`. + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `databaseId` | UUID | + | `id` | UUID | + | `first` | Int | + | `offset` | Int | + | `after` | Cursor | + +```typescript +const result = await db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute(); +``` + +### `db.query.getPathObjectsFromRoot` + +Reads and enables pagination through a set of `Object`. + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `databaseId` | UUID | + | `id` | UUID | + | `path` | [String] | + | `first` | Int | + | `offset` | Int | + | `after` | Cursor | + +```typescript +const result = await db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); +``` + +### `db.query.getObjectAtPath` + +getObjectAtPath + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `dbId` | UUID | + | `storeId` | UUID | + | `path` | [String] | + | `refname` | String | + +```typescript +const result = await db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute(); +``` + +### `db.mutation.freezeObjects` + +freezeObjects + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | FreezeObjectsInput (required) | + +```typescript +const result = await db.mutation.freezeObjects({ input: '' }).execute(); +``` + +### `db.mutation.initEmptyRepo` + +initEmptyRepo + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | InitEmptyRepoInput (required) | + +```typescript +const result = await db.mutation.initEmptyRepo({ input: '' }).execute(); +``` + +### `db.mutation.removeNodeAtPath` + +removeNodeAtPath + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | RemoveNodeAtPathInput (required) | + +```typescript +const result = await db.mutation.removeNodeAtPath({ input: '' }).execute(); +``` + +### `db.mutation.setDataAtPath` + +setDataAtPath + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SetDataAtPathInput (required) | + +```typescript +const result = await db.mutation.setDataAtPath({ input: '' }).execute(); +``` + +### `db.mutation.setPropsAndCommit` + +setPropsAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SetPropsAndCommitInput (required) | + +```typescript +const result = await db.mutation.setPropsAndCommit({ input: '' }).execute(); +``` + +### `db.mutation.insertNodeAtPath` + +insertNodeAtPath + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | InsertNodeAtPathInput (required) | + +```typescript +const result = await db.mutation.insertNodeAtPath({ input: '' }).execute(); +``` + +### `db.mutation.updateNodeAtPath` + +updateNodeAtPath + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | UpdateNodeAtPathInput (required) | + +```typescript +const result = await db.mutation.updateNodeAtPath({ input: '' }).execute(); +``` + +### `db.mutation.setAndCommit` + +setAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SetAndCommitInput (required) | + +```typescript +const result = await db.mutation.setAndCommit({ input: '' }).execute(); +``` + +--- + +Built by the [Constructive](https://constructive.io) team. + +## Disclaimer + +AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED "AS IS", AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND. + +No developer or entity involved in creating this software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the code, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value. diff --git a/sdk/constructive-react/src/objects/orm/client.ts b/sdk/constructive-react/src/objects/orm/client.ts new file mode 100644 index 000000000..c0f12c466 --- /dev/null +++ b/sdk/constructive-react/src/objects/orm/client.ts @@ -0,0 +1,137 @@ +/** + * ORM Client - Runtime GraphQL executor + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-types'; + +export type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-types'; + +/** + * Default adapter that uses fetch for HTTP requests. + * This is used when no custom adapter is provided. + */ +export class FetchAdapter implements GraphQLAdapter { + private headers: Record; + + constructor( + private endpoint: string, + headers?: Record + ) { + this.headers = headers ?? {}; + } + + async execute(document: string, variables?: Record): Promise> { + const response = await fetch(this.endpoint, { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + Accept: 'application/json', + ...this.headers, + }, + body: JSON.stringify({ + query: document, + variables: variables ?? {}, + }), + }); + + if (!response.ok) { + return { + ok: false, + data: null, + errors: [{ message: `HTTP ${response.status}: ${response.statusText}` }], + }; + } + + const json = (await response.json()) as { + data?: T; + errors?: GraphQLError[]; + }; + + if (json.errors && json.errors.length > 0) { + return { + ok: false, + data: null, + errors: json.errors, + }; + } + + return { + ok: true, + data: json.data as T, + errors: undefined, + }; + } + + setHeaders(headers: Record): void { + this.headers = { ...this.headers, ...headers }; + } + + getEndpoint(): string { + return this.endpoint; + } +} + +/** + * Configuration for creating an ORM client. + * Either provide endpoint (and optional headers) for HTTP requests, + * or provide a custom adapter for alternative execution strategies. + */ +export interface OrmClientConfig { + /** GraphQL endpoint URL (required if adapter not provided) */ + endpoint?: string; + /** Default headers for HTTP requests (only used with endpoint) */ + headers?: Record; + /** Custom adapter for GraphQL execution (overrides endpoint/headers) */ + adapter?: GraphQLAdapter; +} + +/** + * Error thrown when GraphQL request fails + */ +export class GraphQLRequestError extends Error { + constructor( + public readonly errors: GraphQLError[], + public readonly data: unknown = null + ) { + const messages = errors.map((e) => e.message).join('; '); + super(`GraphQL Error: ${messages}`); + this.name = 'GraphQLRequestError'; + } +} + +export class OrmClient { + private adapter: GraphQLAdapter; + + constructor(config: OrmClientConfig) { + if (config.adapter) { + this.adapter = config.adapter; + } else if (config.endpoint) { + this.adapter = new FetchAdapter(config.endpoint, config.headers); + } else { + throw new Error('OrmClientConfig requires either an endpoint or a custom adapter'); + } + } + + async execute(document: string, variables?: Record): Promise> { + return this.adapter.execute(document, variables); + } + + /** + * Set headers for requests. + * Only works if the adapter supports headers. + */ + setHeaders(headers: Record): void { + if (this.adapter.setHeaders) { + this.adapter.setHeaders(headers); + } + } + + /** + * Get the endpoint URL. + * Returns empty string if the adapter doesn't have an endpoint. + */ + getEndpoint(): string { + return this.adapter.getEndpoint?.() ?? ''; + } +} diff --git a/sdk/constructive-react/src/objects/orm/index.ts b/sdk/constructive-react/src/objects/orm/index.ts new file mode 100644 index 000000000..231687e0d --- /dev/null +++ b/sdk/constructive-react/src/objects/orm/index.ts @@ -0,0 +1,56 @@ +/** + * ORM Client - createClient factory + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from './client'; +import type { OrmClientConfig } from './client'; +import { GetAllRecordModel } from './models/getAllRecord'; +import { ObjectModel } from './models/object'; +import { RefModel } from './models/ref'; +import { StoreModel } from './models/store'; +import { CommitModel } from './models/commit'; +import { createQueryOperations } from './query'; +import { createMutationOperations } from './mutation'; +export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; +export { GraphQLRequestError } from './client'; +export { QueryBuilder } from './query-builder'; +export * from './select-types'; +export * from './models'; +export { createQueryOperations } from './query'; +export { createMutationOperations } from './mutation'; +/** + * Create an ORM client instance + * + * @example + * ```typescript + * const db = createClient({ + * endpoint: 'https://api.example.com/graphql', + * headers: { Authorization: 'Bearer token' }, + * }); + * + * // Query users + * const users = await db.user.findMany({ + * select: { id: true, name: true }, + * first: 10, + * }).execute(); + * + * // Create a user + * const newUser = await db.user.create({ + * data: { name: 'John', email: 'john@example.com' }, + * select: { id: true }, + * }).execute(); + * ``` + */ +export function createClient(config: OrmClientConfig) { + const client = new OrmClient(config); + return { + getAllRecord: new GetAllRecordModel(client), + object: new ObjectModel(client), + ref: new RefModel(client), + store: new StoreModel(client), + commit: new CommitModel(client), + query: createQueryOperations(client), + mutation: createMutationOperations(client), + }; +} diff --git a/sdk/constructive-react/src/objects/orm/input-types.ts b/sdk/constructive-react/src/objects/orm/input-types.ts new file mode 100644 index 000000000..d369bf16a --- /dev/null +++ b/sdk/constructive-react/src/objects/orm/input-types.ts @@ -0,0 +1,1032 @@ +/** + * GraphQL types for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +// ============ Scalar Filter Types ============ +export interface StringFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; + includes?: string; + notIncludes?: string; + includesInsensitive?: string; + notIncludesInsensitive?: string; + startsWith?: string; + notStartsWith?: string; + startsWithInsensitive?: string; + notStartsWithInsensitive?: string; + endsWith?: string; + notEndsWith?: string; + endsWithInsensitive?: string; + notEndsWithInsensitive?: string; + like?: string; + notLike?: string; + likeInsensitive?: string; + notLikeInsensitive?: string; +} +export interface IntFilter { + isNull?: boolean; + equalTo?: number; + notEqualTo?: number; + distinctFrom?: number; + notDistinctFrom?: number; + in?: number[]; + notIn?: number[]; + lessThan?: number; + lessThanOrEqualTo?: number; + greaterThan?: number; + greaterThanOrEqualTo?: number; +} +export interface FloatFilter { + isNull?: boolean; + equalTo?: number; + notEqualTo?: number; + distinctFrom?: number; + notDistinctFrom?: number; + in?: number[]; + notIn?: number[]; + lessThan?: number; + lessThanOrEqualTo?: number; + greaterThan?: number; + greaterThanOrEqualTo?: number; +} +export interface BooleanFilter { + isNull?: boolean; + equalTo?: boolean; + notEqualTo?: boolean; +} +export interface UUIDFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; +} +export interface DatetimeFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface DateFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface JSONFilter { + isNull?: boolean; + equalTo?: Record; + notEqualTo?: Record; + distinctFrom?: Record; + notDistinctFrom?: Record; + contains?: Record; + containedBy?: Record; + containsKey?: string; + containsAllKeys?: string[]; + containsAnyKeys?: string[]; +} +export interface BigIntFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface BigFloatFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface BitStringFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; +} +export interface InternetAddressFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; + contains?: string; + containsOrEqualTo?: string; + containedBy?: string; + containedByOrEqualTo?: string; + containsOrContainedBy?: string; +} +export interface FullTextFilter { + matches?: string; +} +export interface StringListFilter { + isNull?: boolean; + equalTo?: string[]; + notEqualTo?: string[]; + distinctFrom?: string[]; + notDistinctFrom?: string[]; + lessThan?: string[]; + lessThanOrEqualTo?: string[]; + greaterThan?: string[]; + greaterThanOrEqualTo?: string[]; + contains?: string[]; + containedBy?: string[]; + overlaps?: string[]; + anyEqualTo?: string; + anyNotEqualTo?: string; + anyLessThan?: string; + anyLessThanOrEqualTo?: string; + anyGreaterThan?: string; + anyGreaterThanOrEqualTo?: string; +} +export interface IntListFilter { + isNull?: boolean; + equalTo?: number[]; + notEqualTo?: number[]; + distinctFrom?: number[]; + notDistinctFrom?: number[]; + lessThan?: number[]; + lessThanOrEqualTo?: number[]; + greaterThan?: number[]; + greaterThanOrEqualTo?: number[]; + contains?: number[]; + containedBy?: number[]; + overlaps?: number[]; + anyEqualTo?: number; + anyNotEqualTo?: number; + anyLessThan?: number; + anyLessThanOrEqualTo?: number; + anyGreaterThan?: number; + anyGreaterThanOrEqualTo?: number; +} +export interface UUIDListFilter { + isNull?: boolean; + equalTo?: string[]; + notEqualTo?: string[]; + distinctFrom?: string[]; + notDistinctFrom?: string[]; + lessThan?: string[]; + lessThanOrEqualTo?: string[]; + greaterThan?: string[]; + greaterThanOrEqualTo?: string[]; + contains?: string[]; + containedBy?: string[]; + overlaps?: string[]; + anyEqualTo?: string; + anyNotEqualTo?: string; + anyLessThan?: string; + anyLessThanOrEqualTo?: string; + anyGreaterThan?: string; + anyGreaterThanOrEqualTo?: string; +} +// ============ Entity Types ============ +export interface GetAllRecord { + path?: string | null; + data?: Record | null; +} +export interface Object { + hashUuid?: string | null; + id: string; + databaseId?: string | null; + kids?: string | null; + ktree?: string | null; + data?: Record | null; + frzn?: boolean | null; + createdAt?: string | null; +} +/** A ref is a data structure for pointing to a commit. */ +export interface Ref { + /** The primary unique identifier for the ref. */ + id: string; + /** The name of the ref or branch */ + name?: string | null; + databaseId?: string | null; + storeId?: string | null; + commitId?: string | null; +} +/** A store represents an isolated object repository within a database. */ +export interface Store { + /** The primary unique identifier for the store. */ + id: string; + /** The name of the store (e.g., metaschema, migrations). */ + name?: string | null; + /** The database this store belongs to. */ + databaseId?: string | null; + /** The current head tree_id for this store. */ + hash?: string | null; + createdAt?: string | null; +} +/** A commit records changes to the repository. */ +export interface Commit { + /** The primary unique identifier for the commit. */ + id: string; + /** The commit message */ + message?: string | null; + /** The repository identifier */ + databaseId?: string | null; + storeId?: string | null; + /** Parent commits */ + parentIds?: string | null; + /** The author of the commit */ + authorId?: string | null; + /** The committer of the commit */ + committerId?: string | null; + /** The root of the tree */ + treeId?: string | null; + date?: string | null; +} +// ============ Relation Helper Types ============ +export interface ConnectionResult { + nodes: T[]; + totalCount: number; + pageInfo: PageInfo; +} +export interface PageInfo { + hasNextPage: boolean; + hasPreviousPage: boolean; + startCursor?: string | null; + endCursor?: string | null; +} +// ============ Entity Relation Types ============ +export interface GetAllRecordRelations {} +export interface ObjectRelations {} +export interface RefRelations {} +export interface StoreRelations {} +export interface CommitRelations {} +// ============ Entity Types With Relations ============ +export type GetAllRecordWithRelations = GetAllRecord & GetAllRecordRelations; +export type ObjectWithRelations = Object & ObjectRelations; +export type RefWithRelations = Ref & RefRelations; +export type StoreWithRelations = Store & StoreRelations; +export type CommitWithRelations = Commit & CommitRelations; +// ============ Entity Select Types ============ +export type GetAllRecordSelect = { + path?: boolean; + data?: boolean; +}; +export type ObjectSelect = { + hashUuid?: boolean; + id?: boolean; + databaseId?: boolean; + kids?: boolean; + ktree?: boolean; + data?: boolean; + frzn?: boolean; + createdAt?: boolean; +}; +export type RefSelect = { + id?: boolean; + name?: boolean; + databaseId?: boolean; + storeId?: boolean; + commitId?: boolean; +}; +export type StoreSelect = { + id?: boolean; + name?: boolean; + databaseId?: boolean; + hash?: boolean; + createdAt?: boolean; +}; +export type CommitSelect = { + id?: boolean; + message?: boolean; + databaseId?: boolean; + storeId?: boolean; + parentIds?: boolean; + authorId?: boolean; + committerId?: boolean; + treeId?: boolean; + date?: boolean; +}; +// ============ Table Filter Types ============ +export interface GetAllRecordFilter { + path?: StringFilter; + data?: JSONFilter; + and?: GetAllRecordFilter[]; + or?: GetAllRecordFilter[]; + not?: GetAllRecordFilter; +} +export interface ObjectFilter { + hashUuid?: UUIDFilter; + id?: UUIDFilter; + databaseId?: UUIDFilter; + kids?: UUIDFilter; + ktree?: StringFilter; + data?: JSONFilter; + frzn?: BooleanFilter; + createdAt?: DatetimeFilter; + and?: ObjectFilter[]; + or?: ObjectFilter[]; + not?: ObjectFilter; +} +export interface RefFilter { + id?: UUIDFilter; + name?: StringFilter; + databaseId?: UUIDFilter; + storeId?: UUIDFilter; + commitId?: UUIDFilter; + and?: RefFilter[]; + or?: RefFilter[]; + not?: RefFilter; +} +export interface StoreFilter { + id?: UUIDFilter; + name?: StringFilter; + databaseId?: UUIDFilter; + hash?: UUIDFilter; + createdAt?: DatetimeFilter; + and?: StoreFilter[]; + or?: StoreFilter[]; + not?: StoreFilter; +} +export interface CommitFilter { + id?: UUIDFilter; + message?: StringFilter; + databaseId?: UUIDFilter; + storeId?: UUIDFilter; + parentIds?: UUIDFilter; + authorId?: UUIDFilter; + committerId?: UUIDFilter; + treeId?: UUIDFilter; + date?: DatetimeFilter; + and?: CommitFilter[]; + or?: CommitFilter[]; + not?: CommitFilter; +} +// ============ Table Condition Types ============ +export interface GetAllRecordCondition { + path?: string | null; + data?: unknown | null; +} +export interface ObjectCondition { + hashUuid?: string | null; + id?: string | null; + databaseId?: string | null; + kids?: string | null; + ktree?: string | null; + data?: unknown | null; + frzn?: boolean | null; + createdAt?: string | null; +} +export interface RefCondition { + id?: string | null; + name?: string | null; + databaseId?: string | null; + storeId?: string | null; + commitId?: string | null; +} +export interface StoreCondition { + id?: string | null; + name?: string | null; + databaseId?: string | null; + hash?: string | null; + createdAt?: string | null; +} +export interface CommitCondition { + id?: string | null; + message?: string | null; + databaseId?: string | null; + storeId?: string | null; + parentIds?: string | null; + authorId?: string | null; + committerId?: string | null; + treeId?: string | null; + date?: string | null; +} +// ============ OrderBy Types ============ +export type GetAllRecordsOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'PATH_ASC' + | 'PATH_DESC' + | 'DATA_ASC' + | 'DATA_DESC'; +export type ObjectOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'HASH_UUID_ASC' + | 'HASH_UUID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'KIDS_ASC' + | 'KIDS_DESC' + | 'KTREE_ASC' + | 'KTREE_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'FRZN_ASC' + | 'FRZN_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC'; +export type RefOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'COMMIT_ID_ASC' + | 'COMMIT_ID_DESC'; +export type StoreOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'HASH_ASC' + | 'HASH_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC'; +export type CommitOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'MESSAGE_ASC' + | 'MESSAGE_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'PARENT_IDS_ASC' + | 'PARENT_IDS_DESC' + | 'AUTHOR_ID_ASC' + | 'AUTHOR_ID_DESC' + | 'COMMITTER_ID_ASC' + | 'COMMITTER_ID_DESC' + | 'TREE_ID_ASC' + | 'TREE_ID_DESC' + | 'DATE_ASC' + | 'DATE_DESC'; +// ============ CRUD Input Types ============ +export interface CreateGetAllRecordInput { + clientMutationId?: string; + getAllRecord: { + path?: string; + data?: Record; + }; +} +export interface GetAllRecordPatch { + path?: string | null; + data?: Record | null; +} +export interface UpdateGetAllRecordInput { + clientMutationId?: string; + id: string; + getAllRecordPatch: GetAllRecordPatch; +} +export interface DeleteGetAllRecordInput { + clientMutationId?: string; + id: string; +} +export interface CreateObjectInput { + clientMutationId?: string; + object: { + databaseId: string; + kids?: string[]; + ktree?: string[]; + data?: Record; + frzn?: boolean; + }; +} +export interface ObjectPatch { + hashUuid?: string | null; + databaseId?: string | null; + kids?: string | null; + ktree?: string | null; + data?: Record | null; + frzn?: boolean | null; +} +export interface UpdateObjectInput { + clientMutationId?: string; + id: string; + objectPatch: ObjectPatch; +} +export interface DeleteObjectInput { + clientMutationId?: string; + id: string; +} +export interface CreateRefInput { + clientMutationId?: string; + ref: { + name: string; + databaseId: string; + storeId: string; + commitId?: string; + }; +} +export interface RefPatch { + name?: string | null; + databaseId?: string | null; + storeId?: string | null; + commitId?: string | null; +} +export interface UpdateRefInput { + clientMutationId?: string; + id: string; + refPatch: RefPatch; +} +export interface DeleteRefInput { + clientMutationId?: string; + id: string; +} +export interface CreateStoreInput { + clientMutationId?: string; + store: { + name: string; + databaseId: string; + hash?: string; + }; +} +export interface StorePatch { + name?: string | null; + databaseId?: string | null; + hash?: string | null; +} +export interface UpdateStoreInput { + clientMutationId?: string; + id: string; + storePatch: StorePatch; +} +export interface DeleteStoreInput { + clientMutationId?: string; + id: string; +} +export interface CreateCommitInput { + clientMutationId?: string; + commit: { + message?: string; + databaseId: string; + storeId: string; + parentIds?: string[]; + authorId?: string; + committerId?: string; + treeId?: string; + date?: string; + }; +} +export interface CommitPatch { + message?: string | null; + databaseId?: string | null; + storeId?: string | null; + parentIds?: string | null; + authorId?: string | null; + committerId?: string | null; + treeId?: string | null; + date?: string | null; +} +export interface UpdateCommitInput { + clientMutationId?: string; + id: string; + commitPatch: CommitPatch; +} +export interface DeleteCommitInput { + clientMutationId?: string; + id: string; +} +// ============ Connection Fields Map ============ +export const connectionFieldsMap = {} as Record>; +// ============ Custom Input Types (from schema) ============ +export interface FreezeObjectsInput { + clientMutationId?: string; + databaseId?: string; + id?: string; +} +export interface InitEmptyRepoInput { + clientMutationId?: string; + dbId?: string; + storeId?: string; +} +export interface RemoveNodeAtPathInput { + clientMutationId?: string; + dbId?: string; + root?: string; + path?: string[]; +} +export interface SetDataAtPathInput { + clientMutationId?: string; + dbId?: string; + root?: string; + path?: string[]; + data?: Record; +} +export interface SetPropsAndCommitInput { + clientMutationId?: string; + dbId?: string; + storeId?: string; + refname?: string; + path?: string[]; + data?: Record; +} +export interface InsertNodeAtPathInput { + clientMutationId?: string; + dbId?: string; + root?: string; + path?: string[]; + data?: Record; + kids?: string[]; + ktree?: string[]; +} +export interface UpdateNodeAtPathInput { + clientMutationId?: string; + dbId?: string; + root?: string; + path?: string[]; + data?: Record; + kids?: string[]; + ktree?: string[]; +} +export interface SetAndCommitInput { + clientMutationId?: string; + dbId?: string; + storeId?: string; + refname?: string; + path?: string[]; + data?: Record; + kids?: string[]; + ktree?: string[]; +} +/** A connection to a list of `Object` values. */ +// ============ Payload/Return Types (for custom operations) ============ +export interface ObjectConnection { + nodes: Object[]; + edges: ObjectEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export type ObjectConnectionSelect = { + nodes?: { + select: ObjectSelect; + }; + edges?: { + select: ObjectEdgeSelect; + }; + pageInfo?: { + select: PageInfoSelect; + }; + totalCount?: boolean; +}; +export interface FreezeObjectsPayload { + clientMutationId?: string | null; +} +export type FreezeObjectsPayloadSelect = { + clientMutationId?: boolean; +}; +export interface InitEmptyRepoPayload { + clientMutationId?: string | null; +} +export type InitEmptyRepoPayloadSelect = { + clientMutationId?: boolean; +}; +export interface RemoveNodeAtPathPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type RemoveNodeAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface SetDataAtPathPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type SetDataAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface SetPropsAndCommitPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type SetPropsAndCommitPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface InsertNodeAtPathPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type InsertNodeAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface UpdateNodeAtPathPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type UpdateNodeAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface SetAndCommitPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type SetAndCommitPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface CreateObjectPayload { + clientMutationId?: string | null; + /** The `Object` that was created by this mutation. */ + object?: Object | null; + objectEdge?: ObjectEdge | null; +} +export type CreateObjectPayloadSelect = { + clientMutationId?: boolean; + object?: { + select: ObjectSelect; + }; + objectEdge?: { + select: ObjectEdgeSelect; + }; +}; +export interface UpdateObjectPayload { + clientMutationId?: string | null; + /** The `Object` that was updated by this mutation. */ + object?: Object | null; + objectEdge?: ObjectEdge | null; +} +export type UpdateObjectPayloadSelect = { + clientMutationId?: boolean; + object?: { + select: ObjectSelect; + }; + objectEdge?: { + select: ObjectEdgeSelect; + }; +}; +export interface DeleteObjectPayload { + clientMutationId?: string | null; + /** The `Object` that was deleted by this mutation. */ + object?: Object | null; + objectEdge?: ObjectEdge | null; +} +export type DeleteObjectPayloadSelect = { + clientMutationId?: boolean; + object?: { + select: ObjectSelect; + }; + objectEdge?: { + select: ObjectEdgeSelect; + }; +}; +export interface CreateRefPayload { + clientMutationId?: string | null; + /** The `Ref` that was created by this mutation. */ + ref?: Ref | null; + refEdge?: RefEdge | null; +} +export type CreateRefPayloadSelect = { + clientMutationId?: boolean; + ref?: { + select: RefSelect; + }; + refEdge?: { + select: RefEdgeSelect; + }; +}; +export interface UpdateRefPayload { + clientMutationId?: string | null; + /** The `Ref` that was updated by this mutation. */ + ref?: Ref | null; + refEdge?: RefEdge | null; +} +export type UpdateRefPayloadSelect = { + clientMutationId?: boolean; + ref?: { + select: RefSelect; + }; + refEdge?: { + select: RefEdgeSelect; + }; +}; +export interface DeleteRefPayload { + clientMutationId?: string | null; + /** The `Ref` that was deleted by this mutation. */ + ref?: Ref | null; + refEdge?: RefEdge | null; +} +export type DeleteRefPayloadSelect = { + clientMutationId?: boolean; + ref?: { + select: RefSelect; + }; + refEdge?: { + select: RefEdgeSelect; + }; +}; +export interface CreateStorePayload { + clientMutationId?: string | null; + /** The `Store` that was created by this mutation. */ + store?: Store | null; + storeEdge?: StoreEdge | null; +} +export type CreateStorePayloadSelect = { + clientMutationId?: boolean; + store?: { + select: StoreSelect; + }; + storeEdge?: { + select: StoreEdgeSelect; + }; +}; +export interface UpdateStorePayload { + clientMutationId?: string | null; + /** The `Store` that was updated by this mutation. */ + store?: Store | null; + storeEdge?: StoreEdge | null; +} +export type UpdateStorePayloadSelect = { + clientMutationId?: boolean; + store?: { + select: StoreSelect; + }; + storeEdge?: { + select: StoreEdgeSelect; + }; +}; +export interface DeleteStorePayload { + clientMutationId?: string | null; + /** The `Store` that was deleted by this mutation. */ + store?: Store | null; + storeEdge?: StoreEdge | null; +} +export type DeleteStorePayloadSelect = { + clientMutationId?: boolean; + store?: { + select: StoreSelect; + }; + storeEdge?: { + select: StoreEdgeSelect; + }; +}; +export interface CreateCommitPayload { + clientMutationId?: string | null; + /** The `Commit` that was created by this mutation. */ + commit?: Commit | null; + commitEdge?: CommitEdge | null; +} +export type CreateCommitPayloadSelect = { + clientMutationId?: boolean; + commit?: { + select: CommitSelect; + }; + commitEdge?: { + select: CommitEdgeSelect; + }; +}; +export interface UpdateCommitPayload { + clientMutationId?: string | null; + /** The `Commit` that was updated by this mutation. */ + commit?: Commit | null; + commitEdge?: CommitEdge | null; +} +export type UpdateCommitPayloadSelect = { + clientMutationId?: boolean; + commit?: { + select: CommitSelect; + }; + commitEdge?: { + select: CommitEdgeSelect; + }; +}; +export interface DeleteCommitPayload { + clientMutationId?: string | null; + /** The `Commit` that was deleted by this mutation. */ + commit?: Commit | null; + commitEdge?: CommitEdge | null; +} +export type DeleteCommitPayloadSelect = { + clientMutationId?: boolean; + commit?: { + select: CommitSelect; + }; + commitEdge?: { + select: CommitEdgeSelect; + }; +}; +/** A `Object` edge in the connection. */ +export interface ObjectEdge { + cursor?: string | null; + /** The `Object` at the end of the edge. */ + node?: Object | null; +} +export type ObjectEdgeSelect = { + cursor?: boolean; + node?: { + select: ObjectSelect; + }; +}; +/** Information about pagination in a connection. */ +export interface PageInfo { + /** When paginating forwards, are there more items? */ + hasNextPage: boolean; + /** When paginating backwards, are there more items? */ + hasPreviousPage: boolean; + /** When paginating backwards, the cursor to continue. */ + startCursor?: string | null; + /** When paginating forwards, the cursor to continue. */ + endCursor?: string | null; +} +export type PageInfoSelect = { + hasNextPage?: boolean; + hasPreviousPage?: boolean; + startCursor?: boolean; + endCursor?: boolean; +}; +/** A `Ref` edge in the connection. */ +export interface RefEdge { + cursor?: string | null; + /** The `Ref` at the end of the edge. */ + node?: Ref | null; +} +export type RefEdgeSelect = { + cursor?: boolean; + node?: { + select: RefSelect; + }; +}; +/** A `Store` edge in the connection. */ +export interface StoreEdge { + cursor?: string | null; + /** The `Store` at the end of the edge. */ + node?: Store | null; +} +export type StoreEdgeSelect = { + cursor?: boolean; + node?: { + select: StoreSelect; + }; +}; +/** A `Commit` edge in the connection. */ +export interface CommitEdge { + cursor?: string | null; + /** The `Commit` at the end of the edge. */ + node?: Commit | null; +} +export type CommitEdgeSelect = { + cursor?: boolean; + node?: { + select: CommitSelect; + }; +}; diff --git a/sdk/constructive-react/src/objects/orm/models/commit.ts b/sdk/constructive-react/src/objects/orm/models/commit.ts new file mode 100644 index 000000000..257e233ae --- /dev/null +++ b/sdk/constructive-react/src/objects/orm/models/commit.ts @@ -0,0 +1,236 @@ +/** + * Commit 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 { + Commit, + CommitWithRelations, + CommitSelect, + CommitFilter, + CommitOrderBy, + CreateCommitInput, + UpdateCommitInput, + CommitPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class CommitModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + commits: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Commit', + 'commits', + 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, + }, + 'CommitFilter', + 'CommitOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Commit', + fieldName: 'commits', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + commits: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'Commit', + 'commits', + args.select, + { + where: args?.where, + }, + 'CommitFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Commit', + fieldName: 'commits', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + commit: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'Commit', + 'commits', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'CommitFilter', + 'CommitOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Commit', + fieldName: 'commit', + document, + variables, + transform: (data: { + commits?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + commit: data.commits?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createCommit: { + commit: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Commit', + 'createCommit', + 'commit', + args.select, + args.data, + 'CreateCommitInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Commit', + fieldName: 'createCommit', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + CommitPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateCommit: { + commit: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'Commit', + 'updateCommit', + 'commit', + args.select, + args.where.id, + args.data, + 'UpdateCommitInput', + 'id', + 'commitPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Commit', + fieldName: 'updateCommit', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteCommit: { + commit: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'Commit', + 'deleteCommit', + 'commit', + args.where.id, + 'DeleteCommitInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Commit', + fieldName: 'deleteCommit', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/objects/orm/models/getAllRecord.ts b/sdk/constructive-react/src/objects/orm/models/getAllRecord.ts new file mode 100644 index 000000000..53873a0f3 --- /dev/null +++ b/sdk/constructive-react/src/objects/orm/models/getAllRecord.ts @@ -0,0 +1,127 @@ +/** + * GetAllRecord 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 { + GetAllRecord, + GetAllRecordWithRelations, + GetAllRecordSelect, + GetAllRecordFilter, + GetAllRecordsOrderBy, + CreateGetAllRecordInput, + UpdateGetAllRecordInput, + GetAllRecordPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class GetAllRecordModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + getAll: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'GetAllRecord', + 'getAll', + 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, + }, + 'GetAllRecordFilter', + 'GetAllRecordsOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'GetAllRecord', + fieldName: 'getAll', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + getAll: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'GetAllRecord', + 'getAll', + args.select, + { + where: args?.where, + }, + 'GetAllRecordFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'GetAllRecord', + fieldName: 'getAll', + document, + variables, + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createGetAllRecord: { + getAllRecord: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'GetAllRecord', + 'createGetAllRecord', + 'getAllRecord', + args.select, + args.data, + 'CreateGetAllRecordInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'GetAllRecord', + fieldName: 'createGetAllRecord', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/objects/orm/models/index.ts b/sdk/constructive-react/src/objects/orm/models/index.ts new file mode 100644 index 000000000..c842d8341 --- /dev/null +++ b/sdk/constructive-react/src/objects/orm/models/index.ts @@ -0,0 +1,10 @@ +/** + * Models barrel export + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export { GetAllRecordModel } from './getAllRecord'; +export { ObjectModel } from './object'; +export { RefModel } from './ref'; +export { StoreModel } from './store'; +export { CommitModel } from './commit'; diff --git a/sdk/constructive-react/src/objects/orm/models/object.ts b/sdk/constructive-react/src/objects/orm/models/object.ts new file mode 100644 index 000000000..72f7b0da4 --- /dev/null +++ b/sdk/constructive-react/src/objects/orm/models/object.ts @@ -0,0 +1,222 @@ +/** + * Object 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 { + Object, + ObjectWithRelations, + ObjectSelect, + ObjectFilter, + ObjectOrderBy, + CreateObjectInput, + UpdateObjectInput, + ObjectPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ObjectModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + objects: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Object', + 'objects', + 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, + }, + 'ObjectFilter', + 'ObjectOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Object', + fieldName: 'objects', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + objects: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'Object', + 'objects', + args.select, + { + where: args?.where, + }, + 'ObjectFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Object', + fieldName: 'objects', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + getNodeAtPath: InferSelectResult | null; + }> { + const { document, variables } = buildFindOneDocument( + 'Object', + 'getNodeAtPath', + args.id, + args.select, + 'id', + 'UUID!', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Object', + fieldName: 'getNodeAtPath', + document, + variables, + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createObject: { + object: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Object', + 'createObject', + 'object', + args.select, + args.data, + 'CreateObjectInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Object', + fieldName: 'createObject', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ObjectPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateObject: { + object: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'Object', + 'updateObject', + 'object', + args.select, + args.where.id, + args.data, + 'UpdateObjectInput', + 'id', + 'objectPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Object', + fieldName: 'updateObject', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteObject: { + object: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'Object', + 'deleteObject', + 'object', + args.where.id, + 'DeleteObjectInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Object', + fieldName: 'deleteObject', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/objects/orm/models/ref.ts b/sdk/constructive-react/src/objects/orm/models/ref.ts new file mode 100644 index 000000000..ec666a8e7 --- /dev/null +++ b/sdk/constructive-react/src/objects/orm/models/ref.ts @@ -0,0 +1,236 @@ +/** + * Ref 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 { + Ref, + RefWithRelations, + RefSelect, + RefFilter, + RefOrderBy, + CreateRefInput, + UpdateRefInput, + RefPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class RefModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + refs: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Ref', + 'refs', + 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, + }, + 'RefFilter', + 'RefOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Ref', + fieldName: 'refs', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + refs: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'Ref', + 'refs', + args.select, + { + where: args?.where, + }, + 'RefFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Ref', + fieldName: 'refs', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + ref: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'Ref', + 'refs', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'RefFilter', + 'RefOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Ref', + fieldName: 'ref', + document, + variables, + transform: (data: { + refs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + ref: data.refs?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createRef: { + ref: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Ref', + 'createRef', + 'ref', + args.select, + args.data, + 'CreateRefInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Ref', + fieldName: 'createRef', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + RefPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateRef: { + ref: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'Ref', + 'updateRef', + 'ref', + args.select, + args.where.id, + args.data, + 'UpdateRefInput', + 'id', + 'refPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Ref', + fieldName: 'updateRef', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteRef: { + ref: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'Ref', + 'deleteRef', + 'ref', + args.where.id, + 'DeleteRefInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Ref', + fieldName: 'deleteRef', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/objects/orm/models/store.ts b/sdk/constructive-react/src/objects/orm/models/store.ts new file mode 100644 index 000000000..d6f5e0450 --- /dev/null +++ b/sdk/constructive-react/src/objects/orm/models/store.ts @@ -0,0 +1,236 @@ +/** + * Store 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 { + Store, + StoreWithRelations, + StoreSelect, + StoreFilter, + StoreOrderBy, + CreateStoreInput, + UpdateStoreInput, + StorePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class StoreModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + stores: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Store', + 'stores', + 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, + }, + 'StoreFilter', + 'StoreOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Store', + fieldName: 'stores', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + stores: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'Store', + 'stores', + args.select, + { + where: args?.where, + }, + 'StoreFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Store', + fieldName: 'stores', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + store: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'Store', + 'stores', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'StoreFilter', + 'StoreOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Store', + fieldName: 'store', + document, + variables, + transform: (data: { + stores?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + store: data.stores?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createStore: { + store: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Store', + 'createStore', + 'store', + args.select, + args.data, + 'CreateStoreInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Store', + fieldName: 'createStore', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + StorePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateStore: { + store: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'Store', + 'updateStore', + 'store', + args.select, + args.where.id, + args.data, + 'UpdateStoreInput', + 'id', + 'storePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Store', + fieldName: 'updateStore', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteStore: { + store: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'Store', + 'deleteStore', + 'store', + args.where.id, + 'DeleteStoreInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Store', + fieldName: 'deleteStore', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/objects/orm/mutation/index.ts b/sdk/constructive-react/src/objects/orm/mutation/index.ts new file mode 100644 index 000000000..a45680406 --- /dev/null +++ b/sdk/constructive-react/src/objects/orm/mutation/index.ts @@ -0,0 +1,295 @@ +/** + * Custom mutation operations + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { QueryBuilder, buildCustomDocument } from '../query-builder'; +import type { InferSelectResult, StrictSelect } from '../select-types'; +import type { + FreezeObjectsInput, + InitEmptyRepoInput, + RemoveNodeAtPathInput, + SetDataAtPathInput, + SetPropsAndCommitInput, + InsertNodeAtPathInput, + UpdateNodeAtPathInput, + SetAndCommitInput, + FreezeObjectsPayload, + InitEmptyRepoPayload, + RemoveNodeAtPathPayload, + SetDataAtPathPayload, + SetPropsAndCommitPayload, + InsertNodeAtPathPayload, + UpdateNodeAtPathPayload, + SetAndCommitPayload, + FreezeObjectsPayloadSelect, + InitEmptyRepoPayloadSelect, + RemoveNodeAtPathPayloadSelect, + SetDataAtPathPayloadSelect, + SetPropsAndCommitPayloadSelect, + InsertNodeAtPathPayloadSelect, + UpdateNodeAtPathPayloadSelect, + SetAndCommitPayloadSelect, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export interface FreezeObjectsVariables { + input: FreezeObjectsInput; +} +export interface InitEmptyRepoVariables { + input: InitEmptyRepoInput; +} +export interface RemoveNodeAtPathVariables { + input: RemoveNodeAtPathInput; +} +export interface SetDataAtPathVariables { + input: SetDataAtPathInput; +} +export interface SetPropsAndCommitVariables { + input: SetPropsAndCommitInput; +} +export interface InsertNodeAtPathVariables { + input: InsertNodeAtPathInput; +} +export interface UpdateNodeAtPathVariables { + input: UpdateNodeAtPathInput; +} +export interface SetAndCommitVariables { + input: SetAndCommitInput; +} +export function createMutationOperations(client: OrmClient) { + return { + freezeObjects: ( + args: FreezeObjectsVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + freezeObjects: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'FreezeObjects', + fieldName: 'freezeObjects', + ...buildCustomDocument( + 'mutation', + 'FreezeObjects', + 'freezeObjects', + options.select, + args, + [ + { + name: 'input', + type: 'FreezeObjectsInput!', + }, + ], + connectionFieldsMap, + 'FreezeObjectsPayload' + ), + }), + initEmptyRepo: ( + args: InitEmptyRepoVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + initEmptyRepo: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'InitEmptyRepo', + fieldName: 'initEmptyRepo', + ...buildCustomDocument( + 'mutation', + 'InitEmptyRepo', + 'initEmptyRepo', + options.select, + args, + [ + { + name: 'input', + type: 'InitEmptyRepoInput!', + }, + ], + connectionFieldsMap, + 'InitEmptyRepoPayload' + ), + }), + removeNodeAtPath: ( + args: RemoveNodeAtPathVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + removeNodeAtPath: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'RemoveNodeAtPath', + fieldName: 'removeNodeAtPath', + ...buildCustomDocument( + 'mutation', + 'RemoveNodeAtPath', + 'removeNodeAtPath', + options.select, + args, + [ + { + name: 'input', + type: 'RemoveNodeAtPathInput!', + }, + ], + connectionFieldsMap, + 'RemoveNodeAtPathPayload' + ), + }), + setDataAtPath: ( + args: SetDataAtPathVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + setDataAtPath: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SetDataAtPath', + fieldName: 'setDataAtPath', + ...buildCustomDocument( + 'mutation', + 'SetDataAtPath', + 'setDataAtPath', + options.select, + args, + [ + { + name: 'input', + type: 'SetDataAtPathInput!', + }, + ], + connectionFieldsMap, + 'SetDataAtPathPayload' + ), + }), + setPropsAndCommit: ( + args: SetPropsAndCommitVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + setPropsAndCommit: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SetPropsAndCommit', + fieldName: 'setPropsAndCommit', + ...buildCustomDocument( + 'mutation', + 'SetPropsAndCommit', + 'setPropsAndCommit', + options.select, + args, + [ + { + name: 'input', + type: 'SetPropsAndCommitInput!', + }, + ], + connectionFieldsMap, + 'SetPropsAndCommitPayload' + ), + }), + insertNodeAtPath: ( + args: InsertNodeAtPathVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + insertNodeAtPath: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'InsertNodeAtPath', + fieldName: 'insertNodeAtPath', + ...buildCustomDocument( + 'mutation', + 'InsertNodeAtPath', + 'insertNodeAtPath', + options.select, + args, + [ + { + name: 'input', + type: 'InsertNodeAtPathInput!', + }, + ], + connectionFieldsMap, + 'InsertNodeAtPathPayload' + ), + }), + updateNodeAtPath: ( + args: UpdateNodeAtPathVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + updateNodeAtPath: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'UpdateNodeAtPath', + fieldName: 'updateNodeAtPath', + ...buildCustomDocument( + 'mutation', + 'UpdateNodeAtPath', + 'updateNodeAtPath', + options.select, + args, + [ + { + name: 'input', + type: 'UpdateNodeAtPathInput!', + }, + ], + connectionFieldsMap, + 'UpdateNodeAtPathPayload' + ), + }), + setAndCommit: ( + args: SetAndCommitVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + setAndCommit: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SetAndCommit', + fieldName: 'setAndCommit', + ...buildCustomDocument( + 'mutation', + 'SetAndCommit', + 'setAndCommit', + options.select, + args, + [ + { + name: 'input', + type: 'SetAndCommitInput!', + }, + ], + connectionFieldsMap, + 'SetAndCommitPayload' + ), + }), + }; +} diff --git a/sdk/constructive-react/src/objects/orm/query-builder.ts b/sdk/constructive-react/src/objects/orm/query-builder.ts new file mode 100644 index 000000000..67c3992b5 --- /dev/null +++ b/sdk/constructive-react/src/objects/orm/query-builder.ts @@ -0,0 +1,847 @@ +/** + * Query Builder - Builds and executes GraphQL operations + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { parseType, print } from '@0no-co/graphql.web'; +import * as t from 'gql-ast'; +import type { ArgumentNode, EnumValueNode, FieldNode, VariableDefinitionNode } from 'graphql'; + +import { GraphQLRequestError, OrmClient, QueryResult } from './client'; + +export interface QueryBuilderConfig { + client: OrmClient; + operation: 'query' | 'mutation'; + operationName: string; + fieldName: string; + document: string; + variables?: Record; + transform?: (data: any) => TResult; +} + +export class QueryBuilder { + private config: QueryBuilderConfig; + + constructor(config: QueryBuilderConfig) { + this.config = config; + } + + /** + * Execute the query and return a discriminated union result + * Use result.ok to check success, or .unwrap() to throw on error + */ + async execute(): Promise> { + const rawResult = await this.config.client.execute( + this.config.document, + this.config.variables + ); + if (!rawResult.ok) { + return rawResult; + } + if (!this.config.transform) { + return rawResult as unknown as QueryResult; + } + return { + ok: true, + data: this.config.transform(rawResult.data), + errors: undefined, + }; + } + + /** + * Execute and unwrap the result, throwing GraphQLRequestError on failure + * @throws {GraphQLRequestError} If the query returns errors + */ + async unwrap(): Promise { + const result = await this.execute(); + if (!result.ok) { + throw new GraphQLRequestError(result.errors, result.data); + } + return result.data; + } + + /** + * Execute and unwrap, returning defaultValue on error instead of throwing + */ + async unwrapOr(defaultValue: D): Promise { + const result = await this.execute(); + if (!result.ok) { + return defaultValue; + } + return result.data; + } + + /** + * Execute and unwrap, calling onError callback on failure + */ + async unwrapOrElse( + onError: (errors: import('./client').GraphQLError[]) => D + ): Promise { + const result = await this.execute(); + if (!result.ok) { + return onError(result.errors); + } + return result.data; + } + + toGraphQL(): string { + return this.config.document; + } + + getVariables(): Record | undefined { + return this.config.variables; + } +} + +const OP_QUERY = 'query' as unknown as import('graphql').OperationTypeNode; +const OP_MUTATION = 'mutation' as unknown as import('graphql').OperationTypeNode; +const ENUM_VALUE_KIND = 'EnumValue' as unknown as EnumValueNode['kind']; + +// ============================================================================ +// Selection Builders +// ============================================================================ + +export function buildSelections( + select: Record | undefined, + connectionFieldsMap?: Record>, + entityType?: string +): FieldNode[] { + if (!select) { + return []; + } + + const fields: FieldNode[] = []; + const entityConnections = entityType ? connectionFieldsMap?.[entityType] : undefined; + + for (const [key, value] of Object.entries(select)) { + if (value === false || value === undefined) { + continue; + } + + if (value === true) { + fields.push(t.field({ name: key })); + continue; + } + + if (typeof value === 'object' && value !== null) { + const nested = value as { + select?: Record; + first?: number; + filter?: Record; + orderBy?: string[]; + connection?: boolean; + }; + + if (!nested.select || typeof nested.select !== 'object') { + throw new Error( + `Invalid selection for field "${key}": nested selections must include a "select" object.` + ); + } + + const relatedEntityType = entityConnections?.[key]; + const nestedSelections = buildSelections( + nested.select, + connectionFieldsMap, + relatedEntityType + ); + const isConnection = + nested.connection === true || + nested.first !== undefined || + nested.filter !== undefined || + relatedEntityType !== undefined; + const args = buildArgs([ + buildOptionalArg('first', nested.first), + nested.filter + ? t.argument({ + name: 'filter', + value: buildValueAst(nested.filter), + }) + : null, + buildEnumListArg('orderBy', nested.orderBy), + ]); + + if (isConnection) { + fields.push( + t.field({ + name: key, + args, + selectionSet: t.selectionSet({ + selections: buildConnectionSelections(nestedSelections), + }), + }) + ); + } else { + fields.push( + t.field({ + name: key, + args, + selectionSet: t.selectionSet({ selections: nestedSelections }), + }) + ); + } + } + } + + return fields; +} + +// ============================================================================ +// Document Builders +// ============================================================================ + +export function buildFindManyDocument( + operationName: string, + queryField: string, + select: TSelect, + args: { + where?: TWhere; + orderBy?: string[]; + first?: number; + last?: number; + after?: string; + before?: string; + offset?: number; + }, + filterTypeName: string, + orderByTypeName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + const variableDefinitions: VariableDefinitionNode[] = []; + const queryArgs: ArgumentNode[] = []; + const variables: Record = {}; + + addVariable( + { + varName: 'where', + argName: 'filter', + typeName: filterTypeName, + value: args.where, + }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { + varName: 'orderBy', + typeName: '[' + orderByTypeName + '!]', + value: args.orderBy?.length ? args.orderBy : undefined, + }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { varName: 'first', typeName: 'Int', value: args.first }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { varName: 'last', typeName: 'Int', value: args.last }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { varName: 'after', typeName: 'Cursor', value: args.after }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { varName: 'before', typeName: 'Cursor', value: args.before }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { varName: 'offset', typeName: 'Int', value: args.offset }, + variableDefinitions, + queryArgs, + variables + ); + + const document = t.document({ + definitions: [ + t.operationDefinition({ + operation: OP_QUERY, + name: operationName + 'Query', + variableDefinitions: variableDefinitions.length ? variableDefinitions : undefined, + selectionSet: t.selectionSet({ + selections: [ + t.field({ + name: queryField, + args: queryArgs.length ? queryArgs : undefined, + selectionSet: t.selectionSet({ + selections: buildConnectionSelections(selections), + }), + }), + ], + }), + }), + ], + }); + + return { document: print(document), variables }; +} + +export function buildFindFirstDocument( + operationName: string, + queryField: string, + select: TSelect, + args: { where?: TWhere }, + filterTypeName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + const variableDefinitions: VariableDefinitionNode[] = []; + const queryArgs: ArgumentNode[] = []; + const variables: Record = {}; + + // Always add first: 1 for findFirst + addVariable( + { varName: 'first', typeName: 'Int', value: 1 }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { + varName: 'where', + argName: 'filter', + typeName: filterTypeName, + value: args.where, + }, + variableDefinitions, + queryArgs, + variables + ); + + const document = t.document({ + definitions: [ + t.operationDefinition({ + operation: OP_QUERY, + name: operationName + 'Query', + variableDefinitions, + selectionSet: t.selectionSet({ + selections: [ + t.field({ + name: queryField, + args: queryArgs, + selectionSet: t.selectionSet({ + selections: [ + t.field({ + name: 'nodes', + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + }), + ], + }), + }), + ], + }); + + return { document: print(document), variables }; +} + +export function buildCreateDocument( + operationName: string, + mutationField: string, + entityField: string, + select: TSelect, + data: TData, + inputTypeName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ + name: entityField, + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + variables: { + input: { + [entityField]: data, + }, + }, + }; +} + +export function buildUpdateDocument( + operationName: string, + mutationField: string, + entityField: string, + select: TSelect, + where: TWhere, + data: TData, + inputTypeName: string, + patchFieldName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ + name: entityField, + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + variables: { + input: { + id: where.id, + [patchFieldName]: data, + }, + }, + }; +} + +export function buildUpdateByPkDocument( + operationName: string, + mutationField: string, + entityField: string, + select: TSelect, + id: string | number, + data: TData, + inputTypeName: string, + idFieldName: string, + patchFieldName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ + name: entityField, + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + variables: { + input: { + [idFieldName]: id, + [patchFieldName]: data, + }, + }, + }; +} + +export function buildFindOneDocument( + operationName: string, + queryField: string, + id: string | number, + select: TSelect, + idArgName: string, + idTypeName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + const variableDefinitions: VariableDefinitionNode[] = [ + t.variableDefinition({ + variable: t.variable({ name: idArgName }), + type: parseType(idTypeName), + }), + ]; + + const queryArgs: ArgumentNode[] = [ + t.argument({ + name: idArgName, + value: t.variable({ name: idArgName }), + }), + ]; + + const document = t.document({ + definitions: [ + t.operationDefinition({ + operation: OP_QUERY, + name: operationName + 'Query', + variableDefinitions, + selectionSet: t.selectionSet({ + selections: [ + t.field({ + name: queryField, + args: queryArgs, + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + }), + ], + }); + + return { + document: print(document), + variables: { [idArgName]: id }, + }; +} + +export function buildDeleteDocument( + operationName: string, + mutationField: string, + entityField: string, + where: TWhere, + inputTypeName: string, + select?: TSelect, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const entitySelections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ + name: entityField, + selectionSet: t.selectionSet({ + selections: entitySelections, + }), + }), + ], + }), + variables: { + input: { + id: where.id, + }, + }, + }; +} + +export function buildDeleteByPkDocument( + operationName: string, + mutationField: string, + entityField: string, + id: string | number, + inputTypeName: string, + idFieldName: string, + select?: TSelect, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const entitySelections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ + name: entityField, + selectionSet: t.selectionSet({ selections: entitySelections }), + }), + ], + }), + variables: { + input: { + [idFieldName]: id, + }, + }, + }; +} + +export function buildCustomDocument( + operationType: 'query' | 'mutation', + operationName: string, + fieldName: string, + select: TSelect, + args: TArgs, + variableDefinitions: Array<{ name: string; type: string }>, + connectionFieldsMap?: Record>, + entityType?: string +): { document: string; variables: Record } { + let actualSelect: TSelect = select; + let isConnection = false; + + if (isCustomSelectionWrapper(select)) { + actualSelect = select.select as TSelect; + isConnection = select.connection === true; + } + + const selections = actualSelect + ? buildSelections(actualSelect as Record, connectionFieldsMap, entityType) + : []; + + const variableDefs = variableDefinitions.map((definition) => + t.variableDefinition({ + variable: t.variable({ name: definition.name }), + type: parseType(definition.type), + }) + ); + const fieldArgs = variableDefinitions.map((definition) => + t.argument({ + name: definition.name, + value: t.variable({ name: definition.name }), + }) + ); + + const fieldSelections = isConnection ? buildConnectionSelections(selections) : selections; + + const document = t.document({ + definitions: [ + t.operationDefinition({ + operation: operationType === 'mutation' ? OP_MUTATION : OP_QUERY, + name: operationName, + variableDefinitions: variableDefs.length ? variableDefs : undefined, + selectionSet: t.selectionSet({ + selections: [ + t.field({ + name: fieldName, + args: fieldArgs.length ? fieldArgs : undefined, + selectionSet: fieldSelections.length + ? t.selectionSet({ selections: fieldSelections }) + : undefined, + }), + ], + }), + }), + ], + }); + + return { + document: print(document), + variables: (args ?? {}) as Record, + }; +} + +function isCustomSelectionWrapper( + value: unknown +): value is { select: Record; connection?: boolean } { + if (!value || typeof value !== 'object' || Array.isArray(value)) { + return false; + } + + const record = value as Record; + const keys = Object.keys(record); + + if (!keys.includes('select') || !keys.includes('connection')) { + return false; + } + + if (keys.some((key) => key !== 'select' && key !== 'connection')) { + return false; + } + + return !!record.select && typeof record.select === 'object' && !Array.isArray(record.select); +} + +// ============================================================================ +// Helper Functions +// ============================================================================ + +function buildArgs(args: Array): ArgumentNode[] { + return args.filter((arg): arg is ArgumentNode => arg !== null); +} + +function buildOptionalArg(name: string, value: number | string | undefined): ArgumentNode | null { + if (value === undefined) { + return null; + } + const valueNode = + typeof value === 'number' ? t.intValue({ value: value.toString() }) : t.stringValue({ value }); + return t.argument({ name, value: valueNode }); +} + +function buildEnumListArg(name: string, values: string[] | undefined): ArgumentNode | null { + if (!values || values.length === 0) { + return null; + } + return t.argument({ + name, + value: t.listValue({ + values: values.map((value) => buildEnumValue(value)), + }), + }); +} + +function buildEnumValue(value: string): EnumValueNode { + return { + kind: ENUM_VALUE_KIND, + value, + }; +} + +function buildPageInfoSelections(): FieldNode[] { + return [ + t.field({ name: 'hasNextPage' }), + t.field({ name: 'hasPreviousPage' }), + t.field({ name: 'startCursor' }), + t.field({ name: 'endCursor' }), + ]; +} + +function buildConnectionSelections(nodeSelections: FieldNode[]): FieldNode[] { + return [ + t.field({ + name: 'nodes', + selectionSet: t.selectionSet({ selections: nodeSelections }), + }), + t.field({ name: 'totalCount' }), + t.field({ + name: 'pageInfo', + selectionSet: t.selectionSet({ selections: buildPageInfoSelections() }), + }), + ]; +} + +interface VariableSpec { + varName: string; + argName?: string; + typeName: string; + value: unknown; +} + +interface InputMutationConfig { + operationName: string; + mutationField: string; + inputTypeName: string; + resultSelections: FieldNode[]; +} + +function buildInputMutationDocument(config: InputMutationConfig): string { + const document = t.document({ + definitions: [ + t.operationDefinition({ + operation: OP_MUTATION, + name: config.operationName + 'Mutation', + variableDefinitions: [ + t.variableDefinition({ + variable: t.variable({ name: 'input' }), + type: parseType(config.inputTypeName + '!'), + }), + ], + selectionSet: t.selectionSet({ + selections: [ + t.field({ + name: config.mutationField, + args: [ + t.argument({ + name: 'input', + value: t.variable({ name: 'input' }), + }), + ], + selectionSet: t.selectionSet({ + selections: config.resultSelections, + }), + }), + ], + }), + }), + ], + }); + return print(document); +} + +function addVariable( + spec: VariableSpec, + definitions: VariableDefinitionNode[], + args: ArgumentNode[], + variables: Record +): void { + if (spec.value === undefined) return; + + definitions.push( + t.variableDefinition({ + variable: t.variable({ name: spec.varName }), + type: parseType(spec.typeName), + }) + ); + args.push( + t.argument({ + name: spec.argName ?? spec.varName, + value: t.variable({ name: spec.varName }), + }) + ); + variables[spec.varName] = spec.value; +} + +function buildValueAst( + value: unknown +): + | ReturnType + | ReturnType + | ReturnType + | ReturnType + | ReturnType + | ReturnType + | ReturnType + | EnumValueNode { + if (value === null) { + return t.nullValue(); + } + + if (typeof value === 'boolean') { + return t.booleanValue({ value }); + } + + if (typeof value === 'number') { + return Number.isInteger(value) + ? t.intValue({ value: value.toString() }) + : t.floatValue({ value: value.toString() }); + } + + if (typeof value === 'string') { + return t.stringValue({ value }); + } + + if (Array.isArray(value)) { + return t.listValue({ + values: value.map((item) => buildValueAst(item)), + }); + } + + if (typeof value === 'object' && value !== null) { + const obj = value as Record; + return t.objectValue({ + fields: Object.entries(obj).map(([key, val]) => + t.objectField({ + name: key, + value: buildValueAst(val), + }) + ), + }); + } + + throw new Error('Unsupported value type: ' + typeof value); +} diff --git a/sdk/constructive-react/src/objects/orm/query/index.ts b/sdk/constructive-react/src/objects/orm/query/index.ts new file mode 100644 index 000000000..ce1f8680d --- /dev/null +++ b/sdk/constructive-react/src/objects/orm/query/index.ts @@ -0,0 +1,224 @@ +/** + * Custom query operations + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { QueryBuilder, buildCustomDocument } from '../query-builder'; +import type { InferSelectResult, StrictSelect } from '../select-types'; +import type { Object, ObjectSelect, ObjectConnection } from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export interface RevParseVariables { + dbId?: string; + storeId?: string; + refname?: string; +} +export interface GetAllObjectsFromRootVariables { + databaseId?: string; + id?: string; + /** Only read the first `n` values of the set. */ + first?: number; + /** + * Skip the first `n` values from our `after` cursor, an alternative to cursor + * based pagination. May not be used with `last`. + */ + offset?: number; + /** Read all values in the set after (below) this cursor. */ + after?: string; +} +export interface GetPathObjectsFromRootVariables { + databaseId?: string; + id?: string; + path?: string[]; + /** Only read the first `n` values of the set. */ + first?: number; + /** + * Skip the first `n` values from our `after` cursor, an alternative to cursor + * based pagination. May not be used with `last`. + */ + offset?: number; + /** Read all values in the set after (below) this cursor. */ + after?: string; +} +export interface GetObjectAtPathVariables { + dbId?: string; + storeId?: string; + path?: string[]; + refname?: string; +} +export function createQueryOperations(client: OrmClient) { + return { + revParse: ( + args: RevParseVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + revParse: string | null; + }>({ + client, + operation: 'query', + operationName: 'RevParse', + fieldName: 'revParse', + ...buildCustomDocument( + 'query', + 'RevParse', + 'revParse', + options?.select, + args, + [ + { + name: 'dbId', + type: 'UUID', + }, + { + name: 'storeId', + type: 'UUID', + }, + { + name: 'refname', + type: 'String', + }, + ], + connectionFieldsMap, + undefined + ), + }), + getAllObjectsFromRoot: ( + args: GetAllObjectsFromRootVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + getAllObjectsFromRoot: ObjectConnection | null; + }>({ + client, + operation: 'query', + operationName: 'GetAllObjectsFromRoot', + fieldName: 'getAllObjectsFromRoot', + ...buildCustomDocument( + 'query', + 'GetAllObjectsFromRoot', + 'getAllObjectsFromRoot', + options?.select, + args, + [ + { + name: 'databaseId', + type: 'UUID', + }, + { + name: 'id', + type: 'UUID', + }, + { + name: 'first', + type: 'Int', + }, + { + name: 'offset', + type: 'Int', + }, + { + name: 'after', + type: 'Cursor', + }, + ], + connectionFieldsMap, + undefined + ), + }), + getPathObjectsFromRoot: ( + args: GetPathObjectsFromRootVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + getPathObjectsFromRoot: ObjectConnection | null; + }>({ + client, + operation: 'query', + operationName: 'GetPathObjectsFromRoot', + fieldName: 'getPathObjectsFromRoot', + ...buildCustomDocument( + 'query', + 'GetPathObjectsFromRoot', + 'getPathObjectsFromRoot', + options?.select, + args, + [ + { + name: 'databaseId', + type: 'UUID', + }, + { + name: 'id', + type: 'UUID', + }, + { + name: 'path', + type: '[String]', + }, + { + name: 'first', + type: 'Int', + }, + { + name: 'offset', + type: 'Int', + }, + { + name: 'after', + type: 'Cursor', + }, + ], + connectionFieldsMap, + undefined + ), + }), + getObjectAtPath: ( + args: GetObjectAtPathVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + getObjectAtPath: InferSelectResult | null; + }>({ + client, + operation: 'query', + operationName: 'GetObjectAtPath', + fieldName: 'getObjectAtPath', + ...buildCustomDocument( + 'query', + 'GetObjectAtPath', + 'getObjectAtPath', + options.select, + args, + [ + { + name: 'dbId', + type: 'UUID', + }, + { + name: 'storeId', + type: 'UUID', + }, + { + name: 'path', + type: '[String]', + }, + { + name: 'refname', + type: 'String', + }, + ], + connectionFieldsMap, + 'Object' + ), + }), + }; +} diff --git a/sdk/constructive-react/src/objects/orm/select-types.ts b/sdk/constructive-react/src/objects/orm/select-types.ts new file mode 100644 index 000000000..80165efa6 --- /dev/null +++ b/sdk/constructive-react/src/objects/orm/select-types.ts @@ -0,0 +1,140 @@ +/** + * Type utilities for select inference + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export interface ConnectionResult { + nodes: T[]; + totalCount: number; + pageInfo: PageInfo; +} + +export interface PageInfo { + hasNextPage: boolean; + hasPreviousPage: boolean; + startCursor?: string | null; + endCursor?: string | null; +} + +export interface FindManyArgs { + select?: TSelect; + where?: TWhere; + orderBy?: TOrderBy[]; + first?: number; + last?: number; + after?: string; + before?: string; + offset?: number; +} + +export interface FindFirstArgs { + select?: TSelect; + where?: TWhere; +} + +export interface CreateArgs { + data: TData; + select?: TSelect; +} + +export interface UpdateArgs { + where: TWhere; + data: TData; + select?: TSelect; +} + +export type FindOneArgs = { + select?: TSelect; +} & Record; + +export interface DeleteArgs { + where: TWhere; + select?: TSelect; +} + +type DepthLevel = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10; +type DecrementDepth = { + 0: 0; + 1: 0; + 2: 1; + 3: 2; + 4: 3; + 5: 4; + 6: 5; + 7: 6; + 8: 7; + 9: 8; + 10: 9; +}; + +/** + * Recursively validates select objects, rejecting unknown keys. + * + * NOTE: Depth is intentionally capped to avoid circular-instantiation issues + * in very large cyclic schemas. + */ +export type DeepExact = Depth extends 0 + ? T extends Shape + ? T + : never + : T extends Shape + ? Exclude extends never + ? { + [K in keyof T]: K extends keyof Shape + ? T[K] extends { select: infer NS } + ? Extract extends { + select?: infer ShapeNS; + } + ? DeepExact< + Omit & { + select: DeepExact, DecrementDepth[Depth]>; + }, + Extract, + DecrementDepth[Depth] + > + : never + : T[K] + : never; + } + : never + : never; + +/** + * Enforces exact select shape while keeping contextual typing on `S extends XxxSelect`. + * Use this as an intersection in overloads: + * `{ select: S } & StrictSelect`. + */ +export type StrictSelect = S extends DeepExact ? {} : never; + +/** + * Hook-optimized strict select variant. + * + * Uses a shallower recursion depth to keep editor autocomplete responsive + * in large schemas while still validating common nested-select mistakes. + */ +export type HookStrictSelect = S extends DeepExact ? {} : never; + +/** + * Infer result type from select configuration + */ +export type InferSelectResult = TSelect extends undefined + ? TEntity + : { + [K in keyof TSelect as TSelect[K] extends false | undefined + ? never + : K]: TSelect[K] extends true + ? K extends keyof TEntity + ? TEntity[K] + : never + : TSelect[K] extends { select: infer NestedSelect } + ? K extends keyof TEntity + ? NonNullable extends ConnectionResult + ? ConnectionResult> + : + | InferSelectResult, NestedSelect> + | (null extends TEntity[K] ? null : never) + : never + : K extends keyof TEntity + ? TEntity[K] + : never; + }; diff --git a/sdk/constructive-react/src/objects/orm/skills/commit.md b/sdk/constructive-react/src/objects/orm/skills/commit.md new file mode 100644 index 000000000..ee1b9fea4 --- /dev/null +++ b/sdk/constructive-react/src/objects/orm/skills/commit.md @@ -0,0 +1,34 @@ +# orm-commit + + + +ORM operations for Commit records + +## 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 new file mode 100644 index 000000000..b3f195547 --- /dev/null +++ b/sdk/constructive-react/src/objects/orm/skills/freezeObjects.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..71c5db4db --- /dev/null +++ b/sdk/constructive-react/src/objects/orm/skills/getAllObjectsFromRoot.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..9c61daad2 --- /dev/null +++ b/sdk/constructive-react/src/objects/orm/skills/getAllRecord.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..820b6d5fc --- /dev/null +++ b/sdk/constructive-react/src/objects/orm/skills/getObjectAtPath.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..954943d90 --- /dev/null +++ b/sdk/constructive-react/src/objects/orm/skills/getPathObjectsFromRoot.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..43a46841f --- /dev/null +++ b/sdk/constructive-react/src/objects/orm/skills/initEmptyRepo.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..2e9db15a0 --- /dev/null +++ b/sdk/constructive-react/src/objects/orm/skills/insertNodeAtPath.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..e006a0b5a --- /dev/null +++ b/sdk/constructive-react/src/objects/orm/skills/object.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..bf392da9b --- /dev/null +++ b/sdk/constructive-react/src/objects/orm/skills/ref.md @@ -0,0 +1,34 @@ +# orm-ref + + + +ORM operations for Ref records + +## 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 new file mode 100644 index 000000000..116c41c0a --- /dev/null +++ b/sdk/constructive-react/src/objects/orm/skills/removeNodeAtPath.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..0a1830ff8 --- /dev/null +++ b/sdk/constructive-react/src/objects/orm/skills/revParse.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..a5fa6e0d9 --- /dev/null +++ b/sdk/constructive-react/src/objects/orm/skills/setAndCommit.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..7f09dab97 --- /dev/null +++ b/sdk/constructive-react/src/objects/orm/skills/setDataAtPath.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..7248c0e1c --- /dev/null +++ b/sdk/constructive-react/src/objects/orm/skills/setPropsAndCommit.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..95a5a7054 --- /dev/null +++ b/sdk/constructive-react/src/objects/orm/skills/store.md @@ -0,0 +1,34 @@ +# orm-store + + + +ORM operations for Store records + +## 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 new file mode 100644 index 000000000..d1a7bbf95 --- /dev/null +++ b/sdk/constructive-react/src/objects/orm/skills/updateNodeAtPath.md @@ -0,0 +1,19 @@ +# 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/objects/orm/types.ts b/sdk/constructive-react/src/objects/orm/types.ts new file mode 100644 index 000000000..7c1120bcd --- /dev/null +++ b/sdk/constructive-react/src/objects/orm/types.ts @@ -0,0 +1,8 @@ +/** + * Types re-export + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +// Re-export all types from input-types +export * from './input-types'; diff --git a/sdk/constructive-react/src/objects/schema-types.ts b/sdk/constructive-react/src/objects/schema-types.ts new file mode 100644 index 000000000..a61a41dbc --- /dev/null +++ b/sdk/constructive-react/src/objects/schema-types.ts @@ -0,0 +1,764 @@ +/** + * GraphQL schema types for custom operations + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import type { + Commit, + GetAllRecord, + Object, + Ref, + Store, + BigFloatFilter, + BigIntFilter, + BitStringFilter, + BooleanFilter, + DateFilter, + DatetimeFilter, + FloatFilter, + FullTextFilter, + IntFilter, + IntListFilter, + InternetAddressFilter, + JSONFilter, + StringFilter, + StringListFilter, + UUIDFilter, + UUIDListFilter, +} from './types'; +/** Methods to use when ordering `Ref`. */ +export type RefOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC'; +/** Methods to use when ordering `Store`. */ +export type StoreOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +/** Methods to use when ordering `Commit`. */ +export type CommitOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +/** Methods to use when ordering `Object`. */ +export type ObjectOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'FRZN_ASC' + | 'FRZN_DESC'; +/** 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. */ + name?: string; + /** Checks for equality with the object’s `databaseId` field. */ + databaseId?: string; + /** Checks for equality with the object’s `storeId` field. */ + storeId?: string; + /** Checks for equality with the object’s `commitId` field. */ + commitId?: string; +} +/** A filter to be used against `Ref` object types. All fields are combined with a logical ‘and.’ */ +export interface RefFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: RefFilter[]; + /** Checks for any expressions in this list. */ + or?: RefFilter[]; + /** Negates the expression. */ + not?: RefFilter; +} +/** A condition to be used against `Store` object types. All fields are tested for equality and combined with a logical ‘and.’ */ +export interface StoreCondition { + /** 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 `databaseId` field. */ + databaseId?: string; + /** Checks for equality with the object’s `hash` field. */ + hash?: string; + /** Checks for equality with the object’s `createdAt` field. */ + createdAt?: string; +} +/** A filter to be used against `Store` object types. All fields are combined with a logical ‘and.’ */ +export interface StoreFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `hash` field. */ + hash?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: StoreFilter[]; + /** Checks for any expressions in this list. */ + or?: StoreFilter[]; + /** Negates the expression. */ + not?: StoreFilter; +} +/** A condition to be used against `Commit` object types. All fields are tested for equality and combined with a logical ‘and.’ */ +export interface CommitCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `message` field. */ + message?: string; + /** Checks for equality with the object’s `databaseId` field. */ + databaseId?: string; + /** Checks for equality with the object’s `storeId` field. */ + storeId?: string; + /** Checks for equality with the object’s `parentIds` field. */ + parentIds?: string[]; + /** Checks for equality with the object’s `authorId` field. */ + authorId?: string; + /** Checks for equality with the object’s `committerId` field. */ + committerId?: string; + /** Checks for equality with the object’s `treeId` field. */ + treeId?: string; + /** Checks for equality with the object’s `date` field. */ + date?: string; +} +/** A filter to be used against `Commit` object types. All fields are combined with a logical ‘and.’ */ +export interface CommitFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `message` field. */ + message?: StringFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `parentIds` field. */ + parentIds?: UUIDListFilter; + /** Filter by the object’s `authorId` field. */ + authorId?: UUIDFilter; + /** Filter by the object’s `committerId` field. */ + committerId?: UUIDFilter; + /** Filter by the object’s `treeId` field. */ + treeId?: UUIDFilter; + /** Filter by the object’s `date` field. */ + date?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: CommitFilter[]; + /** Checks for any expressions in this list. */ + or?: CommitFilter[]; + /** Negates the expression. */ + not?: CommitFilter; +} +/** 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. */ + id?: string; + /** Checks for equality with the object’s `databaseId` field. */ + databaseId?: string; + /** Checks for equality with the object’s `kids` field. */ + kids?: string[]; + /** Checks for equality with the object’s `ktree` field. */ + ktree?: string[]; + /** Checks for equality with the object’s `data` field. */ + data?: unknown; + /** Checks for equality with the object’s `frzn` field. */ + frzn?: boolean; + /** Checks for equality with the object’s `createdAt` field. */ + createdAt?: string; +} +/** A filter to be used against `Object` object types. All fields are combined with a logical ‘and.’ */ +export interface ObjectFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `kids` field. */ + kids?: UUIDListFilter; + /** Filter by the object’s `ktree` field. */ + ktree?: StringListFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; + /** Filter by the object’s `frzn` field. */ + frzn?: BooleanFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: ObjectFilter[]; + /** Checks for any expressions in this list. */ + or?: ObjectFilter[]; + /** Negates the expression. */ + not?: ObjectFilter; +} +export interface FreezeObjectsInput { + clientMutationId?: string; + databaseId?: string; + id?: string; +} +export interface InitEmptyRepoInput { + clientMutationId?: string; + dbId?: string; + storeId?: string; +} +export interface RemoveNodeAtPathInput { + clientMutationId?: string; + dbId?: string; + root?: string; + path?: string[]; +} +export interface SetDataAtPathInput { + clientMutationId?: string; + dbId?: string; + root?: string; + path?: string[]; + data?: unknown; +} +export interface SetPropsAndCommitInput { + clientMutationId?: string; + dbId?: string; + storeId?: string; + refname?: string; + path?: string[]; + data?: unknown; +} +export interface InsertNodeAtPathInput { + clientMutationId?: string; + dbId?: string; + root?: string; + path?: string[]; + data?: unknown; + kids?: string[]; + ktree?: string[]; +} +export interface UpdateNodeAtPathInput { + clientMutationId?: string; + dbId?: string; + root?: string; + path?: string[]; + data?: unknown; + kids?: string[]; + ktree?: string[]; +} +export interface SetAndCommitInput { + clientMutationId?: string; + dbId?: string; + storeId?: string; + refname?: string; + path?: string[]; + data?: unknown; + kids?: string[]; + ktree?: string[]; +} +export interface CreateRefInput { + clientMutationId?: string; + /** The `Ref` to be created by this mutation. */ + ref: RefInput; +} +/** An input for mutations affecting `Ref` */ +export interface RefInput { + /** The primary unique identifier for the ref. */ + id?: string; + /** The name of the ref or branch */ + name: string; + databaseId: string; + storeId: string; + commitId?: string; +} +export interface CreateStoreInput { + clientMutationId?: string; + /** The `Store` to be created by this mutation. */ + store: StoreInput; +} +/** An input for mutations affecting `Store` */ +export interface StoreInput { + /** The primary unique identifier for the store. */ + id?: string; + /** The name of the store (e.g., metaschema, migrations). */ + name: string; + /** The database this store belongs to. */ + databaseId: string; + /** The current head tree_id for this store. */ + hash?: string; + createdAt?: string; +} +export interface CreateCommitInput { + clientMutationId?: string; + /** The `Commit` to be created by this mutation. */ + commit: CommitInput; +} +/** An input for mutations affecting `Commit` */ +export interface CommitInput { + /** The primary unique identifier for the commit. */ + id?: string; + /** The commit message */ + message?: string; + /** The repository identifier */ + databaseId: string; + storeId: string; + /** Parent commits */ + parentIds?: string[]; + /** The author of the commit */ + authorId?: string; + /** The committer of the commit */ + committerId?: string; + /** The root of the tree */ + treeId?: string; + date?: string; +} +export interface CreateObjectInput { + clientMutationId?: string; + /** The `Object` to be created by this mutation. */ + object: ObjectInput; +} +/** An input for mutations affecting `Object` */ +export interface ObjectInput { + id: string; + databaseId: string; + kids?: string[]; + ktree?: string[]; + data?: unknown; + frzn?: boolean; + createdAt?: string; +} +export interface UpdateRefInput { + clientMutationId?: string; + /** The primary unique identifier for the ref. */ + id: string; + databaseId: string; + /** An object where the defined keys will be set on the `Ref` being updated. */ + refPatch: RefPatch; +} +/** Represents an update to a `Ref`. Fields that are set will be updated. */ +export interface RefPatch { + /** The primary unique identifier for the ref. */ + id?: string; + /** The name of the ref or branch */ + name?: string; + databaseId?: string; + storeId?: string; + commitId?: string; +} +export interface UpdateStoreInput { + clientMutationId?: string; + /** The primary unique identifier for the store. */ + id: string; + /** An object where the defined keys will be set on the `Store` being updated. */ + storePatch: StorePatch; +} +/** Represents an update to a `Store`. Fields that are set will be updated. */ +export interface StorePatch { + /** The primary unique identifier for the store. */ + id?: string; + /** The name of the store (e.g., metaschema, migrations). */ + name?: string; + /** The database this store belongs to. */ + databaseId?: string; + /** The current head tree_id for this store. */ + hash?: string; + createdAt?: string; +} +export interface UpdateCommitInput { + clientMutationId?: string; + /** The primary unique identifier for the commit. */ + id: string; + /** The repository identifier */ + databaseId: string; + /** An object where the defined keys will be set on the `Commit` being updated. */ + commitPatch: CommitPatch; +} +/** Represents an update to a `Commit`. Fields that are set will be updated. */ +export interface CommitPatch { + /** The primary unique identifier for the commit. */ + id?: string; + /** The commit message */ + message?: string; + /** The repository identifier */ + databaseId?: string; + storeId?: string; + /** Parent commits */ + parentIds?: string[]; + /** The author of the commit */ + authorId?: string; + /** The committer of the commit */ + committerId?: string; + /** The root of the tree */ + treeId?: string; + date?: string; +} +export interface UpdateObjectInput { + clientMutationId?: string; + id: string; + databaseId: string; + /** An object where the defined keys will be set on the `Object` being updated. */ + objectPatch: ObjectPatch; +} +/** Represents an update to a `Object`. Fields that are set will be updated. */ +export interface ObjectPatch { + id?: string; + databaseId?: string; + kids?: string[]; + ktree?: string[]; + data?: unknown; + frzn?: boolean; + createdAt?: string; +} +export interface DeleteRefInput { + clientMutationId?: string; + /** The primary unique identifier for the ref. */ + id: string; + databaseId: string; +} +export interface DeleteStoreInput { + clientMutationId?: string; + /** The primary unique identifier for the store. */ + id: string; +} +export interface DeleteCommitInput { + clientMutationId?: string; + /** The primary unique identifier for the commit. */ + id: string; + /** The repository identifier */ + databaseId: string; +} +export interface DeleteObjectInput { + clientMutationId?: string; + id: string; + databaseId: string; +} +/** A connection to a list of `GetAllRecord` values. */ +export interface GetAllConnection { + nodes: GetAllRecord[]; + edges: GetAllEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `Object` values. */ +export interface ObjectConnection { + nodes: Object[]; + edges: ObjectEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `Ref` values. */ +export interface RefConnection { + nodes: Ref[]; + edges: RefEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `Store` values. */ +export interface StoreConnection { + nodes: Store[]; + edges: StoreEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `Commit` values. */ +export interface CommitConnection { + nodes: Commit[]; + edges: CommitEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** Root meta schema type */ +export interface MetaSchema { + tables: MetaTable[]; +} +export interface FreezeObjectsPayload { + clientMutationId?: string | null; +} +export interface InitEmptyRepoPayload { + clientMutationId?: string | null; +} +export interface RemoveNodeAtPathPayload { + clientMutationId?: string | null; + result?: string | null; +} +export interface SetDataAtPathPayload { + clientMutationId?: string | null; + result?: string | null; +} +export interface SetPropsAndCommitPayload { + clientMutationId?: string | null; + result?: string | null; +} +export interface InsertNodeAtPathPayload { + clientMutationId?: string | null; + result?: string | null; +} +export interface UpdateNodeAtPathPayload { + clientMutationId?: string | null; + result?: string | null; +} +export interface SetAndCommitPayload { + clientMutationId?: string | null; + result?: string | null; +} +export interface CreateRefPayload { + clientMutationId?: string | null; + /** The `Ref` that was created by this mutation. */ + ref?: Ref | null; + refEdge?: RefEdge | null; +} +export interface CreateStorePayload { + clientMutationId?: string | null; + /** The `Store` that was created by this mutation. */ + store?: Store | null; + storeEdge?: StoreEdge | null; +} +export interface CreateCommitPayload { + clientMutationId?: string | null; + /** The `Commit` that was created by this mutation. */ + commit?: Commit | null; + commitEdge?: CommitEdge | null; +} +export interface CreateObjectPayload { + clientMutationId?: string | null; + /** The `Object` that was created by this mutation. */ + object?: Object | null; + objectEdge?: ObjectEdge | null; +} +export interface UpdateRefPayload { + clientMutationId?: string | null; + /** The `Ref` that was updated by this mutation. */ + ref?: Ref | null; + refEdge?: RefEdge | null; +} +export interface UpdateStorePayload { + clientMutationId?: string | null; + /** The `Store` that was updated by this mutation. */ + store?: Store | null; + storeEdge?: StoreEdge | null; +} +export interface UpdateCommitPayload { + clientMutationId?: string | null; + /** The `Commit` that was updated by this mutation. */ + commit?: Commit | null; + commitEdge?: CommitEdge | null; +} +export interface UpdateObjectPayload { + clientMutationId?: string | null; + /** The `Object` that was updated by this mutation. */ + object?: Object | null; + objectEdge?: ObjectEdge | null; +} +export interface DeleteRefPayload { + clientMutationId?: string | null; + /** The `Ref` that was deleted by this mutation. */ + ref?: Ref | null; + refEdge?: RefEdge | null; +} +export interface DeleteStorePayload { + clientMutationId?: string | null; + /** The `Store` that was deleted by this mutation. */ + store?: Store | null; + storeEdge?: StoreEdge | null; +} +export interface DeleteCommitPayload { + clientMutationId?: string | null; + /** The `Commit` that was deleted by this mutation. */ + commit?: Commit | null; + commitEdge?: CommitEdge | null; +} +export interface DeleteObjectPayload { + clientMutationId?: string | null; + /** The `Object` that was deleted by this mutation. */ + object?: Object | null; + objectEdge?: ObjectEdge | null; +} +/** A `GetAllRecord` edge in the connection. */ +export interface GetAllEdge { + cursor?: string | null; + /** The `GetAllRecord` at the end of the edge. */ + node?: GetAllRecord | null; +} +/** Information about pagination in a connection. */ +export interface PageInfo { + /** When paginating forwards, are there more items? */ + hasNextPage: boolean; + /** When paginating backwards, are there more items? */ + hasPreviousPage: boolean; + /** When paginating backwards, the cursor to continue. */ + startCursor?: string | null; + /** When paginating forwards, the cursor to continue. */ + endCursor?: string | null; +} +/** A `Object` edge in the connection. */ +export interface ObjectEdge { + cursor?: string | null; + /** The `Object` at the end of the edge. */ + node?: Object | null; +} +/** A `Ref` edge in the connection. */ +export interface RefEdge { + cursor?: string | null; + /** The `Ref` at the end of the edge. */ + node?: Ref | null; +} +/** A `Store` edge in the connection. */ +export interface StoreEdge { + cursor?: string | null; + /** The `Store` at the end of the edge. */ + node?: Store | null; +} +/** A `Commit` edge in the connection. */ +export interface CommitEdge { + cursor?: string | null; + /** The `Commit` at the end of the edge. */ + node?: Commit | null; +} +/** Information about a database table */ +export interface MetaTable { + name: string; + schemaName: string; + fields: MetaField[]; + indexes: MetaIndex[]; + constraints: MetaConstraints; + foreignKeyConstraints: MetaForeignKeyConstraint[]; + primaryKeyConstraints: MetaPrimaryKeyConstraint[]; + uniqueConstraints: MetaUniqueConstraint[]; + relations: MetaRelations; + inflection: MetaInflection; + query: MetaQuery; +} +/** Information about a table field/column */ +export interface MetaField { + name: string; + type: MetaType; + isNotNull: boolean; + hasDefault: boolean; +} +/** Information about a database index */ +export interface MetaIndex { + name: string; + isUnique: boolean; + isPrimary: boolean; + columns: string[]; + fields?: MetaField[] | null; +} +/** Table constraints */ +export interface MetaConstraints { + primaryKey?: MetaPrimaryKeyConstraint | null; + unique: MetaUniqueConstraint[]; + foreignKey: MetaForeignKeyConstraint[]; +} +/** Information about a foreign key constraint */ +export interface MetaForeignKeyConstraint { + name: string; + fields: MetaField[]; + referencedTable: string; + referencedFields: string[]; + refFields?: MetaField[] | null; + refTable?: MetaRefTable | null; +} +/** Information about a primary key constraint */ +export interface MetaPrimaryKeyConstraint { + name: string; + fields: MetaField[]; +} +/** Information about a unique constraint */ +export interface MetaUniqueConstraint { + name: string; + fields: MetaField[]; +} +/** Table relations */ +export interface MetaRelations { + belongsTo: MetaBelongsToRelation[]; + has: MetaHasRelation[]; + hasOne: MetaHasRelation[]; + hasMany: MetaHasRelation[]; + manyToMany: MetaManyToManyRelation[]; +} +/** Table inflection names */ +export interface MetaInflection { + tableType: string; + allRows: string; + connection: string; + edge: string; + filterType?: string | null; + orderByType: string; + conditionType: string; + patchType?: string | null; + createInputType: string; + createPayloadType: string; + updatePayloadType?: string | null; + deletePayloadType: string; +} +/** Table query/mutation names */ +export interface MetaQuery { + all: string; + one?: string | null; + create?: string | null; + update?: string | null; + delete?: string | null; +} +/** Information about a PostgreSQL type */ +export interface MetaType { + pgType: string; + gqlType: string; + isArray: boolean; + isNotNull?: boolean | null; + hasDefault?: boolean | null; +} +/** Reference to a related table */ +export interface MetaRefTable { + name: string; +} +/** A belongs-to (forward FK) relation */ +export interface MetaBelongsToRelation { + fieldName?: string | null; + isUnique: boolean; + type?: string | null; + keys: MetaField[]; + references: MetaRefTable; +} +/** A has-one or has-many (reverse FK) relation */ +export interface MetaHasRelation { + fieldName?: string | null; + isUnique: boolean; + type?: string | null; + keys: MetaField[]; + referencedBy: MetaRefTable; +} +/** A many-to-many relation via junction table */ +export interface MetaManyToManyRelation { + fieldName?: string | null; + type?: string | null; + junctionTable: MetaRefTable; + junctionLeftConstraint: MetaForeignKeyConstraint; + junctionLeftKeyAttributes: MetaField[]; + junctionRightConstraint: MetaForeignKeyConstraint; + junctionRightKeyAttributes: MetaField[]; + leftKeyAttributes: MetaField[]; + rightKeyAttributes: MetaField[]; + rightTable: MetaRefTable; +} diff --git a/sdk/constructive-react/src/objects/types.ts b/sdk/constructive-react/src/objects/types.ts new file mode 100644 index 000000000..0b3404d8d --- /dev/null +++ b/sdk/constructive-react/src/objects/types.ts @@ -0,0 +1,261 @@ +/** + * Entity types and filter types + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export interface GetAllRecord { + path: string[] | null; + data: unknown | null; +} +export interface Object { + hashUuid: string | null; + id: string | null; + databaseId: string | null; + kids: string[] | null; + ktree: string[] | null; + data: unknown | null; + frzn: boolean | null; + createdAt: string | null; +} +export interface Ref { + id: string | null; + name: string | null; + databaseId: string | null; + storeId: string | null; + commitId: string | null; +} +export interface Store { + id: string | null; + name: string | null; + databaseId: string | null; + hash: string | null; + createdAt: string | null; +} +export interface Commit { + id: string | null; + message: string | null; + databaseId: string | null; + storeId: string | null; + parentIds: string[] | null; + authorId: string | null; + committerId: string | null; + treeId: string | null; + date: string | null; +} +export interface StringFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; + includes?: string; + notIncludes?: string; + includesInsensitive?: string; + notIncludesInsensitive?: string; + startsWith?: string; + notStartsWith?: string; + startsWithInsensitive?: string; + notStartsWithInsensitive?: string; + endsWith?: string; + notEndsWith?: string; + endsWithInsensitive?: string; + notEndsWithInsensitive?: string; + like?: string; + notLike?: string; + likeInsensitive?: string; + notLikeInsensitive?: string; +} +export interface IntFilter { + isNull?: boolean; + equalTo?: number; + notEqualTo?: number; + distinctFrom?: number; + notDistinctFrom?: number; + in?: number[]; + notIn?: number[]; + lessThan?: number; + lessThanOrEqualTo?: number; + greaterThan?: number; + greaterThanOrEqualTo?: number; +} +export interface FloatFilter { + isNull?: boolean; + equalTo?: number; + notEqualTo?: number; + distinctFrom?: number; + notDistinctFrom?: number; + in?: number[]; + notIn?: number[]; + lessThan?: number; + lessThanOrEqualTo?: number; + greaterThan?: number; + greaterThanOrEqualTo?: number; +} +export interface BooleanFilter { + isNull?: boolean; + equalTo?: boolean; + notEqualTo?: boolean; +} +export interface UUIDFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; +} +export interface DatetimeFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface DateFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface JSONFilter { + isNull?: boolean; + equalTo?: Record; + notEqualTo?: Record; + distinctFrom?: Record; + notDistinctFrom?: Record; + contains?: unknown; + containedBy?: unknown; + containsKey?: string; + containsAllKeys?: string[]; + containsAnyKeys?: string[]; +} +export interface BigIntFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface BigFloatFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface BitStringFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; +} +export interface InternetAddressFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; + contains?: string; + containedBy?: string; + containsOrContainedBy?: string; +} +export interface FullTextFilter { + matches?: string; +} +export interface StringListFilter { + isNull?: boolean; + equalTo?: string[]; + notEqualTo?: string[]; + distinctFrom?: string[]; + notDistinctFrom?: string[]; + lessThan?: string[]; + lessThanOrEqualTo?: string[]; + greaterThan?: string[]; + greaterThanOrEqualTo?: string[]; + contains?: string[]; + containedBy?: string[]; + overlaps?: string[]; + anyEqualTo?: string; + anyNotEqualTo?: string; + anyLessThan?: string; + anyLessThanOrEqualTo?: string; + anyGreaterThan?: string; + anyGreaterThanOrEqualTo?: string; +} +export interface IntListFilter { + isNull?: boolean; + equalTo?: number[]; + notEqualTo?: number[]; + distinctFrom?: number[]; + notDistinctFrom?: number[]; + lessThan?: number[]; + lessThanOrEqualTo?: number[]; + greaterThan?: number[]; + greaterThanOrEqualTo?: number[]; + contains?: number[]; + containedBy?: number[]; + overlaps?: number[]; + anyEqualTo?: number; + anyNotEqualTo?: number; + anyLessThan?: number; + anyLessThanOrEqualTo?: number; + anyGreaterThan?: number; + anyGreaterThanOrEqualTo?: number; +} +export interface UUIDListFilter { + isNull?: boolean; + equalTo?: string[]; + notEqualTo?: string[]; + distinctFrom?: string[]; + notDistinctFrom?: string[]; + lessThan?: string[]; + lessThanOrEqualTo?: string[]; + greaterThan?: string[]; + greaterThanOrEqualTo?: string[]; + contains?: string[]; + containedBy?: string[]; + overlaps?: string[]; + anyEqualTo?: string; + anyNotEqualTo?: string; + anyLessThan?: string; + anyLessThanOrEqualTo?: string; + anyGreaterThan?: string; + anyGreaterThanOrEqualTo?: string; +} diff --git a/sdk/constructive-react/src/public/README.md b/sdk/constructive-react/src/public/README.md new file mode 100644 index 000000000..27db180e0 --- /dev/null +++ b/sdk/constructive-react/src/public/README.md @@ -0,0 +1,54 @@ +# Generated GraphQL SDK + +

+ +

+ + + +## Overview + +- **Tables:** 99 +- **Custom queries:** 18 +- **Custom mutations:** 31 + +**Generators:** ORM, React Query + +## Modules + +### ORM Client (`./orm`) + +Prisma-like ORM client for programmatic GraphQL access. + +```typescript +import { createClient } from './orm'; + +const db = createClient({ + endpoint: 'https://api.example.com/graphql', +}); +``` + +See [orm/README.md](./orm/README.md) for full API reference. + +### React Query Hooks (`./hooks`) + +Type-safe React Query hooks for data fetching and mutations. + +```typescript +import { configure } from './hooks'; +import { useCarsQuery } from './hooks'; + +configure({ endpoint: 'https://api.example.com/graphql' }); +``` + +See [hooks/README.md](./hooks/README.md) for full hook reference. + +--- + +Built by the [Constructive](https://constructive.io) team. + +## Disclaimer + +AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED "AS IS", AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND. + +No developer or entity involved in creating this software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the code, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value. diff --git a/sdk/constructive-react/src/public/hooks/README.md b/sdk/constructive-react/src/public/hooks/README.md new file mode 100644 index 000000000..d29c9d778 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/README.md @@ -0,0 +1,3242 @@ +# React Query Hooks + +

+ +

+ + + +## Setup + +```typescript +import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; +import { configure } from './hooks'; + +configure({ + endpoint: 'https://api.example.com/graphql', + headers: { Authorization: 'Bearer ' }, +}); + +const queryClient = new QueryClient(); + +function App() { + return ( + + + + ); +} +``` + +## Hooks + +| Hook | Type | Description | +|------|------|-------------| +| `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 | +| `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 | List all appLevelRequirements | +| `useAppLevelRequirementQuery` | Query | Get one appLevelRequirement | +| `useCreateAppLevelRequirementMutation` | Mutation | Create a appLevelRequirement | +| `useUpdateAppLevelRequirementMutation` | Mutation | Update a appLevelRequirement | +| `useDeleteAppLevelRequirementMutation` | Mutation | Delete a appLevelRequirement | +| `useDatabasesQuery` | Query | List all databases | +| `useDatabaseQuery` | Query | Get one database | +| `useCreateDatabaseMutation` | Mutation | Create a database | +| `useUpdateDatabaseMutation` | Mutation | Update a database | +| `useDeleteDatabaseMutation` | Mutation | Delete a database | +| `useSchemasQuery` | Query | List all schemas | +| `useSchemaQuery` | Query | Get one schema | +| `useCreateSchemaMutation` | Mutation | Create a schema | +| `useUpdateSchemaMutation` | Mutation | Update a schema | +| `useDeleteSchemaMutation` | Mutation | Delete a schema | +| `useTablesQuery` | Query | List all tables | +| `useTableQuery` | Query | Get one table | +| `useCreateTableMutation` | Mutation | Create a table | +| `useUpdateTableMutation` | Mutation | Update a table | +| `useDeleteTableMutation` | Mutation | Delete a table | +| `useCheckConstraintsQuery` | Query | List all checkConstraints | +| `useCheckConstraintQuery` | Query | Get one checkConstraint | +| `useCreateCheckConstraintMutation` | Mutation | Create a checkConstraint | +| `useUpdateCheckConstraintMutation` | Mutation | Update a checkConstraint | +| `useDeleteCheckConstraintMutation` | Mutation | Delete a checkConstraint | +| `useFieldsQuery` | Query | List all fields | +| `useFieldQuery` | Query | Get one field | +| `useCreateFieldMutation` | Mutation | Create a field | +| `useUpdateFieldMutation` | Mutation | Update a field | +| `useDeleteFieldMutation` | Mutation | Delete a field | +| `useForeignKeyConstraintsQuery` | Query | List all foreignKeyConstraints | +| `useForeignKeyConstraintQuery` | Query | Get one foreignKeyConstraint | +| `useCreateForeignKeyConstraintMutation` | Mutation | Create a foreignKeyConstraint | +| `useUpdateForeignKeyConstraintMutation` | Mutation | Update a foreignKeyConstraint | +| `useDeleteForeignKeyConstraintMutation` | Mutation | Delete a foreignKeyConstraint | +| `useFullTextSearchesQuery` | Query | List all fullTextSearches | +| `useFullTextSearchQuery` | Query | Get one fullTextSearch | +| `useCreateFullTextSearchMutation` | Mutation | Create a fullTextSearch | +| `useUpdateFullTextSearchMutation` | Mutation | Update a fullTextSearch | +| `useDeleteFullTextSearchMutation` | Mutation | Delete a fullTextSearch | +| `useIndicesQuery` | Query | List all indices | +| `useIndexQuery` | Query | Get one index | +| `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 | +| `useUpdatePolicyMutation` | Mutation | Update a policy | +| `useDeletePolicyMutation` | Mutation | Delete a policy | +| `usePrimaryKeyConstraintsQuery` | Query | List all primaryKeyConstraints | +| `usePrimaryKeyConstraintQuery` | Query | Get one primaryKeyConstraint | +| `useCreatePrimaryKeyConstraintMutation` | Mutation | Create a primaryKeyConstraint | +| `useUpdatePrimaryKeyConstraintMutation` | Mutation | Update a primaryKeyConstraint | +| `useDeletePrimaryKeyConstraintMutation` | Mutation | Delete a primaryKeyConstraint | +| `useTableGrantsQuery` | Query | List all tableGrants | +| `useTableGrantQuery` | Query | Get one tableGrant | +| `useCreateTableGrantMutation` | Mutation | Create a tableGrant | +| `useUpdateTableGrantMutation` | Mutation | Update a tableGrant | +| `useDeleteTableGrantMutation` | Mutation | Delete a tableGrant | +| `useTriggersQuery` | Query | List all triggers | +| `useTriggerQuery` | Query | Get one trigger | +| `useCreateTriggerMutation` | Mutation | Create a trigger | +| `useUpdateTriggerMutation` | Mutation | Update a trigger | +| `useDeleteTriggerMutation` | Mutation | Delete a trigger | +| `useUniqueConstraintsQuery` | Query | List all uniqueConstraints | +| `useUniqueConstraintQuery` | Query | Get one uniqueConstraint | +| `useCreateUniqueConstraintMutation` | Mutation | Create a uniqueConstraint | +| `useUpdateUniqueConstraintMutation` | Mutation | Update a uniqueConstraint | +| `useDeleteUniqueConstraintMutation` | Mutation | Delete a uniqueConstraint | +| `useViewsQuery` | Query | List all views | +| `useViewQuery` | Query | Get one view | +| `useCreateViewMutation` | Mutation | Create a view | +| `useUpdateViewMutation` | Mutation | Update a view | +| `useDeleteViewMutation` | Mutation | Delete a view | +| `useViewTablesQuery` | Query | List all viewTables | +| `useViewTableQuery` | Query | Get one viewTable | +| `useCreateViewTableMutation` | Mutation | Create a viewTable | +| `useUpdateViewTableMutation` | Mutation | Update a viewTable | +| `useDeleteViewTableMutation` | Mutation | Delete a viewTable | +| `useViewGrantsQuery` | Query | List all viewGrants | +| `useViewGrantQuery` | Query | Get one viewGrant | +| `useCreateViewGrantMutation` | Mutation | Create a viewGrant | +| `useUpdateViewGrantMutation` | Mutation | Update a viewGrant | +| `useDeleteViewGrantMutation` | Mutation | Delete a viewGrant | +| `useViewRulesQuery` | Query | List all viewRules | +| `useViewRuleQuery` | Query | Get one viewRule | +| `useCreateViewRuleMutation` | Mutation | Create a viewRule | +| `useUpdateViewRuleMutation` | Mutation | Update a viewRule | +| `useDeleteViewRuleMutation` | Mutation | Delete a viewRule | +| `useTableModulesQuery` | Query | List all tableModules | +| `useTableModuleQuery` | Query | Get one tableModule | +| `useCreateTableModuleMutation` | Mutation | Create a tableModule | +| `useUpdateTableModuleMutation` | Mutation | Update a tableModule | +| `useDeleteTableModuleMutation` | Mutation | Delete a tableModule | +| `useTableTemplateModulesQuery` | Query | List all tableTemplateModules | +| `useTableTemplateModuleQuery` | Query | Get one tableTemplateModule | +| `useCreateTableTemplateModuleMutation` | Mutation | Create a tableTemplateModule | +| `useUpdateTableTemplateModuleMutation` | Mutation | Update a tableTemplateModule | +| `useDeleteTableTemplateModuleMutation` | Mutation | Delete a tableTemplateModule | +| `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 | +| `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 | +| `useConnectedAccountsModulesQuery` | Query | List all connectedAccountsModules | +| `useConnectedAccountsModuleQuery` | Query | Get one connectedAccountsModule | +| `useCreateConnectedAccountsModuleMutation` | Mutation | Create a connectedAccountsModule | +| `useUpdateConnectedAccountsModuleMutation` | Mutation | Update a connectedAccountsModule | +| `useDeleteConnectedAccountsModuleMutation` | Mutation | Delete a connectedAccountsModule | +| `useCryptoAddressesModulesQuery` | Query | List all cryptoAddressesModules | +| `useCryptoAddressesModuleQuery` | Query | Get one cryptoAddressesModule | +| `useCreateCryptoAddressesModuleMutation` | Mutation | Create a cryptoAddressesModule | +| `useUpdateCryptoAddressesModuleMutation` | Mutation | Update a cryptoAddressesModule | +| `useDeleteCryptoAddressesModuleMutation` | Mutation | Delete a cryptoAddressesModule | +| `useCryptoAuthModulesQuery` | Query | List all cryptoAuthModules | +| `useCryptoAuthModuleQuery` | Query | Get one cryptoAuthModule | +| `useCreateCryptoAuthModuleMutation` | Mutation | Create a cryptoAuthModule | +| `useUpdateCryptoAuthModuleMutation` | Mutation | Update a cryptoAuthModule | +| `useDeleteCryptoAuthModuleMutation` | Mutation | Delete a cryptoAuthModule | +| `useDefaultIdsModulesQuery` | Query | List all defaultIdsModules | +| `useDefaultIdsModuleQuery` | Query | Get one defaultIdsModule | +| `useCreateDefaultIdsModuleMutation` | Mutation | Create a defaultIdsModule | +| `useUpdateDefaultIdsModuleMutation` | Mutation | Update a defaultIdsModule | +| `useDeleteDefaultIdsModuleMutation` | Mutation | Delete a defaultIdsModule | +| `useDenormalizedTableFieldsQuery` | Query | List all denormalizedTableFields | +| `useDenormalizedTableFieldQuery` | Query | Get one denormalizedTableField | +| `useCreateDenormalizedTableFieldMutation` | Mutation | Create a denormalizedTableField | +| `useUpdateDenormalizedTableFieldMutation` | Mutation | Update a denormalizedTableField | +| `useDeleteDenormalizedTableFieldMutation` | Mutation | Delete a denormalizedTableField | +| `useEmailsModulesQuery` | Query | List all emailsModules | +| `useEmailsModuleQuery` | Query | Get one emailsModule | +| `useCreateEmailsModuleMutation` | Mutation | Create a emailsModule | +| `useUpdateEmailsModuleMutation` | Mutation | Update a emailsModule | +| `useDeleteEmailsModuleMutation` | Mutation | Delete a emailsModule | +| `useEncryptedSecretsModulesQuery` | Query | List all encryptedSecretsModules | +| `useEncryptedSecretsModuleQuery` | Query | Get one encryptedSecretsModule | +| `useCreateEncryptedSecretsModuleMutation` | Mutation | Create a encryptedSecretsModule | +| `useUpdateEncryptedSecretsModuleMutation` | Mutation | Update a encryptedSecretsModule | +| `useDeleteEncryptedSecretsModuleMutation` | Mutation | Delete a encryptedSecretsModule | +| `useFieldModulesQuery` | Query | List all fieldModules | +| `useFieldModuleQuery` | Query | Get one fieldModule | +| `useCreateFieldModuleMutation` | Mutation | Create a fieldModule | +| `useUpdateFieldModuleMutation` | Mutation | Update a fieldModule | +| `useDeleteFieldModuleMutation` | Mutation | Delete a fieldModule | +| `useInvitesModulesQuery` | Query | List all invitesModules | +| `useInvitesModuleQuery` | Query | Get one invitesModule | +| `useCreateInvitesModuleMutation` | Mutation | Create a invitesModule | +| `useUpdateInvitesModuleMutation` | Mutation | Update a invitesModule | +| `useDeleteInvitesModuleMutation` | Mutation | Delete a invitesModule | +| `useLevelsModulesQuery` | Query | List all levelsModules | +| `useLevelsModuleQuery` | Query | Get one levelsModule | +| `useCreateLevelsModuleMutation` | Mutation | Create a levelsModule | +| `useUpdateLevelsModuleMutation` | Mutation | Update a levelsModule | +| `useDeleteLevelsModuleMutation` | Mutation | Delete a levelsModule | +| `useLimitsModulesQuery` | Query | List all limitsModules | +| `useLimitsModuleQuery` | Query | Get one limitsModule | +| `useCreateLimitsModuleMutation` | Mutation | Create a limitsModule | +| `useUpdateLimitsModuleMutation` | Mutation | Update a limitsModule | +| `useDeleteLimitsModuleMutation` | Mutation | Delete a limitsModule | +| `useMembershipTypesModulesQuery` | Query | List all membershipTypesModules | +| `useMembershipTypesModuleQuery` | Query | Get one membershipTypesModule | +| `useCreateMembershipTypesModuleMutation` | Mutation | Create a membershipTypesModule | +| `useUpdateMembershipTypesModuleMutation` | Mutation | Update a membershipTypesModule | +| `useDeleteMembershipTypesModuleMutation` | Mutation | Delete a membershipTypesModule | +| `useMembershipsModulesQuery` | Query | List all membershipsModules | +| `useMembershipsModuleQuery` | Query | Get one membershipsModule | +| `useCreateMembershipsModuleMutation` | Mutation | Create a membershipsModule | +| `useUpdateMembershipsModuleMutation` | Mutation | Update a membershipsModule | +| `useDeleteMembershipsModuleMutation` | Mutation | Delete a membershipsModule | +| `usePermissionsModulesQuery` | Query | List all permissionsModules | +| `usePermissionsModuleQuery` | Query | Get one permissionsModule | +| `useCreatePermissionsModuleMutation` | Mutation | Create a permissionsModule | +| `useUpdatePermissionsModuleMutation` | Mutation | Update a permissionsModule | +| `useDeletePermissionsModuleMutation` | Mutation | Delete a permissionsModule | +| `usePhoneNumbersModulesQuery` | Query | List all phoneNumbersModules | +| `usePhoneNumbersModuleQuery` | Query | Get one phoneNumbersModule | +| `useCreatePhoneNumbersModuleMutation` | Mutation | Create a phoneNumbersModule | +| `useUpdatePhoneNumbersModuleMutation` | Mutation | Update a phoneNumbersModule | +| `useDeletePhoneNumbersModuleMutation` | Mutation | Delete a phoneNumbersModule | +| `useProfilesModulesQuery` | Query | List all profilesModules | +| `useProfilesModuleQuery` | Query | Get one profilesModule | +| `useCreateProfilesModuleMutation` | Mutation | Create a profilesModule | +| `useUpdateProfilesModuleMutation` | Mutation | Update a profilesModule | +| `useDeleteProfilesModuleMutation` | Mutation | Delete a profilesModule | +| `useRlsModulesQuery` | Query | List all rlsModules | +| `useRlsModuleQuery` | Query | Get one rlsModule | +| `useCreateRlsModuleMutation` | Mutation | Create a rlsModule | +| `useUpdateRlsModuleMutation` | Mutation | Update a rlsModule | +| `useDeleteRlsModuleMutation` | Mutation | Delete a rlsModule | +| `useSecretsModulesQuery` | Query | List all secretsModules | +| `useSecretsModuleQuery` | Query | Get one secretsModule | +| `useCreateSecretsModuleMutation` | Mutation | Create a secretsModule | +| `useUpdateSecretsModuleMutation` | Mutation | Update a secretsModule | +| `useDeleteSecretsModuleMutation` | Mutation | Delete a secretsModule | +| `useSessionsModulesQuery` | Query | List all sessionsModules | +| `useSessionsModuleQuery` | Query | Get one sessionsModule | +| `useCreateSessionsModuleMutation` | Mutation | Create a sessionsModule | +| `useUpdateSessionsModuleMutation` | Mutation | Update a sessionsModule | +| `useDeleteSessionsModuleMutation` | Mutation | Delete a sessionsModule | +| `useUserAuthModulesQuery` | Query | List all userAuthModules | +| `useUserAuthModuleQuery` | Query | Get one userAuthModule | +| `useCreateUserAuthModuleMutation` | Mutation | Create a userAuthModule | +| `useUpdateUserAuthModuleMutation` | Mutation | Update a userAuthModule | +| `useDeleteUserAuthModuleMutation` | Mutation | Delete a userAuthModule | +| `useUsersModulesQuery` | Query | List all usersModules | +| `useUsersModuleQuery` | Query | Get one usersModule | +| `useCreateUsersModuleMutation` | Mutation | Create a usersModule | +| `useUpdateUsersModuleMutation` | Mutation | Update a usersModule | +| `useDeleteUsersModuleMutation` | Mutation | Delete a usersModule | +| `useUuidModulesQuery` | Query | List all uuidModules | +| `useUuidModuleQuery` | Query | Get one uuidModule | +| `useCreateUuidModuleMutation` | Mutation | Create a uuidModule | +| `useUpdateUuidModuleMutation` | Mutation | Update a uuidModule | +| `useDeleteUuidModuleMutation` | Mutation | Delete a uuidModule | +| `useDatabaseProvisionModulesQuery` | Query | List all databaseProvisionModules | +| `useDatabaseProvisionModuleQuery` | Query | Get one databaseProvisionModule | +| `useCreateDatabaseProvisionModuleMutation` | Mutation | Create a databaseProvisionModule | +| `useUpdateDatabaseProvisionModuleMutation` | Mutation | Update a databaseProvisionModule | +| `useDeleteDatabaseProvisionModuleMutation` | Mutation | Delete a databaseProvisionModule | +| `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 | List all appSteps | +| `useAppStepQuery` | Query | Get one appStep | +| `useCreateAppStepMutation` | Mutation | Create a appStep | +| `useUpdateAppStepMutation` | Mutation | Update a appStep | +| `useDeleteAppStepMutation` | Mutation | Delete a appStep | +| `useAppAchievementsQuery` | Query | List all appAchievements | +| `useAppAchievementQuery` | Query | Get one appAchievement | +| `useCreateAppAchievementMutation` | Mutation | Create a appAchievement | +| `useUpdateAppAchievementMutation` | Mutation | Update a appAchievement | +| `useDeleteAppAchievementMutation` | Mutation | Delete a appAchievement | +| `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 | +| `useRefsQuery` | Query | List all refs | +| `useRefQuery` | Query | Get one ref | +| `useCreateRefMutation` | Mutation | Create a ref | +| `useUpdateRefMutation` | Mutation | Update a ref | +| `useDeleteRefMutation` | Mutation | Delete a ref | +| `useStoresQuery` | Query | List all stores | +| `useStoreQuery` | Query | Get one store | +| `useCreateStoreMutation` | Mutation | Create a store | +| `useUpdateStoreMutation` | Mutation | Update a store | +| `useDeleteStoreMutation` | Mutation | Delete a store | +| `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 | +| `useNodeTypeRegistriesQuery` | Query | List all nodeTypeRegistries | +| `useNodeTypeRegistryQuery` | Query | Get one nodeTypeRegistry | +| `useCreateNodeTypeRegistryMutation` | Mutation | Create a nodeTypeRegistry | +| `useUpdateNodeTypeRegistryMutation` | Mutation | Update a nodeTypeRegistry | +| `useDeleteNodeTypeRegistryMutation` | Mutation | Delete a nodeTypeRegistry | +| `useCommitsQuery` | Query | List all commits | +| `useCommitQuery` | Query | Get one commit | +| `useCreateCommitMutation` | Mutation | Create a commit | +| `useUpdateCommitMutation` | Mutation | Update a commit | +| `useDeleteCommitMutation` | Mutation | Delete a commit | +| `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 | List all appLevels | +| `useAppLevelQuery` | Query | Get one appLevel | +| `useCreateAppLevelMutation` | Mutation | Create a appLevel | +| `useUpdateAppLevelMutation` | Mutation | Update a appLevel | +| `useDeleteAppLevelMutation` | Mutation | Delete a appLevel | +| `useSqlMigrationsQuery` | Query | List all sqlMigrations | +| `useSqlMigrationQuery` | Query | Get one sqlMigration | +| `useCreateSqlMigrationMutation` | Mutation | Create a sqlMigration | +| `useUpdateSqlMigrationMutation` | Mutation | Update a sqlMigration | +| `useDeleteSqlMigrationMutation` | Mutation | Delete a sqlMigration | +| `useAstMigrationsQuery` | Query | List all astMigrations | +| `useAstMigrationQuery` | Query | Get one astMigration | +| `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 | +| `useHierarchyModulesQuery` | Query | List all hierarchyModules | +| `useHierarchyModuleQuery` | Query | Get one hierarchyModule | +| `useCreateHierarchyModuleMutation` | Mutation | Create a hierarchyModule | +| `useUpdateHierarchyModuleMutation` | Mutation | Update a hierarchyModule | +| `useDeleteHierarchyModuleMutation` | Mutation | Delete a hierarchyModule | +| `useCurrentUserIdQuery` | Query | currentUserId | +| `useCurrentIpAddressQuery` | Query | currentIpAddress | +| `useCurrentUserAgentQuery` | Query | currentUserAgent | +| `useAppPermissionsGetPaddedMaskQuery` | Query | appPermissionsGetPaddedMask | +| `useOrgPermissionsGetPaddedMaskQuery` | Query | orgPermissionsGetPaddedMask | +| `useStepsAchievedQuery` | Query | stepsAchieved | +| `useRevParseQuery` | Query | revParse | +| `useAppPermissionsGetMaskQuery` | Query | appPermissionsGetMask | +| `useOrgPermissionsGetMaskQuery` | Query | orgPermissionsGetMask | +| `useAppPermissionsGetMaskByNamesQuery` | Query | appPermissionsGetMaskByNames | +| `useOrgPermissionsGetMaskByNamesQuery` | Query | orgPermissionsGetMaskByNames | +| `useAppPermissionsGetByMaskQuery` | Query | Reads and enables pagination through a set of `AppPermission`. | +| `useOrgPermissionsGetByMaskQuery` | Query | Reads and enables pagination through a set of `OrgPermission`. | +| `useGetAllObjectsFromRootQuery` | Query | Reads and enables pagination through a set of `Object`. | +| `useGetPathObjectsFromRootQuery` | Query | Reads and enables pagination through a set of `Object`. | +| `useGetObjectAtPathQuery` | Query | getObjectAtPath | +| `useStepsRequiredQuery` | Query | Reads and enables pagination through a set of `AppLevelRequirement`. | +| `useCurrentUserQuery` | Query | currentUser | +| `useSignOutMutation` | Mutation | signOut | +| `useSendAccountDeletionEmailMutation` | Mutation | sendAccountDeletionEmail | +| `useCheckPasswordMutation` | Mutation | checkPassword | +| `useSubmitInviteCodeMutation` | Mutation | submitInviteCode | +| `useSubmitOrgInviteCodeMutation` | Mutation | submitOrgInviteCode | +| `useFreezeObjectsMutation` | Mutation | freezeObjects | +| `useInitEmptyRepoMutation` | Mutation | initEmptyRepo | +| `useConfirmDeleteAccountMutation` | Mutation | confirmDeleteAccount | +| `useSetPasswordMutation` | Mutation | setPassword | +| `useVerifyEmailMutation` | Mutation | verifyEmail | +| `useResetPasswordMutation` | Mutation | resetPassword | +| `useRemoveNodeAtPathMutation` | Mutation | removeNodeAtPath | +| `useBootstrapUserMutation` | Mutation | bootstrapUser | +| `useSetDataAtPathMutation` | Mutation | setDataAtPath | +| `useSetPropsAndCommitMutation` | Mutation | setPropsAndCommit | +| `useProvisionDatabaseWithUserMutation` | Mutation | provisionDatabaseWithUser | +| `useSignInOneTimeTokenMutation` | Mutation | signInOneTimeToken | +| `useCreateUserDatabaseMutation` | Mutation | 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 + | +| `useExtendTokenExpiresMutation` | Mutation | extendTokenExpires | +| `useSignInMutation` | Mutation | signIn | +| `useSignUpMutation` | Mutation | signUp | +| `useSetFieldOrderMutation` | Mutation | setFieldOrder | +| `useOneTimeTokenMutation` | Mutation | oneTimeToken | +| `useInsertNodeAtPathMutation` | Mutation | insertNodeAtPath | +| `useUpdateNodeAtPathMutation` | Mutation | updateNodeAtPath | +| `useSetAndCommitMutation` | Mutation | setAndCommit | +| `useApplyRlsMutation` | Mutation | applyRls | +| `useForgotPasswordMutation` | Mutation | forgotPassword | +| `useSendVerificationEmailMutation` | Mutation | sendVerificationEmail | +| `useVerifyPasswordMutation` | Mutation | verifyPassword | +| `useVerifyTotpMutation` | Mutation | verifyTotp | + +## Table Hooks + +### GetAllRecord + +```typescript +// List all getAll +const { data, isLoading } = useGetAllQuery({ + selection: { fields: { path: true, data: true } }, +}); + +// Create a getAllRecord +const { mutate: create } = useCreateGetAllRecordMutation({ + selection: { fields: { id: true } }, +}); +create({ path: '', data: '' }); +``` + +### AppPermission + +```typescript +// List all appPermissions +const { data, isLoading } = useAppPermissionsQuery({ + selection: { fields: { id: true, name: true, bitnum: true, bitstr: true, description: true } }, +}); + +// Get one appPermission +const { data: item } = useAppPermissionQuery({ + id: '', + selection: { fields: { id: true, name: true, bitnum: true, bitstr: true, description: true } }, +}); + +// Create a appPermission +const { mutate: create } = useCreateAppPermissionMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '', bitnum: '', bitstr: '', description: '' }); +``` + +### OrgPermission + +```typescript +// List all orgPermissions +const { data, isLoading } = useOrgPermissionsQuery({ + selection: { fields: { id: true, name: true, bitnum: true, bitstr: true, description: true } }, +}); + +// Get one orgPermission +const { data: item } = useOrgPermissionQuery({ + id: '', + selection: { fields: { id: true, name: true, bitnum: true, bitstr: true, description: true } }, +}); + +// Create a orgPermission +const { mutate: create } = useCreateOrgPermissionMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '', bitnum: '', bitstr: '', description: '' }); +``` + +### Object + +```typescript +// List all objects +const { data, isLoading } = useObjectsQuery({ + selection: { fields: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }, +}); + +// Get one object +const { data: item } = useObjectQuery({ + id: '', + selection: { fields: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }, +}); + +// Create a object +const { mutate: create } = useCreateObjectMutation({ + selection: { fields: { id: true } }, +}); +create({ hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }); +``` + +### AppLevelRequirement + +```typescript +// List all appLevelRequirements +const { data, isLoading } = useAppLevelRequirementsQuery({ + selection: { fields: { id: true, name: true, level: true, description: true, requiredCount: true, priority: true, createdAt: true, updatedAt: true } }, +}); + +// Get one appLevelRequirement +const { data: item } = useAppLevelRequirementQuery({ + id: '', + selection: { fields: { id: true, name: true, level: true, description: true, requiredCount: true, priority: true, createdAt: true, updatedAt: true } }, +}); + +// Create a appLevelRequirement +const { mutate: create } = useCreateAppLevelRequirementMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '', level: '', description: '', requiredCount: '', priority: '' }); +``` + +### Database + +```typescript +// List all databases +const { data, isLoading } = useDatabasesQuery({ + selection: { fields: { id: true, ownerId: true, schemaHash: true, name: true, label: true, hash: true, createdAt: true, updatedAt: true } }, +}); + +// Get one database +const { data: item } = useDatabaseQuery({ + id: '', + selection: { fields: { id: true, ownerId: true, schemaHash: true, name: true, label: true, hash: true, createdAt: true, updatedAt: true } }, +}); + +// Create a database +const { mutate: create } = useCreateDatabaseMutation({ + selection: { fields: { id: true } }, +}); +create({ ownerId: '', schemaHash: '', name: '', label: '', hash: '' }); +``` + +### Schema + +```typescript +// List all schemas +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 } }, +}); + +// Get one schema +const { data: item } = 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 } }, +}); + +// Create a schema +const { mutate: create } = useCreateSchemaMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', name: '', schemaName: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', tags: '', isPublic: '' }); +``` + +### Table + +```typescript +// List all tables +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 } }, +}); + +// Get one table +const { data: item } = 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 } }, +}); + +// Create a table +const { mutate: create } = useCreateTableMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', name: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', useRls: '', timestamps: '', peoplestamps: '', pluralName: '', singularName: '', tags: '', inheritsId: '' }); +``` + +### CheckConstraint + +```typescript +// List all checkConstraints +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 } }, +}); + +// Get one checkConstraint +const { data: item } = 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 } }, +}); + +// Create a checkConstraint +const { mutate: create } = useCreateCheckConstraintMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', tableId: '', name: '', type: '', fieldIds: '', expr: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); +``` + +### Field + +```typescript +// List all fields +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 } }, +}); + +// Get one field +const { data: item } = 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 } }, +}); + +// Create a field +const { mutate: create } = useCreateFieldMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', tableId: '', name: '', label: '', description: '', smartTags: '', isRequired: '', defaultValue: '', defaultValueAst: '', isHidden: '', type: '', fieldOrder: '', regexp: '', chk: '', chkExpr: '', min: '', max: '', tags: '', category: '', module: '', scope: '' }); +``` + +### ForeignKeyConstraint + +```typescript +// List all foreignKeyConstraints +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 } }, +}); + +// Get one foreignKeyConstraint +const { data: item } = 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 } }, +}); + +// Create a foreignKeyConstraint +const { mutate: create } = useCreateForeignKeyConstraintMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', refTableId: '', refFieldIds: '', deleteAction: '', updateAction: '', category: '', module: '', scope: '', tags: '' }); +``` + +### FullTextSearch + +```typescript +// List all fullTextSearches +const { data, isLoading } = useFullTextSearchesQuery({ + selection: { fields: { id: true, databaseId: true, tableId: true, fieldId: true, fieldIds: true, weights: true, langs: true, createdAt: true, updatedAt: true } }, +}); + +// Get one fullTextSearch +const { data: item } = useFullTextSearchQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, tableId: true, fieldId: true, fieldIds: true, weights: true, langs: true, createdAt: true, updatedAt: true } }, +}); + +// Create a fullTextSearch +const { mutate: create } = useCreateFullTextSearchMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', tableId: '', fieldId: '', fieldIds: '', weights: '', langs: '' }); +``` + +### Index + +```typescript +// List all indices +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 } }, +}); + +// Get one index +const { data: item } = 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 } }, +}); + +// Create a index +const { mutate: create } = useCreateIndexMutation({ + selection: { fields: { id: true } }, +}); +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 } }, +}); + +// 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 } }, +}); + +// 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: '' }); +``` + +### PrimaryKeyConstraint + +```typescript +// List all primaryKeyConstraints +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 } }, +}); + +// Get one primaryKeyConstraint +const { data: item } = 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 } }, +}); + +// Create a primaryKeyConstraint +const { mutate: create } = useCreatePrimaryKeyConstraintMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', tableId: '', name: '', type: '', fieldIds: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); +``` + +### TableGrant + +```typescript +// List all tableGrants +const { data, isLoading } = useTableGrantsQuery({ + selection: { fields: { id: true, databaseId: true, tableId: true, privilege: true, roleName: true, fieldIds: true, createdAt: true, updatedAt: true } }, +}); + +// Get one tableGrant +const { data: item } = useTableGrantQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, tableId: true, privilege: true, roleName: true, fieldIds: true, createdAt: true, updatedAt: true } }, +}); + +// Create a tableGrant +const { mutate: create } = useCreateTableGrantMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', tableId: '', privilege: '', roleName: '', fieldIds: '' }); +``` + +### Trigger + +```typescript +// List all triggers +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 } }, +}); + +// Get one trigger +const { data: item } = 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 } }, +}); + +// Create a trigger +const { mutate: create } = useCreateTriggerMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', tableId: '', name: '', event: '', functionName: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); +``` + +### UniqueConstraint + +```typescript +// List all uniqueConstraints +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 } }, +}); + +// Get one uniqueConstraint +const { data: item } = 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 } }, +}); + +// Create a uniqueConstraint +const { mutate: create } = useCreateUniqueConstraintMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', category: '', module: '', scope: '', tags: '' }); +``` + +### View + +```typescript +// List all views +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 } }, +}); + +// Get one view +const { data: item } = 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 } }, +}); + +// Create a view +const { mutate: create } = useCreateViewMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', name: '', tableId: '', viewType: '', data: '', filterType: '', filterData: '', securityInvoker: '', isReadOnly: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); +``` + +### ViewTable + +```typescript +// List all viewTables +const { data, isLoading } = useViewTablesQuery({ + selection: { fields: { id: true, viewId: true, tableId: true, joinOrder: true } }, +}); + +// Get one viewTable +const { data: item } = useViewTableQuery({ + id: '', + selection: { fields: { id: true, viewId: true, tableId: true, joinOrder: true } }, +}); + +// Create a viewTable +const { mutate: create } = useCreateViewTableMutation({ + selection: { fields: { id: true } }, +}); +create({ viewId: '', tableId: '', joinOrder: '' }); +``` + +### ViewGrant + +```typescript +// List all viewGrants +const { data, isLoading } = useViewGrantsQuery({ + selection: { fields: { id: true, databaseId: true, viewId: true, roleName: true, privilege: true, withGrantOption: true } }, +}); + +// Get one viewGrant +const { data: item } = useViewGrantQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, viewId: true, roleName: true, privilege: true, withGrantOption: true } }, +}); + +// Create a viewGrant +const { mutate: create } = useCreateViewGrantMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', viewId: '', roleName: '', privilege: '', withGrantOption: '' }); +``` + +### ViewRule + +```typescript +// List all viewRules +const { data, isLoading } = useViewRulesQuery({ + selection: { fields: { id: true, databaseId: true, viewId: true, name: true, event: true, action: true } }, +}); + +// Get one viewRule +const { data: item } = useViewRuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, viewId: true, name: true, event: true, action: true } }, +}); + +// Create a viewRule +const { mutate: create } = useCreateViewRuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', viewId: '', name: '', event: '', action: '' }); +``` + +### TableModule + +```typescript +// List all tableModules +const { data, isLoading } = useTableModulesQuery({ + selection: { fields: { id: true, databaseId: true, privateSchemaId: true, tableId: true, nodeType: true, data: true, fields: true } }, +}); + +// Get one tableModule +const { data: item } = useTableModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, privateSchemaId: true, tableId: true, nodeType: true, data: true, fields: true } }, +}); + +// Create a tableModule +const { mutate: create } = useCreateTableModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', privateSchemaId: '', tableId: '', nodeType: '', data: '', fields: '' }); +``` + +### TableTemplateModule + +```typescript +// List all tableTemplateModules +const { data, isLoading } = useTableTemplateModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, nodeType: true, data: true } }, +}); + +// Get one tableTemplateModule +const { data: item } = useTableTemplateModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, nodeType: true, data: true } }, +}); + +// Create a tableTemplateModule +const { mutate: create } = useCreateTableTemplateModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', nodeType: '', data: '' }); +``` + +### SchemaGrant + +```typescript +// List all schemaGrants +const { data, isLoading } = useSchemaGrantsQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, granteeName: true, createdAt: true, updatedAt: true } }, +}); + +// Get one schemaGrant +const { data: item } = useSchemaGrantQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, granteeName: true, createdAt: true, updatedAt: true } }, +}); + +// Create a schemaGrant +const { mutate: create } = useCreateSchemaGrantMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', granteeName: '' }); +``` + +### ApiSchema + +```typescript +// List all apiSchemas +const { data, isLoading } = useApiSchemasQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, apiId: true } }, +}); + +// Get one apiSchema +const { data: item } = useApiSchemaQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, apiId: true } }, +}); + +// Create a apiSchema +const { mutate: create } = useCreateApiSchemaMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', apiId: '' }); +``` + +### ApiModule + +```typescript +// List all apiModules +const { data, isLoading } = useApiModulesQuery({ + selection: { fields: { id: true, databaseId: true, apiId: true, name: true, data: true } }, +}); + +// Get one apiModule +const { data: item } = useApiModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, apiId: true, name: true, data: true } }, +}); + +// Create a apiModule +const { mutate: create } = useCreateApiModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', apiId: '', name: '', data: '' }); +``` + +### Domain + +```typescript +// List all domains +const { data, isLoading } = useDomainsQuery({ + selection: { fields: { id: true, databaseId: true, apiId: true, siteId: true, subdomain: true, domain: true } }, +}); + +// Get one domain +const { data: item } = useDomainQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, apiId: true, siteId: true, subdomain: true, domain: true } }, +}); + +// Create a domain +const { mutate: create } = useCreateDomainMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', apiId: '', siteId: '', subdomain: '', domain: '' }); +``` + +### SiteMetadatum + +```typescript +// List all siteMetadata +const { data, isLoading } = useSiteMetadataQuery({ + selection: { fields: { id: true, databaseId: true, siteId: true, title: true, description: true, ogImage: true } }, +}); + +// Get one siteMetadatum +const { data: item } = useSiteMetadatumQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, siteId: true, title: true, description: true, ogImage: true } }, +}); + +// Create a siteMetadatum +const { mutate: create } = useCreateSiteMetadatumMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', siteId: '', title: '', description: '', ogImage: '' }); +``` + +### SiteModule + +```typescript +// List all siteModules +const { data, isLoading } = useSiteModulesQuery({ + selection: { fields: { id: true, databaseId: true, siteId: true, name: true, data: true } }, +}); + +// Get one siteModule +const { data: item } = useSiteModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, siteId: true, name: true, data: true } }, +}); + +// Create a siteModule +const { mutate: create } = useCreateSiteModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', siteId: '', name: '', data: '' }); +``` + +### SiteTheme + +```typescript +// List all siteThemes +const { data, isLoading } = useSiteThemesQuery({ + selection: { fields: { id: true, databaseId: true, siteId: true, theme: true } }, +}); + +// Get one siteTheme +const { data: item } = useSiteThemeQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, siteId: true, theme: true } }, +}); + +// Create a siteTheme +const { mutate: create } = useCreateSiteThemeMutation({ + selection: { fields: { id: true } }, +}); +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 +// List all triggerFunctions +const { data, isLoading } = useTriggerFunctionsQuery({ + selection: { fields: { id: true, databaseId: true, name: true, code: true, createdAt: true, updatedAt: true } }, +}); + +// Get one triggerFunction +const { data: item } = useTriggerFunctionQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, name: true, code: true, createdAt: true, updatedAt: true } }, +}); + +// Create a triggerFunction +const { mutate: create } = useCreateTriggerFunctionMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', name: '', code: '' }); +``` + +### Api + +```typescript +// List all apis +const { data, isLoading } = useApisQuery({ + selection: { fields: { id: true, databaseId: true, name: true, dbname: true, roleName: true, anonRole: true, isPublic: true } }, +}); + +// Get one api +const { data: item } = useApiQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, name: true, dbname: true, roleName: true, anonRole: true, isPublic: true } }, +}); + +// Create a api +const { mutate: create } = useCreateApiMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', name: '', dbname: '', roleName: '', anonRole: '', isPublic: '' }); +``` + +### Site + +```typescript +// List all sites +const { data, isLoading } = useSitesQuery({ + selection: { fields: { id: true, databaseId: true, title: true, description: true, ogImage: true, favicon: true, appleTouchIcon: true, logo: true, dbname: true } }, +}); + +// Get one site +const { data: item } = useSiteQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, title: true, description: true, ogImage: true, favicon: true, appleTouchIcon: true, logo: true, dbname: true } }, +}); + +// Create a site +const { mutate: create } = useCreateSiteMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', title: '', description: '', ogImage: '', favicon: '', appleTouchIcon: '', logo: '', dbname: '' }); +``` + +### App + +```typescript +// List all apps +const { data, isLoading } = useAppsQuery({ + selection: { fields: { id: true, databaseId: true, siteId: true, name: true, appImage: true, appStoreLink: true, appStoreId: true, appIdPrefix: true, playStoreLink: true } }, +}); + +// Get one app +const { data: item } = useAppQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, siteId: true, name: true, appImage: true, appStoreLink: true, appStoreId: true, appIdPrefix: true, playStoreLink: true } }, +}); + +// Create a app +const { mutate: create } = useCreateAppMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', siteId: '', name: '', appImage: '', appStoreLink: '', appStoreId: '', appIdPrefix: '', playStoreLink: '' }); +``` + +### ConnectedAccountsModule + +```typescript +// List all connectedAccountsModules +const { data, isLoading } = useConnectedAccountsModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }, +}); + +// Get one connectedAccountsModule +const { data: item } = useConnectedAccountsModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }, +}); + +// Create a connectedAccountsModule +const { mutate: create } = useCreateConnectedAccountsModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }); +``` + +### CryptoAddressesModule + +```typescript +// List all cryptoAddressesModules +const { data, isLoading } = useCryptoAddressesModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, cryptoNetwork: true } }, +}); + +// Get one cryptoAddressesModule +const { data: item } = useCryptoAddressesModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, cryptoNetwork: true } }, +}); + +// Create a cryptoAddressesModule +const { mutate: create } = useCreateCryptoAddressesModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', cryptoNetwork: '' }); +``` + +### CryptoAuthModule + +```typescript +// List all cryptoAuthModules +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 } }, +}); + +// Get one cryptoAuthModule +const { data: item } = 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 } }, +}); + +// Create a cryptoAuthModule +const { mutate: create } = useCreateCryptoAuthModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', usersTableId: '', secretsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', addressesTableId: '', userField: '', cryptoNetwork: '', signInRequestChallenge: '', signInRecordFailure: '', signUpWithKey: '', signInWithChallenge: '' }); +``` + +### DefaultIdsModule + +```typescript +// List all defaultIdsModules +const { data, isLoading } = useDefaultIdsModulesQuery({ + selection: { fields: { id: true, databaseId: true } }, +}); + +// Get one defaultIdsModule +const { data: item } = useDefaultIdsModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true } }, +}); + +// Create a defaultIdsModule +const { mutate: create } = useCreateDefaultIdsModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '' }); +``` + +### DenormalizedTableField + +```typescript +// List all denormalizedTableFields +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 } }, +}); + +// Get one denormalizedTableField +const { data: item } = 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 } }, +}); + +// Create a denormalizedTableField +const { mutate: create } = useCreateDenormalizedTableFieldMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', tableId: '', fieldId: '', setIds: '', refTableId: '', refFieldId: '', refIds: '', useUpdates: '', updateDefaults: '', funcName: '', funcOrder: '' }); +``` + +### EmailsModule + +```typescript +// List all emailsModules +const { data, isLoading } = useEmailsModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }, +}); + +// Get one emailsModule +const { data: item } = useEmailsModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }, +}); + +// Create a emailsModule +const { mutate: create } = useCreateEmailsModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }); +``` + +### EncryptedSecretsModule + +```typescript +// List all encryptedSecretsModules +const { data, isLoading } = useEncryptedSecretsModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }, +}); + +// Get one encryptedSecretsModule +const { data: item } = useEncryptedSecretsModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }, +}); + +// Create a encryptedSecretsModule +const { mutate: create } = useCreateEncryptedSecretsModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', tableId: '', tableName: '' }); +``` + +### FieldModule + +```typescript +// List all fieldModules +const { data, isLoading } = useFieldModulesQuery({ + selection: { fields: { id: true, databaseId: true, privateSchemaId: true, tableId: true, fieldId: true, nodeType: true, data: true, triggers: true, functions: true } }, +}); + +// Get one fieldModule +const { data: item } = useFieldModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, privateSchemaId: true, tableId: true, fieldId: true, nodeType: true, data: true, triggers: true, functions: true } }, +}); + +// Create a fieldModule +const { mutate: create } = useCreateFieldModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', privateSchemaId: '', tableId: '', fieldId: '', nodeType: '', data: '', triggers: '', functions: '' }); +``` + +### InvitesModule + +```typescript +// List all invitesModules +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 } }, +}); + +// Get one invitesModule +const { data: item } = 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 } }, +}); + +// Create a invitesModule +const { mutate: create } = useCreateInvitesModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', privateSchemaId: '', emailsTableId: '', usersTableId: '', invitesTableId: '', claimedInvitesTableId: '', invitesTableName: '', claimedInvitesTableName: '', submitInviteCodeFunction: '', prefix: '', membershipType: '', entityTableId: '' }); +``` + +### LevelsModule + +```typescript +// List all levelsModules +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 } }, +}); + +// Get one levelsModule +const { data: item } = 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 } }, +}); + +// Create a levelsModule +const { mutate: create } = useCreateLevelsModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ 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: '' }); +``` + +### LimitsModule + +```typescript +// List all limitsModules +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 } }, +}); + +// Get one limitsModule +const { data: item } = 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 } }, +}); + +// Create a limitsModule +const { mutate: create } = useCreateLimitsModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', limitIncrementFunction: '', limitDecrementFunction: '', limitIncrementTrigger: '', limitDecrementTrigger: '', limitUpdateTrigger: '', limitCheckFunction: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '' }); +``` + +### MembershipTypesModule + +```typescript +// List all membershipTypesModules +const { data, isLoading } = useMembershipTypesModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }, +}); + +// Get one membershipTypesModule +const { data: item } = useMembershipTypesModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }, +}); + +// Create a membershipTypesModule +const { mutate: create } = useCreateMembershipTypesModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', tableId: '', tableName: '' }); +``` + +### MembershipsModule + +```typescript +// List all membershipsModules +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 } }, +}); + +// Get one membershipsModule +const { data: item } = 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 } }, +}); + +// Create a membershipsModule +const { mutate: create } = useCreateMembershipsModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ 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: '' }); +``` + +### PermissionsModule + +```typescript +// List all permissionsModules +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 } }, +}); + +// Get one permissionsModule +const { data: item } = 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 } }, +}); + +// Create a permissionsModule +const { mutate: create } = useCreatePermissionsModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', bitlen: '', membershipType: '', entityTableId: '', actorTableId: '', prefix: '', getPaddedMask: '', getMask: '', getByMask: '', getMaskByName: '' }); +``` + +### PhoneNumbersModule + +```typescript +// List all phoneNumbersModules +const { data, isLoading } = usePhoneNumbersModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }, +}); + +// Get one phoneNumbersModule +const { data: item } = usePhoneNumbersModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }, +}); + +// Create a phoneNumbersModule +const { mutate: create } = useCreatePhoneNumbersModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }); +``` + +### ProfilesModule + +```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 } }, +}); + +// 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 } }, +}); + +// 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: '' }); +``` + +### RlsModule + +```typescript +// List all rlsModules +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 } }, +}); + +// Get one rlsModule +const { data: item } = 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 } }, +}); + +// Create a rlsModule +const { mutate: create } = useCreateRlsModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', apiId: '', schemaId: '', privateSchemaId: '', sessionCredentialsTableId: '', sessionsTableId: '', usersTableId: '', authenticate: '', authenticateStrict: '', currentRole: '', currentRoleId: '' }); +``` + +### SecretsModule + +```typescript +// List all secretsModules +const { data, isLoading } = useSecretsModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }, +}); + +// Get one secretsModule +const { data: item } = useSecretsModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }, +}); + +// Create a secretsModule +const { mutate: create } = useCreateSecretsModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', tableId: '', tableName: '' }); +``` + +### SessionsModule + +```typescript +// List all sessionsModules +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 } }, +}); + +// Get one sessionsModule +const { data: item } = 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 } }, +}); + +// Create a sessionsModule +const { mutate: create } = useCreateSessionsModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', sessionsTableId: '', sessionCredentialsTableId: '', authSettingsTableId: '', usersTableId: '', sessionsDefaultExpiration: '', sessionsTable: '', sessionCredentialsTable: '', authSettingsTable: '' }); +``` + +### UserAuthModule + +```typescript +// List all userAuthModules +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 } }, +}); + +// Get one userAuthModule +const { data: item } = 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 } }, +}); + +// Create a userAuthModule +const { mutate: create } = useCreateUserAuthModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ 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: '' }); +``` + +### UsersModule + +```typescript +// List all usersModules +const { data, isLoading } = useUsersModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, typeTableId: true, typeTableName: true } }, +}); + +// Get one usersModule +const { data: item } = useUsersModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, typeTableId: true, typeTableName: true } }, +}); + +// Create a usersModule +const { mutate: create } = useCreateUsersModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', tableId: '', tableName: '', typeTableId: '', typeTableName: '' }); +``` + +### UuidModule + +```typescript +// List all uuidModules +const { data, isLoading } = useUuidModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, uuidFunction: true, uuidSeed: true } }, +}); + +// Get one uuidModule +const { data: item } = useUuidModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, uuidFunction: true, uuidSeed: true } }, +}); + +// Create a uuidModule +const { mutate: create } = useCreateUuidModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', uuidFunction: '', uuidSeed: '' }); +``` + +### DatabaseProvisionModule + +```typescript +// List all databaseProvisionModules +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 } }, +}); + +// Get one databaseProvisionModule +const { data: item } = 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 } }, +}); + +// Create a databaseProvisionModule +const { mutate: create } = useCreateDatabaseProvisionModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseName: '', ownerId: '', subdomain: '', domain: '', modules: '', options: '', bootstrapUser: '', status: '', errorMessage: '', databaseId: '', completedAt: '' }); +``` + +### AppAdminGrant + +```typescript +// List all appAdminGrants +const { data, isLoading } = useAppAdminGrantsQuery({ + selection: { fields: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }, +}); + +// Get one appAdminGrant +const { data: item } = useAppAdminGrantQuery({ + id: '', + selection: { fields: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }, +}); + +// Create a appAdminGrant +const { mutate: create } = useCreateAppAdminGrantMutation({ + selection: { fields: { id: true } }, +}); +create({ isGrant: '', actorId: '', grantorId: '' }); +``` + +### AppOwnerGrant + +```typescript +// List all appOwnerGrants +const { data, isLoading } = useAppOwnerGrantsQuery({ + selection: { fields: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }, +}); + +// Get one appOwnerGrant +const { data: item } = useAppOwnerGrantQuery({ + id: '', + selection: { fields: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }, +}); + +// Create a appOwnerGrant +const { mutate: create } = useCreateAppOwnerGrantMutation({ + selection: { fields: { id: true } }, +}); +create({ isGrant: '', actorId: '', grantorId: '' }); +``` + +### AppGrant + +```typescript +// List all appGrants +const { data, isLoading } = useAppGrantsQuery({ + selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }, +}); + +// Get one appGrant +const { data: item } = useAppGrantQuery({ + id: '', + selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }, +}); + +// Create a appGrant +const { mutate: create } = useCreateAppGrantMutation({ + selection: { fields: { id: true } }, +}); +create({ permissions: '', isGrant: '', actorId: '', grantorId: '' }); +``` + +### OrgMembership + +```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 } }, +}); + +// 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 } }, +}); + +// Create a orgMembership +const { mutate: create } = useCreateOrgMembershipMutation({ + selection: { fields: { id: true } }, +}); +create({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '' }); +``` + +### OrgMember + +```typescript +// List all orgMembers +const { data, isLoading } = useOrgMembersQuery({ + selection: { fields: { id: true, isAdmin: true, actorId: true, entityId: true } }, +}); + +// Get one orgMember +const { data: item } = useOrgMemberQuery({ + id: '', + selection: { fields: { id: true, isAdmin: true, actorId: true, entityId: true } }, +}); + +// Create a orgMember +const { mutate: create } = useCreateOrgMemberMutation({ + selection: { fields: { id: true } }, +}); +create({ isAdmin: '', actorId: '', entityId: '' }); +``` + +### OrgAdminGrant + +```typescript +// 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 orgAdminGrant +const { data: item } = useOrgAdminGrantQuery({ + id: '', + selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, +}); + +// Create a orgAdminGrant +const { mutate: create } = useCreateOrgAdminGrantMutation({ + selection: { fields: { id: true } }, +}); +create({ isGrant: '', actorId: '', entityId: '', grantorId: '' }); +``` + +### OrgOwnerGrant + +```typescript +// 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 orgOwnerGrant +const { data: item } = useOrgOwnerGrantQuery({ + id: '', + selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, +}); + +// Create a orgOwnerGrant +const { mutate: create } = useCreateOrgOwnerGrantMutation({ + selection: { fields: { id: true } }, +}); +create({ isGrant: '', actorId: '', entityId: '', grantorId: '' }); +``` + +### OrgGrant + +```typescript +// List all orgGrants +const { data, isLoading } = useOrgGrantsQuery({ + selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, +}); + +// Get one orgGrant +const { data: item } = useOrgGrantQuery({ + id: '', + selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, +}); + +// Create a orgGrant +const { mutate: create } = useCreateOrgGrantMutation({ + selection: { fields: { id: true } }, +}); +create({ permissions: '', isGrant: '', actorId: '', entityId: '', grantorId: '' }); +``` + +### AppLimit + +```typescript +// List all appLimits +const { data, isLoading } = useAppLimitsQuery({ + selection: { fields: { id: true, name: true, actorId: true, num: true, max: true } }, +}); + +// Get one appLimit +const { data: item } = useAppLimitQuery({ + id: '', + selection: { fields: { id: true, name: true, actorId: true, num: true, max: true } }, +}); + +// Create a appLimit +const { mutate: create } = useCreateAppLimitMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '', actorId: '', num: '', max: '' }); +``` + +### OrgLimit + +```typescript +// List all orgLimits +const { data, isLoading } = useOrgLimitsQuery({ + selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } }, +}); + +// Get one orgLimit +const { data: item } = useOrgLimitQuery({ + id: '', + selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } }, +}); + +// Create a orgLimit +const { mutate: create } = useCreateOrgLimitMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '', actorId: '', num: '', max: '', entityId: '' }); +``` + +### AppStep + +```typescript +// List all appSteps +const { data, isLoading } = useAppStepsQuery({ + selection: { fields: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }, +}); + +// Get one appStep +const { data: item } = useAppStepQuery({ + id: '', + selection: { fields: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }, +}); + +// Create a appStep +const { mutate: create } = useCreateAppStepMutation({ + selection: { fields: { id: true } }, +}); +create({ actorId: '', name: '', count: '' }); +``` + +### AppAchievement + +```typescript +// List all appAchievements +const { data, isLoading } = useAppAchievementsQuery({ + selection: { fields: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }, +}); + +// Get one appAchievement +const { data: item } = useAppAchievementQuery({ + id: '', + selection: { fields: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }, +}); + +// Create a appAchievement +const { mutate: create } = useCreateAppAchievementMutation({ + selection: { fields: { id: true } }, +}); +create({ actorId: '', name: '', count: '' }); +``` + +### Invite + +```typescript +// List all invites +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 } }, +}); + +// Get one invite +const { data: item } = 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 } }, +}); + +// Create a invite +const { mutate: create } = useCreateInviteMutation({ + selection: { fields: { id: true } }, +}); +create({ email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '' }); +``` + +### ClaimedInvite + +```typescript +// List all claimedInvites +const { data, isLoading } = useClaimedInvitesQuery({ + selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }, +}); + +// Get one claimedInvite +const { data: item } = useClaimedInviteQuery({ + id: '', + selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }, +}); + +// Create a claimedInvite +const { mutate: create } = useCreateClaimedInviteMutation({ + selection: { fields: { id: true } }, +}); +create({ data: '', senderId: '', receiverId: '' }); +``` + +### OrgInvite + +```typescript +// List all orgInvites +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 } }, +}); + +// Get one orgInvite +const { data: item } = 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 } }, +}); + +// Create a orgInvite +const { mutate: create } = useCreateOrgInviteMutation({ + selection: { fields: { id: true } }, +}); +create({ email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '', entityId: '' }); +``` + +### OrgClaimedInvite + +```typescript +// List all orgClaimedInvites +const { data, isLoading } = useOrgClaimedInvitesQuery({ + selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }, +}); + +// Get one orgClaimedInvite +const { data: item } = useOrgClaimedInviteQuery({ + id: '', + selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }, +}); + +// Create a orgClaimedInvite +const { mutate: create } = useCreateOrgClaimedInviteMutation({ + selection: { fields: { id: true } }, +}); +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 +// List all refs +const { data, isLoading } = useRefsQuery({ + selection: { fields: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }, +}); + +// Get one ref +const { data: item } = useRefQuery({ + id: '', + selection: { fields: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }, +}); + +// Create a ref +const { mutate: create } = useCreateRefMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '', databaseId: '', storeId: '', commitId: '' }); +``` + +### Store + +```typescript +// List all stores +const { data, isLoading } = useStoresQuery({ + selection: { fields: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }, +}); + +// Get one store +const { data: item } = useStoreQuery({ + id: '', + selection: { fields: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }, +}); + +// Create a store +const { mutate: create } = useCreateStoreMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '', databaseId: '', hash: '' }); +``` + +### RoleType + +```typescript +// List all roleTypes +const { data, isLoading } = useRoleTypesQuery({ + selection: { fields: { id: true, name: true } }, +}); + +// Get one roleType +const { data: item } = useRoleTypeQuery({ + id: '', + selection: { fields: { id: true, name: true } }, +}); + +// Create a roleType +const { mutate: create } = useCreateRoleTypeMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '' }); +``` + +### OrgPermissionDefault + +```typescript +// List all orgPermissionDefaults +const { data, isLoading } = useOrgPermissionDefaultsQuery({ + selection: { fields: { id: true, permissions: true, entityId: true } }, +}); + +// Get one orgPermissionDefault +const { data: item } = useOrgPermissionDefaultQuery({ + id: '', + selection: { fields: { id: true, permissions: true, entityId: true } }, +}); + +// Create a orgPermissionDefault +const { mutate: create } = useCreateOrgPermissionDefaultMutation({ + selection: { fields: { id: true } }, +}); +create({ permissions: '', entityId: '' }); +``` + +### AppLimitDefault + +```typescript +// List all appLimitDefaults +const { data, isLoading } = useAppLimitDefaultsQuery({ + selection: { fields: { id: true, name: true, max: true } }, +}); + +// Get one appLimitDefault +const { data: item } = useAppLimitDefaultQuery({ + id: '', + selection: { fields: { id: true, name: true, max: true } }, +}); + +// Create a appLimitDefault +const { mutate: create } = useCreateAppLimitDefaultMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '', max: '' }); +``` + +### OrgLimitDefault + +```typescript +// List all orgLimitDefaults +const { data, isLoading } = useOrgLimitDefaultsQuery({ + selection: { fields: { id: true, name: true, max: true } }, +}); + +// Get one orgLimitDefault +const { data: item } = useOrgLimitDefaultQuery({ + id: '', + selection: { fields: { id: true, name: true, max: true } }, +}); + +// Create a orgLimitDefault +const { mutate: create } = useCreateOrgLimitDefaultMutation({ + selection: { fields: { id: true } }, +}); +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 +// List all connectedAccounts +const { data, isLoading } = useConnectedAccountsQuery({ + selection: { fields: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } }, +}); + +// Get one connectedAccount +const { data: item } = useConnectedAccountQuery({ + id: '', + selection: { fields: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } }, +}); + +// Create a connectedAccount +const { mutate: create } = useCreateConnectedAccountMutation({ + selection: { fields: { id: true } }, +}); +create({ ownerId: '', service: '', identifier: '', details: '', isVerified: '' }); +``` + +### PhoneNumber + +```typescript +// List all phoneNumbers +const { data, isLoading } = usePhoneNumbersQuery({ + selection: { fields: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }, +}); + +// Get one phoneNumber +const { data: item } = usePhoneNumberQuery({ + id: '', + selection: { fields: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }, +}); + +// Create a phoneNumber +const { mutate: create } = useCreatePhoneNumberMutation({ + selection: { fields: { id: true } }, +}); +create({ ownerId: '', cc: '', number: '', isVerified: '', isPrimary: '' }); +``` + +### 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: '' }); +``` + +### NodeTypeRegistry + +```typescript +// List all nodeTypeRegistries +const { data, isLoading } = useNodeTypeRegistriesQuery({ + selection: { fields: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true, createdAt: true, updatedAt: true } }, +}); + +// Get one nodeTypeRegistry +const { data: item } = useNodeTypeRegistryQuery({ + name: '', + selection: { fields: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true, createdAt: true, updatedAt: true } }, +}); + +// Create a nodeTypeRegistry +const { mutate: create } = useCreateNodeTypeRegistryMutation({ + selection: { fields: { name: true } }, +}); +create({ slug: '', category: '', displayName: '', description: '', parameterSchema: '', tags: '' }); +``` + +### Commit + +```typescript +// List all commits +const { data, isLoading } = useCommitsQuery({ + selection: { fields: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }, +}); + +// Get one commit +const { data: item } = useCommitQuery({ + id: '', + selection: { fields: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }, +}); + +// Create a commit +const { mutate: create } = useCreateCommitMutation({ + selection: { fields: { id: true } }, +}); +create({ message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }); +``` + +### OrgMembershipDefault + +```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 } }, +}); + +// Get one orgMembershipDefault +const { data: item } = useOrgMembershipDefaultQuery({ + id: '', + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true, deleteMemberCascadeGroups: true, createGroupsCascadeMembers: true } }, +}); + +// Create a orgMembershipDefault +const { mutate: create } = useCreateOrgMembershipDefaultMutation({ + selection: { fields: { id: true } }, +}); +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 +// 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 auditLog +const { data: item } = useAuditLogQuery({ + id: '', + selection: { fields: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } }, +}); + +// Create a auditLog +const { mutate: create } = useCreateAuditLogMutation({ + selection: { fields: { id: true } }, +}); +create({ event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }); +``` + +### 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: '' }); +``` + +### SqlMigration + +```typescript +// List all sqlMigrations +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 } }, +}); + +// Get one sqlMigration +const { data: item } = 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 } }, +}); + +// Create a sqlMigration +const { mutate: create } = useCreateSqlMigrationMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '', databaseId: '', deploy: '', deps: '', payload: '', content: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }); +``` + +### AstMigration + +```typescript +// List all astMigrations +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 } }, +}); + +// Get one astMigration +const { data: item } = 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 } }, +}); + +// Create a astMigration +const { mutate: create } = useCreateAstMigrationMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', name: '', requires: '', payload: '', deploys: '', deploy: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }); +``` + +### 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 } }, +}); + +// 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 } }, +}); + +// Create a appMembership +const { mutate: create } = useCreateAppMembershipMutation({ + selection: { fields: { id: true } }, +}); +create({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '' }); +``` + +### User + +```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 } }, +}); + +// Get one user +const { data: item } = useUserQuery({ + id: '', + selection: { fields: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true } }, +}); + +// Create a user +const { mutate: create } = useCreateUserMutation({ + selection: { fields: { id: true } }, +}); +create({ username: '', displayName: '', profilePicture: '', searchTsv: '', type: '', searchTsvRank: '' }); +``` + +### HierarchyModule + +```typescript +// List all hierarchyModules +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 } }, +}); + +// Get one hierarchyModule +const { data: item } = 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 } }, +}); + +// Create a hierarchyModule +const { mutate: create } = useCreateHierarchyModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', privateSchemaId: '', chartEdgesTableId: '', chartEdgesTableName: '', hierarchySprtTableId: '', hierarchySprtTableName: '', chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', entityTableId: '', usersTableId: '', prefix: '', privateSchemaName: '', sprtTableName: '', rebuildHierarchyFunction: '', getSubordinatesFunction: '', getManagersFunction: '', isManagerOfFunction: '' }); +``` + +## Custom Operation Hooks + +### `useCurrentUserIdQuery` + +currentUserId + +- **Type:** query +- **Arguments:** none + +### `useCurrentIpAddressQuery` + +currentIpAddress + +- **Type:** query +- **Arguments:** none + +### `useCurrentUserAgentQuery` + +currentUserAgent + +- **Type:** query +- **Arguments:** none + +### `useAppPermissionsGetPaddedMaskQuery` + +appPermissionsGetPaddedMask + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `mask` | BitString | + +### `useOrgPermissionsGetPaddedMaskQuery` + +orgPermissionsGetPaddedMask + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `mask` | BitString | + +### `useStepsAchievedQuery` + +stepsAchieved + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `vlevel` | String | + | `vroleId` | UUID | + +### `useRevParseQuery` + +revParse + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `dbId` | UUID | + | `storeId` | UUID | + | `refname` | String | + +### `useAppPermissionsGetMaskQuery` + +appPermissionsGetMask + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `ids` | [UUID] | + +### `useOrgPermissionsGetMaskQuery` + +orgPermissionsGetMask + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `ids` | [UUID] | + +### `useAppPermissionsGetMaskByNamesQuery` + +appPermissionsGetMaskByNames + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `names` | [String] | + +### `useOrgPermissionsGetMaskByNamesQuery` + +orgPermissionsGetMaskByNames + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `names` | [String] | + +### `useAppPermissionsGetByMaskQuery` + +Reads and enables pagination through a set of `AppPermission`. + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `mask` | BitString | + | `first` | Int | + | `offset` | Int | + | `after` | Cursor | + +### `useOrgPermissionsGetByMaskQuery` + +Reads and enables pagination through a set of `OrgPermission`. + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `mask` | BitString | + | `first` | Int | + | `offset` | Int | + | `after` | Cursor | + +### `useGetAllObjectsFromRootQuery` + +Reads and enables pagination through a set of `Object`. + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `databaseId` | UUID | + | `id` | UUID | + | `first` | Int | + | `offset` | Int | + | `after` | Cursor | + +### `useGetPathObjectsFromRootQuery` + +Reads and enables pagination through a set of `Object`. + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `databaseId` | UUID | + | `id` | UUID | + | `path` | [String] | + | `first` | Int | + | `offset` | Int | + | `after` | Cursor | + +### `useGetObjectAtPathQuery` + +getObjectAtPath + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `dbId` | UUID | + | `storeId` | UUID | + | `path` | [String] | + | `refname` | String | + +### `useStepsRequiredQuery` + +Reads and enables pagination through a set of `AppLevelRequirement`. + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `vlevel` | String | + | `vroleId` | UUID | + | `first` | Int | + | `offset` | Int | + | `after` | Cursor | + +### `useCurrentUserQuery` + +currentUser + +- **Type:** query +- **Arguments:** none + +### `useSignOutMutation` + +signOut + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SignOutInput (required) | + +### `useSendAccountDeletionEmailMutation` + +sendAccountDeletionEmail + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SendAccountDeletionEmailInput (required) | + +### `useCheckPasswordMutation` + +checkPassword + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | CheckPasswordInput (required) | + +### `useSubmitInviteCodeMutation` + +submitInviteCode + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SubmitInviteCodeInput (required) | + +### `useSubmitOrgInviteCodeMutation` + +submitOrgInviteCode + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SubmitOrgInviteCodeInput (required) | + +### `useFreezeObjectsMutation` + +freezeObjects + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | FreezeObjectsInput (required) | + +### `useInitEmptyRepoMutation` + +initEmptyRepo + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | InitEmptyRepoInput (required) | + +### `useConfirmDeleteAccountMutation` + +confirmDeleteAccount + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ConfirmDeleteAccountInput (required) | + +### `useSetPasswordMutation` + +setPassword + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SetPasswordInput (required) | + +### `useVerifyEmailMutation` + +verifyEmail + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | VerifyEmailInput (required) | + +### `useResetPasswordMutation` + +resetPassword + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ResetPasswordInput (required) | + +### `useRemoveNodeAtPathMutation` + +removeNodeAtPath + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | RemoveNodeAtPathInput (required) | + +### `useBootstrapUserMutation` + +bootstrapUser + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | BootstrapUserInput (required) | + +### `useSetDataAtPathMutation` + +setDataAtPath + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SetDataAtPathInput (required) | + +### `useSetPropsAndCommitMutation` + +setPropsAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SetPropsAndCommitInput (required) | + +### `useProvisionDatabaseWithUserMutation` + +provisionDatabaseWithUser + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ProvisionDatabaseWithUserInput (required) | + +### `useSignInOneTimeTokenMutation` + +signInOneTimeToken + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SignInOneTimeTokenInput (required) | + +### `useCreateUserDatabaseMutation` + +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 + + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | CreateUserDatabaseInput (required) | + +### `useExtendTokenExpiresMutation` + +extendTokenExpires + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ExtendTokenExpiresInput (required) | + +### `useSignInMutation` + +signIn + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SignInInput (required) | + +### `useSignUpMutation` + +signUp + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SignUpInput (required) | + +### `useSetFieldOrderMutation` + +setFieldOrder + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SetFieldOrderInput (required) | + +### `useOneTimeTokenMutation` + +oneTimeToken + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | OneTimeTokenInput (required) | + +### `useInsertNodeAtPathMutation` + +insertNodeAtPath + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | InsertNodeAtPathInput (required) | + +### `useUpdateNodeAtPathMutation` + +updateNodeAtPath + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | UpdateNodeAtPathInput (required) | + +### `useSetAndCommitMutation` + +setAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SetAndCommitInput (required) | + +### `useApplyRlsMutation` + +applyRls + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ApplyRlsInput (required) | + +### `useForgotPasswordMutation` + +forgotPassword + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ForgotPasswordInput (required) | + +### `useSendVerificationEmailMutation` + +sendVerificationEmail + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SendVerificationEmailInput (required) | + +### `useVerifyPasswordMutation` + +verifyPassword + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | VerifyPasswordInput (required) | + +### `useVerifyTotpMutation` + +verifyTotp + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | VerifyTotpInput (required) | + +--- + +Built by the [Constructive](https://constructive.io) team. + +## Disclaimer + +AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED "AS IS", AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND. + +No developer or entity involved in creating this software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the code, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value. diff --git a/sdk/constructive-react/src/public/hooks/client.ts b/sdk/constructive-react/src/public/hooks/client.ts new file mode 100644 index 000000000..47b9aa63f --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/client.ts @@ -0,0 +1,42 @@ +/** + * ORM client wrapper for React Query hooks + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { createClient } from '../orm'; +import type { OrmClientConfig } from '../orm/client'; + +export type { OrmClientConfig } from '../orm/client'; +export type { GraphQLAdapter, GraphQLError, QueryResult } from '../orm/client'; +export { GraphQLRequestError } from '../orm/client'; + +type OrmClientInstance = ReturnType; +let client: OrmClientInstance | null = null; + +/** + * Configure the ORM client for React Query hooks + * + * @example + * ```ts + * import { configure } from './generated/hooks'; + * + * configure({ + * endpoint: 'https://api.example.com/graphql', + * headers: { Authorization: 'Bearer ' }, + * }); + * ``` + */ +export function configure(config: OrmClientConfig): void { + client = createClient(config); +} + +/** + * Get the configured ORM client instance + * @throws Error if configure() has not been called + */ +export function getClient(): OrmClientInstance { + if (!client) { + throw new Error('ORM client not configured. Call configure() before using hooks.'); + } + return client; +} diff --git a/sdk/constructive-react/src/public/hooks/index.ts b/sdk/constructive-react/src/public/hooks/index.ts new file mode 100644 index 000000000..448dfaf6d --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/index.ts @@ -0,0 +1,39 @@ +/** + * 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 + * + * Usage: + * + * 1. Configure the client: + * ```ts + * import { configure } from './generated'; + * + * configure({ + * endpoint: 'https://api.example.com/graphql', + * headers: { Authorization: 'Bearer ' }, + * }); + * ``` + * + * 2. Use the hooks: + * ```tsx + * import { useCarsQuery, useCreateCarMutation } from './generated'; + * + * function MyComponent() { + * const { data, isLoading } = useCarsQuery({ + * selection: { fields: { id: true }, first: 10 }, + * }); + * const { mutate } = useCreateCarMutation({ + * selection: { fields: { id: true } }, + * }); + * // ... + * } + * ``` + */ +export * from './client'; +export * from './query-keys'; +export * from './mutation-keys'; +export * from './invalidation'; +export * from './queries'; +export * from './mutations'; diff --git a/sdk/constructive-react/src/public/hooks/invalidation.ts b/sdk/constructive-react/src/public/hooks/invalidation.ts new file mode 100644 index 000000000..28d9e7c0e --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/invalidation.ts @@ -0,0 +1,2431 @@ +/** + * Cache invalidation helpers + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +// ============================================================================ +// Type-safe cache invalidation utilities +// +// Features: +// - Simple invalidation helpers per entity +// - Cascade invalidation for parent-child relationships +// - Remove helpers for delete operations +// ============================================================================ + +import type { QueryClient } from '@tanstack/react-query'; +import { + getAllRecordKeys, + appPermissionKeys, + orgPermissionKeys, + objectKeys, + appLevelRequirementKeys, + databaseKeys, + schemaKeys, + tableKeys, + checkConstraintKeys, + fieldKeys, + foreignKeyConstraintKeys, + fullTextSearchKeys, + indexKeys, + limitFunctionKeys, + policyKeys, + primaryKeyConstraintKeys, + tableGrantKeys, + triggerKeys, + uniqueConstraintKeys, + viewKeys, + viewTableKeys, + viewGrantKeys, + viewRuleKeys, + tableModuleKeys, + tableTemplateModuleKeys, + schemaGrantKeys, + apiSchemaKeys, + apiModuleKeys, + domainKeys, + siteMetadatumKeys, + siteModuleKeys, + siteThemeKeys, + procedureKeys, + triggerFunctionKeys, + apiKeys, + siteKeys, + appKeys, + connectedAccountsModuleKeys, + cryptoAddressesModuleKeys, + cryptoAuthModuleKeys, + defaultIdsModuleKeys, + denormalizedTableFieldKeys, + emailsModuleKeys, + encryptedSecretsModuleKeys, + fieldModuleKeys, + invitesModuleKeys, + levelsModuleKeys, + limitsModuleKeys, + membershipTypesModuleKeys, + membershipsModuleKeys, + permissionsModuleKeys, + phoneNumbersModuleKeys, + profilesModuleKeys, + rlsModuleKeys, + secretsModuleKeys, + sessionsModuleKeys, + userAuthModuleKeys, + usersModuleKeys, + uuidModuleKeys, + databaseProvisionModuleKeys, + appAdminGrantKeys, + appOwnerGrantKeys, + appGrantKeys, + orgMembershipKeys, + orgMemberKeys, + orgAdminGrantKeys, + orgOwnerGrantKeys, + orgGrantKeys, + appLimitKeys, + orgLimitKeys, + appStepKeys, + appAchievementKeys, + inviteKeys, + claimedInviteKeys, + orgInviteKeys, + orgClaimedInviteKeys, + appPermissionDefaultKeys, + refKeys, + storeKeys, + roleTypeKeys, + orgPermissionDefaultKeys, + appLimitDefaultKeys, + orgLimitDefaultKeys, + cryptoAddressKeys, + membershipTypeKeys, + connectedAccountKeys, + phoneNumberKeys, + appMembershipDefaultKeys, + nodeTypeRegistryKeys, + commitKeys, + orgMembershipDefaultKeys, + emailKeys, + auditLogKeys, + appLevelKeys, + sqlMigrationKeys, + astMigrationKeys, + appMembershipKeys, + userKeys, + hierarchyModuleKeys, +} from './query-keys'; +/** +// ============================================================================ +// Invalidation Helpers +// ============================================================================ + + * Type-safe query invalidation helpers + * + * @example + * ```ts + * // Invalidate all user queries + * invalidate.user.all(queryClient); + * + * // Invalidate user lists + * invalidate.user.lists(queryClient); + * + * // Invalidate specific user + * invalidate.user.detail(queryClient, userId); + * ``` + */ +export const invalidate = { + /** Invalidate getAllRecord queries */ getAllRecord: { + /** Invalidate all getAllRecord queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: getAllRecordKeys.all, + }), + /** Invalidate getAllRecord list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: getAllRecordKeys.lists(), + }), + /** Invalidate a specific getAllRecord */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: getAllRecordKeys.detail(id), + }), + }, + /** Invalidate appPermission queries */ appPermission: { + /** Invalidate all appPermission queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appPermissionKeys.all, + }), + /** Invalidate appPermission list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appPermissionKeys.lists(), + }), + /** Invalidate a specific appPermission */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: appPermissionKeys.detail(id), + }), + }, + /** Invalidate orgPermission queries */ orgPermission: { + /** Invalidate all orgPermission queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgPermissionKeys.all, + }), + /** Invalidate orgPermission list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgPermissionKeys.lists(), + }), + /** Invalidate a specific orgPermission */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: orgPermissionKeys.detail(id), + }), + }, + /** Invalidate object queries */ object: { + /** Invalidate all object queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: objectKeys.all, + }), + /** Invalidate object list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: objectKeys.lists(), + }), + /** Invalidate a specific object */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: objectKeys.detail(id), + }), + }, + /** Invalidate appLevelRequirement queries */ appLevelRequirement: { + /** Invalidate all appLevelRequirement queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appLevelRequirementKeys.all, + }), + /** Invalidate appLevelRequirement list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appLevelRequirementKeys.lists(), + }), + /** Invalidate a specific appLevelRequirement */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: appLevelRequirementKeys.detail(id), + }), + }, + /** Invalidate database queries */ database: { + /** Invalidate all database queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: databaseKeys.all, + }), + /** Invalidate database list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: databaseKeys.lists(), + }), + /** Invalidate a specific database */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: databaseKeys.detail(id), + }), + }, + /** Invalidate schema queries */ schema: { + /** Invalidate all schema queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: schemaKeys.all, + }), + /** Invalidate schema list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: schemaKeys.lists(), + }), + /** Invalidate a specific schema */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: schemaKeys.detail(id), + }), + }, + /** Invalidate table queries */ table: { + /** Invalidate all table queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: tableKeys.all, + }), + /** Invalidate table list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: tableKeys.lists(), + }), + /** Invalidate a specific table */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: tableKeys.detail(id), + }), + }, + /** Invalidate checkConstraint queries */ checkConstraint: { + /** Invalidate all checkConstraint queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: checkConstraintKeys.all, + }), + /** Invalidate checkConstraint list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: checkConstraintKeys.lists(), + }), + /** Invalidate a specific checkConstraint */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: checkConstraintKeys.detail(id), + }), + }, + /** Invalidate field queries */ field: { + /** Invalidate all field queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: fieldKeys.all, + }), + /** Invalidate field list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: fieldKeys.lists(), + }), + /** Invalidate a specific field */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: fieldKeys.detail(id), + }), + }, + /** Invalidate foreignKeyConstraint queries */ foreignKeyConstraint: { + /** Invalidate all foreignKeyConstraint queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: foreignKeyConstraintKeys.all, + }), + /** Invalidate foreignKeyConstraint list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: foreignKeyConstraintKeys.lists(), + }), + /** Invalidate a specific foreignKeyConstraint */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: foreignKeyConstraintKeys.detail(id), + }), + }, + /** Invalidate fullTextSearch queries */ fullTextSearch: { + /** Invalidate all fullTextSearch queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: fullTextSearchKeys.all, + }), + /** Invalidate fullTextSearch list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: fullTextSearchKeys.lists(), + }), + /** Invalidate a specific fullTextSearch */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: fullTextSearchKeys.detail(id), + }), + }, + /** Invalidate index queries */ index: { + /** Invalidate all index queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: indexKeys.all, + }), + /** Invalidate index list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: indexKeys.lists(), + }), + /** Invalidate a specific index */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + 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({ + queryKey: policyKeys.all, + }), + /** Invalidate policy list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: policyKeys.lists(), + }), + /** Invalidate a specific policy */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: policyKeys.detail(id), + }), + }, + /** Invalidate primaryKeyConstraint queries */ primaryKeyConstraint: { + /** Invalidate all primaryKeyConstraint queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: primaryKeyConstraintKeys.all, + }), + /** Invalidate primaryKeyConstraint list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: primaryKeyConstraintKeys.lists(), + }), + /** Invalidate a specific primaryKeyConstraint */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: primaryKeyConstraintKeys.detail(id), + }), + }, + /** Invalidate tableGrant queries */ tableGrant: { + /** Invalidate all tableGrant queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: tableGrantKeys.all, + }), + /** Invalidate tableGrant list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: tableGrantKeys.lists(), + }), + /** Invalidate a specific tableGrant */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: tableGrantKeys.detail(id), + }), + }, + /** Invalidate trigger queries */ trigger: { + /** Invalidate all trigger queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: triggerKeys.all, + }), + /** Invalidate trigger list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: triggerKeys.lists(), + }), + /** Invalidate a specific trigger */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: triggerKeys.detail(id), + }), + }, + /** Invalidate uniqueConstraint queries */ uniqueConstraint: { + /** Invalidate all uniqueConstraint queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: uniqueConstraintKeys.all, + }), + /** Invalidate uniqueConstraint list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: uniqueConstraintKeys.lists(), + }), + /** Invalidate a specific uniqueConstraint */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: uniqueConstraintKeys.detail(id), + }), + }, + /** Invalidate view queries */ view: { + /** Invalidate all view queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: viewKeys.all, + }), + /** Invalidate view list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: viewKeys.lists(), + }), + /** Invalidate a specific view */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: viewKeys.detail(id), + }), + }, + /** Invalidate viewTable queries */ viewTable: { + /** Invalidate all viewTable queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: viewTableKeys.all, + }), + /** Invalidate viewTable list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: viewTableKeys.lists(), + }), + /** Invalidate a specific viewTable */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: viewTableKeys.detail(id), + }), + }, + /** Invalidate viewGrant queries */ viewGrant: { + /** Invalidate all viewGrant queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: viewGrantKeys.all, + }), + /** Invalidate viewGrant list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: viewGrantKeys.lists(), + }), + /** Invalidate a specific viewGrant */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: viewGrantKeys.detail(id), + }), + }, + /** Invalidate viewRule queries */ viewRule: { + /** Invalidate all viewRule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: viewRuleKeys.all, + }), + /** Invalidate viewRule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: viewRuleKeys.lists(), + }), + /** Invalidate a specific viewRule */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: viewRuleKeys.detail(id), + }), + }, + /** Invalidate tableModule queries */ tableModule: { + /** Invalidate all tableModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: tableModuleKeys.all, + }), + /** Invalidate tableModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: tableModuleKeys.lists(), + }), + /** Invalidate a specific tableModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: tableModuleKeys.detail(id), + }), + }, + /** Invalidate tableTemplateModule queries */ tableTemplateModule: { + /** Invalidate all tableTemplateModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: tableTemplateModuleKeys.all, + }), + /** Invalidate tableTemplateModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: tableTemplateModuleKeys.lists(), + }), + /** Invalidate a specific tableTemplateModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: tableTemplateModuleKeys.detail(id), + }), + }, + /** Invalidate schemaGrant queries */ schemaGrant: { + /** Invalidate all schemaGrant queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: schemaGrantKeys.all, + }), + /** Invalidate schemaGrant list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: schemaGrantKeys.lists(), + }), + /** Invalidate a specific schemaGrant */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: schemaGrantKeys.detail(id), + }), + }, + /** Invalidate apiSchema queries */ apiSchema: { + /** Invalidate all apiSchema queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: apiSchemaKeys.all, + }), + /** Invalidate apiSchema list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: apiSchemaKeys.lists(), + }), + /** Invalidate a specific apiSchema */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: apiSchemaKeys.detail(id), + }), + }, + /** Invalidate apiModule queries */ apiModule: { + /** Invalidate all apiModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: apiModuleKeys.all, + }), + /** Invalidate apiModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: apiModuleKeys.lists(), + }), + /** Invalidate a specific apiModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: apiModuleKeys.detail(id), + }), + }, + /** Invalidate domain queries */ domain: { + /** Invalidate all domain queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: domainKeys.all, + }), + /** Invalidate domain list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: domainKeys.lists(), + }), + /** Invalidate a specific domain */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: domainKeys.detail(id), + }), + }, + /** Invalidate siteMetadatum queries */ siteMetadatum: { + /** Invalidate all siteMetadatum queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: siteMetadatumKeys.all, + }), + /** Invalidate siteMetadatum list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: siteMetadatumKeys.lists(), + }), + /** Invalidate a specific siteMetadatum */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: siteMetadatumKeys.detail(id), + }), + }, + /** Invalidate siteModule queries */ siteModule: { + /** Invalidate all siteModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: siteModuleKeys.all, + }), + /** Invalidate siteModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: siteModuleKeys.lists(), + }), + /** Invalidate a specific siteModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: siteModuleKeys.detail(id), + }), + }, + /** Invalidate siteTheme queries */ siteTheme: { + /** Invalidate all siteTheme queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: siteThemeKeys.all, + }), + /** Invalidate siteTheme list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: siteThemeKeys.lists(), + }), + /** Invalidate a specific siteTheme */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + 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({ + queryKey: triggerFunctionKeys.all, + }), + /** Invalidate triggerFunction list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: triggerFunctionKeys.lists(), + }), + /** Invalidate a specific triggerFunction */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: triggerFunctionKeys.detail(id), + }), + }, + /** Invalidate api queries */ api: { + /** Invalidate all api queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: apiKeys.all, + }), + /** Invalidate api list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: apiKeys.lists(), + }), + /** Invalidate a specific api */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: apiKeys.detail(id), + }), + }, + /** Invalidate site queries */ site: { + /** Invalidate all site queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: siteKeys.all, + }), + /** Invalidate site list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: siteKeys.lists(), + }), + /** Invalidate a specific site */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: siteKeys.detail(id), + }), + }, + /** Invalidate app queries */ app: { + /** Invalidate all app queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appKeys.all, + }), + /** Invalidate app list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appKeys.lists(), + }), + /** Invalidate a specific app */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: appKeys.detail(id), + }), + }, + /** Invalidate connectedAccountsModule queries */ connectedAccountsModule: { + /** Invalidate all connectedAccountsModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: connectedAccountsModuleKeys.all, + }), + /** Invalidate connectedAccountsModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: connectedAccountsModuleKeys.lists(), + }), + /** Invalidate a specific connectedAccountsModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: connectedAccountsModuleKeys.detail(id), + }), + }, + /** Invalidate cryptoAddressesModule queries */ cryptoAddressesModule: { + /** Invalidate all cryptoAddressesModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: cryptoAddressesModuleKeys.all, + }), + /** Invalidate cryptoAddressesModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: cryptoAddressesModuleKeys.lists(), + }), + /** Invalidate a specific cryptoAddressesModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: cryptoAddressesModuleKeys.detail(id), + }), + }, + /** Invalidate cryptoAuthModule queries */ cryptoAuthModule: { + /** Invalidate all cryptoAuthModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: cryptoAuthModuleKeys.all, + }), + /** Invalidate cryptoAuthModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: cryptoAuthModuleKeys.lists(), + }), + /** Invalidate a specific cryptoAuthModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: cryptoAuthModuleKeys.detail(id), + }), + }, + /** Invalidate defaultIdsModule queries */ defaultIdsModule: { + /** Invalidate all defaultIdsModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: defaultIdsModuleKeys.all, + }), + /** Invalidate defaultIdsModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: defaultIdsModuleKeys.lists(), + }), + /** Invalidate a specific defaultIdsModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: defaultIdsModuleKeys.detail(id), + }), + }, + /** Invalidate denormalizedTableField queries */ denormalizedTableField: { + /** Invalidate all denormalizedTableField queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: denormalizedTableFieldKeys.all, + }), + /** Invalidate denormalizedTableField list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: denormalizedTableFieldKeys.lists(), + }), + /** Invalidate a specific denormalizedTableField */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: denormalizedTableFieldKeys.detail(id), + }), + }, + /** Invalidate emailsModule queries */ emailsModule: { + /** Invalidate all emailsModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: emailsModuleKeys.all, + }), + /** Invalidate emailsModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: emailsModuleKeys.lists(), + }), + /** Invalidate a specific emailsModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: emailsModuleKeys.detail(id), + }), + }, + /** Invalidate encryptedSecretsModule queries */ encryptedSecretsModule: { + /** Invalidate all encryptedSecretsModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: encryptedSecretsModuleKeys.all, + }), + /** Invalidate encryptedSecretsModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: encryptedSecretsModuleKeys.lists(), + }), + /** Invalidate a specific encryptedSecretsModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: encryptedSecretsModuleKeys.detail(id), + }), + }, + /** Invalidate fieldModule queries */ fieldModule: { + /** Invalidate all fieldModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: fieldModuleKeys.all, + }), + /** Invalidate fieldModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: fieldModuleKeys.lists(), + }), + /** Invalidate a specific fieldModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: fieldModuleKeys.detail(id), + }), + }, + /** Invalidate invitesModule queries */ invitesModule: { + /** Invalidate all invitesModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: invitesModuleKeys.all, + }), + /** Invalidate invitesModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: invitesModuleKeys.lists(), + }), + /** Invalidate a specific invitesModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: invitesModuleKeys.detail(id), + }), + }, + /** Invalidate levelsModule queries */ levelsModule: { + /** Invalidate all levelsModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: levelsModuleKeys.all, + }), + /** Invalidate levelsModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: levelsModuleKeys.lists(), + }), + /** Invalidate a specific levelsModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: levelsModuleKeys.detail(id), + }), + }, + /** Invalidate limitsModule queries */ limitsModule: { + /** Invalidate all limitsModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: limitsModuleKeys.all, + }), + /** Invalidate limitsModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: limitsModuleKeys.lists(), + }), + /** Invalidate a specific limitsModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: limitsModuleKeys.detail(id), + }), + }, + /** Invalidate membershipTypesModule queries */ membershipTypesModule: { + /** Invalidate all membershipTypesModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: membershipTypesModuleKeys.all, + }), + /** Invalidate membershipTypesModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: membershipTypesModuleKeys.lists(), + }), + /** Invalidate a specific membershipTypesModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: membershipTypesModuleKeys.detail(id), + }), + }, + /** Invalidate membershipsModule queries */ membershipsModule: { + /** Invalidate all membershipsModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: membershipsModuleKeys.all, + }), + /** Invalidate membershipsModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: membershipsModuleKeys.lists(), + }), + /** Invalidate a specific membershipsModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: membershipsModuleKeys.detail(id), + }), + }, + /** Invalidate permissionsModule queries */ permissionsModule: { + /** Invalidate all permissionsModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: permissionsModuleKeys.all, + }), + /** Invalidate permissionsModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: permissionsModuleKeys.lists(), + }), + /** Invalidate a specific permissionsModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: permissionsModuleKeys.detail(id), + }), + }, + /** Invalidate phoneNumbersModule queries */ phoneNumbersModule: { + /** Invalidate all phoneNumbersModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: phoneNumbersModuleKeys.all, + }), + /** Invalidate phoneNumbersModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: phoneNumbersModuleKeys.lists(), + }), + /** Invalidate a specific phoneNumbersModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: phoneNumbersModuleKeys.detail(id), + }), + }, + /** Invalidate profilesModule queries */ profilesModule: { + /** Invalidate all profilesModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: profilesModuleKeys.all, + }), + /** Invalidate profilesModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: profilesModuleKeys.lists(), + }), + /** Invalidate a specific profilesModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: profilesModuleKeys.detail(id), + }), + }, + /** Invalidate rlsModule queries */ rlsModule: { + /** Invalidate all rlsModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: rlsModuleKeys.all, + }), + /** Invalidate rlsModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: rlsModuleKeys.lists(), + }), + /** Invalidate a specific rlsModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: rlsModuleKeys.detail(id), + }), + }, + /** Invalidate secretsModule queries */ secretsModule: { + /** Invalidate all secretsModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: secretsModuleKeys.all, + }), + /** Invalidate secretsModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: secretsModuleKeys.lists(), + }), + /** Invalidate a specific secretsModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: secretsModuleKeys.detail(id), + }), + }, + /** Invalidate sessionsModule queries */ sessionsModule: { + /** Invalidate all sessionsModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: sessionsModuleKeys.all, + }), + /** Invalidate sessionsModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: sessionsModuleKeys.lists(), + }), + /** Invalidate a specific sessionsModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: sessionsModuleKeys.detail(id), + }), + }, + /** Invalidate userAuthModule queries */ userAuthModule: { + /** Invalidate all userAuthModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: userAuthModuleKeys.all, + }), + /** Invalidate userAuthModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: userAuthModuleKeys.lists(), + }), + /** Invalidate a specific userAuthModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: userAuthModuleKeys.detail(id), + }), + }, + /** Invalidate usersModule queries */ usersModule: { + /** Invalidate all usersModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: usersModuleKeys.all, + }), + /** Invalidate usersModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: usersModuleKeys.lists(), + }), + /** Invalidate a specific usersModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: usersModuleKeys.detail(id), + }), + }, + /** Invalidate uuidModule queries */ uuidModule: { + /** Invalidate all uuidModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: uuidModuleKeys.all, + }), + /** Invalidate uuidModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: uuidModuleKeys.lists(), + }), + /** Invalidate a specific uuidModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: uuidModuleKeys.detail(id), + }), + }, + /** Invalidate databaseProvisionModule queries */ databaseProvisionModule: { + /** Invalidate all databaseProvisionModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: databaseProvisionModuleKeys.all, + }), + /** Invalidate databaseProvisionModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: databaseProvisionModuleKeys.lists(), + }), + /** Invalidate a specific databaseProvisionModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: databaseProvisionModuleKeys.detail(id), + }), + }, + /** Invalidate appAdminGrant queries */ appAdminGrant: { + /** Invalidate all appAdminGrant queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appAdminGrantKeys.all, + }), + /** Invalidate appAdminGrant list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appAdminGrantKeys.lists(), + }), + /** Invalidate a specific appAdminGrant */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: appAdminGrantKeys.detail(id), + }), + }, + /** Invalidate appOwnerGrant queries */ appOwnerGrant: { + /** Invalidate all appOwnerGrant queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appOwnerGrantKeys.all, + }), + /** Invalidate appOwnerGrant list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appOwnerGrantKeys.lists(), + }), + /** Invalidate a specific appOwnerGrant */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: appOwnerGrantKeys.detail(id), + }), + }, + /** Invalidate appGrant queries */ appGrant: { + /** Invalidate all appGrant queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appGrantKeys.all, + }), + /** Invalidate appGrant list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appGrantKeys.lists(), + }), + /** Invalidate a specific appGrant */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: appGrantKeys.detail(id), + }), + }, + /** Invalidate orgMembership queries */ orgMembership: { + /** Invalidate all orgMembership queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgMembershipKeys.all, + }), + /** Invalidate orgMembership list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgMembershipKeys.lists(), + }), + /** Invalidate a specific orgMembership */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: orgMembershipKeys.detail(id), + }), + }, + /** Invalidate orgMember queries */ orgMember: { + /** Invalidate all orgMember queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgMemberKeys.all, + }), + /** Invalidate orgMember list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgMemberKeys.lists(), + }), + /** Invalidate a specific orgMember */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: orgMemberKeys.detail(id), + }), + }, + /** Invalidate orgAdminGrant queries */ orgAdminGrant: { + /** Invalidate all orgAdminGrant queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgAdminGrantKeys.all, + }), + /** Invalidate orgAdminGrant list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgAdminGrantKeys.lists(), + }), + /** Invalidate a specific orgAdminGrant */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: orgAdminGrantKeys.detail(id), + }), + }, + /** Invalidate orgOwnerGrant queries */ orgOwnerGrant: { + /** Invalidate all orgOwnerGrant queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgOwnerGrantKeys.all, + }), + /** Invalidate orgOwnerGrant list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgOwnerGrantKeys.lists(), + }), + /** Invalidate a specific orgOwnerGrant */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: orgOwnerGrantKeys.detail(id), + }), + }, + /** Invalidate orgGrant queries */ orgGrant: { + /** Invalidate all orgGrant queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgGrantKeys.all, + }), + /** Invalidate orgGrant list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgGrantKeys.lists(), + }), + /** Invalidate a specific orgGrant */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: orgGrantKeys.detail(id), + }), + }, + /** Invalidate appLimit queries */ appLimit: { + /** Invalidate all appLimit queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appLimitKeys.all, + }), + /** Invalidate appLimit list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appLimitKeys.lists(), + }), + /** Invalidate a specific appLimit */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: appLimitKeys.detail(id), + }), + }, + /** Invalidate orgLimit queries */ orgLimit: { + /** Invalidate all orgLimit queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgLimitKeys.all, + }), + /** Invalidate orgLimit list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgLimitKeys.lists(), + }), + /** Invalidate a specific orgLimit */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: orgLimitKeys.detail(id), + }), + }, + /** Invalidate appStep queries */ appStep: { + /** Invalidate all appStep queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appStepKeys.all, + }), + /** Invalidate appStep list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appStepKeys.lists(), + }), + /** Invalidate a specific appStep */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: appStepKeys.detail(id), + }), + }, + /** Invalidate appAchievement queries */ appAchievement: { + /** Invalidate all appAchievement queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appAchievementKeys.all, + }), + /** Invalidate appAchievement list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appAchievementKeys.lists(), + }), + /** Invalidate a specific appAchievement */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: appAchievementKeys.detail(id), + }), + }, + /** Invalidate invite queries */ invite: { + /** Invalidate all invite queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: inviteKeys.all, + }), + /** Invalidate invite list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: inviteKeys.lists(), + }), + /** Invalidate a specific invite */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: inviteKeys.detail(id), + }), + }, + /** Invalidate claimedInvite queries */ claimedInvite: { + /** Invalidate all claimedInvite queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: claimedInviteKeys.all, + }), + /** Invalidate claimedInvite list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: claimedInviteKeys.lists(), + }), + /** Invalidate a specific claimedInvite */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: claimedInviteKeys.detail(id), + }), + }, + /** Invalidate orgInvite queries */ orgInvite: { + /** Invalidate all orgInvite queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgInviteKeys.all, + }), + /** Invalidate orgInvite list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgInviteKeys.lists(), + }), + /** Invalidate a specific orgInvite */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: orgInviteKeys.detail(id), + }), + }, + /** Invalidate orgClaimedInvite queries */ orgClaimedInvite: { + /** Invalidate all orgClaimedInvite queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgClaimedInviteKeys.all, + }), + /** Invalidate orgClaimedInvite list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgClaimedInviteKeys.lists(), + }), + /** Invalidate a specific orgClaimedInvite */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + 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({ + queryKey: refKeys.all, + }), + /** Invalidate ref list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: refKeys.lists(), + }), + /** Invalidate a specific ref */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: refKeys.detail(id), + }), + }, + /** Invalidate store queries */ store: { + /** Invalidate all store queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: storeKeys.all, + }), + /** Invalidate store list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: storeKeys.lists(), + }), + /** Invalidate a specific store */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: storeKeys.detail(id), + }), + }, + /** Invalidate roleType queries */ roleType: { + /** Invalidate all roleType queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: roleTypeKeys.all, + }), + /** Invalidate roleType list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: roleTypeKeys.lists(), + }), + /** Invalidate a specific roleType */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: roleTypeKeys.detail(id), + }), + }, + /** Invalidate orgPermissionDefault queries */ orgPermissionDefault: { + /** Invalidate all orgPermissionDefault queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgPermissionDefaultKeys.all, + }), + /** Invalidate orgPermissionDefault list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgPermissionDefaultKeys.lists(), + }), + /** Invalidate a specific orgPermissionDefault */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: orgPermissionDefaultKeys.detail(id), + }), + }, + /** Invalidate appLimitDefault queries */ appLimitDefault: { + /** Invalidate all appLimitDefault queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appLimitDefaultKeys.all, + }), + /** Invalidate appLimitDefault list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appLimitDefaultKeys.lists(), + }), + /** Invalidate a specific appLimitDefault */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: appLimitDefaultKeys.detail(id), + }), + }, + /** Invalidate orgLimitDefault queries */ orgLimitDefault: { + /** Invalidate all orgLimitDefault queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgLimitDefaultKeys.all, + }), + /** Invalidate orgLimitDefault list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgLimitDefaultKeys.lists(), + }), + /** Invalidate a specific orgLimitDefault */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + 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({ + queryKey: connectedAccountKeys.all, + }), + /** Invalidate connectedAccount list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: connectedAccountKeys.lists(), + }), + /** Invalidate a specific connectedAccount */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: connectedAccountKeys.detail(id), + }), + }, + /** Invalidate phoneNumber queries */ phoneNumber: { + /** Invalidate all phoneNumber queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: phoneNumberKeys.all, + }), + /** Invalidate phoneNumber list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: phoneNumberKeys.lists(), + }), + /** Invalidate a specific phoneNumber */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: phoneNumberKeys.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 nodeTypeRegistry queries */ nodeTypeRegistry: { + /** Invalidate all nodeTypeRegistry queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: nodeTypeRegistryKeys.all, + }), + /** Invalidate nodeTypeRegistry list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: nodeTypeRegistryKeys.lists(), + }), + /** Invalidate a specific nodeTypeRegistry */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: nodeTypeRegistryKeys.detail(id), + }), + }, + /** Invalidate commit queries */ commit: { + /** Invalidate all commit queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: commitKeys.all, + }), + /** Invalidate commit list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: commitKeys.lists(), + }), + /** Invalidate a specific commit */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: commitKeys.detail(id), + }), + }, + /** Invalidate orgMembershipDefault queries */ orgMembershipDefault: { + /** Invalidate all orgMembershipDefault queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgMembershipDefaultKeys.all, + }), + /** Invalidate orgMembershipDefault list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgMembershipDefaultKeys.lists(), + }), + /** Invalidate a specific orgMembershipDefault */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + 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({ + queryKey: auditLogKeys.all, + }), + /** Invalidate auditLog list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: auditLogKeys.lists(), + }), + /** Invalidate a specific auditLog */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: auditLogKeys.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 sqlMigration queries */ sqlMigration: { + /** Invalidate all sqlMigration queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: sqlMigrationKeys.all, + }), + /** Invalidate sqlMigration list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: sqlMigrationKeys.lists(), + }), + /** Invalidate a specific sqlMigration */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: sqlMigrationKeys.detail(id), + }), + }, + /** Invalidate astMigration queries */ astMigration: { + /** Invalidate all astMigration queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: astMigrationKeys.all, + }), + /** Invalidate astMigration list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: astMigrationKeys.lists(), + }), + /** Invalidate a specific astMigration */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: astMigrationKeys.detail(id), + }), + }, + /** Invalidate appMembership queries */ appMembership: { + /** Invalidate all appMembership queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appMembershipKeys.all, + }), + /** Invalidate appMembership list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appMembershipKeys.lists(), + }), + /** Invalidate a specific appMembership */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + 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({ + queryKey: hierarchyModuleKeys.all, + }), + /** Invalidate hierarchyModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: hierarchyModuleKeys.lists(), + }), + /** Invalidate a specific hierarchyModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: hierarchyModuleKeys.detail(id), + }), + }, +} as const; +/** + +// ============================================================================ +// Remove Helpers (for delete operations) +// ============================================================================ + + * Remove queries from cache (for delete operations) + * + * Use these when an entity is deleted to remove it from cache + * instead of just invalidating (which would trigger a refetch). + */ +export const remove = { + /** Remove getAllRecord from cache */ getAllRecord: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: getAllRecordKeys.detail(id), + }); + }, + /** Remove appPermission from cache */ appPermission: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: appPermissionKeys.detail(id), + }); + }, + /** Remove orgPermission from cache */ orgPermission: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: orgPermissionKeys.detail(id), + }); + }, + /** Remove object from cache */ object: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: objectKeys.detail(id), + }); + }, + /** Remove appLevelRequirement from cache */ appLevelRequirement: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: appLevelRequirementKeys.detail(id), + }); + }, + /** Remove database from cache */ database: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: databaseKeys.detail(id), + }); + }, + /** Remove schema from cache */ schema: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: schemaKeys.detail(id), + }); + }, + /** Remove table from cache */ table: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: tableKeys.detail(id), + }); + }, + /** Remove checkConstraint from cache */ checkConstraint: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: checkConstraintKeys.detail(id), + }); + }, + /** Remove field from cache */ field: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: fieldKeys.detail(id), + }); + }, + /** Remove foreignKeyConstraint from cache */ foreignKeyConstraint: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: foreignKeyConstraintKeys.detail(id), + }); + }, + /** Remove fullTextSearch from cache */ fullTextSearch: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: fullTextSearchKeys.detail(id), + }); + }, + /** Remove index from cache */ index: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + 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), + }); + }, + /** Remove primaryKeyConstraint from cache */ primaryKeyConstraint: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: primaryKeyConstraintKeys.detail(id), + }); + }, + /** Remove tableGrant from cache */ tableGrant: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: tableGrantKeys.detail(id), + }); + }, + /** Remove trigger from cache */ trigger: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: triggerKeys.detail(id), + }); + }, + /** Remove uniqueConstraint from cache */ uniqueConstraint: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: uniqueConstraintKeys.detail(id), + }); + }, + /** Remove view from cache */ view: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: viewKeys.detail(id), + }); + }, + /** Remove viewTable from cache */ viewTable: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: viewTableKeys.detail(id), + }); + }, + /** Remove viewGrant from cache */ viewGrant: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: viewGrantKeys.detail(id), + }); + }, + /** Remove viewRule from cache */ viewRule: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: viewRuleKeys.detail(id), + }); + }, + /** Remove tableModule from cache */ tableModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: tableModuleKeys.detail(id), + }); + }, + /** Remove tableTemplateModule from cache */ tableTemplateModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: tableTemplateModuleKeys.detail(id), + }); + }, + /** Remove schemaGrant from cache */ schemaGrant: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: schemaGrantKeys.detail(id), + }); + }, + /** Remove apiSchema from cache */ apiSchema: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: apiSchemaKeys.detail(id), + }); + }, + /** Remove apiModule from cache */ apiModule: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: apiModuleKeys.detail(id), + }); + }, + /** Remove domain from cache */ domain: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: domainKeys.detail(id), + }); + }, + /** Remove siteMetadatum from cache */ siteMetadatum: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: siteMetadatumKeys.detail(id), + }); + }, + /** Remove siteModule from cache */ siteModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: siteModuleKeys.detail(id), + }); + }, + /** Remove siteTheme from cache */ siteTheme: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + 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 + ) => { + queryClient.removeQueries({ + queryKey: triggerFunctionKeys.detail(id), + }); + }, + /** Remove api from cache */ api: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: apiKeys.detail(id), + }); + }, + /** Remove site from cache */ site: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: siteKeys.detail(id), + }); + }, + /** Remove app from cache */ app: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: appKeys.detail(id), + }); + }, + /** Remove connectedAccountsModule from cache */ connectedAccountsModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: connectedAccountsModuleKeys.detail(id), + }); + }, + /** Remove cryptoAddressesModule from cache */ cryptoAddressesModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: cryptoAddressesModuleKeys.detail(id), + }); + }, + /** Remove cryptoAuthModule from cache */ cryptoAuthModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: cryptoAuthModuleKeys.detail(id), + }); + }, + /** Remove defaultIdsModule from cache */ defaultIdsModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: defaultIdsModuleKeys.detail(id), + }); + }, + /** Remove denormalizedTableField from cache */ denormalizedTableField: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: denormalizedTableFieldKeys.detail(id), + }); + }, + /** Remove emailsModule from cache */ emailsModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: emailsModuleKeys.detail(id), + }); + }, + /** Remove encryptedSecretsModule from cache */ encryptedSecretsModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: encryptedSecretsModuleKeys.detail(id), + }); + }, + /** Remove fieldModule from cache */ fieldModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: fieldModuleKeys.detail(id), + }); + }, + /** Remove invitesModule from cache */ invitesModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: invitesModuleKeys.detail(id), + }); + }, + /** Remove levelsModule from cache */ levelsModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: levelsModuleKeys.detail(id), + }); + }, + /** Remove limitsModule from cache */ limitsModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: limitsModuleKeys.detail(id), + }); + }, + /** Remove membershipTypesModule from cache */ membershipTypesModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: membershipTypesModuleKeys.detail(id), + }); + }, + /** Remove membershipsModule from cache */ membershipsModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: membershipsModuleKeys.detail(id), + }); + }, + /** Remove permissionsModule from cache */ permissionsModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: permissionsModuleKeys.detail(id), + }); + }, + /** Remove phoneNumbersModule from cache */ phoneNumbersModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: phoneNumbersModuleKeys.detail(id), + }); + }, + /** Remove profilesModule from cache */ profilesModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: profilesModuleKeys.detail(id), + }); + }, + /** Remove rlsModule from cache */ rlsModule: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: rlsModuleKeys.detail(id), + }); + }, + /** Remove secretsModule from cache */ secretsModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: secretsModuleKeys.detail(id), + }); + }, + /** Remove sessionsModule from cache */ sessionsModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: sessionsModuleKeys.detail(id), + }); + }, + /** Remove userAuthModule from cache */ userAuthModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: userAuthModuleKeys.detail(id), + }); + }, + /** Remove usersModule from cache */ usersModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: usersModuleKeys.detail(id), + }); + }, + /** Remove uuidModule from cache */ uuidModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: uuidModuleKeys.detail(id), + }); + }, + /** Remove databaseProvisionModule from cache */ databaseProvisionModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: databaseProvisionModuleKeys.detail(id), + }); + }, + /** Remove appAdminGrant from cache */ appAdminGrant: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: appAdminGrantKeys.detail(id), + }); + }, + /** Remove appOwnerGrant from cache */ appOwnerGrant: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: appOwnerGrantKeys.detail(id), + }); + }, + /** Remove appGrant from cache */ appGrant: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: appGrantKeys.detail(id), + }); + }, + /** Remove orgMembership from cache */ orgMembership: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: orgMembershipKeys.detail(id), + }); + }, + /** Remove orgMember from cache */ orgMember: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: orgMemberKeys.detail(id), + }); + }, + /** Remove orgAdminGrant from cache */ orgAdminGrant: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: orgAdminGrantKeys.detail(id), + }); + }, + /** Remove orgOwnerGrant from cache */ orgOwnerGrant: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: orgOwnerGrantKeys.detail(id), + }); + }, + /** Remove orgGrant from cache */ orgGrant: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: orgGrantKeys.detail(id), + }); + }, + /** Remove appLimit from cache */ appLimit: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: appLimitKeys.detail(id), + }); + }, + /** Remove orgLimit from cache */ orgLimit: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: orgLimitKeys.detail(id), + }); + }, + /** Remove appStep from cache */ appStep: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: appStepKeys.detail(id), + }); + }, + /** Remove appAchievement from cache */ appAchievement: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: appAchievementKeys.detail(id), + }); + }, + /** Remove invite from cache */ invite: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: inviteKeys.detail(id), + }); + }, + /** Remove claimedInvite from cache */ claimedInvite: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: claimedInviteKeys.detail(id), + }); + }, + /** Remove orgInvite from cache */ orgInvite: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: orgInviteKeys.detail(id), + }); + }, + /** Remove orgClaimedInvite from cache */ orgClaimedInvite: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + 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), + }); + }, + /** Remove store from cache */ store: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: storeKeys.detail(id), + }); + }, + /** Remove roleType from cache */ roleType: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: roleTypeKeys.detail(id), + }); + }, + /** Remove orgPermissionDefault from cache */ orgPermissionDefault: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + 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: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: orgLimitDefaultKeys.detail(id), + }); + }, + /** Remove cryptoAddress from cache */ cryptoAddress: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: cryptoAddressKeys.detail(id), + }); + }, + /** Remove membershipType from cache */ membershipType: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: membershipTypeKeys.detail(id), + }); + }, + /** Remove connectedAccount from cache */ connectedAccount: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: connectedAccountKeys.detail(id), + }); + }, + /** Remove phoneNumber from cache */ phoneNumber: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: phoneNumberKeys.detail(id), + }); + }, + /** Remove appMembershipDefault from cache */ appMembershipDefault: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: appMembershipDefaultKeys.detail(id), + }); + }, + /** Remove nodeTypeRegistry from cache */ nodeTypeRegistry: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: nodeTypeRegistryKeys.detail(id), + }); + }, + /** Remove commit from cache */ commit: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: commitKeys.detail(id), + }); + }, + /** Remove orgMembershipDefault from cache */ orgMembershipDefault: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + 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), + }); + }, + /** Remove appLevel from cache */ appLevel: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: appLevelKeys.detail(id), + }); + }, + /** Remove sqlMigration from cache */ sqlMigration: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: sqlMigrationKeys.detail(id), + }); + }, + /** Remove astMigration from cache */ astMigration: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: astMigrationKeys.detail(id), + }); + }, + /** Remove appMembership from cache */ appMembership: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + 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 + ) => { + queryClient.removeQueries({ + queryKey: hierarchyModuleKeys.detail(id), + }); + }, +} as const; diff --git a/sdk/constructive-react/src/public/hooks/mutation-keys.ts b/sdk/constructive-react/src/public/hooks/mutation-keys.ts new file mode 100644 index 000000000..1ec5b0f6d --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutation-keys.ts @@ -0,0 +1,1144 @@ +/** + * Centralized mutation key factory + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +// ============================================================================ +// Mutation keys for tracking in-flight mutations +// +// Benefits: +// - Track mutation state with useIsMutating +// - Implement optimistic updates with proper rollback +// - Deduplicate identical mutations +// - Coordinate related mutations +// ============================================================================ + +// ============================================================================ +// Entity Mutation Keys +// ============================================================================ + +export const getAllRecordMutationKeys = { + /** All getAllRecord mutation keys */ all: ['mutation', 'getallrecord'] as const, + /** Create getAllRecord mutation key */ create: () => + ['mutation', 'getallrecord', 'create'] as const, + /** Update getAllRecord mutation key */ update: (id: string | number) => + ['mutation', 'getallrecord', 'update', id] as const, + /** Delete getAllRecord mutation key */ delete: (id: string | number) => + ['mutation', 'getallrecord', 'delete', id] as const, +} as const; +export const appPermissionMutationKeys = { + /** All appPermission mutation keys */ all: ['mutation', 'apppermission'] as const, + /** Create appPermission mutation key */ create: () => + ['mutation', 'apppermission', 'create'] as const, + /** Update appPermission mutation key */ update: (id: string | number) => + ['mutation', 'apppermission', 'update', id] as const, + /** Delete appPermission mutation key */ delete: (id: string | number) => + ['mutation', 'apppermission', 'delete', id] as const, +} as const; +export const orgPermissionMutationKeys = { + /** All orgPermission mutation keys */ all: ['mutation', 'orgpermission'] as const, + /** Create orgPermission mutation key */ create: () => + ['mutation', 'orgpermission', 'create'] as const, + /** Update orgPermission mutation key */ update: (id: string | number) => + ['mutation', 'orgpermission', 'update', id] as const, + /** Delete orgPermission mutation key */ delete: (id: string | number) => + ['mutation', 'orgpermission', 'delete', id] as const, +} as const; +export const objectMutationKeys = { + /** All object mutation keys */ all: ['mutation', 'object'] as const, + /** Create object mutation key */ create: () => ['mutation', 'object', 'create'] as const, + /** Update object mutation key */ update: (id: string | number) => + ['mutation', 'object', 'update', id] as const, + /** Delete object mutation key */ delete: (id: string | number) => + ['mutation', 'object', 'delete', id] as const, +} as const; +export const appLevelRequirementMutationKeys = { + /** All appLevelRequirement mutation keys */ all: ['mutation', 'applevelrequirement'] as const, + /** Create appLevelRequirement mutation key */ create: () => + ['mutation', 'applevelrequirement', 'create'] as const, + /** Update appLevelRequirement mutation key */ update: (id: string | number) => + ['mutation', 'applevelrequirement', 'update', id] as const, + /** Delete appLevelRequirement mutation key */ delete: (id: string | number) => + ['mutation', 'applevelrequirement', 'delete', id] as const, +} as const; +export const databaseMutationKeys = { + /** All database mutation keys */ all: ['mutation', 'database'] as const, + /** Create database mutation key */ create: () => ['mutation', 'database', 'create'] as const, + /** Update database mutation key */ update: (id: string | number) => + ['mutation', 'database', 'update', id] as const, + /** Delete database mutation key */ delete: (id: string | number) => + ['mutation', 'database', 'delete', id] as const, +} as const; +export const schemaMutationKeys = { + /** All schema mutation keys */ all: ['mutation', 'schema'] as const, + /** Create schema mutation key */ create: () => ['mutation', 'schema', 'create'] as const, + /** Update schema mutation key */ update: (id: string | number) => + ['mutation', 'schema', 'update', id] as const, + /** Delete schema mutation key */ delete: (id: string | number) => + ['mutation', 'schema', 'delete', id] as const, +} as const; +export const tableMutationKeys = { + /** All table mutation keys */ all: ['mutation', 'table'] as const, + /** Create table mutation key */ create: () => ['mutation', 'table', 'create'] as const, + /** Update table mutation key */ update: (id: string | number) => + ['mutation', 'table', 'update', id] as const, + /** Delete table mutation key */ delete: (id: string | number) => + ['mutation', 'table', 'delete', id] as const, +} as const; +export const checkConstraintMutationKeys = { + /** All checkConstraint mutation keys */ all: ['mutation', 'checkconstraint'] as const, + /** Create checkConstraint mutation key */ create: () => + ['mutation', 'checkconstraint', 'create'] as const, + /** Update checkConstraint mutation key */ update: (id: string | number) => + ['mutation', 'checkconstraint', 'update', id] as const, + /** Delete checkConstraint mutation key */ delete: (id: string | number) => + ['mutation', 'checkconstraint', 'delete', id] as const, +} as const; +export const fieldMutationKeys = { + /** All field mutation keys */ all: ['mutation', 'field'] as const, + /** Create field mutation key */ create: () => ['mutation', 'field', 'create'] as const, + /** Update field mutation key */ update: (id: string | number) => + ['mutation', 'field', 'update', id] as const, + /** Delete field mutation key */ delete: (id: string | number) => + ['mutation', 'field', 'delete', id] as const, +} as const; +export const foreignKeyConstraintMutationKeys = { + /** All foreignKeyConstraint mutation keys */ all: ['mutation', 'foreignkeyconstraint'] as const, + /** Create foreignKeyConstraint mutation key */ create: () => + ['mutation', 'foreignkeyconstraint', 'create'] as const, + /** Update foreignKeyConstraint mutation key */ update: (id: string | number) => + ['mutation', 'foreignkeyconstraint', 'update', id] as const, + /** Delete foreignKeyConstraint mutation key */ delete: (id: string | number) => + ['mutation', 'foreignkeyconstraint', 'delete', id] as const, +} as const; +export const fullTextSearchMutationKeys = { + /** All fullTextSearch mutation keys */ all: ['mutation', 'fulltextsearch'] as const, + /** Create fullTextSearch mutation key */ create: () => + ['mutation', 'fulltextsearch', 'create'] as const, + /** Update fullTextSearch mutation key */ update: (id: string | number) => + ['mutation', 'fulltextsearch', 'update', id] as const, + /** Delete fullTextSearch mutation key */ delete: (id: string | number) => + ['mutation', 'fulltextsearch', 'delete', id] as const, +} as const; +export const indexMutationKeys = { + /** All index mutation keys */ all: ['mutation', 'index'] as const, + /** Create index mutation key */ create: () => ['mutation', 'index', 'create'] as const, + /** Update index mutation key */ update: (id: string | number) => + ['mutation', 'index', 'update', id] as const, + /** 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, + /** Update policy mutation key */ update: (id: string | number) => + ['mutation', 'policy', 'update', id] as const, + /** Delete policy mutation key */ delete: (id: string | number) => + ['mutation', 'policy', 'delete', id] as const, +} as const; +export const primaryKeyConstraintMutationKeys = { + /** All primaryKeyConstraint mutation keys */ all: ['mutation', 'primarykeyconstraint'] as const, + /** Create primaryKeyConstraint mutation key */ create: () => + ['mutation', 'primarykeyconstraint', 'create'] as const, + /** Update primaryKeyConstraint mutation key */ update: (id: string | number) => + ['mutation', 'primarykeyconstraint', 'update', id] as const, + /** Delete primaryKeyConstraint mutation key */ delete: (id: string | number) => + ['mutation', 'primarykeyconstraint', 'delete', id] as const, +} as const; +export const tableGrantMutationKeys = { + /** All tableGrant mutation keys */ all: ['mutation', 'tablegrant'] as const, + /** Create tableGrant mutation key */ create: () => ['mutation', 'tablegrant', 'create'] as const, + /** Update tableGrant mutation key */ update: (id: string | number) => + ['mutation', 'tablegrant', 'update', id] as const, + /** Delete tableGrant mutation key */ delete: (id: string | number) => + ['mutation', 'tablegrant', 'delete', id] as const, +} as const; +export const triggerMutationKeys = { + /** All trigger mutation keys */ all: ['mutation', 'trigger'] as const, + /** Create trigger mutation key */ create: () => ['mutation', 'trigger', 'create'] as const, + /** Update trigger mutation key */ update: (id: string | number) => + ['mutation', 'trigger', 'update', id] as const, + /** Delete trigger mutation key */ delete: (id: string | number) => + ['mutation', 'trigger', 'delete', id] as const, +} as const; +export const uniqueConstraintMutationKeys = { + /** All uniqueConstraint mutation keys */ all: ['mutation', 'uniqueconstraint'] as const, + /** Create uniqueConstraint mutation key */ create: () => + ['mutation', 'uniqueconstraint', 'create'] as const, + /** Update uniqueConstraint mutation key */ update: (id: string | number) => + ['mutation', 'uniqueconstraint', 'update', id] as const, + /** Delete uniqueConstraint mutation key */ delete: (id: string | number) => + ['mutation', 'uniqueconstraint', 'delete', id] as const, +} as const; +export const viewMutationKeys = { + /** All view mutation keys */ all: ['mutation', 'view'] as const, + /** Create view mutation key */ create: () => ['mutation', 'view', 'create'] as const, + /** Update view mutation key */ update: (id: string | number) => + ['mutation', 'view', 'update', id] as const, + /** Delete view mutation key */ delete: (id: string | number) => + ['mutation', 'view', 'delete', id] as const, +} as const; +export const viewTableMutationKeys = { + /** All viewTable mutation keys */ all: ['mutation', 'viewtable'] as const, + /** Create viewTable mutation key */ create: () => ['mutation', 'viewtable', 'create'] as const, + /** Update viewTable mutation key */ update: (id: string | number) => + ['mutation', 'viewtable', 'update', id] as const, + /** Delete viewTable mutation key */ delete: (id: string | number) => + ['mutation', 'viewtable', 'delete', id] as const, +} as const; +export const viewGrantMutationKeys = { + /** All viewGrant mutation keys */ all: ['mutation', 'viewgrant'] as const, + /** Create viewGrant mutation key */ create: () => ['mutation', 'viewgrant', 'create'] as const, + /** Update viewGrant mutation key */ update: (id: string | number) => + ['mutation', 'viewgrant', 'update', id] as const, + /** Delete viewGrant mutation key */ delete: (id: string | number) => + ['mutation', 'viewgrant', 'delete', id] as const, +} as const; +export const viewRuleMutationKeys = { + /** All viewRule mutation keys */ all: ['mutation', 'viewrule'] as const, + /** Create viewRule mutation key */ create: () => ['mutation', 'viewrule', 'create'] as const, + /** Update viewRule mutation key */ update: (id: string | number) => + ['mutation', 'viewrule', 'update', id] as const, + /** Delete viewRule mutation key */ delete: (id: string | number) => + ['mutation', 'viewrule', 'delete', id] as const, +} as const; +export const tableModuleMutationKeys = { + /** All tableModule mutation keys */ all: ['mutation', 'tablemodule'] as const, + /** Create tableModule mutation key */ create: () => + ['mutation', 'tablemodule', 'create'] as const, + /** Update tableModule mutation key */ update: (id: string | number) => + ['mutation', 'tablemodule', 'update', id] as const, + /** Delete tableModule mutation key */ delete: (id: string | number) => + ['mutation', 'tablemodule', 'delete', id] as const, +} as const; +export const tableTemplateModuleMutationKeys = { + /** All tableTemplateModule mutation keys */ all: ['mutation', 'tabletemplatemodule'] as const, + /** Create tableTemplateModule mutation key */ create: () => + ['mutation', 'tabletemplatemodule', 'create'] as const, + /** Update tableTemplateModule mutation key */ update: (id: string | number) => + ['mutation', 'tabletemplatemodule', 'update', id] as const, + /** Delete tableTemplateModule mutation key */ delete: (id: string | number) => + ['mutation', 'tabletemplatemodule', 'delete', id] as const, +} as const; +export const schemaGrantMutationKeys = { + /** All schemaGrant mutation keys */ all: ['mutation', 'schemagrant'] as const, + /** Create schemaGrant mutation key */ create: () => + ['mutation', 'schemagrant', 'create'] as const, + /** Update schemaGrant mutation key */ update: (id: string | number) => + ['mutation', 'schemagrant', 'update', id] as const, + /** Delete schemaGrant mutation key */ delete: (id: string | number) => + ['mutation', 'schemagrant', '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, + /** Update apiSchema mutation key */ update: (id: string | number) => + ['mutation', 'apischema', 'update', id] as const, + /** Delete apiSchema mutation key */ delete: (id: string | number) => + ['mutation', 'apischema', 'delete', id] as const, +} as const; +export const apiModuleMutationKeys = { + /** All apiModule mutation keys */ all: ['mutation', 'apimodule'] as const, + /** Create apiModule mutation key */ create: () => ['mutation', 'apimodule', 'create'] as const, + /** Update apiModule mutation key */ update: (id: string | number) => + ['mutation', 'apimodule', 'update', id] as const, + /** Delete apiModule mutation key */ delete: (id: string | number) => + ['mutation', 'apimodule', 'delete', id] as const, +} as const; +export const domainMutationKeys = { + /** All domain mutation keys */ all: ['mutation', 'domain'] as const, + /** Create domain mutation key */ create: () => ['mutation', 'domain', 'create'] as const, + /** Update domain mutation key */ update: (id: string | number) => + ['mutation', 'domain', 'update', id] as const, + /** Delete domain mutation key */ delete: (id: string | number) => + ['mutation', 'domain', 'delete', id] as const, +} as const; +export const siteMetadatumMutationKeys = { + /** All siteMetadatum mutation keys */ all: ['mutation', 'sitemetadatum'] as const, + /** Create siteMetadatum mutation key */ create: () => + ['mutation', 'sitemetadatum', 'create'] as const, + /** Update siteMetadatum mutation key */ update: (id: string | number) => + ['mutation', 'sitemetadatum', 'update', id] as const, + /** Delete siteMetadatum mutation key */ delete: (id: string | number) => + ['mutation', 'sitemetadatum', 'delete', id] as const, +} as const; +export const siteModuleMutationKeys = { + /** All siteModule mutation keys */ all: ['mutation', 'sitemodule'] as const, + /** Create siteModule mutation key */ create: () => ['mutation', 'sitemodule', 'create'] as const, + /** Update siteModule mutation key */ update: (id: string | number) => + ['mutation', 'sitemodule', 'update', id] as const, + /** Delete siteModule mutation key */ delete: (id: string | number) => + ['mutation', 'sitemodule', 'delete', id] as const, +} as const; +export const siteThemeMutationKeys = { + /** All siteTheme mutation keys */ all: ['mutation', 'sitetheme'] as const, + /** Create siteTheme mutation key */ create: () => ['mutation', 'sitetheme', 'create'] as const, + /** Update siteTheme mutation key */ update: (id: string | number) => + ['mutation', 'sitetheme', 'update', id] as const, + /** 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: () => + ['mutation', 'triggerfunction', 'create'] as const, + /** Update triggerFunction mutation key */ update: (id: string | number) => + ['mutation', 'triggerfunction', 'update', id] as const, + /** Delete triggerFunction mutation key */ delete: (id: string | number) => + ['mutation', 'triggerfunction', 'delete', id] as const, +} as const; +export const apiMutationKeys = { + /** All api mutation keys */ all: ['mutation', 'api'] as const, + /** Create api mutation key */ create: () => ['mutation', 'api', 'create'] as const, + /** Update api mutation key */ update: (id: string | number) => + ['mutation', 'api', 'update', id] as const, + /** Delete api mutation key */ delete: (id: string | number) => + ['mutation', 'api', 'delete', id] as const, +} as const; +export const siteMutationKeys = { + /** All site mutation keys */ all: ['mutation', 'site'] as const, + /** Create site mutation key */ create: () => ['mutation', 'site', 'create'] as const, + /** Update site mutation key */ update: (id: string | number) => + ['mutation', 'site', 'update', id] as const, + /** Delete site mutation key */ delete: (id: string | number) => + ['mutation', 'site', 'delete', id] as const, +} as const; +export const appMutationKeys = { + /** All app mutation keys */ all: ['mutation', 'app'] as const, + /** Create app mutation key */ create: () => ['mutation', 'app', 'create'] as const, + /** Update app mutation key */ update: (id: string | number) => + ['mutation', 'app', 'update', id] as const, + /** Delete app mutation key */ delete: (id: string | number) => + ['mutation', 'app', 'delete', id] as const, +} as const; +export const connectedAccountsModuleMutationKeys = { + /** All connectedAccountsModule mutation keys */ all: [ + 'mutation', + 'connectedaccountsmodule', + ] as const, + /** Create connectedAccountsModule mutation key */ create: () => + ['mutation', 'connectedaccountsmodule', 'create'] as const, + /** Update connectedAccountsModule mutation key */ update: (id: string | number) => + ['mutation', 'connectedaccountsmodule', 'update', id] as const, + /** Delete connectedAccountsModule mutation key */ delete: (id: string | number) => + ['mutation', 'connectedaccountsmodule', 'delete', id] as const, +} as const; +export const cryptoAddressesModuleMutationKeys = { + /** All cryptoAddressesModule mutation keys */ all: [ + 'mutation', + 'cryptoaddressesmodule', + ] as const, + /** Create cryptoAddressesModule mutation key */ create: () => + ['mutation', 'cryptoaddressesmodule', 'create'] as const, + /** Update cryptoAddressesModule mutation key */ update: (id: string | number) => + ['mutation', 'cryptoaddressesmodule', 'update', id] as const, + /** Delete cryptoAddressesModule mutation key */ delete: (id: string | number) => + ['mutation', 'cryptoaddressesmodule', 'delete', id] as const, +} as const; +export const cryptoAuthModuleMutationKeys = { + /** All cryptoAuthModule mutation keys */ all: ['mutation', 'cryptoauthmodule'] as const, + /** Create cryptoAuthModule mutation key */ create: () => + ['mutation', 'cryptoauthmodule', 'create'] as const, + /** Update cryptoAuthModule mutation key */ update: (id: string | number) => + ['mutation', 'cryptoauthmodule', 'update', id] as const, + /** Delete cryptoAuthModule mutation key */ delete: (id: string | number) => + ['mutation', 'cryptoauthmodule', 'delete', id] as const, +} as const; +export const defaultIdsModuleMutationKeys = { + /** All defaultIdsModule mutation keys */ all: ['mutation', 'defaultidsmodule'] as const, + /** Create defaultIdsModule mutation key */ create: () => + ['mutation', 'defaultidsmodule', 'create'] as const, + /** Update defaultIdsModule mutation key */ update: (id: string | number) => + ['mutation', 'defaultidsmodule', 'update', id] as const, + /** Delete defaultIdsModule mutation key */ delete: (id: string | number) => + ['mutation', 'defaultidsmodule', 'delete', id] as const, +} as const; +export const denormalizedTableFieldMutationKeys = { + /** All denormalizedTableField mutation keys */ all: [ + 'mutation', + 'denormalizedtablefield', + ] as const, + /** Create denormalizedTableField mutation key */ create: () => + ['mutation', 'denormalizedtablefield', 'create'] as const, + /** Update denormalizedTableField mutation key */ update: (id: string | number) => + ['mutation', 'denormalizedtablefield', 'update', id] as const, + /** Delete denormalizedTableField mutation key */ delete: (id: string | number) => + ['mutation', 'denormalizedtablefield', 'delete', id] as const, +} as const; +export const emailsModuleMutationKeys = { + /** All emailsModule mutation keys */ all: ['mutation', 'emailsmodule'] as const, + /** Create emailsModule mutation key */ create: () => + ['mutation', 'emailsmodule', 'create'] as const, + /** Update emailsModule mutation key */ update: (id: string | number) => + ['mutation', 'emailsmodule', 'update', id] as const, + /** Delete emailsModule mutation key */ delete: (id: string | number) => + ['mutation', 'emailsmodule', 'delete', id] as const, +} as const; +export const encryptedSecretsModuleMutationKeys = { + /** All encryptedSecretsModule mutation keys */ all: [ + 'mutation', + 'encryptedsecretsmodule', + ] as const, + /** Create encryptedSecretsModule mutation key */ create: () => + ['mutation', 'encryptedsecretsmodule', 'create'] as const, + /** Update encryptedSecretsModule mutation key */ update: (id: string | number) => + ['mutation', 'encryptedsecretsmodule', 'update', id] as const, + /** Delete encryptedSecretsModule mutation key */ delete: (id: string | number) => + ['mutation', 'encryptedsecretsmodule', 'delete', id] as const, +} as const; +export const fieldModuleMutationKeys = { + /** All fieldModule mutation keys */ all: ['mutation', 'fieldmodule'] as const, + /** Create fieldModule mutation key */ create: () => + ['mutation', 'fieldmodule', 'create'] as const, + /** Update fieldModule mutation key */ update: (id: string | number) => + ['mutation', 'fieldmodule', 'update', id] as const, + /** Delete fieldModule mutation key */ delete: (id: string | number) => + ['mutation', 'fieldmodule', 'delete', id] as const, +} as const; +export const invitesModuleMutationKeys = { + /** All invitesModule mutation keys */ all: ['mutation', 'invitesmodule'] as const, + /** Create invitesModule mutation key */ create: () => + ['mutation', 'invitesmodule', 'create'] as const, + /** Update invitesModule mutation key */ update: (id: string | number) => + ['mutation', 'invitesmodule', 'update', id] as const, + /** Delete invitesModule mutation key */ delete: (id: string | number) => + ['mutation', 'invitesmodule', 'delete', id] as const, +} as const; +export const levelsModuleMutationKeys = { + /** All levelsModule mutation keys */ all: ['mutation', 'levelsmodule'] as const, + /** Create levelsModule mutation key */ create: () => + ['mutation', 'levelsmodule', 'create'] as const, + /** Update levelsModule mutation key */ update: (id: string | number) => + ['mutation', 'levelsmodule', 'update', id] as const, + /** Delete levelsModule mutation key */ delete: (id: string | number) => + ['mutation', 'levelsmodule', 'delete', id] as const, +} as const; +export const limitsModuleMutationKeys = { + /** All limitsModule mutation keys */ all: ['mutation', 'limitsmodule'] as const, + /** Create limitsModule mutation key */ create: () => + ['mutation', 'limitsmodule', 'create'] as const, + /** Update limitsModule mutation key */ update: (id: string | number) => + ['mutation', 'limitsmodule', 'update', id] as const, + /** Delete limitsModule mutation key */ delete: (id: string | number) => + ['mutation', 'limitsmodule', 'delete', id] as const, +} as const; +export const membershipTypesModuleMutationKeys = { + /** All membershipTypesModule mutation keys */ all: [ + 'mutation', + 'membershiptypesmodule', + ] as const, + /** Create membershipTypesModule mutation key */ create: () => + ['mutation', 'membershiptypesmodule', 'create'] as const, + /** Update membershipTypesModule mutation key */ update: (id: string | number) => + ['mutation', 'membershiptypesmodule', 'update', id] as const, + /** Delete membershipTypesModule mutation key */ delete: (id: string | number) => + ['mutation', 'membershiptypesmodule', 'delete', id] as const, +} as const; +export const membershipsModuleMutationKeys = { + /** All membershipsModule mutation keys */ all: ['mutation', 'membershipsmodule'] as const, + /** Create membershipsModule mutation key */ create: () => + ['mutation', 'membershipsmodule', 'create'] as const, + /** Update membershipsModule mutation key */ update: (id: string | number) => + ['mutation', 'membershipsmodule', 'update', id] as const, + /** Delete membershipsModule mutation key */ delete: (id: string | number) => + ['mutation', 'membershipsmodule', 'delete', id] as const, +} as const; +export const permissionsModuleMutationKeys = { + /** All permissionsModule mutation keys */ all: ['mutation', 'permissionsmodule'] as const, + /** Create permissionsModule mutation key */ create: () => + ['mutation', 'permissionsmodule', 'create'] as const, + /** Update permissionsModule mutation key */ update: (id: string | number) => + ['mutation', 'permissionsmodule', 'update', id] as const, + /** Delete permissionsModule mutation key */ delete: (id: string | number) => + ['mutation', 'permissionsmodule', 'delete', id] as const, +} as const; +export const phoneNumbersModuleMutationKeys = { + /** All phoneNumbersModule mutation keys */ all: ['mutation', 'phonenumbersmodule'] as const, + /** Create phoneNumbersModule mutation key */ create: () => + ['mutation', 'phonenumbersmodule', 'create'] as const, + /** Update phoneNumbersModule mutation key */ update: (id: string | number) => + ['mutation', 'phonenumbersmodule', 'update', id] as const, + /** Delete phoneNumbersModule mutation key */ delete: (id: string | number) => + ['mutation', 'phonenumbersmodule', 'delete', id] as const, +} as const; +export const profilesModuleMutationKeys = { + /** All profilesModule mutation keys */ all: ['mutation', 'profilesmodule'] as const, + /** Create profilesModule mutation key */ create: () => + ['mutation', 'profilesmodule', 'create'] as const, + /** Update profilesModule mutation key */ update: (id: string | number) => + ['mutation', 'profilesmodule', 'update', id] as const, + /** Delete profilesModule mutation key */ delete: (id: string | number) => + ['mutation', 'profilesmodule', 'delete', id] as const, +} as const; +export const rlsModuleMutationKeys = { + /** All rlsModule mutation keys */ all: ['mutation', 'rlsmodule'] as const, + /** Create rlsModule mutation key */ create: () => ['mutation', 'rlsmodule', 'create'] as const, + /** Update rlsModule mutation key */ update: (id: string | number) => + ['mutation', 'rlsmodule', 'update', id] as const, + /** Delete rlsModule mutation key */ delete: (id: string | number) => + ['mutation', 'rlsmodule', 'delete', id] as const, +} as const; +export const secretsModuleMutationKeys = { + /** All secretsModule mutation keys */ all: ['mutation', 'secretsmodule'] as const, + /** Create secretsModule mutation key */ create: () => + ['mutation', 'secretsmodule', 'create'] as const, + /** Update secretsModule mutation key */ update: (id: string | number) => + ['mutation', 'secretsmodule', 'update', id] as const, + /** Delete secretsModule mutation key */ delete: (id: string | number) => + ['mutation', 'secretsmodule', 'delete', id] as const, +} as const; +export const sessionsModuleMutationKeys = { + /** All sessionsModule mutation keys */ all: ['mutation', 'sessionsmodule'] as const, + /** Create sessionsModule mutation key */ create: () => + ['mutation', 'sessionsmodule', 'create'] as const, + /** Update sessionsModule mutation key */ update: (id: string | number) => + ['mutation', 'sessionsmodule', 'update', id] as const, + /** Delete sessionsModule mutation key */ delete: (id: string | number) => + ['mutation', 'sessionsmodule', 'delete', id] as const, +} as const; +export const userAuthModuleMutationKeys = { + /** All userAuthModule mutation keys */ all: ['mutation', 'userauthmodule'] as const, + /** Create userAuthModule mutation key */ create: () => + ['mutation', 'userauthmodule', 'create'] as const, + /** Update userAuthModule mutation key */ update: (id: string | number) => + ['mutation', 'userauthmodule', 'update', id] as const, + /** Delete userAuthModule mutation key */ delete: (id: string | number) => + ['mutation', 'userauthmodule', 'delete', id] as const, +} as const; +export const usersModuleMutationKeys = { + /** All usersModule mutation keys */ all: ['mutation', 'usersmodule'] as const, + /** Create usersModule mutation key */ create: () => + ['mutation', 'usersmodule', 'create'] as const, + /** Update usersModule mutation key */ update: (id: string | number) => + ['mutation', 'usersmodule', 'update', id] as const, + /** Delete usersModule mutation key */ delete: (id: string | number) => + ['mutation', 'usersmodule', 'delete', id] as const, +} as const; +export const uuidModuleMutationKeys = { + /** All uuidModule mutation keys */ all: ['mutation', 'uuidmodule'] as const, + /** Create uuidModule mutation key */ create: () => ['mutation', 'uuidmodule', 'create'] as const, + /** Update uuidModule mutation key */ update: (id: string | number) => + ['mutation', 'uuidmodule', 'update', id] as const, + /** Delete uuidModule mutation key */ delete: (id: string | number) => + ['mutation', 'uuidmodule', 'delete', id] as const, +} as const; +export const databaseProvisionModuleMutationKeys = { + /** All databaseProvisionModule mutation keys */ all: [ + 'mutation', + 'databaseprovisionmodule', + ] as const, + /** Create databaseProvisionModule mutation key */ create: () => + ['mutation', 'databaseprovisionmodule', 'create'] as const, + /** Update databaseProvisionModule mutation key */ update: (id: string | number) => + ['mutation', 'databaseprovisionmodule', 'update', id] as const, + /** Delete databaseProvisionModule mutation key */ delete: (id: string | number) => + ['mutation', 'databaseprovisionmodule', 'delete', id] as const, +} as const; +export const appAdminGrantMutationKeys = { + /** All appAdminGrant mutation keys */ all: ['mutation', 'appadmingrant'] as const, + /** Create appAdminGrant mutation key */ create: () => + ['mutation', 'appadmingrant', 'create'] as const, + /** Update appAdminGrant mutation key */ update: (id: string | number) => + ['mutation', 'appadmingrant', 'update', id] as const, + /** Delete appAdminGrant mutation key */ delete: (id: string | number) => + ['mutation', 'appadmingrant', 'delete', id] as const, +} as const; +export const appOwnerGrantMutationKeys = { + /** All appOwnerGrant mutation keys */ all: ['mutation', 'appownergrant'] as const, + /** Create appOwnerGrant mutation key */ create: () => + ['mutation', 'appownergrant', 'create'] as const, + /** Update appOwnerGrant mutation key */ update: (id: string | number) => + ['mutation', 'appownergrant', 'update', id] as const, + /** Delete appOwnerGrant mutation key */ delete: (id: string | number) => + ['mutation', 'appownergrant', 'delete', id] as const, +} as const; +export const appGrantMutationKeys = { + /** All appGrant mutation keys */ all: ['mutation', 'appgrant'] as const, + /** Create appGrant mutation key */ create: () => ['mutation', 'appgrant', 'create'] as const, + /** Update appGrant mutation key */ update: (id: string | number) => + ['mutation', 'appgrant', 'update', id] as const, + /** Delete appGrant mutation key */ delete: (id: string | number) => + ['mutation', 'appgrant', 'delete', id] as const, +} as const; +export const orgMembershipMutationKeys = { + /** All orgMembership mutation keys */ all: ['mutation', 'orgmembership'] as const, + /** Create orgMembership mutation key */ create: () => + ['mutation', 'orgmembership', 'create'] as const, + /** Update orgMembership mutation key */ update: (id: string | number) => + ['mutation', 'orgmembership', 'update', id] as const, + /** Delete orgMembership mutation key */ delete: (id: string | number) => + ['mutation', 'orgmembership', 'delete', id] as const, +} as const; +export const orgMemberMutationKeys = { + /** All orgMember mutation keys */ all: ['mutation', 'orgmember'] as const, + /** Create orgMember mutation key */ create: () => ['mutation', 'orgmember', 'create'] as const, + /** Update orgMember mutation key */ update: (id: string | number) => + ['mutation', 'orgmember', 'update', id] as const, + /** Delete orgMember mutation key */ delete: (id: string | number) => + ['mutation', 'orgmember', 'delete', id] as const, +} as const; +export const orgAdminGrantMutationKeys = { + /** All orgAdminGrant mutation keys */ all: ['mutation', 'orgadmingrant'] as const, + /** Create orgAdminGrant mutation key */ create: () => + ['mutation', 'orgadmingrant', 'create'] as const, + /** Update orgAdminGrant mutation key */ update: (id: string | number) => + ['mutation', 'orgadmingrant', 'update', id] as const, + /** Delete orgAdminGrant mutation key */ delete: (id: string | number) => + ['mutation', 'orgadmingrant', 'delete', id] as const, +} as const; +export const orgOwnerGrantMutationKeys = { + /** All orgOwnerGrant mutation keys */ all: ['mutation', 'orgownergrant'] as const, + /** Create orgOwnerGrant mutation key */ create: () => + ['mutation', 'orgownergrant', 'create'] as const, + /** Update orgOwnerGrant mutation key */ update: (id: string | number) => + ['mutation', 'orgownergrant', 'update', id] as const, + /** Delete orgOwnerGrant mutation key */ delete: (id: string | number) => + ['mutation', 'orgownergrant', 'delete', id] as const, +} as const; +export const orgGrantMutationKeys = { + /** All orgGrant mutation keys */ all: ['mutation', 'orggrant'] as const, + /** Create orgGrant mutation key */ create: () => ['mutation', 'orggrant', 'create'] as const, + /** Update orgGrant mutation key */ update: (id: string | number) => + ['mutation', 'orggrant', 'update', id] as const, + /** Delete orgGrant mutation key */ delete: (id: string | number) => + ['mutation', 'orggrant', '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, + /** Update appLimit mutation key */ update: (id: string | number) => + ['mutation', 'applimit', 'update', id] as const, + /** Delete appLimit mutation key */ delete: (id: string | number) => + ['mutation', 'applimit', 'delete', id] as const, +} as const; +export const orgLimitMutationKeys = { + /** All orgLimit mutation keys */ all: ['mutation', 'orglimit'] as const, + /** Create orgLimit mutation key */ create: () => ['mutation', 'orglimit', 'create'] as const, + /** Update orgLimit mutation key */ update: (id: string | number) => + ['mutation', 'orglimit', 'update', id] as const, + /** Delete orgLimit mutation key */ delete: (id: string | number) => + ['mutation', 'orglimit', 'delete', id] as const, +} as const; +export const appStepMutationKeys = { + /** All appStep mutation keys */ all: ['mutation', 'appstep'] as const, + /** Create appStep mutation key */ create: () => ['mutation', 'appstep', 'create'] as const, + /** Update appStep mutation key */ update: (id: string | number) => + ['mutation', 'appstep', 'update', id] as const, + /** Delete appStep mutation key */ delete: (id: string | number) => + ['mutation', 'appstep', 'delete', id] as const, +} as const; +export const appAchievementMutationKeys = { + /** All appAchievement mutation keys */ all: ['mutation', 'appachievement'] as const, + /** Create appAchievement mutation key */ create: () => + ['mutation', 'appachievement', 'create'] as const, + /** Update appAchievement mutation key */ update: (id: string | number) => + ['mutation', 'appachievement', 'update', id] as const, + /** Delete appAchievement mutation key */ delete: (id: string | number) => + ['mutation', 'appachievement', '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, + /** Update invite mutation key */ update: (id: string | number) => + ['mutation', 'invite', 'update', id] as const, + /** Delete invite mutation key */ delete: (id: string | number) => + ['mutation', 'invite', 'delete', id] as const, +} as const; +export const claimedInviteMutationKeys = { + /** All claimedInvite mutation keys */ all: ['mutation', 'claimedinvite'] as const, + /** Create claimedInvite mutation key */ create: () => + ['mutation', 'claimedinvite', 'create'] as const, + /** Update claimedInvite mutation key */ update: (id: string | number) => + ['mutation', 'claimedinvite', 'update', id] as const, + /** Delete claimedInvite mutation key */ delete: (id: string | number) => + ['mutation', 'claimedinvite', 'delete', id] as const, +} as const; +export const orgInviteMutationKeys = { + /** All orgInvite mutation keys */ all: ['mutation', 'orginvite'] as const, + /** Create orgInvite mutation key */ create: () => ['mutation', 'orginvite', 'create'] as const, + /** Update orgInvite mutation key */ update: (id: string | number) => + ['mutation', 'orginvite', 'update', id] as const, + /** Delete orgInvite mutation key */ delete: (id: string | number) => + ['mutation', 'orginvite', 'delete', id] as const, +} as const; +export const orgClaimedInviteMutationKeys = { + /** All orgClaimedInvite mutation keys */ all: ['mutation', 'orgclaimedinvite'] as const, + /** Create orgClaimedInvite mutation key */ create: () => + ['mutation', 'orgclaimedinvite', 'create'] as const, + /** Update orgClaimedInvite mutation key */ update: (id: string | number) => + ['mutation', 'orgclaimedinvite', 'update', id] as const, + /** 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, + /** Update ref mutation key */ update: (id: string | number) => + ['mutation', 'ref', 'update', id] as const, + /** Delete ref mutation key */ delete: (id: string | number) => + ['mutation', 'ref', 'delete', id] as const, +} as const; +export const storeMutationKeys = { + /** All store mutation keys */ all: ['mutation', 'store'] as const, + /** Create store mutation key */ create: () => ['mutation', 'store', 'create'] as const, + /** Update store mutation key */ update: (id: string | number) => + ['mutation', 'store', 'update', id] as const, + /** Delete store mutation key */ delete: (id: string | number) => + ['mutation', 'store', '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, + /** Update roleType mutation key */ update: (id: string | number) => + ['mutation', 'roletype', 'update', id] as const, + /** Delete roleType mutation key */ delete: (id: string | number) => + ['mutation', 'roletype', 'delete', id] as const, +} as const; +export const orgPermissionDefaultMutationKeys = { + /** All orgPermissionDefault mutation keys */ all: ['mutation', 'orgpermissiondefault'] as const, + /** Create orgPermissionDefault mutation key */ create: () => + ['mutation', 'orgpermissiondefault', 'create'] as const, + /** Update orgPermissionDefault mutation key */ update: (id: string | number) => + ['mutation', 'orgpermissiondefault', 'update', id] as const, + /** Delete orgPermissionDefault mutation key */ delete: (id: string | number) => + ['mutation', 'orgpermissiondefault', '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 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: () => + ['mutation', 'connectedaccount', 'create'] as const, + /** Update connectedAccount mutation key */ update: (id: string | number) => + ['mutation', 'connectedaccount', 'update', id] as const, + /** Delete connectedAccount mutation key */ delete: (id: string | number) => + ['mutation', 'connectedaccount', 'delete', id] as const, +} as const; +export const phoneNumberMutationKeys = { + /** All phoneNumber mutation keys */ all: ['mutation', 'phonenumber'] as const, + /** Create phoneNumber mutation key */ create: () => + ['mutation', 'phonenumber', 'create'] as const, + /** Update phoneNumber mutation key */ update: (id: string | number) => + ['mutation', 'phonenumber', 'update', id] as const, + /** 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, +} as const; +export const nodeTypeRegistryMutationKeys = { + /** All nodeTypeRegistry mutation keys */ all: ['mutation', 'nodetyperegistry'] as const, + /** Create nodeTypeRegistry mutation key */ create: () => + ['mutation', 'nodetyperegistry', 'create'] as const, + /** Update nodeTypeRegistry mutation key */ update: (id: string | number) => + ['mutation', 'nodetyperegistry', 'update', id] as const, + /** Delete nodeTypeRegistry mutation key */ delete: (id: string | number) => + ['mutation', 'nodetyperegistry', '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, + /** Update commit mutation key */ update: (id: string | number) => + ['mutation', 'commit', 'update', id] as const, + /** Delete commit mutation key */ delete: (id: string | number) => + ['mutation', 'commit', 'delete', id] as const, +} as const; +export const orgMembershipDefaultMutationKeys = { + /** All orgMembershipDefault mutation keys */ all: ['mutation', 'orgmembershipdefault'] as const, + /** Create orgMembershipDefault mutation key */ create: () => + ['mutation', 'orgmembershipdefault', 'create'] as const, + /** Update orgMembershipDefault mutation key */ update: (id: string | number) => + ['mutation', 'orgmembershipdefault', 'update', id] as const, + /** 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, + /** Update auditLog mutation key */ update: (id: string | number) => + ['mutation', 'auditlog', 'update', id] as const, + /** Delete auditLog mutation key */ delete: (id: string | number) => + ['mutation', 'auditlog', '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 sqlMigrationMutationKeys = { + /** All sqlMigration mutation keys */ all: ['mutation', 'sqlmigration'] as const, + /** Create sqlMigration mutation key */ create: () => + ['mutation', 'sqlmigration', 'create'] as const, + /** Update sqlMigration mutation key */ update: (id: string | number) => + ['mutation', 'sqlmigration', 'update', id] as const, + /** Delete sqlMigration mutation key */ delete: (id: string | number) => + ['mutation', 'sqlmigration', 'delete', id] as const, +} as const; +export const astMigrationMutationKeys = { + /** All astMigration mutation keys */ all: ['mutation', 'astmigration'] as const, + /** Create astMigration mutation key */ create: () => + ['mutation', 'astmigration', 'create'] as const, + /** Update astMigration mutation key */ update: (id: string | number) => + ['mutation', 'astmigration', 'update', id] as const, + /** Delete astMigration mutation key */ delete: (id: string | number) => + ['mutation', 'astmigration', 'delete', id] as const, +} as const; +export const appMembershipMutationKeys = { + /** All appMembership mutation keys */ all: ['mutation', 'appmembership'] as const, + /** Create appMembership mutation key */ create: () => + ['mutation', 'appmembership', 'create'] as const, + /** Update appMembership mutation key */ update: (id: string | number) => + ['mutation', 'appmembership', 'update', id] as const, + /** 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: () => + ['mutation', 'hierarchymodule', 'create'] as const, + /** Update hierarchyModule mutation key */ update: (id: string | number) => + ['mutation', 'hierarchymodule', 'update', id] as const, + /** Delete hierarchyModule mutation key */ delete: (id: string | number) => + ['mutation', 'hierarchymodule', 'delete', id] as const, +} as const; + +// ============================================================================ +// Custom Mutation Keys +// ============================================================================ + +export const customMutationKeys = { + /** Mutation key for signOut */ signOut: (identifier?: string) => + identifier + ? (['mutation', 'signOut', identifier] as const) + : (['mutation', 'signOut'] as const), + /** Mutation key for sendAccountDeletionEmail */ sendAccountDeletionEmail: ( + identifier?: string + ) => + identifier + ? (['mutation', 'sendAccountDeletionEmail', identifier] as const) + : (['mutation', 'sendAccountDeletionEmail'] as const), + /** Mutation key for checkPassword */ checkPassword: (identifier?: string) => + identifier + ? (['mutation', 'checkPassword', identifier] as const) + : (['mutation', 'checkPassword'] as const), + /** Mutation key for submitInviteCode */ submitInviteCode: (identifier?: string) => + identifier + ? (['mutation', 'submitInviteCode', identifier] as const) + : (['mutation', 'submitInviteCode'] as const), + /** Mutation key for submitOrgInviteCode */ submitOrgInviteCode: (identifier?: string) => + identifier + ? (['mutation', 'submitOrgInviteCode', identifier] as const) + : (['mutation', 'submitOrgInviteCode'] as const), + /** Mutation key for freezeObjects */ freezeObjects: (identifier?: string) => + identifier + ? (['mutation', 'freezeObjects', identifier] as const) + : (['mutation', 'freezeObjects'] as const), + /** Mutation key for initEmptyRepo */ initEmptyRepo: (identifier?: string) => + identifier + ? (['mutation', 'initEmptyRepo', identifier] as const) + : (['mutation', 'initEmptyRepo'] as const), + /** Mutation key for confirmDeleteAccount */ confirmDeleteAccount: (identifier?: string) => + identifier + ? (['mutation', 'confirmDeleteAccount', identifier] as const) + : (['mutation', 'confirmDeleteAccount'] as const), + /** Mutation key for setPassword */ setPassword: (identifier?: string) => + identifier + ? (['mutation', 'setPassword', identifier] as const) + : (['mutation', 'setPassword'] as const), + /** Mutation key for verifyEmail */ verifyEmail: (identifier?: string) => + identifier + ? (['mutation', 'verifyEmail', identifier] as const) + : (['mutation', 'verifyEmail'] as const), + /** Mutation key for resetPassword */ resetPassword: (identifier?: string) => + identifier + ? (['mutation', 'resetPassword', identifier] as const) + : (['mutation', 'resetPassword'] as const), + /** Mutation key for removeNodeAtPath */ removeNodeAtPath: (identifier?: string) => + identifier + ? (['mutation', 'removeNodeAtPath', identifier] as const) + : (['mutation', 'removeNodeAtPath'] as const), + /** Mutation key for bootstrapUser */ bootstrapUser: (identifier?: string) => + identifier + ? (['mutation', 'bootstrapUser', identifier] as const) + : (['mutation', 'bootstrapUser'] as const), + /** Mutation key for setDataAtPath */ setDataAtPath: (identifier?: string) => + identifier + ? (['mutation', 'setDataAtPath', identifier] as const) + : (['mutation', 'setDataAtPath'] as const), + /** Mutation key for setPropsAndCommit */ setPropsAndCommit: (identifier?: string) => + identifier + ? (['mutation', 'setPropsAndCommit', identifier] as const) + : (['mutation', 'setPropsAndCommit'] as const), + /** Mutation key for provisionDatabaseWithUser */ provisionDatabaseWithUser: ( + identifier?: string + ) => + identifier + ? (['mutation', 'provisionDatabaseWithUser', identifier] as const) + : (['mutation', 'provisionDatabaseWithUser'] as const), + /** Mutation key for signInOneTimeToken */ signInOneTimeToken: (identifier?: string) => + identifier + ? (['mutation', 'signInOneTimeToken', identifier] as const) + : (['mutation', 'signInOneTimeToken'] as const), + /** Mutation key for createUserDatabase */ createUserDatabase: (identifier?: string) => + identifier + ? (['mutation', 'createUserDatabase', identifier] as const) + : (['mutation', 'createUserDatabase'] as const), + /** Mutation key for extendTokenExpires */ extendTokenExpires: (identifier?: string) => + identifier + ? (['mutation', 'extendTokenExpires', identifier] as const) + : (['mutation', 'extendTokenExpires'] as const), + /** Mutation key for signIn */ signIn: (identifier?: string) => + identifier ? (['mutation', 'signIn', identifier] as const) : (['mutation', 'signIn'] as const), + /** Mutation key for signUp */ signUp: (identifier?: string) => + identifier ? (['mutation', 'signUp', identifier] as const) : (['mutation', 'signUp'] as const), + /** Mutation key for setFieldOrder */ setFieldOrder: (identifier?: string) => + identifier + ? (['mutation', 'setFieldOrder', identifier] as const) + : (['mutation', 'setFieldOrder'] as const), + /** Mutation key for oneTimeToken */ oneTimeToken: (identifier?: string) => + identifier + ? (['mutation', 'oneTimeToken', identifier] as const) + : (['mutation', 'oneTimeToken'] as const), + /** Mutation key for insertNodeAtPath */ insertNodeAtPath: (identifier?: string) => + identifier + ? (['mutation', 'insertNodeAtPath', identifier] as const) + : (['mutation', 'insertNodeAtPath'] as const), + /** Mutation key for updateNodeAtPath */ updateNodeAtPath: (identifier?: string) => + identifier + ? (['mutation', 'updateNodeAtPath', identifier] as const) + : (['mutation', 'updateNodeAtPath'] as const), + /** Mutation key for setAndCommit */ setAndCommit: (identifier?: string) => + identifier + ? (['mutation', 'setAndCommit', identifier] as const) + : (['mutation', 'setAndCommit'] as const), + /** Mutation key for applyRls */ applyRls: (identifier?: string) => + identifier + ? (['mutation', 'applyRls', identifier] as const) + : (['mutation', 'applyRls'] as const), + /** Mutation key for forgotPassword */ forgotPassword: (identifier?: string) => + identifier + ? (['mutation', 'forgotPassword', identifier] as const) + : (['mutation', 'forgotPassword'] as const), + /** Mutation key for sendVerificationEmail */ sendVerificationEmail: (identifier?: string) => + identifier + ? (['mutation', 'sendVerificationEmail', identifier] as const) + : (['mutation', 'sendVerificationEmail'] as const), + /** Mutation key for verifyPassword */ verifyPassword: (identifier?: string) => + identifier + ? (['mutation', 'verifyPassword', identifier] as const) + : (['mutation', 'verifyPassword'] as const), + /** Mutation key for verifyTotp */ verifyTotp: (identifier?: string) => + identifier + ? (['mutation', 'verifyTotp', identifier] as const) + : (['mutation', 'verifyTotp'] as const), +} as const; +/** + +// ============================================================================ +// Unified Mutation Key Store +// ============================================================================ + + * Unified mutation key store + * + * Use this for tracking in-flight mutations with useIsMutating. + * + * @example + * ```ts + * import { useIsMutating } from '@tanstack/react-query'; + * import { mutationKeys } from './generated'; + * + * // Check if any user mutations are in progress + * const isMutatingUser = useIsMutating({ mutationKey: mutationKeys.user.all }); + * + * // Check if a specific user is being updated + * const isUpdating = useIsMutating({ mutationKey: mutationKeys.user.update(userId) }); + * ``` + */ +export const mutationKeys = { + getAllRecord: getAllRecordMutationKeys, + appPermission: appPermissionMutationKeys, + orgPermission: orgPermissionMutationKeys, + object: objectMutationKeys, + appLevelRequirement: appLevelRequirementMutationKeys, + database: databaseMutationKeys, + schema: schemaMutationKeys, + table: tableMutationKeys, + checkConstraint: checkConstraintMutationKeys, + field: fieldMutationKeys, + foreignKeyConstraint: foreignKeyConstraintMutationKeys, + fullTextSearch: fullTextSearchMutationKeys, + index: indexMutationKeys, + limitFunction: limitFunctionMutationKeys, + policy: policyMutationKeys, + primaryKeyConstraint: primaryKeyConstraintMutationKeys, + tableGrant: tableGrantMutationKeys, + trigger: triggerMutationKeys, + uniqueConstraint: uniqueConstraintMutationKeys, + view: viewMutationKeys, + viewTable: viewTableMutationKeys, + viewGrant: viewGrantMutationKeys, + viewRule: viewRuleMutationKeys, + tableModule: tableModuleMutationKeys, + tableTemplateModule: tableTemplateModuleMutationKeys, + schemaGrant: schemaGrantMutationKeys, + apiSchema: apiSchemaMutationKeys, + apiModule: apiModuleMutationKeys, + domain: domainMutationKeys, + siteMetadatum: siteMetadatumMutationKeys, + siteModule: siteModuleMutationKeys, + siteTheme: siteThemeMutationKeys, + procedure: procedureMutationKeys, + triggerFunction: triggerFunctionMutationKeys, + api: apiMutationKeys, + site: siteMutationKeys, + app: appMutationKeys, + connectedAccountsModule: connectedAccountsModuleMutationKeys, + cryptoAddressesModule: cryptoAddressesModuleMutationKeys, + cryptoAuthModule: cryptoAuthModuleMutationKeys, + defaultIdsModule: defaultIdsModuleMutationKeys, + denormalizedTableField: denormalizedTableFieldMutationKeys, + emailsModule: emailsModuleMutationKeys, + encryptedSecretsModule: encryptedSecretsModuleMutationKeys, + fieldModule: fieldModuleMutationKeys, + invitesModule: invitesModuleMutationKeys, + levelsModule: levelsModuleMutationKeys, + limitsModule: limitsModuleMutationKeys, + membershipTypesModule: membershipTypesModuleMutationKeys, + membershipsModule: membershipsModuleMutationKeys, + permissionsModule: permissionsModuleMutationKeys, + phoneNumbersModule: phoneNumbersModuleMutationKeys, + profilesModule: profilesModuleMutationKeys, + rlsModule: rlsModuleMutationKeys, + secretsModule: secretsModuleMutationKeys, + sessionsModule: sessionsModuleMutationKeys, + userAuthModule: userAuthModuleMutationKeys, + usersModule: usersModuleMutationKeys, + uuidModule: uuidModuleMutationKeys, + databaseProvisionModule: databaseProvisionModuleMutationKeys, + appAdminGrant: appAdminGrantMutationKeys, + appOwnerGrant: appOwnerGrantMutationKeys, + appGrant: appGrantMutationKeys, + orgMembership: orgMembershipMutationKeys, + orgMember: orgMemberMutationKeys, + orgAdminGrant: orgAdminGrantMutationKeys, + orgOwnerGrant: orgOwnerGrantMutationKeys, + orgGrant: orgGrantMutationKeys, + appLimit: appLimitMutationKeys, + orgLimit: orgLimitMutationKeys, + appStep: appStepMutationKeys, + appAchievement: appAchievementMutationKeys, + invite: inviteMutationKeys, + claimedInvite: claimedInviteMutationKeys, + orgInvite: orgInviteMutationKeys, + orgClaimedInvite: orgClaimedInviteMutationKeys, + appPermissionDefault: appPermissionDefaultMutationKeys, + ref: refMutationKeys, + store: storeMutationKeys, + roleType: roleTypeMutationKeys, + orgPermissionDefault: orgPermissionDefaultMutationKeys, + appLimitDefault: appLimitDefaultMutationKeys, + orgLimitDefault: orgLimitDefaultMutationKeys, + cryptoAddress: cryptoAddressMutationKeys, + membershipType: membershipTypeMutationKeys, + connectedAccount: connectedAccountMutationKeys, + phoneNumber: phoneNumberMutationKeys, + appMembershipDefault: appMembershipDefaultMutationKeys, + nodeTypeRegistry: nodeTypeRegistryMutationKeys, + commit: commitMutationKeys, + orgMembershipDefault: orgMembershipDefaultMutationKeys, + email: emailMutationKeys, + auditLog: auditLogMutationKeys, + appLevel: appLevelMutationKeys, + sqlMigration: sqlMigrationMutationKeys, + astMigration: astMigrationMutationKeys, + appMembership: appMembershipMutationKeys, + user: userMutationKeys, + 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 new file mode 100644 index 000000000..b5541e514 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/index.ts @@ -0,0 +1,327 @@ +/** + * Mutation hooks barrel export + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export * from './useCreateGetAllRecordMutation'; +export * from './useCreateAppPermissionMutation'; +export * from './useUpdateAppPermissionMutation'; +export * from './useDeleteAppPermissionMutation'; +export * from './useCreateOrgPermissionMutation'; +export * from './useUpdateOrgPermissionMutation'; +export * from './useDeleteOrgPermissionMutation'; +export * from './useCreateObjectMutation'; +export * from './useUpdateObjectMutation'; +export * from './useDeleteObjectMutation'; +export * from './useCreateAppLevelRequirementMutation'; +export * from './useUpdateAppLevelRequirementMutation'; +export * from './useDeleteAppLevelRequirementMutation'; +export * from './useCreateDatabaseMutation'; +export * from './useUpdateDatabaseMutation'; +export * from './useDeleteDatabaseMutation'; +export * from './useCreateSchemaMutation'; +export * from './useUpdateSchemaMutation'; +export * from './useDeleteSchemaMutation'; +export * from './useCreateTableMutation'; +export * from './useUpdateTableMutation'; +export * from './useDeleteTableMutation'; +export * from './useCreateCheckConstraintMutation'; +export * from './useUpdateCheckConstraintMutation'; +export * from './useDeleteCheckConstraintMutation'; +export * from './useCreateFieldMutation'; +export * from './useUpdateFieldMutation'; +export * from './useDeleteFieldMutation'; +export * from './useCreateForeignKeyConstraintMutation'; +export * from './useUpdateForeignKeyConstraintMutation'; +export * from './useDeleteForeignKeyConstraintMutation'; +export * from './useCreateFullTextSearchMutation'; +export * from './useUpdateFullTextSearchMutation'; +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'; +export * from './useCreatePrimaryKeyConstraintMutation'; +export * from './useUpdatePrimaryKeyConstraintMutation'; +export * from './useDeletePrimaryKeyConstraintMutation'; +export * from './useCreateTableGrantMutation'; +export * from './useUpdateTableGrantMutation'; +export * from './useDeleteTableGrantMutation'; +export * from './useCreateTriggerMutation'; +export * from './useUpdateTriggerMutation'; +export * from './useDeleteTriggerMutation'; +export * from './useCreateUniqueConstraintMutation'; +export * from './useUpdateUniqueConstraintMutation'; +export * from './useDeleteUniqueConstraintMutation'; +export * from './useCreateViewMutation'; +export * from './useUpdateViewMutation'; +export * from './useDeleteViewMutation'; +export * from './useCreateViewTableMutation'; +export * from './useUpdateViewTableMutation'; +export * from './useDeleteViewTableMutation'; +export * from './useCreateViewGrantMutation'; +export * from './useUpdateViewGrantMutation'; +export * from './useDeleteViewGrantMutation'; +export * from './useCreateViewRuleMutation'; +export * from './useUpdateViewRuleMutation'; +export * from './useDeleteViewRuleMutation'; +export * from './useCreateTableModuleMutation'; +export * from './useUpdateTableModuleMutation'; +export * from './useDeleteTableModuleMutation'; +export * from './useCreateTableTemplateModuleMutation'; +export * from './useUpdateTableTemplateModuleMutation'; +export * from './useDeleteTableTemplateModuleMutation'; +export * from './useCreateSchemaGrantMutation'; +export * from './useUpdateSchemaGrantMutation'; +export * from './useDeleteSchemaGrantMutation'; +export * from './useCreateApiSchemaMutation'; +export * from './useUpdateApiSchemaMutation'; +export * from './useDeleteApiSchemaMutation'; +export * from './useCreateApiModuleMutation'; +export * from './useUpdateApiModuleMutation'; +export * from './useDeleteApiModuleMutation'; +export * from './useCreateDomainMutation'; +export * from './useUpdateDomainMutation'; +export * from './useDeleteDomainMutation'; +export * from './useCreateSiteMetadatumMutation'; +export * from './useUpdateSiteMetadatumMutation'; +export * from './useDeleteSiteMetadatumMutation'; +export * from './useCreateSiteModuleMutation'; +export * from './useUpdateSiteModuleMutation'; +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'; +export * from './useCreateApiMutation'; +export * from './useUpdateApiMutation'; +export * from './useDeleteApiMutation'; +export * from './useCreateSiteMutation'; +export * from './useUpdateSiteMutation'; +export * from './useDeleteSiteMutation'; +export * from './useCreateAppMutation'; +export * from './useUpdateAppMutation'; +export * from './useDeleteAppMutation'; +export * from './useCreateConnectedAccountsModuleMutation'; +export * from './useUpdateConnectedAccountsModuleMutation'; +export * from './useDeleteConnectedAccountsModuleMutation'; +export * from './useCreateCryptoAddressesModuleMutation'; +export * from './useUpdateCryptoAddressesModuleMutation'; +export * from './useDeleteCryptoAddressesModuleMutation'; +export * from './useCreateCryptoAuthModuleMutation'; +export * from './useUpdateCryptoAuthModuleMutation'; +export * from './useDeleteCryptoAuthModuleMutation'; +export * from './useCreateDefaultIdsModuleMutation'; +export * from './useUpdateDefaultIdsModuleMutation'; +export * from './useDeleteDefaultIdsModuleMutation'; +export * from './useCreateDenormalizedTableFieldMutation'; +export * from './useUpdateDenormalizedTableFieldMutation'; +export * from './useDeleteDenormalizedTableFieldMutation'; +export * from './useCreateEmailsModuleMutation'; +export * from './useUpdateEmailsModuleMutation'; +export * from './useDeleteEmailsModuleMutation'; +export * from './useCreateEncryptedSecretsModuleMutation'; +export * from './useUpdateEncryptedSecretsModuleMutation'; +export * from './useDeleteEncryptedSecretsModuleMutation'; +export * from './useCreateFieldModuleMutation'; +export * from './useUpdateFieldModuleMutation'; +export * from './useDeleteFieldModuleMutation'; +export * from './useCreateInvitesModuleMutation'; +export * from './useUpdateInvitesModuleMutation'; +export * from './useDeleteInvitesModuleMutation'; +export * from './useCreateLevelsModuleMutation'; +export * from './useUpdateLevelsModuleMutation'; +export * from './useDeleteLevelsModuleMutation'; +export * from './useCreateLimitsModuleMutation'; +export * from './useUpdateLimitsModuleMutation'; +export * from './useDeleteLimitsModuleMutation'; +export * from './useCreateMembershipTypesModuleMutation'; +export * from './useUpdateMembershipTypesModuleMutation'; +export * from './useDeleteMembershipTypesModuleMutation'; +export * from './useCreateMembershipsModuleMutation'; +export * from './useUpdateMembershipsModuleMutation'; +export * from './useDeleteMembershipsModuleMutation'; +export * from './useCreatePermissionsModuleMutation'; +export * from './useUpdatePermissionsModuleMutation'; +export * from './useDeletePermissionsModuleMutation'; +export * from './useCreatePhoneNumbersModuleMutation'; +export * from './useUpdatePhoneNumbersModuleMutation'; +export * from './useDeletePhoneNumbersModuleMutation'; +export * from './useCreateProfilesModuleMutation'; +export * from './useUpdateProfilesModuleMutation'; +export * from './useDeleteProfilesModuleMutation'; +export * from './useCreateRlsModuleMutation'; +export * from './useUpdateRlsModuleMutation'; +export * from './useDeleteRlsModuleMutation'; +export * from './useCreateSecretsModuleMutation'; +export * from './useUpdateSecretsModuleMutation'; +export * from './useDeleteSecretsModuleMutation'; +export * from './useCreateSessionsModuleMutation'; +export * from './useUpdateSessionsModuleMutation'; +export * from './useDeleteSessionsModuleMutation'; +export * from './useCreateUserAuthModuleMutation'; +export * from './useUpdateUserAuthModuleMutation'; +export * from './useDeleteUserAuthModuleMutation'; +export * from './useCreateUsersModuleMutation'; +export * from './useUpdateUsersModuleMutation'; +export * from './useDeleteUsersModuleMutation'; +export * from './useCreateUuidModuleMutation'; +export * from './useUpdateUuidModuleMutation'; +export * from './useDeleteUuidModuleMutation'; +export * from './useCreateDatabaseProvisionModuleMutation'; +export * from './useUpdateDatabaseProvisionModuleMutation'; +export * from './useDeleteDatabaseProvisionModuleMutation'; +export * from './useCreateAppAdminGrantMutation'; +export * from './useUpdateAppAdminGrantMutation'; +export * from './useDeleteAppAdminGrantMutation'; +export * from './useCreateAppOwnerGrantMutation'; +export * from './useUpdateAppOwnerGrantMutation'; +export * from './useDeleteAppOwnerGrantMutation'; +export * from './useCreateAppGrantMutation'; +export * from './useUpdateAppGrantMutation'; +export * from './useDeleteAppGrantMutation'; +export * from './useCreateOrgMembershipMutation'; +export * from './useUpdateOrgMembershipMutation'; +export * from './useDeleteOrgMembershipMutation'; +export * from './useCreateOrgMemberMutation'; +export * from './useUpdateOrgMemberMutation'; +export * from './useDeleteOrgMemberMutation'; +export * from './useCreateOrgAdminGrantMutation'; +export * from './useUpdateOrgAdminGrantMutation'; +export * from './useDeleteOrgAdminGrantMutation'; +export * from './useCreateOrgOwnerGrantMutation'; +export * from './useUpdateOrgOwnerGrantMutation'; +export * from './useDeleteOrgOwnerGrantMutation'; +export * from './useCreateOrgGrantMutation'; +export * from './useUpdateOrgGrantMutation'; +export * from './useDeleteOrgGrantMutation'; +export * from './useCreateAppLimitMutation'; +export * from './useUpdateAppLimitMutation'; +export * from './useDeleteAppLimitMutation'; +export * from './useCreateOrgLimitMutation'; +export * from './useUpdateOrgLimitMutation'; +export * from './useDeleteOrgLimitMutation'; +export * from './useCreateAppStepMutation'; +export * from './useUpdateAppStepMutation'; +export * from './useDeleteAppStepMutation'; +export * from './useCreateAppAchievementMutation'; +export * from './useUpdateAppAchievementMutation'; +export * from './useDeleteAppAchievementMutation'; +export * from './useCreateInviteMutation'; +export * from './useUpdateInviteMutation'; +export * from './useDeleteInviteMutation'; +export * from './useCreateClaimedInviteMutation'; +export * from './useUpdateClaimedInviteMutation'; +export * from './useDeleteClaimedInviteMutation'; +export * from './useCreateOrgInviteMutation'; +export * from './useUpdateOrgInviteMutation'; +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 './useCreateRoleTypeMutation'; +export * from './useUpdateRoleTypeMutation'; +export * from './useDeleteRoleTypeMutation'; +export * from './useCreateOrgPermissionDefaultMutation'; +export * from './useUpdateOrgPermissionDefaultMutation'; +export * from './useDeleteOrgPermissionDefaultMutation'; +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 './useCreateNodeTypeRegistryMutation'; +export * from './useUpdateNodeTypeRegistryMutation'; +export * from './useDeleteNodeTypeRegistryMutation'; +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 './useCreateSqlMigrationMutation'; +export * from './useCreateAstMigrationMutation'; +export * from './useCreateAppMembershipMutation'; +export * from './useUpdateAppMembershipMutation'; +export * from './useDeleteAppMembershipMutation'; +export * from './useCreateUserMutation'; +export * from './useUpdateUserMutation'; +export * from './useDeleteUserMutation'; +export * from './useCreateHierarchyModuleMutation'; +export * from './useUpdateHierarchyModuleMutation'; +export * from './useDeleteHierarchyModuleMutation'; +export * from './useSignOutMutation'; +export * from './useSendAccountDeletionEmailMutation'; +export * from './useCheckPasswordMutation'; +export * from './useSubmitInviteCodeMutation'; +export * from './useSubmitOrgInviteCodeMutation'; +export * from './useFreezeObjectsMutation'; +export * from './useInitEmptyRepoMutation'; +export * from './useConfirmDeleteAccountMutation'; +export * from './useSetPasswordMutation'; +export * from './useVerifyEmailMutation'; +export * from './useResetPasswordMutation'; +export * from './useRemoveNodeAtPathMutation'; +export * from './useBootstrapUserMutation'; +export * from './useSetDataAtPathMutation'; +export * from './useSetPropsAndCommitMutation'; +export * from './useProvisionDatabaseWithUserMutation'; +export * from './useSignInOneTimeTokenMutation'; +export * from './useCreateUserDatabaseMutation'; +export * from './useExtendTokenExpiresMutation'; +export * from './useSignInMutation'; +export * from './useSignUpMutation'; +export * from './useSetFieldOrderMutation'; +export * from './useOneTimeTokenMutation'; +export * from './useInsertNodeAtPathMutation'; +export * from './useUpdateNodeAtPathMutation'; +export * from './useSetAndCommitMutation'; +export * from './useApplyRlsMutation'; +export * from './useForgotPasswordMutation'; +export * from './useSendVerificationEmailMutation'; +export * from './useVerifyPasswordMutation'; +export * from './useVerifyTotpMutation'; diff --git a/sdk/constructive-react/src/public/hooks/mutations/useApplyRlsMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useApplyRlsMutation.ts new file mode 100644 index 000000000..615b86adb --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useApplyRlsMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for applyRls + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } 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 { customMutationKeys } from '../mutation-keys'; +import type { ApplyRlsVariables } from '../../orm/mutation'; +import type { ApplyRlsPayloadSelect, ApplyRlsPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { ApplyRlsVariables } from '../../orm/mutation'; +export type { ApplyRlsPayloadSelect } from '../../orm/input-types'; +export function useApplyRlsMutation( + params: { + selection: { + fields: S & ApplyRlsPayloadSelect; + } & HookStrictSelect, ApplyRlsPayloadSelect>; + } & Omit< + UseMutationOptions< + { + applyRls: InferSelectResult | null; + }, + Error, + ApplyRlsVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + applyRls: InferSelectResult | null; + }, + Error, + ApplyRlsVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.applyRls(), + mutationFn: (variables: ApplyRlsVariables) => + getClient() + .mutation.applyRls(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useBootstrapUserMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useBootstrapUserMutation.ts new file mode 100644 index 000000000..cf749c6d4 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useBootstrapUserMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for bootstrapUser + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } 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 { customMutationKeys } from '../mutation-keys'; +import type { BootstrapUserVariables } from '../../orm/mutation'; +import type { BootstrapUserPayloadSelect, BootstrapUserPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { BootstrapUserVariables } from '../../orm/mutation'; +export type { BootstrapUserPayloadSelect } from '../../orm/input-types'; +export function useBootstrapUserMutation( + params: { + selection: { + fields: S & BootstrapUserPayloadSelect; + } & HookStrictSelect, BootstrapUserPayloadSelect>; + } & Omit< + UseMutationOptions< + { + bootstrapUser: InferSelectResult | null; + }, + Error, + BootstrapUserVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + bootstrapUser: InferSelectResult | null; + }, + Error, + BootstrapUserVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.bootstrapUser(), + mutationFn: (variables: BootstrapUserVariables) => + getClient() + .mutation.bootstrapUser(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCheckPasswordMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCheckPasswordMutation.ts new file mode 100644 index 000000000..36b79e2fe --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCheckPasswordMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for checkPassword + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } 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 { customMutationKeys } from '../mutation-keys'; +import type { CheckPasswordVariables } from '../../orm/mutation'; +import type { CheckPasswordPayloadSelect, CheckPasswordPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { CheckPasswordVariables } from '../../orm/mutation'; +export type { CheckPasswordPayloadSelect } from '../../orm/input-types'; +export function useCheckPasswordMutation( + params: { + selection: { + fields: S & CheckPasswordPayloadSelect; + } & HookStrictSelect, CheckPasswordPayloadSelect>; + } & Omit< + UseMutationOptions< + { + checkPassword: InferSelectResult | null; + }, + Error, + CheckPasswordVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + checkPassword: InferSelectResult | null; + }, + Error, + CheckPasswordVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.checkPassword(), + mutationFn: (variables: CheckPasswordVariables) => + getClient() + .mutation.checkPassword(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useConfirmDeleteAccountMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useConfirmDeleteAccountMutation.ts new file mode 100644 index 000000000..2a430d07a --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useConfirmDeleteAccountMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for confirmDeleteAccount + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } 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 { customMutationKeys } from '../mutation-keys'; +import type { ConfirmDeleteAccountVariables } from '../../orm/mutation'; +import type { + ConfirmDeleteAccountPayloadSelect, + ConfirmDeleteAccountPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { ConfirmDeleteAccountVariables } from '../../orm/mutation'; +export type { ConfirmDeleteAccountPayloadSelect } from '../../orm/input-types'; +export function useConfirmDeleteAccountMutation( + params: { + selection: { + fields: S & ConfirmDeleteAccountPayloadSelect; + } & HookStrictSelect, ConfirmDeleteAccountPayloadSelect>; + } & Omit< + UseMutationOptions< + { + confirmDeleteAccount: InferSelectResult | null; + }, + Error, + ConfirmDeleteAccountVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + confirmDeleteAccount: InferSelectResult | null; + }, + Error, + ConfirmDeleteAccountVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.confirmDeleteAccount(), + mutationFn: (variables: ConfirmDeleteAccountVariables) => + getClient() + .mutation.confirmDeleteAccount(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateApiModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateApiModuleMutation.ts new file mode 100644 index 000000000..a57c9d102 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateApiModuleMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for ApiModule + * @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 { apiModuleKeys } from '../query-keys'; +import { apiModuleMutationKeys } from '../mutation-keys'; +import type { + ApiModuleSelect, + ApiModuleWithRelations, + CreateApiModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ApiModuleSelect, + ApiModuleWithRelations, + CreateApiModuleInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a ApiModule + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateApiModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateApiModuleMutation( + params: { + selection: { + fields: S & ApiModuleSelect; + } & HookStrictSelect, ApiModuleSelect>; + } & Omit< + UseMutationOptions< + { + createApiModule: { + apiModule: InferSelectResult; + }; + }, + Error, + CreateApiModuleInput['apiModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createApiModule: { + apiModule: InferSelectResult; + }; + }, + Error, + CreateApiModuleInput['apiModule'] +>; +export function useCreateApiModuleMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: apiModuleMutationKeys.create(), + mutationFn: (data: CreateApiModuleInput['apiModule']) => + getClient() + .apiModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: apiModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateApiMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateApiMutation.ts new file mode 100644 index 000000000..2e5809137 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateApiMutation.ts @@ -0,0 +1,80 @@ +/** + * Create mutation hook for Api + * @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 { apiKeys } from '../query-keys'; +import { apiMutationKeys } from '../mutation-keys'; +import type { ApiSelect, ApiWithRelations, CreateApiInput } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ApiSelect, ApiWithRelations, CreateApiInput } from '../../orm/input-types'; +/** + * Mutation hook for creating a Api + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateApiMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateApiMutation( + params: { + selection: { + fields: S & ApiSelect; + } & HookStrictSelect, ApiSelect>; + } & Omit< + UseMutationOptions< + { + createApi: { + api: InferSelectResult; + }; + }, + Error, + CreateApiInput['api'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createApi: { + api: InferSelectResult; + }; + }, + Error, + CreateApiInput['api'] +>; +export function useCreateApiMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: apiMutationKeys.create(), + mutationFn: (data: CreateApiInput['api']) => + getClient() + .api.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: apiKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateApiSchemaMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateApiSchemaMutation.ts new file mode 100644 index 000000000..59aaaa033 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateApiSchemaMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for ApiSchema + * @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 { apiSchemaKeys } from '../query-keys'; +import { apiSchemaMutationKeys } from '../mutation-keys'; +import type { + ApiSchemaSelect, + ApiSchemaWithRelations, + CreateApiSchemaInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ApiSchemaSelect, + ApiSchemaWithRelations, + CreateApiSchemaInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a ApiSchema + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateApiSchemaMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateApiSchemaMutation( + params: { + selection: { + fields: S & ApiSchemaSelect; + } & HookStrictSelect, ApiSchemaSelect>; + } & Omit< + UseMutationOptions< + { + createApiSchema: { + apiSchema: InferSelectResult; + }; + }, + Error, + CreateApiSchemaInput['apiSchema'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createApiSchema: { + apiSchema: InferSelectResult; + }; + }, + Error, + CreateApiSchemaInput['apiSchema'] +>; +export function useCreateApiSchemaMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: apiSchemaMutationKeys.create(), + mutationFn: (data: CreateApiSchemaInput['apiSchema']) => + getClient() + .apiSchema.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: apiSchemaKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppAchievementMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppAchievementMutation.ts new file mode 100644 index 000000000..b39c550bf --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppAchievementMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for AppAchievement + * @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 { appAchievementKeys } from '../query-keys'; +import { appAchievementMutationKeys } from '../mutation-keys'; +import type { + AppAchievementSelect, + AppAchievementWithRelations, + CreateAppAchievementInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppAchievementSelect, + AppAchievementWithRelations, + CreateAppAchievementInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a AppAchievement + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateAppAchievementMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateAppAchievementMutation( + params: { + selection: { + fields: S & AppAchievementSelect; + } & HookStrictSelect, AppAchievementSelect>; + } & Omit< + UseMutationOptions< + { + createAppAchievement: { + appAchievement: InferSelectResult; + }; + }, + Error, + CreateAppAchievementInput['appAchievement'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createAppAchievement: { + appAchievement: InferSelectResult; + }; + }, + Error, + CreateAppAchievementInput['appAchievement'] +>; +export function useCreateAppAchievementMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appAchievementMutationKeys.create(), + mutationFn: (data: CreateAppAchievementInput['appAchievement']) => + getClient() + .appAchievement.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: appAchievementKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppAdminGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppAdminGrantMutation.ts new file mode 100644 index 000000000..7dd44401e --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppAdminGrantMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for AppAdminGrant + * @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 { appAdminGrantKeys } from '../query-keys'; +import { appAdminGrantMutationKeys } from '../mutation-keys'; +import type { + AppAdminGrantSelect, + AppAdminGrantWithRelations, + CreateAppAdminGrantInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppAdminGrantSelect, + AppAdminGrantWithRelations, + CreateAppAdminGrantInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a AppAdminGrant + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateAppAdminGrantMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateAppAdminGrantMutation( + params: { + selection: { + fields: S & AppAdminGrantSelect; + } & HookStrictSelect, AppAdminGrantSelect>; + } & Omit< + UseMutationOptions< + { + createAppAdminGrant: { + appAdminGrant: InferSelectResult; + }; + }, + Error, + CreateAppAdminGrantInput['appAdminGrant'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createAppAdminGrant: { + appAdminGrant: InferSelectResult; + }; + }, + Error, + CreateAppAdminGrantInput['appAdminGrant'] +>; +export function useCreateAppAdminGrantMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appAdminGrantMutationKeys.create(), + mutationFn: (data: CreateAppAdminGrantInput['appAdminGrant']) => + getClient() + .appAdminGrant.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: appAdminGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppGrantMutation.ts new file mode 100644 index 000000000..0e2e4c286 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppGrantMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for AppGrant + * @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 { appGrantKeys } from '../query-keys'; +import { appGrantMutationKeys } from '../mutation-keys'; +import type { + AppGrantSelect, + AppGrantWithRelations, + CreateAppGrantInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppGrantSelect, + AppGrantWithRelations, + CreateAppGrantInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a AppGrant + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateAppGrantMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateAppGrantMutation( + params: { + selection: { + fields: S & AppGrantSelect; + } & HookStrictSelect, AppGrantSelect>; + } & Omit< + UseMutationOptions< + { + createAppGrant: { + appGrant: InferSelectResult; + }; + }, + Error, + CreateAppGrantInput['appGrant'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createAppGrant: { + appGrant: InferSelectResult; + }; + }, + Error, + CreateAppGrantInput['appGrant'] +>; +export function useCreateAppGrantMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appGrantMutationKeys.create(), + mutationFn: (data: CreateAppGrantInput['appGrant']) => + getClient() + .appGrant.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: appGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLevelMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLevelMutation.ts new file mode 100644 index 000000000..393ed2c2a --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLevelMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for AppLevel + * @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 { appLevelKeys } from '../query-keys'; +import { appLevelMutationKeys } from '../mutation-keys'; +import type { + AppLevelSelect, + AppLevelWithRelations, + CreateAppLevelInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppLevelSelect, + AppLevelWithRelations, + CreateAppLevelInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a AppLevel + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateAppLevelMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateAppLevelMutation( + params: { + selection: { + fields: S & AppLevelSelect; + } & HookStrictSelect, AppLevelSelect>; + } & Omit< + UseMutationOptions< + { + createAppLevel: { + appLevel: InferSelectResult; + }; + }, + Error, + CreateAppLevelInput['appLevel'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createAppLevel: { + appLevel: InferSelectResult; + }; + }, + Error, + CreateAppLevelInput['appLevel'] +>; +export function useCreateAppLevelMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appLevelMutationKeys.create(), + mutationFn: (data: CreateAppLevelInput['appLevel']) => + getClient() + .appLevel.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: appLevelKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLevelRequirementMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLevelRequirementMutation.ts new file mode 100644 index 000000000..cde42cf7e --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLevelRequirementMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for AppLevelRequirement + * @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 { appLevelRequirementKeys } from '../query-keys'; +import { appLevelRequirementMutationKeys } from '../mutation-keys'; +import type { + AppLevelRequirementSelect, + AppLevelRequirementWithRelations, + CreateAppLevelRequirementInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppLevelRequirementSelect, + AppLevelRequirementWithRelations, + CreateAppLevelRequirementInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a AppLevelRequirement + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateAppLevelRequirementMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateAppLevelRequirementMutation( + params: { + selection: { + fields: S & AppLevelRequirementSelect; + } & HookStrictSelect, AppLevelRequirementSelect>; + } & Omit< + UseMutationOptions< + { + createAppLevelRequirement: { + appLevelRequirement: InferSelectResult; + }; + }, + Error, + CreateAppLevelRequirementInput['appLevelRequirement'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createAppLevelRequirement: { + appLevelRequirement: InferSelectResult; + }; + }, + Error, + CreateAppLevelRequirementInput['appLevelRequirement'] +>; +export function useCreateAppLevelRequirementMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appLevelRequirementMutationKeys.create(), + mutationFn: (data: CreateAppLevelRequirementInput['appLevelRequirement']) => + getClient() + .appLevelRequirement.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: appLevelRequirementKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLimitDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLimitDefaultMutation.ts new file mode 100644 index 000000000..40b24b14d --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLimitDefaultMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for AppLimitDefault + * @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 { appLimitDefaultKeys } from '../query-keys'; +import { appLimitDefaultMutationKeys } from '../mutation-keys'; +import type { + AppLimitDefaultSelect, + AppLimitDefaultWithRelations, + CreateAppLimitDefaultInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppLimitDefaultSelect, + AppLimitDefaultWithRelations, + CreateAppLimitDefaultInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a AppLimitDefault + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateAppLimitDefaultMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateAppLimitDefaultMutation( + params: { + selection: { + fields: S & AppLimitDefaultSelect; + } & HookStrictSelect, AppLimitDefaultSelect>; + } & Omit< + UseMutationOptions< + { + createAppLimitDefault: { + appLimitDefault: InferSelectResult; + }; + }, + Error, + CreateAppLimitDefaultInput['appLimitDefault'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createAppLimitDefault: { + appLimitDefault: InferSelectResult; + }; + }, + Error, + CreateAppLimitDefaultInput['appLimitDefault'] +>; +export function useCreateAppLimitDefaultMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appLimitDefaultMutationKeys.create(), + mutationFn: (data: CreateAppLimitDefaultInput['appLimitDefault']) => + getClient() + .appLimitDefault.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: appLimitDefaultKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLimitMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLimitMutation.ts new file mode 100644 index 000000000..b7f7072be --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLimitMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for AppLimit + * @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 { appLimitKeys } from '../query-keys'; +import { appLimitMutationKeys } from '../mutation-keys'; +import type { + AppLimitSelect, + AppLimitWithRelations, + CreateAppLimitInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppLimitSelect, + AppLimitWithRelations, + CreateAppLimitInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a AppLimit + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateAppLimitMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateAppLimitMutation( + params: { + selection: { + fields: S & AppLimitSelect; + } & HookStrictSelect, AppLimitSelect>; + } & Omit< + UseMutationOptions< + { + createAppLimit: { + appLimit: InferSelectResult; + }; + }, + Error, + CreateAppLimitInput['appLimit'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createAppLimit: { + appLimit: InferSelectResult; + }; + }, + Error, + CreateAppLimitInput['appLimit'] +>; +export function useCreateAppLimitMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appLimitMutationKeys.create(), + mutationFn: (data: CreateAppLimitInput['appLimit']) => + getClient() + .appLimit.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: appLimitKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppMembershipDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppMembershipDefaultMutation.ts new file mode 100644 index 000000000..0a4ecf4bc --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppMembershipDefaultMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for AppMembershipDefault + * @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 { appMembershipDefaultKeys } from '../query-keys'; +import { appMembershipDefaultMutationKeys } from '../mutation-keys'; +import type { + AppMembershipDefaultSelect, + AppMembershipDefaultWithRelations, + CreateAppMembershipDefaultInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppMembershipDefaultSelect, + AppMembershipDefaultWithRelations, + CreateAppMembershipDefaultInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a AppMembershipDefault + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateAppMembershipDefaultMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateAppMembershipDefaultMutation( + params: { + selection: { + fields: S & AppMembershipDefaultSelect; + } & HookStrictSelect, AppMembershipDefaultSelect>; + } & Omit< + UseMutationOptions< + { + createAppMembershipDefault: { + appMembershipDefault: InferSelectResult; + }; + }, + Error, + CreateAppMembershipDefaultInput['appMembershipDefault'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createAppMembershipDefault: { + appMembershipDefault: InferSelectResult; + }; + }, + Error, + CreateAppMembershipDefaultInput['appMembershipDefault'] +>; +export function useCreateAppMembershipDefaultMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appMembershipDefaultMutationKeys.create(), + mutationFn: (data: CreateAppMembershipDefaultInput['appMembershipDefault']) => + getClient() + .appMembershipDefault.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: appMembershipDefaultKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppMembershipMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppMembershipMutation.ts new file mode 100644 index 000000000..fa08b65df --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppMembershipMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for AppMembership + * @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 { appMembershipKeys } from '../query-keys'; +import { appMembershipMutationKeys } from '../mutation-keys'; +import type { + AppMembershipSelect, + AppMembershipWithRelations, + CreateAppMembershipInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppMembershipSelect, + AppMembershipWithRelations, + CreateAppMembershipInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a AppMembership + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateAppMembershipMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateAppMembershipMutation( + params: { + selection: { + fields: S & AppMembershipSelect; + } & HookStrictSelect, AppMembershipSelect>; + } & Omit< + UseMutationOptions< + { + createAppMembership: { + appMembership: InferSelectResult; + }; + }, + Error, + CreateAppMembershipInput['appMembership'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createAppMembership: { + appMembership: InferSelectResult; + }; + }, + Error, + CreateAppMembershipInput['appMembership'] +>; +export function useCreateAppMembershipMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appMembershipMutationKeys.create(), + mutationFn: (data: CreateAppMembershipInput['appMembership']) => + getClient() + .appMembership.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: appMembershipKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppMutation.ts new file mode 100644 index 000000000..a43fe0b18 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppMutation.ts @@ -0,0 +1,80 @@ +/** + * Create mutation hook for App + * @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 { appKeys } from '../query-keys'; +import { appMutationKeys } from '../mutation-keys'; +import type { AppSelect, AppWithRelations, CreateAppInput } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AppSelect, AppWithRelations, CreateAppInput } from '../../orm/input-types'; +/** + * Mutation hook for creating a App + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateAppMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateAppMutation( + params: { + selection: { + fields: S & AppSelect; + } & HookStrictSelect, AppSelect>; + } & Omit< + UseMutationOptions< + { + createApp: { + app: InferSelectResult; + }; + }, + Error, + CreateAppInput['app'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createApp: { + app: InferSelectResult; + }; + }, + Error, + CreateAppInput['app'] +>; +export function useCreateAppMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appMutationKeys.create(), + mutationFn: (data: CreateAppInput['app']) => + getClient() + .app.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: appKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppOwnerGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppOwnerGrantMutation.ts new file mode 100644 index 000000000..81f12be36 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppOwnerGrantMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for AppOwnerGrant + * @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 { appOwnerGrantKeys } from '../query-keys'; +import { appOwnerGrantMutationKeys } from '../mutation-keys'; +import type { + AppOwnerGrantSelect, + AppOwnerGrantWithRelations, + CreateAppOwnerGrantInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppOwnerGrantSelect, + AppOwnerGrantWithRelations, + CreateAppOwnerGrantInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a AppOwnerGrant + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateAppOwnerGrantMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateAppOwnerGrantMutation( + params: { + selection: { + fields: S & AppOwnerGrantSelect; + } & HookStrictSelect, AppOwnerGrantSelect>; + } & Omit< + UseMutationOptions< + { + createAppOwnerGrant: { + appOwnerGrant: InferSelectResult; + }; + }, + Error, + CreateAppOwnerGrantInput['appOwnerGrant'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createAppOwnerGrant: { + appOwnerGrant: InferSelectResult; + }; + }, + Error, + CreateAppOwnerGrantInput['appOwnerGrant'] +>; +export function useCreateAppOwnerGrantMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appOwnerGrantMutationKeys.create(), + mutationFn: (data: CreateAppOwnerGrantInput['appOwnerGrant']) => + getClient() + .appOwnerGrant.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: appOwnerGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppPermissionDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppPermissionDefaultMutation.ts new file mode 100644 index 000000000..1f2314266 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppPermissionDefaultMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for AppPermissionDefault + * @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 { appPermissionDefaultKeys } from '../query-keys'; +import { appPermissionDefaultMutationKeys } from '../mutation-keys'; +import type { + AppPermissionDefaultSelect, + AppPermissionDefaultWithRelations, + CreateAppPermissionDefaultInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppPermissionDefaultSelect, + AppPermissionDefaultWithRelations, + CreateAppPermissionDefaultInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a AppPermissionDefault + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateAppPermissionDefaultMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateAppPermissionDefaultMutation( + params: { + selection: { + fields: S & AppPermissionDefaultSelect; + } & HookStrictSelect, AppPermissionDefaultSelect>; + } & Omit< + UseMutationOptions< + { + createAppPermissionDefault: { + appPermissionDefault: InferSelectResult; + }; + }, + Error, + CreateAppPermissionDefaultInput['appPermissionDefault'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createAppPermissionDefault: { + appPermissionDefault: InferSelectResult; + }; + }, + Error, + CreateAppPermissionDefaultInput['appPermissionDefault'] +>; +export function useCreateAppPermissionDefaultMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appPermissionDefaultMutationKeys.create(), + mutationFn: (data: CreateAppPermissionDefaultInput['appPermissionDefault']) => + getClient() + .appPermissionDefault.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: appPermissionDefaultKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppPermissionMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppPermissionMutation.ts new file mode 100644 index 000000000..73d4eceec --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppPermissionMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for AppPermission + * @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 { appPermissionKeys } from '../query-keys'; +import { appPermissionMutationKeys } from '../mutation-keys'; +import type { + AppPermissionSelect, + AppPermissionWithRelations, + CreateAppPermissionInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppPermissionSelect, + AppPermissionWithRelations, + CreateAppPermissionInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a AppPermission + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateAppPermissionMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateAppPermissionMutation( + params: { + selection: { + fields: S & AppPermissionSelect; + } & HookStrictSelect, AppPermissionSelect>; + } & Omit< + UseMutationOptions< + { + createAppPermission: { + appPermission: InferSelectResult; + }; + }, + Error, + CreateAppPermissionInput['appPermission'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createAppPermission: { + appPermission: InferSelectResult; + }; + }, + Error, + CreateAppPermissionInput['appPermission'] +>; +export function useCreateAppPermissionMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appPermissionMutationKeys.create(), + mutationFn: (data: CreateAppPermissionInput['appPermission']) => + getClient() + .appPermission.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: appPermissionKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppStepMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppStepMutation.ts new file mode 100644 index 000000000..479dc0a3a --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppStepMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for AppStep + * @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 { appStepKeys } from '../query-keys'; +import { appStepMutationKeys } from '../mutation-keys'; +import type { + AppStepSelect, + AppStepWithRelations, + CreateAppStepInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppStepSelect, + AppStepWithRelations, + CreateAppStepInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a AppStep + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateAppStepMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateAppStepMutation( + params: { + selection: { + fields: S & AppStepSelect; + } & HookStrictSelect, AppStepSelect>; + } & Omit< + UseMutationOptions< + { + createAppStep: { + appStep: InferSelectResult; + }; + }, + Error, + CreateAppStepInput['appStep'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createAppStep: { + appStep: InferSelectResult; + }; + }, + Error, + CreateAppStepInput['appStep'] +>; +export function useCreateAppStepMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appStepMutationKeys.create(), + mutationFn: (data: CreateAppStepInput['appStep']) => + getClient() + .appStep.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: appStepKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAstMigrationMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAstMigrationMutation.ts new file mode 100644 index 000000000..7f9caacb1 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateAstMigrationMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for AstMigration + * @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 { astMigrationKeys } from '../query-keys'; +import { astMigrationMutationKeys } from '../mutation-keys'; +import type { + AstMigrationSelect, + AstMigrationWithRelations, + CreateAstMigrationInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AstMigrationSelect, + AstMigrationWithRelations, + CreateAstMigrationInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a AstMigration + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateAstMigrationMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateAstMigrationMutation( + params: { + selection: { + fields: S & AstMigrationSelect; + } & HookStrictSelect, AstMigrationSelect>; + } & Omit< + UseMutationOptions< + { + createAstMigration: { + astMigration: InferSelectResult; + }; + }, + Error, + CreateAstMigrationInput['astMigration'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createAstMigration: { + astMigration: InferSelectResult; + }; + }, + Error, + CreateAstMigrationInput['astMigration'] +>; +export function useCreateAstMigrationMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: astMigrationMutationKeys.create(), + mutationFn: (data: CreateAstMigrationInput['astMigration']) => + getClient() + .astMigration.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: astMigrationKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAuditLogMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAuditLogMutation.ts new file mode 100644 index 000000000..e05ac6080 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateAuditLogMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for AuditLog + * @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 { auditLogKeys } from '../query-keys'; +import { auditLogMutationKeys } from '../mutation-keys'; +import type { + AuditLogSelect, + AuditLogWithRelations, + CreateAuditLogInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AuditLogSelect, + AuditLogWithRelations, + CreateAuditLogInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a AuditLog + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateAuditLogMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateAuditLogMutation( + params: { + selection: { + fields: S & AuditLogSelect; + } & HookStrictSelect, AuditLogSelect>; + } & Omit< + UseMutationOptions< + { + createAuditLog: { + auditLog: InferSelectResult; + }; + }, + Error, + CreateAuditLogInput['auditLog'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createAuditLog: { + auditLog: InferSelectResult; + }; + }, + Error, + CreateAuditLogInput['auditLog'] +>; +export function useCreateAuditLogMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: auditLogMutationKeys.create(), + mutationFn: (data: CreateAuditLogInput['auditLog']) => + getClient() + .auditLog.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: auditLogKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateCheckConstraintMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateCheckConstraintMutation.ts new file mode 100644 index 000000000..a20cc1e67 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateCheckConstraintMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for CheckConstraint + * @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 { checkConstraintKeys } from '../query-keys'; +import { checkConstraintMutationKeys } from '../mutation-keys'; +import type { + CheckConstraintSelect, + CheckConstraintWithRelations, + CreateCheckConstraintInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + CheckConstraintSelect, + CheckConstraintWithRelations, + CreateCheckConstraintInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a CheckConstraint + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateCheckConstraintMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateCheckConstraintMutation( + params: { + selection: { + fields: S & CheckConstraintSelect; + } & HookStrictSelect, CheckConstraintSelect>; + } & Omit< + UseMutationOptions< + { + createCheckConstraint: { + checkConstraint: InferSelectResult; + }; + }, + Error, + CreateCheckConstraintInput['checkConstraint'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createCheckConstraint: { + checkConstraint: InferSelectResult; + }; + }, + Error, + CreateCheckConstraintInput['checkConstraint'] +>; +export function useCreateCheckConstraintMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: checkConstraintMutationKeys.create(), + mutationFn: (data: CreateCheckConstraintInput['checkConstraint']) => + getClient() + .checkConstraint.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: checkConstraintKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateClaimedInviteMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateClaimedInviteMutation.ts new file mode 100644 index 000000000..a84eca95c --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateClaimedInviteMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for ClaimedInvite + * @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 { claimedInviteKeys } from '../query-keys'; +import { claimedInviteMutationKeys } from '../mutation-keys'; +import type { + ClaimedInviteSelect, + ClaimedInviteWithRelations, + CreateClaimedInviteInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ClaimedInviteSelect, + ClaimedInviteWithRelations, + CreateClaimedInviteInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a ClaimedInvite + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateClaimedInviteMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateClaimedInviteMutation( + params: { + selection: { + fields: S & ClaimedInviteSelect; + } & HookStrictSelect, ClaimedInviteSelect>; + } & Omit< + UseMutationOptions< + { + createClaimedInvite: { + claimedInvite: InferSelectResult; + }; + }, + Error, + CreateClaimedInviteInput['claimedInvite'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createClaimedInvite: { + claimedInvite: InferSelectResult; + }; + }, + Error, + CreateClaimedInviteInput['claimedInvite'] +>; +export function useCreateClaimedInviteMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: claimedInviteMutationKeys.create(), + mutationFn: (data: CreateClaimedInviteInput['claimedInvite']) => + getClient() + .claimedInvite.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: claimedInviteKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateCommitMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateCommitMutation.ts new file mode 100644 index 000000000..7e803c25a --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateCommitMutation.ts @@ -0,0 +1,80 @@ +/** + * Create mutation hook for Commit + * @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 { commitKeys } from '../query-keys'; +import { commitMutationKeys } from '../mutation-keys'; +import type { CommitSelect, CommitWithRelations, CreateCommitInput } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { CommitSelect, CommitWithRelations, CreateCommitInput } from '../../orm/input-types'; +/** + * Mutation hook for creating a Commit + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateCommitMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateCommitMutation( + params: { + selection: { + fields: S & CommitSelect; + } & HookStrictSelect, CommitSelect>; + } & Omit< + UseMutationOptions< + { + createCommit: { + commit: InferSelectResult; + }; + }, + Error, + CreateCommitInput['commit'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createCommit: { + commit: InferSelectResult; + }; + }, + Error, + CreateCommitInput['commit'] +>; +export function useCreateCommitMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: commitMutationKeys.create(), + mutationFn: (data: CreateCommitInput['commit']) => + getClient() + .commit.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: commitKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateConnectedAccountMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateConnectedAccountMutation.ts new file mode 100644 index 000000000..0e381461b --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateConnectedAccountMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for ConnectedAccount + * @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 { connectedAccountKeys } from '../query-keys'; +import { connectedAccountMutationKeys } from '../mutation-keys'; +import type { + ConnectedAccountSelect, + ConnectedAccountWithRelations, + CreateConnectedAccountInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ConnectedAccountSelect, + ConnectedAccountWithRelations, + CreateConnectedAccountInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a ConnectedAccount + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateConnectedAccountMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateConnectedAccountMutation( + params: { + selection: { + fields: S & ConnectedAccountSelect; + } & HookStrictSelect, ConnectedAccountSelect>; + } & Omit< + UseMutationOptions< + { + createConnectedAccount: { + connectedAccount: InferSelectResult; + }; + }, + Error, + CreateConnectedAccountInput['connectedAccount'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createConnectedAccount: { + connectedAccount: InferSelectResult; + }; + }, + Error, + CreateConnectedAccountInput['connectedAccount'] +>; +export function useCreateConnectedAccountMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: connectedAccountMutationKeys.create(), + mutationFn: (data: CreateConnectedAccountInput['connectedAccount']) => + getClient() + .connectedAccount.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: connectedAccountKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateConnectedAccountsModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateConnectedAccountsModuleMutation.ts new file mode 100644 index 000000000..d87d4cfc0 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateConnectedAccountsModuleMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for ConnectedAccountsModule + * @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 { connectedAccountsModuleKeys } from '../query-keys'; +import { connectedAccountsModuleMutationKeys } from '../mutation-keys'; +import type { + ConnectedAccountsModuleSelect, + ConnectedAccountsModuleWithRelations, + CreateConnectedAccountsModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ConnectedAccountsModuleSelect, + ConnectedAccountsModuleWithRelations, + CreateConnectedAccountsModuleInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a ConnectedAccountsModule + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateConnectedAccountsModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateConnectedAccountsModuleMutation( + params: { + selection: { + fields: S & ConnectedAccountsModuleSelect; + } & HookStrictSelect, ConnectedAccountsModuleSelect>; + } & Omit< + UseMutationOptions< + { + createConnectedAccountsModule: { + connectedAccountsModule: InferSelectResult; + }; + }, + Error, + CreateConnectedAccountsModuleInput['connectedAccountsModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createConnectedAccountsModule: { + connectedAccountsModule: InferSelectResult; + }; + }, + Error, + CreateConnectedAccountsModuleInput['connectedAccountsModule'] +>; +export function useCreateConnectedAccountsModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: connectedAccountsModuleMutationKeys.create(), + mutationFn: (data: CreateConnectedAccountsModuleInput['connectedAccountsModule']) => + getClient() + .connectedAccountsModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: connectedAccountsModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateCryptoAddressMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateCryptoAddressMutation.ts new file mode 100644 index 000000000..cddfe450c --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateCryptoAddressMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for CryptoAddress + * @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 { cryptoAddressKeys } from '../query-keys'; +import { cryptoAddressMutationKeys } from '../mutation-keys'; +import type { + CryptoAddressSelect, + CryptoAddressWithRelations, + CreateCryptoAddressInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + CryptoAddressSelect, + CryptoAddressWithRelations, + CreateCryptoAddressInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a CryptoAddress + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateCryptoAddressMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateCryptoAddressMutation( + params: { + selection: { + fields: S & CryptoAddressSelect; + } & HookStrictSelect, CryptoAddressSelect>; + } & Omit< + UseMutationOptions< + { + createCryptoAddress: { + cryptoAddress: InferSelectResult; + }; + }, + Error, + CreateCryptoAddressInput['cryptoAddress'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createCryptoAddress: { + cryptoAddress: InferSelectResult; + }; + }, + Error, + CreateCryptoAddressInput['cryptoAddress'] +>; +export function useCreateCryptoAddressMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: cryptoAddressMutationKeys.create(), + mutationFn: (data: CreateCryptoAddressInput['cryptoAddress']) => + getClient() + .cryptoAddress.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: cryptoAddressKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateCryptoAddressesModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateCryptoAddressesModuleMutation.ts new file mode 100644 index 000000000..f1a5c8c81 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateCryptoAddressesModuleMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for CryptoAddressesModule + * @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 { cryptoAddressesModuleKeys } from '../query-keys'; +import { cryptoAddressesModuleMutationKeys } from '../mutation-keys'; +import type { + CryptoAddressesModuleSelect, + CryptoAddressesModuleWithRelations, + CreateCryptoAddressesModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + CryptoAddressesModuleSelect, + CryptoAddressesModuleWithRelations, + CreateCryptoAddressesModuleInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a CryptoAddressesModule + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateCryptoAddressesModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateCryptoAddressesModuleMutation( + params: { + selection: { + fields: S & CryptoAddressesModuleSelect; + } & HookStrictSelect, CryptoAddressesModuleSelect>; + } & Omit< + UseMutationOptions< + { + createCryptoAddressesModule: { + cryptoAddressesModule: InferSelectResult; + }; + }, + Error, + CreateCryptoAddressesModuleInput['cryptoAddressesModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createCryptoAddressesModule: { + cryptoAddressesModule: InferSelectResult; + }; + }, + Error, + CreateCryptoAddressesModuleInput['cryptoAddressesModule'] +>; +export function useCreateCryptoAddressesModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: cryptoAddressesModuleMutationKeys.create(), + mutationFn: (data: CreateCryptoAddressesModuleInput['cryptoAddressesModule']) => + getClient() + .cryptoAddressesModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: cryptoAddressesModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateCryptoAuthModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateCryptoAuthModuleMutation.ts new file mode 100644 index 000000000..064327266 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateCryptoAuthModuleMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for CryptoAuthModule + * @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 { cryptoAuthModuleKeys } from '../query-keys'; +import { cryptoAuthModuleMutationKeys } from '../mutation-keys'; +import type { + CryptoAuthModuleSelect, + CryptoAuthModuleWithRelations, + CreateCryptoAuthModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + CryptoAuthModuleSelect, + CryptoAuthModuleWithRelations, + CreateCryptoAuthModuleInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a CryptoAuthModule + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateCryptoAuthModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateCryptoAuthModuleMutation( + params: { + selection: { + fields: S & CryptoAuthModuleSelect; + } & HookStrictSelect, CryptoAuthModuleSelect>; + } & Omit< + UseMutationOptions< + { + createCryptoAuthModule: { + cryptoAuthModule: InferSelectResult; + }; + }, + Error, + CreateCryptoAuthModuleInput['cryptoAuthModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createCryptoAuthModule: { + cryptoAuthModule: InferSelectResult; + }; + }, + Error, + CreateCryptoAuthModuleInput['cryptoAuthModule'] +>; +export function useCreateCryptoAuthModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: cryptoAuthModuleMutationKeys.create(), + mutationFn: (data: CreateCryptoAuthModuleInput['cryptoAuthModule']) => + getClient() + .cryptoAuthModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: cryptoAuthModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateDatabaseMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateDatabaseMutation.ts new file mode 100644 index 000000000..4ec18e908 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateDatabaseMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for Database + * @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 { databaseKeys } from '../query-keys'; +import { databaseMutationKeys } from '../mutation-keys'; +import type { + DatabaseSelect, + DatabaseWithRelations, + CreateDatabaseInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + DatabaseSelect, + DatabaseWithRelations, + CreateDatabaseInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a Database + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateDatabaseMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateDatabaseMutation( + params: { + selection: { + fields: S & DatabaseSelect; + } & HookStrictSelect, DatabaseSelect>; + } & Omit< + UseMutationOptions< + { + createDatabase: { + database: InferSelectResult; + }; + }, + Error, + CreateDatabaseInput['database'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createDatabase: { + database: InferSelectResult; + }; + }, + Error, + CreateDatabaseInput['database'] +>; +export function useCreateDatabaseMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: databaseMutationKeys.create(), + mutationFn: (data: CreateDatabaseInput['database']) => + getClient() + .database.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: databaseKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateDatabaseProvisionModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateDatabaseProvisionModuleMutation.ts new file mode 100644 index 000000000..7192fd95a --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateDatabaseProvisionModuleMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for DatabaseProvisionModule + * @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 { databaseProvisionModuleKeys } from '../query-keys'; +import { databaseProvisionModuleMutationKeys } from '../mutation-keys'; +import type { + DatabaseProvisionModuleSelect, + DatabaseProvisionModuleWithRelations, + CreateDatabaseProvisionModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + DatabaseProvisionModuleSelect, + DatabaseProvisionModuleWithRelations, + CreateDatabaseProvisionModuleInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a DatabaseProvisionModule + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateDatabaseProvisionModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateDatabaseProvisionModuleMutation( + params: { + selection: { + fields: S & DatabaseProvisionModuleSelect; + } & HookStrictSelect, DatabaseProvisionModuleSelect>; + } & Omit< + UseMutationOptions< + { + createDatabaseProvisionModule: { + databaseProvisionModule: InferSelectResult; + }; + }, + Error, + CreateDatabaseProvisionModuleInput['databaseProvisionModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createDatabaseProvisionModule: { + databaseProvisionModule: InferSelectResult; + }; + }, + Error, + CreateDatabaseProvisionModuleInput['databaseProvisionModule'] +>; +export function useCreateDatabaseProvisionModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: databaseProvisionModuleMutationKeys.create(), + mutationFn: (data: CreateDatabaseProvisionModuleInput['databaseProvisionModule']) => + getClient() + .databaseProvisionModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: databaseProvisionModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateDefaultIdsModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateDefaultIdsModuleMutation.ts new file mode 100644 index 000000000..58a7c6112 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateDefaultIdsModuleMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for DefaultIdsModule + * @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 { defaultIdsModuleKeys } from '../query-keys'; +import { defaultIdsModuleMutationKeys } from '../mutation-keys'; +import type { + DefaultIdsModuleSelect, + DefaultIdsModuleWithRelations, + CreateDefaultIdsModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + DefaultIdsModuleSelect, + DefaultIdsModuleWithRelations, + CreateDefaultIdsModuleInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a DefaultIdsModule + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateDefaultIdsModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateDefaultIdsModuleMutation( + params: { + selection: { + fields: S & DefaultIdsModuleSelect; + } & HookStrictSelect, DefaultIdsModuleSelect>; + } & Omit< + UseMutationOptions< + { + createDefaultIdsModule: { + defaultIdsModule: InferSelectResult; + }; + }, + Error, + CreateDefaultIdsModuleInput['defaultIdsModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createDefaultIdsModule: { + defaultIdsModule: InferSelectResult; + }; + }, + Error, + CreateDefaultIdsModuleInput['defaultIdsModule'] +>; +export function useCreateDefaultIdsModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: defaultIdsModuleMutationKeys.create(), + mutationFn: (data: CreateDefaultIdsModuleInput['defaultIdsModule']) => + getClient() + .defaultIdsModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: defaultIdsModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateDenormalizedTableFieldMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateDenormalizedTableFieldMutation.ts new file mode 100644 index 000000000..2d2d8334b --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateDenormalizedTableFieldMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for DenormalizedTableField + * @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 { denormalizedTableFieldKeys } from '../query-keys'; +import { denormalizedTableFieldMutationKeys } from '../mutation-keys'; +import type { + DenormalizedTableFieldSelect, + DenormalizedTableFieldWithRelations, + CreateDenormalizedTableFieldInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + DenormalizedTableFieldSelect, + DenormalizedTableFieldWithRelations, + CreateDenormalizedTableFieldInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a DenormalizedTableField + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateDenormalizedTableFieldMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateDenormalizedTableFieldMutation( + params: { + selection: { + fields: S & DenormalizedTableFieldSelect; + } & HookStrictSelect, DenormalizedTableFieldSelect>; + } & Omit< + UseMutationOptions< + { + createDenormalizedTableField: { + denormalizedTableField: InferSelectResult; + }; + }, + Error, + CreateDenormalizedTableFieldInput['denormalizedTableField'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createDenormalizedTableField: { + denormalizedTableField: InferSelectResult; + }; + }, + Error, + CreateDenormalizedTableFieldInput['denormalizedTableField'] +>; +export function useCreateDenormalizedTableFieldMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: denormalizedTableFieldMutationKeys.create(), + mutationFn: (data: CreateDenormalizedTableFieldInput['denormalizedTableField']) => + getClient() + .denormalizedTableField.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: denormalizedTableFieldKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateDomainMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateDomainMutation.ts new file mode 100644 index 000000000..75ee25a3c --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateDomainMutation.ts @@ -0,0 +1,80 @@ +/** + * Create mutation hook for Domain + * @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 { domainKeys } from '../query-keys'; +import { domainMutationKeys } from '../mutation-keys'; +import type { DomainSelect, DomainWithRelations, CreateDomainInput } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { DomainSelect, DomainWithRelations, CreateDomainInput } from '../../orm/input-types'; +/** + * Mutation hook for creating a Domain + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateDomainMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateDomainMutation( + params: { + selection: { + fields: S & DomainSelect; + } & HookStrictSelect, DomainSelect>; + } & Omit< + UseMutationOptions< + { + createDomain: { + domain: InferSelectResult; + }; + }, + Error, + CreateDomainInput['domain'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createDomain: { + domain: InferSelectResult; + }; + }, + Error, + CreateDomainInput['domain'] +>; +export function useCreateDomainMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: domainMutationKeys.create(), + mutationFn: (data: CreateDomainInput['domain']) => + getClient() + .domain.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: domainKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateEmailMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateEmailMutation.ts new file mode 100644 index 000000000..ff6741c90 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateEmailMutation.ts @@ -0,0 +1,80 @@ +/** + * Create mutation hook for Email + * @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 { emailKeys } from '../query-keys'; +import { emailMutationKeys } from '../mutation-keys'; +import type { EmailSelect, EmailWithRelations, CreateEmailInput } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { EmailSelect, EmailWithRelations, CreateEmailInput } from '../../orm/input-types'; +/** + * Mutation hook for creating a Email + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateEmailMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateEmailMutation( + params: { + selection: { + fields: S & EmailSelect; + } & HookStrictSelect, EmailSelect>; + } & Omit< + UseMutationOptions< + { + createEmail: { + email: InferSelectResult; + }; + }, + Error, + CreateEmailInput['email'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createEmail: { + email: InferSelectResult; + }; + }, + Error, + CreateEmailInput['email'] +>; +export function useCreateEmailMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: emailMutationKeys.create(), + mutationFn: (data: CreateEmailInput['email']) => + getClient() + .email.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: emailKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateEmailsModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateEmailsModuleMutation.ts new file mode 100644 index 000000000..894488ce3 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateEmailsModuleMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for EmailsModule + * @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 { emailsModuleKeys } from '../query-keys'; +import { emailsModuleMutationKeys } from '../mutation-keys'; +import type { + EmailsModuleSelect, + EmailsModuleWithRelations, + CreateEmailsModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + EmailsModuleSelect, + EmailsModuleWithRelations, + CreateEmailsModuleInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a EmailsModule + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateEmailsModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateEmailsModuleMutation( + params: { + selection: { + fields: S & EmailsModuleSelect; + } & HookStrictSelect, EmailsModuleSelect>; + } & Omit< + UseMutationOptions< + { + createEmailsModule: { + emailsModule: InferSelectResult; + }; + }, + Error, + CreateEmailsModuleInput['emailsModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createEmailsModule: { + emailsModule: InferSelectResult; + }; + }, + Error, + CreateEmailsModuleInput['emailsModule'] +>; +export function useCreateEmailsModuleMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: emailsModuleMutationKeys.create(), + mutationFn: (data: CreateEmailsModuleInput['emailsModule']) => + getClient() + .emailsModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: emailsModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateEncryptedSecretsModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateEncryptedSecretsModuleMutation.ts new file mode 100644 index 000000000..c68fbc4d6 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateEncryptedSecretsModuleMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for EncryptedSecretsModule + * @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 { encryptedSecretsModuleKeys } from '../query-keys'; +import { encryptedSecretsModuleMutationKeys } from '../mutation-keys'; +import type { + EncryptedSecretsModuleSelect, + EncryptedSecretsModuleWithRelations, + CreateEncryptedSecretsModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + EncryptedSecretsModuleSelect, + EncryptedSecretsModuleWithRelations, + CreateEncryptedSecretsModuleInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a EncryptedSecretsModule + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateEncryptedSecretsModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateEncryptedSecretsModuleMutation( + params: { + selection: { + fields: S & EncryptedSecretsModuleSelect; + } & HookStrictSelect, EncryptedSecretsModuleSelect>; + } & Omit< + UseMutationOptions< + { + createEncryptedSecretsModule: { + encryptedSecretsModule: InferSelectResult; + }; + }, + Error, + CreateEncryptedSecretsModuleInput['encryptedSecretsModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createEncryptedSecretsModule: { + encryptedSecretsModule: InferSelectResult; + }; + }, + Error, + CreateEncryptedSecretsModuleInput['encryptedSecretsModule'] +>; +export function useCreateEncryptedSecretsModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: encryptedSecretsModuleMutationKeys.create(), + mutationFn: (data: CreateEncryptedSecretsModuleInput['encryptedSecretsModule']) => + getClient() + .encryptedSecretsModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: encryptedSecretsModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateFieldModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateFieldModuleMutation.ts new file mode 100644 index 000000000..e66b28b32 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateFieldModuleMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for FieldModule + * @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 { fieldModuleKeys } from '../query-keys'; +import { fieldModuleMutationKeys } from '../mutation-keys'; +import type { + FieldModuleSelect, + FieldModuleWithRelations, + CreateFieldModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + FieldModuleSelect, + FieldModuleWithRelations, + CreateFieldModuleInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a FieldModule + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateFieldModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateFieldModuleMutation( + params: { + selection: { + fields: S & FieldModuleSelect; + } & HookStrictSelect, FieldModuleSelect>; + } & Omit< + UseMutationOptions< + { + createFieldModule: { + fieldModule: InferSelectResult; + }; + }, + Error, + CreateFieldModuleInput['fieldModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createFieldModule: { + fieldModule: InferSelectResult; + }; + }, + Error, + CreateFieldModuleInput['fieldModule'] +>; +export function useCreateFieldModuleMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: fieldModuleMutationKeys.create(), + mutationFn: (data: CreateFieldModuleInput['fieldModule']) => + getClient() + .fieldModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: fieldModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateFieldMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateFieldMutation.ts new file mode 100644 index 000000000..a90bffd87 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateFieldMutation.ts @@ -0,0 +1,80 @@ +/** + * Create mutation hook for Field + * @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 { fieldKeys } from '../query-keys'; +import { fieldMutationKeys } from '../mutation-keys'; +import type { FieldSelect, FieldWithRelations, CreateFieldInput } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { FieldSelect, FieldWithRelations, CreateFieldInput } from '../../orm/input-types'; +/** + * Mutation hook for creating a Field + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateFieldMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateFieldMutation( + params: { + selection: { + fields: S & FieldSelect; + } & HookStrictSelect, FieldSelect>; + } & Omit< + UseMutationOptions< + { + createField: { + field: InferSelectResult; + }; + }, + Error, + CreateFieldInput['field'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createField: { + field: InferSelectResult; + }; + }, + Error, + CreateFieldInput['field'] +>; +export function useCreateFieldMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: fieldMutationKeys.create(), + mutationFn: (data: CreateFieldInput['field']) => + getClient() + .field.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: fieldKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateForeignKeyConstraintMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateForeignKeyConstraintMutation.ts new file mode 100644 index 000000000..e7007f9c8 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateForeignKeyConstraintMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for ForeignKeyConstraint + * @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 { foreignKeyConstraintKeys } from '../query-keys'; +import { foreignKeyConstraintMutationKeys } from '../mutation-keys'; +import type { + ForeignKeyConstraintSelect, + ForeignKeyConstraintWithRelations, + CreateForeignKeyConstraintInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ForeignKeyConstraintSelect, + ForeignKeyConstraintWithRelations, + CreateForeignKeyConstraintInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a ForeignKeyConstraint + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateForeignKeyConstraintMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateForeignKeyConstraintMutation( + params: { + selection: { + fields: S & ForeignKeyConstraintSelect; + } & HookStrictSelect, ForeignKeyConstraintSelect>; + } & Omit< + UseMutationOptions< + { + createForeignKeyConstraint: { + foreignKeyConstraint: InferSelectResult; + }; + }, + Error, + CreateForeignKeyConstraintInput['foreignKeyConstraint'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createForeignKeyConstraint: { + foreignKeyConstraint: InferSelectResult; + }; + }, + Error, + CreateForeignKeyConstraintInput['foreignKeyConstraint'] +>; +export function useCreateForeignKeyConstraintMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: foreignKeyConstraintMutationKeys.create(), + mutationFn: (data: CreateForeignKeyConstraintInput['foreignKeyConstraint']) => + getClient() + .foreignKeyConstraint.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: foreignKeyConstraintKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateFullTextSearchMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateFullTextSearchMutation.ts new file mode 100644 index 000000000..ac28e0a6f --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateFullTextSearchMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for FullTextSearch + * @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 { fullTextSearchKeys } from '../query-keys'; +import { fullTextSearchMutationKeys } from '../mutation-keys'; +import type { + FullTextSearchSelect, + FullTextSearchWithRelations, + CreateFullTextSearchInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + FullTextSearchSelect, + FullTextSearchWithRelations, + CreateFullTextSearchInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a FullTextSearch + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateFullTextSearchMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateFullTextSearchMutation( + params: { + selection: { + fields: S & FullTextSearchSelect; + } & HookStrictSelect, FullTextSearchSelect>; + } & Omit< + UseMutationOptions< + { + createFullTextSearch: { + fullTextSearch: InferSelectResult; + }; + }, + Error, + CreateFullTextSearchInput['fullTextSearch'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createFullTextSearch: { + fullTextSearch: InferSelectResult; + }; + }, + Error, + CreateFullTextSearchInput['fullTextSearch'] +>; +export function useCreateFullTextSearchMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: fullTextSearchMutationKeys.create(), + mutationFn: (data: CreateFullTextSearchInput['fullTextSearch']) => + getClient() + .fullTextSearch.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: fullTextSearchKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateGetAllRecordMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateGetAllRecordMutation.ts new file mode 100644 index 000000000..d7761690b --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateGetAllRecordMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for GetAllRecord + * @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 { getAllRecordKeys } from '../query-keys'; +import { getAllRecordMutationKeys } from '../mutation-keys'; +import type { + GetAllRecordSelect, + GetAllRecordWithRelations, + CreateGetAllRecordInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + GetAllRecordSelect, + GetAllRecordWithRelations, + CreateGetAllRecordInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a GetAllRecord + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateGetAllRecordMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateGetAllRecordMutation( + params: { + selection: { + fields: S & GetAllRecordSelect; + } & HookStrictSelect, GetAllRecordSelect>; + } & Omit< + UseMutationOptions< + { + createGetAllRecord: { + getAllRecord: InferSelectResult; + }; + }, + Error, + CreateGetAllRecordInput['getAllRecord'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createGetAllRecord: { + getAllRecord: InferSelectResult; + }; + }, + Error, + CreateGetAllRecordInput['getAllRecord'] +>; +export function useCreateGetAllRecordMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: getAllRecordMutationKeys.create(), + mutationFn: (data: CreateGetAllRecordInput['getAllRecord']) => + getClient() + .getAllRecord.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: getAllRecordKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateHierarchyModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateHierarchyModuleMutation.ts new file mode 100644 index 000000000..0ddc11ad7 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateHierarchyModuleMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for HierarchyModule + * @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 { hierarchyModuleKeys } from '../query-keys'; +import { hierarchyModuleMutationKeys } from '../mutation-keys'; +import type { + HierarchyModuleSelect, + HierarchyModuleWithRelations, + CreateHierarchyModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + HierarchyModuleSelect, + HierarchyModuleWithRelations, + CreateHierarchyModuleInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a HierarchyModule + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateHierarchyModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateHierarchyModuleMutation( + params: { + selection: { + fields: S & HierarchyModuleSelect; + } & HookStrictSelect, HierarchyModuleSelect>; + } & Omit< + UseMutationOptions< + { + createHierarchyModule: { + hierarchyModule: InferSelectResult; + }; + }, + Error, + CreateHierarchyModuleInput['hierarchyModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createHierarchyModule: { + hierarchyModule: InferSelectResult; + }; + }, + Error, + CreateHierarchyModuleInput['hierarchyModule'] +>; +export function useCreateHierarchyModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: hierarchyModuleMutationKeys.create(), + mutationFn: (data: CreateHierarchyModuleInput['hierarchyModule']) => + getClient() + .hierarchyModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: hierarchyModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateIndexMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateIndexMutation.ts new file mode 100644 index 000000000..d598e78bb --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateIndexMutation.ts @@ -0,0 +1,80 @@ +/** + * Create mutation hook for Index + * @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 { indexKeys } from '../query-keys'; +import { indexMutationKeys } from '../mutation-keys'; +import type { IndexSelect, IndexWithRelations, CreateIndexInput } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { IndexSelect, IndexWithRelations, CreateIndexInput } from '../../orm/input-types'; +/** + * Mutation hook for creating a Index + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateIndexMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateIndexMutation( + params: { + selection: { + fields: S & IndexSelect; + } & HookStrictSelect, IndexSelect>; + } & Omit< + UseMutationOptions< + { + createIndex: { + index: InferSelectResult; + }; + }, + Error, + CreateIndexInput['index'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createIndex: { + index: InferSelectResult; + }; + }, + Error, + CreateIndexInput['index'] +>; +export function useCreateIndexMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: indexMutationKeys.create(), + mutationFn: (data: CreateIndexInput['index']) => + getClient() + .index.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: indexKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateInviteMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateInviteMutation.ts new file mode 100644 index 000000000..928d4f0cd --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateInviteMutation.ts @@ -0,0 +1,80 @@ +/** + * Create mutation hook for Invite + * @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 { inviteKeys } from '../query-keys'; +import { inviteMutationKeys } from '../mutation-keys'; +import type { InviteSelect, InviteWithRelations, CreateInviteInput } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { InviteSelect, InviteWithRelations, CreateInviteInput } from '../../orm/input-types'; +/** + * Mutation hook for creating a Invite + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateInviteMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateInviteMutation( + params: { + selection: { + fields: S & InviteSelect; + } & HookStrictSelect, InviteSelect>; + } & Omit< + UseMutationOptions< + { + createInvite: { + invite: InferSelectResult; + }; + }, + Error, + CreateInviteInput['invite'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createInvite: { + invite: InferSelectResult; + }; + }, + Error, + CreateInviteInput['invite'] +>; +export function useCreateInviteMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: inviteMutationKeys.create(), + mutationFn: (data: CreateInviteInput['invite']) => + getClient() + .invite.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: inviteKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateInvitesModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateInvitesModuleMutation.ts new file mode 100644 index 000000000..6d740e5e3 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateInvitesModuleMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for InvitesModule + * @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 { invitesModuleKeys } from '../query-keys'; +import { invitesModuleMutationKeys } from '../mutation-keys'; +import type { + InvitesModuleSelect, + InvitesModuleWithRelations, + CreateInvitesModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + InvitesModuleSelect, + InvitesModuleWithRelations, + CreateInvitesModuleInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a InvitesModule + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateInvitesModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateInvitesModuleMutation( + params: { + selection: { + fields: S & InvitesModuleSelect; + } & HookStrictSelect, InvitesModuleSelect>; + } & Omit< + UseMutationOptions< + { + createInvitesModule: { + invitesModule: InferSelectResult; + }; + }, + Error, + CreateInvitesModuleInput['invitesModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createInvitesModule: { + invitesModule: InferSelectResult; + }; + }, + Error, + CreateInvitesModuleInput['invitesModule'] +>; +export function useCreateInvitesModuleMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: invitesModuleMutationKeys.create(), + mutationFn: (data: CreateInvitesModuleInput['invitesModule']) => + getClient() + .invitesModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: invitesModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateLevelsModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateLevelsModuleMutation.ts new file mode 100644 index 000000000..4f7a8d98f --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateLevelsModuleMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for LevelsModule + * @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 { levelsModuleKeys } from '../query-keys'; +import { levelsModuleMutationKeys } from '../mutation-keys'; +import type { + LevelsModuleSelect, + LevelsModuleWithRelations, + CreateLevelsModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + LevelsModuleSelect, + LevelsModuleWithRelations, + CreateLevelsModuleInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a LevelsModule + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateLevelsModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateLevelsModuleMutation( + params: { + selection: { + fields: S & LevelsModuleSelect; + } & HookStrictSelect, LevelsModuleSelect>; + } & Omit< + UseMutationOptions< + { + createLevelsModule: { + levelsModule: InferSelectResult; + }; + }, + Error, + CreateLevelsModuleInput['levelsModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createLevelsModule: { + levelsModule: InferSelectResult; + }; + }, + Error, + CreateLevelsModuleInput['levelsModule'] +>; +export function useCreateLevelsModuleMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: levelsModuleMutationKeys.create(), + mutationFn: (data: CreateLevelsModuleInput['levelsModule']) => + getClient() + .levelsModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: levelsModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateLimitFunctionMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateLimitFunctionMutation.ts new file mode 100644 index 000000000..fe19f6107 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateLimitFunctionMutation.ts @@ -0,0 +1,88 @@ +/** + * 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/useCreateLimitsModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateLimitsModuleMutation.ts new file mode 100644 index 000000000..c7c2579d2 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateLimitsModuleMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for LimitsModule + * @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 { limitsModuleKeys } from '../query-keys'; +import { limitsModuleMutationKeys } from '../mutation-keys'; +import type { + LimitsModuleSelect, + LimitsModuleWithRelations, + CreateLimitsModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + LimitsModuleSelect, + LimitsModuleWithRelations, + CreateLimitsModuleInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a LimitsModule + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateLimitsModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateLimitsModuleMutation( + params: { + selection: { + fields: S & LimitsModuleSelect; + } & HookStrictSelect, LimitsModuleSelect>; + } & Omit< + UseMutationOptions< + { + createLimitsModule: { + limitsModule: InferSelectResult; + }; + }, + Error, + CreateLimitsModuleInput['limitsModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createLimitsModule: { + limitsModule: InferSelectResult; + }; + }, + Error, + CreateLimitsModuleInput['limitsModule'] +>; +export function useCreateLimitsModuleMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: limitsModuleMutationKeys.create(), + mutationFn: (data: CreateLimitsModuleInput['limitsModule']) => + getClient() + .limitsModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: limitsModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateMembershipTypeMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateMembershipTypeMutation.ts new file mode 100644 index 000000000..d8219655f --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateMembershipTypeMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for MembershipType + * @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 { membershipTypeKeys } from '../query-keys'; +import { membershipTypeMutationKeys } from '../mutation-keys'; +import type { + MembershipTypeSelect, + MembershipTypeWithRelations, + CreateMembershipTypeInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + MembershipTypeSelect, + MembershipTypeWithRelations, + CreateMembershipTypeInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a MembershipType + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateMembershipTypeMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateMembershipTypeMutation( + params: { + selection: { + fields: S & MembershipTypeSelect; + } & HookStrictSelect, MembershipTypeSelect>; + } & Omit< + UseMutationOptions< + { + createMembershipType: { + membershipType: InferSelectResult; + }; + }, + Error, + CreateMembershipTypeInput['membershipType'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createMembershipType: { + membershipType: InferSelectResult; + }; + }, + Error, + CreateMembershipTypeInput['membershipType'] +>; +export function useCreateMembershipTypeMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: membershipTypeMutationKeys.create(), + mutationFn: (data: CreateMembershipTypeInput['membershipType']) => + getClient() + .membershipType.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: membershipTypeKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateMembershipTypesModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateMembershipTypesModuleMutation.ts new file mode 100644 index 000000000..f2455629c --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateMembershipTypesModuleMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for MembershipTypesModule + * @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 { membershipTypesModuleKeys } from '../query-keys'; +import { membershipTypesModuleMutationKeys } from '../mutation-keys'; +import type { + MembershipTypesModuleSelect, + MembershipTypesModuleWithRelations, + CreateMembershipTypesModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + MembershipTypesModuleSelect, + MembershipTypesModuleWithRelations, + CreateMembershipTypesModuleInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a MembershipTypesModule + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateMembershipTypesModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateMembershipTypesModuleMutation( + params: { + selection: { + fields: S & MembershipTypesModuleSelect; + } & HookStrictSelect, MembershipTypesModuleSelect>; + } & Omit< + UseMutationOptions< + { + createMembershipTypesModule: { + membershipTypesModule: InferSelectResult; + }; + }, + Error, + CreateMembershipTypesModuleInput['membershipTypesModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createMembershipTypesModule: { + membershipTypesModule: InferSelectResult; + }; + }, + Error, + CreateMembershipTypesModuleInput['membershipTypesModule'] +>; +export function useCreateMembershipTypesModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: membershipTypesModuleMutationKeys.create(), + mutationFn: (data: CreateMembershipTypesModuleInput['membershipTypesModule']) => + getClient() + .membershipTypesModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: membershipTypesModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateMembershipsModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateMembershipsModuleMutation.ts new file mode 100644 index 000000000..4d9fe8861 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateMembershipsModuleMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for MembershipsModule + * @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 { membershipsModuleKeys } from '../query-keys'; +import { membershipsModuleMutationKeys } from '../mutation-keys'; +import type { + MembershipsModuleSelect, + MembershipsModuleWithRelations, + CreateMembershipsModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + MembershipsModuleSelect, + MembershipsModuleWithRelations, + CreateMembershipsModuleInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a MembershipsModule + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateMembershipsModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateMembershipsModuleMutation( + params: { + selection: { + fields: S & MembershipsModuleSelect; + } & HookStrictSelect, MembershipsModuleSelect>; + } & Omit< + UseMutationOptions< + { + createMembershipsModule: { + membershipsModule: InferSelectResult; + }; + }, + Error, + CreateMembershipsModuleInput['membershipsModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createMembershipsModule: { + membershipsModule: InferSelectResult; + }; + }, + Error, + CreateMembershipsModuleInput['membershipsModule'] +>; +export function useCreateMembershipsModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: membershipsModuleMutationKeys.create(), + mutationFn: (data: CreateMembershipsModuleInput['membershipsModule']) => + getClient() + .membershipsModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: membershipsModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateNodeTypeRegistryMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateNodeTypeRegistryMutation.ts new file mode 100644 index 000000000..584e4c995 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateNodeTypeRegistryMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for NodeTypeRegistry + * @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 { nodeTypeRegistryKeys } from '../query-keys'; +import { nodeTypeRegistryMutationKeys } from '../mutation-keys'; +import type { + NodeTypeRegistrySelect, + NodeTypeRegistryWithRelations, + CreateNodeTypeRegistryInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + NodeTypeRegistrySelect, + NodeTypeRegistryWithRelations, + CreateNodeTypeRegistryInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a NodeTypeRegistry + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateNodeTypeRegistryMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateNodeTypeRegistryMutation( + params: { + selection: { + fields: S & NodeTypeRegistrySelect; + } & HookStrictSelect, NodeTypeRegistrySelect>; + } & Omit< + UseMutationOptions< + { + createNodeTypeRegistry: { + nodeTypeRegistry: InferSelectResult; + }; + }, + Error, + CreateNodeTypeRegistryInput['nodeTypeRegistry'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createNodeTypeRegistry: { + nodeTypeRegistry: InferSelectResult; + }; + }, + Error, + CreateNodeTypeRegistryInput['nodeTypeRegistry'] +>; +export function useCreateNodeTypeRegistryMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: nodeTypeRegistryMutationKeys.create(), + mutationFn: (data: CreateNodeTypeRegistryInput['nodeTypeRegistry']) => + getClient() + .nodeTypeRegistry.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: nodeTypeRegistryKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateObjectMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateObjectMutation.ts new file mode 100644 index 000000000..c9d4c9828 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateObjectMutation.ts @@ -0,0 +1,80 @@ +/** + * Create mutation hook for Object + * @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 { objectKeys } from '../query-keys'; +import { objectMutationKeys } from '../mutation-keys'; +import type { ObjectSelect, ObjectWithRelations, CreateObjectInput } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ObjectSelect, ObjectWithRelations, CreateObjectInput } from '../../orm/input-types'; +/** + * Mutation hook for creating a Object + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateObjectMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateObjectMutation( + params: { + selection: { + fields: S & ObjectSelect; + } & HookStrictSelect, ObjectSelect>; + } & Omit< + UseMutationOptions< + { + createObject: { + object: InferSelectResult; + }; + }, + Error, + CreateObjectInput['object'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createObject: { + object: InferSelectResult; + }; + }, + Error, + CreateObjectInput['object'] +>; +export function useCreateObjectMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: objectMutationKeys.create(), + mutationFn: (data: CreateObjectInput['object']) => + getClient() + .object.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: objectKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgAdminGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgAdminGrantMutation.ts new file mode 100644 index 000000000..00687d7da --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgAdminGrantMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for OrgAdminGrant + * @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 { orgAdminGrantKeys } from '../query-keys'; +import { orgAdminGrantMutationKeys } from '../mutation-keys'; +import type { + OrgAdminGrantSelect, + OrgAdminGrantWithRelations, + CreateOrgAdminGrantInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgAdminGrantSelect, + OrgAdminGrantWithRelations, + CreateOrgAdminGrantInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a OrgAdminGrant + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateOrgAdminGrantMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateOrgAdminGrantMutation( + params: { + selection: { + fields: S & OrgAdminGrantSelect; + } & HookStrictSelect, OrgAdminGrantSelect>; + } & Omit< + UseMutationOptions< + { + createOrgAdminGrant: { + orgAdminGrant: InferSelectResult; + }; + }, + Error, + CreateOrgAdminGrantInput['orgAdminGrant'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createOrgAdminGrant: { + orgAdminGrant: InferSelectResult; + }; + }, + Error, + CreateOrgAdminGrantInput['orgAdminGrant'] +>; +export function useCreateOrgAdminGrantMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgAdminGrantMutationKeys.create(), + mutationFn: (data: CreateOrgAdminGrantInput['orgAdminGrant']) => + getClient() + .orgAdminGrant.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: orgAdminGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgClaimedInviteMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgClaimedInviteMutation.ts new file mode 100644 index 000000000..4ee4b71c3 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgClaimedInviteMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for OrgClaimedInvite + * @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 { orgClaimedInviteKeys } from '../query-keys'; +import { orgClaimedInviteMutationKeys } from '../mutation-keys'; +import type { + OrgClaimedInviteSelect, + OrgClaimedInviteWithRelations, + CreateOrgClaimedInviteInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgClaimedInviteSelect, + OrgClaimedInviteWithRelations, + CreateOrgClaimedInviteInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a OrgClaimedInvite + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateOrgClaimedInviteMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateOrgClaimedInviteMutation( + params: { + selection: { + fields: S & OrgClaimedInviteSelect; + } & HookStrictSelect, OrgClaimedInviteSelect>; + } & Omit< + UseMutationOptions< + { + createOrgClaimedInvite: { + orgClaimedInvite: InferSelectResult; + }; + }, + Error, + CreateOrgClaimedInviteInput['orgClaimedInvite'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createOrgClaimedInvite: { + orgClaimedInvite: InferSelectResult; + }; + }, + Error, + CreateOrgClaimedInviteInput['orgClaimedInvite'] +>; +export function useCreateOrgClaimedInviteMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgClaimedInviteMutationKeys.create(), + mutationFn: (data: CreateOrgClaimedInviteInput['orgClaimedInvite']) => + getClient() + .orgClaimedInvite.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: orgClaimedInviteKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgGrantMutation.ts new file mode 100644 index 000000000..391138997 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgGrantMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for OrgGrant + * @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 { orgGrantKeys } from '../query-keys'; +import { orgGrantMutationKeys } from '../mutation-keys'; +import type { + OrgGrantSelect, + OrgGrantWithRelations, + CreateOrgGrantInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgGrantSelect, + OrgGrantWithRelations, + CreateOrgGrantInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a OrgGrant + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateOrgGrantMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateOrgGrantMutation( + params: { + selection: { + fields: S & OrgGrantSelect; + } & HookStrictSelect, OrgGrantSelect>; + } & Omit< + UseMutationOptions< + { + createOrgGrant: { + orgGrant: InferSelectResult; + }; + }, + Error, + CreateOrgGrantInput['orgGrant'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createOrgGrant: { + orgGrant: InferSelectResult; + }; + }, + Error, + CreateOrgGrantInput['orgGrant'] +>; +export function useCreateOrgGrantMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgGrantMutationKeys.create(), + mutationFn: (data: CreateOrgGrantInput['orgGrant']) => + getClient() + .orgGrant.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: orgGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgInviteMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgInviteMutation.ts new file mode 100644 index 000000000..6d65fa995 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgInviteMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for OrgInvite + * @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 { orgInviteKeys } from '../query-keys'; +import { orgInviteMutationKeys } from '../mutation-keys'; +import type { + OrgInviteSelect, + OrgInviteWithRelations, + CreateOrgInviteInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgInviteSelect, + OrgInviteWithRelations, + CreateOrgInviteInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a OrgInvite + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateOrgInviteMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateOrgInviteMutation( + params: { + selection: { + fields: S & OrgInviteSelect; + } & HookStrictSelect, OrgInviteSelect>; + } & Omit< + UseMutationOptions< + { + createOrgInvite: { + orgInvite: InferSelectResult; + }; + }, + Error, + CreateOrgInviteInput['orgInvite'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createOrgInvite: { + orgInvite: InferSelectResult; + }; + }, + Error, + CreateOrgInviteInput['orgInvite'] +>; +export function useCreateOrgInviteMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgInviteMutationKeys.create(), + mutationFn: (data: CreateOrgInviteInput['orgInvite']) => + getClient() + .orgInvite.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: orgInviteKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgLimitDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgLimitDefaultMutation.ts new file mode 100644 index 000000000..af559e6a2 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgLimitDefaultMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for OrgLimitDefault + * @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 { orgLimitDefaultKeys } from '../query-keys'; +import { orgLimitDefaultMutationKeys } from '../mutation-keys'; +import type { + OrgLimitDefaultSelect, + OrgLimitDefaultWithRelations, + CreateOrgLimitDefaultInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgLimitDefaultSelect, + OrgLimitDefaultWithRelations, + CreateOrgLimitDefaultInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a OrgLimitDefault + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateOrgLimitDefaultMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateOrgLimitDefaultMutation( + params: { + selection: { + fields: S & OrgLimitDefaultSelect; + } & HookStrictSelect, OrgLimitDefaultSelect>; + } & Omit< + UseMutationOptions< + { + createOrgLimitDefault: { + orgLimitDefault: InferSelectResult; + }; + }, + Error, + CreateOrgLimitDefaultInput['orgLimitDefault'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createOrgLimitDefault: { + orgLimitDefault: InferSelectResult; + }; + }, + Error, + CreateOrgLimitDefaultInput['orgLimitDefault'] +>; +export function useCreateOrgLimitDefaultMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgLimitDefaultMutationKeys.create(), + mutationFn: (data: CreateOrgLimitDefaultInput['orgLimitDefault']) => + getClient() + .orgLimitDefault.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: orgLimitDefaultKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgLimitMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgLimitMutation.ts new file mode 100644 index 000000000..33ed2f69e --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgLimitMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for OrgLimit + * @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 { orgLimitKeys } from '../query-keys'; +import { orgLimitMutationKeys } from '../mutation-keys'; +import type { + OrgLimitSelect, + OrgLimitWithRelations, + CreateOrgLimitInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgLimitSelect, + OrgLimitWithRelations, + CreateOrgLimitInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a OrgLimit + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateOrgLimitMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateOrgLimitMutation( + params: { + selection: { + fields: S & OrgLimitSelect; + } & HookStrictSelect, OrgLimitSelect>; + } & Omit< + UseMutationOptions< + { + createOrgLimit: { + orgLimit: InferSelectResult; + }; + }, + Error, + CreateOrgLimitInput['orgLimit'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createOrgLimit: { + orgLimit: InferSelectResult; + }; + }, + Error, + CreateOrgLimitInput['orgLimit'] +>; +export function useCreateOrgLimitMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgLimitMutationKeys.create(), + mutationFn: (data: CreateOrgLimitInput['orgLimit']) => + getClient() + .orgLimit.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: orgLimitKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgMemberMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgMemberMutation.ts new file mode 100644 index 000000000..73bbfce52 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgMemberMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for OrgMember + * @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 { orgMemberKeys } from '../query-keys'; +import { orgMemberMutationKeys } from '../mutation-keys'; +import type { + OrgMemberSelect, + OrgMemberWithRelations, + CreateOrgMemberInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgMemberSelect, + OrgMemberWithRelations, + CreateOrgMemberInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a OrgMember + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateOrgMemberMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateOrgMemberMutation( + params: { + selection: { + fields: S & OrgMemberSelect; + } & HookStrictSelect, OrgMemberSelect>; + } & Omit< + UseMutationOptions< + { + createOrgMember: { + orgMember: InferSelectResult; + }; + }, + Error, + CreateOrgMemberInput['orgMember'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createOrgMember: { + orgMember: InferSelectResult; + }; + }, + Error, + CreateOrgMemberInput['orgMember'] +>; +export function useCreateOrgMemberMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgMemberMutationKeys.create(), + mutationFn: (data: CreateOrgMemberInput['orgMember']) => + getClient() + .orgMember.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: orgMemberKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgMembershipDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgMembershipDefaultMutation.ts new file mode 100644 index 000000000..9c1290cfb --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgMembershipDefaultMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for OrgMembershipDefault + * @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 { orgMembershipDefaultKeys } from '../query-keys'; +import { orgMembershipDefaultMutationKeys } from '../mutation-keys'; +import type { + OrgMembershipDefaultSelect, + OrgMembershipDefaultWithRelations, + CreateOrgMembershipDefaultInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgMembershipDefaultSelect, + OrgMembershipDefaultWithRelations, + CreateOrgMembershipDefaultInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a OrgMembershipDefault + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateOrgMembershipDefaultMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateOrgMembershipDefaultMutation( + params: { + selection: { + fields: S & OrgMembershipDefaultSelect; + } & HookStrictSelect, OrgMembershipDefaultSelect>; + } & Omit< + UseMutationOptions< + { + createOrgMembershipDefault: { + orgMembershipDefault: InferSelectResult; + }; + }, + Error, + CreateOrgMembershipDefaultInput['orgMembershipDefault'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createOrgMembershipDefault: { + orgMembershipDefault: InferSelectResult; + }; + }, + Error, + CreateOrgMembershipDefaultInput['orgMembershipDefault'] +>; +export function useCreateOrgMembershipDefaultMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgMembershipDefaultMutationKeys.create(), + mutationFn: (data: CreateOrgMembershipDefaultInput['orgMembershipDefault']) => + getClient() + .orgMembershipDefault.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: orgMembershipDefaultKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgMembershipMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgMembershipMutation.ts new file mode 100644 index 000000000..e2b7c7e9b --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgMembershipMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for OrgMembership + * @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 { orgMembershipKeys } from '../query-keys'; +import { orgMembershipMutationKeys } from '../mutation-keys'; +import type { + OrgMembershipSelect, + OrgMembershipWithRelations, + CreateOrgMembershipInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgMembershipSelect, + OrgMembershipWithRelations, + CreateOrgMembershipInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a OrgMembership + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateOrgMembershipMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateOrgMembershipMutation( + params: { + selection: { + fields: S & OrgMembershipSelect; + } & HookStrictSelect, OrgMembershipSelect>; + } & Omit< + UseMutationOptions< + { + createOrgMembership: { + orgMembership: InferSelectResult; + }; + }, + Error, + CreateOrgMembershipInput['orgMembership'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createOrgMembership: { + orgMembership: InferSelectResult; + }; + }, + Error, + CreateOrgMembershipInput['orgMembership'] +>; +export function useCreateOrgMembershipMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgMembershipMutationKeys.create(), + mutationFn: (data: CreateOrgMembershipInput['orgMembership']) => + getClient() + .orgMembership.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: orgMembershipKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgOwnerGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgOwnerGrantMutation.ts new file mode 100644 index 000000000..9cec71f7f --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgOwnerGrantMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for OrgOwnerGrant + * @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 { orgOwnerGrantKeys } from '../query-keys'; +import { orgOwnerGrantMutationKeys } from '../mutation-keys'; +import type { + OrgOwnerGrantSelect, + OrgOwnerGrantWithRelations, + CreateOrgOwnerGrantInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgOwnerGrantSelect, + OrgOwnerGrantWithRelations, + CreateOrgOwnerGrantInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a OrgOwnerGrant + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateOrgOwnerGrantMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateOrgOwnerGrantMutation( + params: { + selection: { + fields: S & OrgOwnerGrantSelect; + } & HookStrictSelect, OrgOwnerGrantSelect>; + } & Omit< + UseMutationOptions< + { + createOrgOwnerGrant: { + orgOwnerGrant: InferSelectResult; + }; + }, + Error, + CreateOrgOwnerGrantInput['orgOwnerGrant'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createOrgOwnerGrant: { + orgOwnerGrant: InferSelectResult; + }; + }, + Error, + CreateOrgOwnerGrantInput['orgOwnerGrant'] +>; +export function useCreateOrgOwnerGrantMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgOwnerGrantMutationKeys.create(), + mutationFn: (data: CreateOrgOwnerGrantInput['orgOwnerGrant']) => + getClient() + .orgOwnerGrant.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: orgOwnerGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgPermissionDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgPermissionDefaultMutation.ts new file mode 100644 index 000000000..da1688a0f --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgPermissionDefaultMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for OrgPermissionDefault + * @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 { orgPermissionDefaultKeys } from '../query-keys'; +import { orgPermissionDefaultMutationKeys } from '../mutation-keys'; +import type { + OrgPermissionDefaultSelect, + OrgPermissionDefaultWithRelations, + CreateOrgPermissionDefaultInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgPermissionDefaultSelect, + OrgPermissionDefaultWithRelations, + CreateOrgPermissionDefaultInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a OrgPermissionDefault + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateOrgPermissionDefaultMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateOrgPermissionDefaultMutation( + params: { + selection: { + fields: S & OrgPermissionDefaultSelect; + } & HookStrictSelect, OrgPermissionDefaultSelect>; + } & Omit< + UseMutationOptions< + { + createOrgPermissionDefault: { + orgPermissionDefault: InferSelectResult; + }; + }, + Error, + CreateOrgPermissionDefaultInput['orgPermissionDefault'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createOrgPermissionDefault: { + orgPermissionDefault: InferSelectResult; + }; + }, + Error, + CreateOrgPermissionDefaultInput['orgPermissionDefault'] +>; +export function useCreateOrgPermissionDefaultMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgPermissionDefaultMutationKeys.create(), + mutationFn: (data: CreateOrgPermissionDefaultInput['orgPermissionDefault']) => + getClient() + .orgPermissionDefault.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: orgPermissionDefaultKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgPermissionMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgPermissionMutation.ts new file mode 100644 index 000000000..b1fd9fd3b --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgPermissionMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for OrgPermission + * @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 { orgPermissionKeys } from '../query-keys'; +import { orgPermissionMutationKeys } from '../mutation-keys'; +import type { + OrgPermissionSelect, + OrgPermissionWithRelations, + CreateOrgPermissionInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgPermissionSelect, + OrgPermissionWithRelations, + CreateOrgPermissionInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a OrgPermission + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateOrgPermissionMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateOrgPermissionMutation( + params: { + selection: { + fields: S & OrgPermissionSelect; + } & HookStrictSelect, OrgPermissionSelect>; + } & Omit< + UseMutationOptions< + { + createOrgPermission: { + orgPermission: InferSelectResult; + }; + }, + Error, + CreateOrgPermissionInput['orgPermission'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createOrgPermission: { + orgPermission: InferSelectResult; + }; + }, + Error, + CreateOrgPermissionInput['orgPermission'] +>; +export function useCreateOrgPermissionMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgPermissionMutationKeys.create(), + mutationFn: (data: CreateOrgPermissionInput['orgPermission']) => + getClient() + .orgPermission.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: orgPermissionKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreatePermissionsModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreatePermissionsModuleMutation.ts new file mode 100644 index 000000000..38c0b3b9b --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreatePermissionsModuleMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for PermissionsModule + * @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 { permissionsModuleKeys } from '../query-keys'; +import { permissionsModuleMutationKeys } from '../mutation-keys'; +import type { + PermissionsModuleSelect, + PermissionsModuleWithRelations, + CreatePermissionsModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PermissionsModuleSelect, + PermissionsModuleWithRelations, + CreatePermissionsModuleInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a PermissionsModule + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePermissionsModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePermissionsModuleMutation( + params: { + selection: { + fields: S & PermissionsModuleSelect; + } & HookStrictSelect, PermissionsModuleSelect>; + } & Omit< + UseMutationOptions< + { + createPermissionsModule: { + permissionsModule: InferSelectResult; + }; + }, + Error, + CreatePermissionsModuleInput['permissionsModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPermissionsModule: { + permissionsModule: InferSelectResult; + }; + }, + Error, + CreatePermissionsModuleInput['permissionsModule'] +>; +export function useCreatePermissionsModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: permissionsModuleMutationKeys.create(), + mutationFn: (data: CreatePermissionsModuleInput['permissionsModule']) => + getClient() + .permissionsModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: permissionsModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreatePhoneNumberMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreatePhoneNumberMutation.ts new file mode 100644 index 000000000..f0a8f239b --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreatePhoneNumberMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for PhoneNumber + * @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 { phoneNumberKeys } from '../query-keys'; +import { phoneNumberMutationKeys } from '../mutation-keys'; +import type { + PhoneNumberSelect, + PhoneNumberWithRelations, + CreatePhoneNumberInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PhoneNumberSelect, + PhoneNumberWithRelations, + CreatePhoneNumberInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a PhoneNumber + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePhoneNumberMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePhoneNumberMutation( + params: { + selection: { + fields: S & PhoneNumberSelect; + } & HookStrictSelect, PhoneNumberSelect>; + } & Omit< + UseMutationOptions< + { + createPhoneNumber: { + phoneNumber: InferSelectResult; + }; + }, + Error, + CreatePhoneNumberInput['phoneNumber'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPhoneNumber: { + phoneNumber: InferSelectResult; + }; + }, + Error, + CreatePhoneNumberInput['phoneNumber'] +>; +export function useCreatePhoneNumberMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: phoneNumberMutationKeys.create(), + mutationFn: (data: CreatePhoneNumberInput['phoneNumber']) => + getClient() + .phoneNumber.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: phoneNumberKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreatePhoneNumbersModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreatePhoneNumbersModuleMutation.ts new file mode 100644 index 000000000..7239a2649 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreatePhoneNumbersModuleMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for PhoneNumbersModule + * @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 { phoneNumbersModuleKeys } from '../query-keys'; +import { phoneNumbersModuleMutationKeys } from '../mutation-keys'; +import type { + PhoneNumbersModuleSelect, + PhoneNumbersModuleWithRelations, + CreatePhoneNumbersModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PhoneNumbersModuleSelect, + PhoneNumbersModuleWithRelations, + CreatePhoneNumbersModuleInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a PhoneNumbersModule + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePhoneNumbersModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePhoneNumbersModuleMutation( + params: { + selection: { + fields: S & PhoneNumbersModuleSelect; + } & HookStrictSelect, PhoneNumbersModuleSelect>; + } & Omit< + UseMutationOptions< + { + createPhoneNumbersModule: { + phoneNumbersModule: InferSelectResult; + }; + }, + Error, + CreatePhoneNumbersModuleInput['phoneNumbersModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPhoneNumbersModule: { + phoneNumbersModule: InferSelectResult; + }; + }, + Error, + CreatePhoneNumbersModuleInput['phoneNumbersModule'] +>; +export function useCreatePhoneNumbersModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: phoneNumbersModuleMutationKeys.create(), + mutationFn: (data: CreatePhoneNumbersModuleInput['phoneNumbersModule']) => + getClient() + .phoneNumbersModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: phoneNumbersModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreatePolicyMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreatePolicyMutation.ts new file mode 100644 index 000000000..27702762d --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreatePolicyMutation.ts @@ -0,0 +1,80 @@ +/** + * Create mutation hook for Policy + * @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 { policyKeys } from '../query-keys'; +import { policyMutationKeys } from '../mutation-keys'; +import type { PolicySelect, PolicyWithRelations, CreatePolicyInput } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { PolicySelect, PolicyWithRelations, CreatePolicyInput } from '../../orm/input-types'; +/** + * Mutation hook for creating a Policy + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePolicyMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePolicyMutation( + params: { + selection: { + fields: S & PolicySelect; + } & HookStrictSelect, PolicySelect>; + } & Omit< + UseMutationOptions< + { + createPolicy: { + policy: InferSelectResult; + }; + }, + Error, + CreatePolicyInput['policy'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPolicy: { + policy: InferSelectResult; + }; + }, + Error, + CreatePolicyInput['policy'] +>; +export function useCreatePolicyMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: policyMutationKeys.create(), + mutationFn: (data: CreatePolicyInput['policy']) => + getClient() + .policy.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: policyKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreatePrimaryKeyConstraintMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreatePrimaryKeyConstraintMutation.ts new file mode 100644 index 000000000..87bdac408 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreatePrimaryKeyConstraintMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for PrimaryKeyConstraint + * @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 { primaryKeyConstraintKeys } from '../query-keys'; +import { primaryKeyConstraintMutationKeys } from '../mutation-keys'; +import type { + PrimaryKeyConstraintSelect, + PrimaryKeyConstraintWithRelations, + CreatePrimaryKeyConstraintInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PrimaryKeyConstraintSelect, + PrimaryKeyConstraintWithRelations, + CreatePrimaryKeyConstraintInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a PrimaryKeyConstraint + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePrimaryKeyConstraintMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePrimaryKeyConstraintMutation( + params: { + selection: { + fields: S & PrimaryKeyConstraintSelect; + } & HookStrictSelect, PrimaryKeyConstraintSelect>; + } & Omit< + UseMutationOptions< + { + createPrimaryKeyConstraint: { + primaryKeyConstraint: InferSelectResult; + }; + }, + Error, + CreatePrimaryKeyConstraintInput['primaryKeyConstraint'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPrimaryKeyConstraint: { + primaryKeyConstraint: InferSelectResult; + }; + }, + Error, + CreatePrimaryKeyConstraintInput['primaryKeyConstraint'] +>; +export function useCreatePrimaryKeyConstraintMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: primaryKeyConstraintMutationKeys.create(), + mutationFn: (data: CreatePrimaryKeyConstraintInput['primaryKeyConstraint']) => + getClient() + .primaryKeyConstraint.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: primaryKeyConstraintKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateProcedureMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateProcedureMutation.ts new file mode 100644 index 000000000..a681e7cff --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateProcedureMutation.ts @@ -0,0 +1,88 @@ +/** + * 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/useCreateProfilesModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateProfilesModuleMutation.ts new file mode 100644 index 000000000..538d27637 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateProfilesModuleMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for ProfilesModule + * @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 { profilesModuleKeys } from '../query-keys'; +import { profilesModuleMutationKeys } from '../mutation-keys'; +import type { + ProfilesModuleSelect, + ProfilesModuleWithRelations, + CreateProfilesModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ProfilesModuleSelect, + ProfilesModuleWithRelations, + CreateProfilesModuleInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a ProfilesModule + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateProfilesModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateProfilesModuleMutation( + params: { + selection: { + fields: S & ProfilesModuleSelect; + } & HookStrictSelect, ProfilesModuleSelect>; + } & Omit< + UseMutationOptions< + { + createProfilesModule: { + profilesModule: InferSelectResult; + }; + }, + Error, + CreateProfilesModuleInput['profilesModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createProfilesModule: { + profilesModule: InferSelectResult; + }; + }, + Error, + CreateProfilesModuleInput['profilesModule'] +>; +export function useCreateProfilesModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: profilesModuleMutationKeys.create(), + mutationFn: (data: CreateProfilesModuleInput['profilesModule']) => + getClient() + .profilesModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: profilesModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateRefMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateRefMutation.ts new file mode 100644 index 000000000..6f26a224e --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateRefMutation.ts @@ -0,0 +1,80 @@ +/** + * Create mutation hook for Ref + * @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 { refKeys } from '../query-keys'; +import { refMutationKeys } from '../mutation-keys'; +import type { RefSelect, RefWithRelations, CreateRefInput } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { RefSelect, RefWithRelations, CreateRefInput } from '../../orm/input-types'; +/** + * Mutation hook for creating a Ref + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateRefMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateRefMutation( + params: { + selection: { + fields: S & RefSelect; + } & HookStrictSelect, RefSelect>; + } & Omit< + UseMutationOptions< + { + createRef: { + ref: InferSelectResult; + }; + }, + Error, + CreateRefInput['ref'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createRef: { + ref: InferSelectResult; + }; + }, + Error, + CreateRefInput['ref'] +>; +export function useCreateRefMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: refMutationKeys.create(), + mutationFn: (data: CreateRefInput['ref']) => + getClient() + .ref.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: refKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateRlsModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateRlsModuleMutation.ts new file mode 100644 index 000000000..741bf4139 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateRlsModuleMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for RlsModule + * @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 { rlsModuleKeys } from '../query-keys'; +import { rlsModuleMutationKeys } from '../mutation-keys'; +import type { + RlsModuleSelect, + RlsModuleWithRelations, + CreateRlsModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + RlsModuleSelect, + RlsModuleWithRelations, + CreateRlsModuleInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a RlsModule + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateRlsModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateRlsModuleMutation( + params: { + selection: { + fields: S & RlsModuleSelect; + } & HookStrictSelect, RlsModuleSelect>; + } & Omit< + UseMutationOptions< + { + createRlsModule: { + rlsModule: InferSelectResult; + }; + }, + Error, + CreateRlsModuleInput['rlsModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createRlsModule: { + rlsModule: InferSelectResult; + }; + }, + Error, + CreateRlsModuleInput['rlsModule'] +>; +export function useCreateRlsModuleMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: rlsModuleMutationKeys.create(), + mutationFn: (data: CreateRlsModuleInput['rlsModule']) => + getClient() + .rlsModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: rlsModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateRoleTypeMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateRoleTypeMutation.ts new file mode 100644 index 000000000..212be3f45 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateRoleTypeMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for RoleType + * @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 { roleTypeKeys } from '../query-keys'; +import { roleTypeMutationKeys } from '../mutation-keys'; +import type { + RoleTypeSelect, + RoleTypeWithRelations, + CreateRoleTypeInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + RoleTypeSelect, + RoleTypeWithRelations, + CreateRoleTypeInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a RoleType + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateRoleTypeMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateRoleTypeMutation( + params: { + selection: { + fields: S & RoleTypeSelect; + } & HookStrictSelect, RoleTypeSelect>; + } & Omit< + UseMutationOptions< + { + createRoleType: { + roleType: InferSelectResult; + }; + }, + Error, + CreateRoleTypeInput['roleType'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createRoleType: { + roleType: InferSelectResult; + }; + }, + Error, + CreateRoleTypeInput['roleType'] +>; +export function useCreateRoleTypeMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: roleTypeMutationKeys.create(), + mutationFn: (data: CreateRoleTypeInput['roleType']) => + getClient() + .roleType.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: roleTypeKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateSchemaGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateSchemaGrantMutation.ts new file mode 100644 index 000000000..80ebebb00 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateSchemaGrantMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for SchemaGrant + * @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 { schemaGrantKeys } from '../query-keys'; +import { schemaGrantMutationKeys } from '../mutation-keys'; +import type { + SchemaGrantSelect, + SchemaGrantWithRelations, + CreateSchemaGrantInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + SchemaGrantSelect, + SchemaGrantWithRelations, + CreateSchemaGrantInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a SchemaGrant + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateSchemaGrantMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateSchemaGrantMutation( + params: { + selection: { + fields: S & SchemaGrantSelect; + } & HookStrictSelect, SchemaGrantSelect>; + } & Omit< + UseMutationOptions< + { + createSchemaGrant: { + schemaGrant: InferSelectResult; + }; + }, + Error, + CreateSchemaGrantInput['schemaGrant'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createSchemaGrant: { + schemaGrant: InferSelectResult; + }; + }, + Error, + CreateSchemaGrantInput['schemaGrant'] +>; +export function useCreateSchemaGrantMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: schemaGrantMutationKeys.create(), + mutationFn: (data: CreateSchemaGrantInput['schemaGrant']) => + getClient() + .schemaGrant.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: schemaGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateSchemaMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateSchemaMutation.ts new file mode 100644 index 000000000..427b850ef --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateSchemaMutation.ts @@ -0,0 +1,80 @@ +/** + * Create mutation hook for Schema + * @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 { schemaKeys } from '../query-keys'; +import { schemaMutationKeys } from '../mutation-keys'; +import type { SchemaSelect, SchemaWithRelations, CreateSchemaInput } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { SchemaSelect, SchemaWithRelations, CreateSchemaInput } from '../../orm/input-types'; +/** + * Mutation hook for creating a Schema + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateSchemaMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateSchemaMutation( + params: { + selection: { + fields: S & SchemaSelect; + } & HookStrictSelect, SchemaSelect>; + } & Omit< + UseMutationOptions< + { + createSchema: { + schema: InferSelectResult; + }; + }, + Error, + CreateSchemaInput['schema'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createSchema: { + schema: InferSelectResult; + }; + }, + Error, + CreateSchemaInput['schema'] +>; +export function useCreateSchemaMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: schemaMutationKeys.create(), + mutationFn: (data: CreateSchemaInput['schema']) => + getClient() + .schema.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: schemaKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateSecretsModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateSecretsModuleMutation.ts new file mode 100644 index 000000000..2ef21197d --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateSecretsModuleMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for SecretsModule + * @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 { secretsModuleKeys } from '../query-keys'; +import { secretsModuleMutationKeys } from '../mutation-keys'; +import type { + SecretsModuleSelect, + SecretsModuleWithRelations, + CreateSecretsModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + SecretsModuleSelect, + SecretsModuleWithRelations, + CreateSecretsModuleInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a SecretsModule + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateSecretsModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateSecretsModuleMutation( + params: { + selection: { + fields: S & SecretsModuleSelect; + } & HookStrictSelect, SecretsModuleSelect>; + } & Omit< + UseMutationOptions< + { + createSecretsModule: { + secretsModule: InferSelectResult; + }; + }, + Error, + CreateSecretsModuleInput['secretsModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createSecretsModule: { + secretsModule: InferSelectResult; + }; + }, + Error, + CreateSecretsModuleInput['secretsModule'] +>; +export function useCreateSecretsModuleMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: secretsModuleMutationKeys.create(), + mutationFn: (data: CreateSecretsModuleInput['secretsModule']) => + getClient() + .secretsModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: secretsModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateSessionsModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateSessionsModuleMutation.ts new file mode 100644 index 000000000..6fd5bda75 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateSessionsModuleMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for SessionsModule + * @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 { sessionsModuleKeys } from '../query-keys'; +import { sessionsModuleMutationKeys } from '../mutation-keys'; +import type { + SessionsModuleSelect, + SessionsModuleWithRelations, + CreateSessionsModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + SessionsModuleSelect, + SessionsModuleWithRelations, + CreateSessionsModuleInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a SessionsModule + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateSessionsModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateSessionsModuleMutation( + params: { + selection: { + fields: S & SessionsModuleSelect; + } & HookStrictSelect, SessionsModuleSelect>; + } & Omit< + UseMutationOptions< + { + createSessionsModule: { + sessionsModule: InferSelectResult; + }; + }, + Error, + CreateSessionsModuleInput['sessionsModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createSessionsModule: { + sessionsModule: InferSelectResult; + }; + }, + Error, + CreateSessionsModuleInput['sessionsModule'] +>; +export function useCreateSessionsModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: sessionsModuleMutationKeys.create(), + mutationFn: (data: CreateSessionsModuleInput['sessionsModule']) => + getClient() + .sessionsModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: sessionsModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateSiteMetadatumMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateSiteMetadatumMutation.ts new file mode 100644 index 000000000..08190bb1f --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateSiteMetadatumMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for SiteMetadatum + * @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 { siteMetadatumKeys } from '../query-keys'; +import { siteMetadatumMutationKeys } from '../mutation-keys'; +import type { + SiteMetadatumSelect, + SiteMetadatumWithRelations, + CreateSiteMetadatumInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + SiteMetadatumSelect, + SiteMetadatumWithRelations, + CreateSiteMetadatumInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a SiteMetadatum + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateSiteMetadatumMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateSiteMetadatumMutation( + params: { + selection: { + fields: S & SiteMetadatumSelect; + } & HookStrictSelect, SiteMetadatumSelect>; + } & Omit< + UseMutationOptions< + { + createSiteMetadatum: { + siteMetadatum: InferSelectResult; + }; + }, + Error, + CreateSiteMetadatumInput['siteMetadatum'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createSiteMetadatum: { + siteMetadatum: InferSelectResult; + }; + }, + Error, + CreateSiteMetadatumInput['siteMetadatum'] +>; +export function useCreateSiteMetadatumMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: siteMetadatumMutationKeys.create(), + mutationFn: (data: CreateSiteMetadatumInput['siteMetadatum']) => + getClient() + .siteMetadatum.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: siteMetadatumKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateSiteModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateSiteModuleMutation.ts new file mode 100644 index 000000000..89a52201a --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateSiteModuleMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for SiteModule + * @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 { siteModuleKeys } from '../query-keys'; +import { siteModuleMutationKeys } from '../mutation-keys'; +import type { + SiteModuleSelect, + SiteModuleWithRelations, + CreateSiteModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + SiteModuleSelect, + SiteModuleWithRelations, + CreateSiteModuleInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a SiteModule + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateSiteModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateSiteModuleMutation( + params: { + selection: { + fields: S & SiteModuleSelect; + } & HookStrictSelect, SiteModuleSelect>; + } & Omit< + UseMutationOptions< + { + createSiteModule: { + siteModule: InferSelectResult; + }; + }, + Error, + CreateSiteModuleInput['siteModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createSiteModule: { + siteModule: InferSelectResult; + }; + }, + Error, + CreateSiteModuleInput['siteModule'] +>; +export function useCreateSiteModuleMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: siteModuleMutationKeys.create(), + mutationFn: (data: CreateSiteModuleInput['siteModule']) => + getClient() + .siteModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: siteModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateSiteMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateSiteMutation.ts new file mode 100644 index 000000000..771cd48a9 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateSiteMutation.ts @@ -0,0 +1,80 @@ +/** + * Create mutation hook for Site + * @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 { siteKeys } from '../query-keys'; +import { siteMutationKeys } from '../mutation-keys'; +import type { SiteSelect, SiteWithRelations, CreateSiteInput } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { SiteSelect, SiteWithRelations, CreateSiteInput } from '../../orm/input-types'; +/** + * Mutation hook for creating a Site + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateSiteMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateSiteMutation( + params: { + selection: { + fields: S & SiteSelect; + } & HookStrictSelect, SiteSelect>; + } & Omit< + UseMutationOptions< + { + createSite: { + site: InferSelectResult; + }; + }, + Error, + CreateSiteInput['site'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createSite: { + site: InferSelectResult; + }; + }, + Error, + CreateSiteInput['site'] +>; +export function useCreateSiteMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: siteMutationKeys.create(), + mutationFn: (data: CreateSiteInput['site']) => + getClient() + .site.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: siteKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateSiteThemeMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateSiteThemeMutation.ts new file mode 100644 index 000000000..a95aacd27 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateSiteThemeMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for SiteTheme + * @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 { siteThemeKeys } from '../query-keys'; +import { siteThemeMutationKeys } from '../mutation-keys'; +import type { + SiteThemeSelect, + SiteThemeWithRelations, + CreateSiteThemeInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + SiteThemeSelect, + SiteThemeWithRelations, + CreateSiteThemeInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a SiteTheme + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateSiteThemeMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateSiteThemeMutation( + params: { + selection: { + fields: S & SiteThemeSelect; + } & HookStrictSelect, SiteThemeSelect>; + } & Omit< + UseMutationOptions< + { + createSiteTheme: { + siteTheme: InferSelectResult; + }; + }, + Error, + CreateSiteThemeInput['siteTheme'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createSiteTheme: { + siteTheme: InferSelectResult; + }; + }, + Error, + CreateSiteThemeInput['siteTheme'] +>; +export function useCreateSiteThemeMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: siteThemeMutationKeys.create(), + mutationFn: (data: CreateSiteThemeInput['siteTheme']) => + getClient() + .siteTheme.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: siteThemeKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateSqlMigrationMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateSqlMigrationMutation.ts new file mode 100644 index 000000000..6484740a8 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateSqlMigrationMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for SqlMigration + * @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 { sqlMigrationKeys } from '../query-keys'; +import { sqlMigrationMutationKeys } from '../mutation-keys'; +import type { + SqlMigrationSelect, + SqlMigrationWithRelations, + CreateSqlMigrationInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + SqlMigrationSelect, + SqlMigrationWithRelations, + CreateSqlMigrationInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a SqlMigration + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateSqlMigrationMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateSqlMigrationMutation( + params: { + selection: { + fields: S & SqlMigrationSelect; + } & HookStrictSelect, SqlMigrationSelect>; + } & Omit< + UseMutationOptions< + { + createSqlMigration: { + sqlMigration: InferSelectResult; + }; + }, + Error, + CreateSqlMigrationInput['sqlMigration'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createSqlMigration: { + sqlMigration: InferSelectResult; + }; + }, + Error, + CreateSqlMigrationInput['sqlMigration'] +>; +export function useCreateSqlMigrationMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: sqlMigrationMutationKeys.create(), + mutationFn: (data: CreateSqlMigrationInput['sqlMigration']) => + getClient() + .sqlMigration.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: sqlMigrationKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateStoreMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateStoreMutation.ts new file mode 100644 index 000000000..54c3b2ab9 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateStoreMutation.ts @@ -0,0 +1,80 @@ +/** + * Create mutation hook for Store + * @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 { storeKeys } from '../query-keys'; +import { storeMutationKeys } from '../mutation-keys'; +import type { StoreSelect, StoreWithRelations, CreateStoreInput } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { StoreSelect, StoreWithRelations, CreateStoreInput } from '../../orm/input-types'; +/** + * Mutation hook for creating a Store + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateStoreMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateStoreMutation( + params: { + selection: { + fields: S & StoreSelect; + } & HookStrictSelect, StoreSelect>; + } & Omit< + UseMutationOptions< + { + createStore: { + store: InferSelectResult; + }; + }, + Error, + CreateStoreInput['store'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createStore: { + store: InferSelectResult; + }; + }, + Error, + CreateStoreInput['store'] +>; +export function useCreateStoreMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: storeMutationKeys.create(), + mutationFn: (data: CreateStoreInput['store']) => + getClient() + .store.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: storeKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateTableGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateTableGrantMutation.ts new file mode 100644 index 000000000..e111ab768 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateTableGrantMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for TableGrant + * @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 { tableGrantKeys } from '../query-keys'; +import { tableGrantMutationKeys } from '../mutation-keys'; +import type { + TableGrantSelect, + TableGrantWithRelations, + CreateTableGrantInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + TableGrantSelect, + TableGrantWithRelations, + CreateTableGrantInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a TableGrant + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateTableGrantMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateTableGrantMutation( + params: { + selection: { + fields: S & TableGrantSelect; + } & HookStrictSelect, TableGrantSelect>; + } & Omit< + UseMutationOptions< + { + createTableGrant: { + tableGrant: InferSelectResult; + }; + }, + Error, + CreateTableGrantInput['tableGrant'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createTableGrant: { + tableGrant: InferSelectResult; + }; + }, + Error, + CreateTableGrantInput['tableGrant'] +>; +export function useCreateTableGrantMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: tableGrantMutationKeys.create(), + mutationFn: (data: CreateTableGrantInput['tableGrant']) => + getClient() + .tableGrant.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: tableGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateTableModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateTableModuleMutation.ts new file mode 100644 index 000000000..789b377de --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateTableModuleMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for TableModule + * @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 { tableModuleKeys } from '../query-keys'; +import { tableModuleMutationKeys } from '../mutation-keys'; +import type { + TableModuleSelect, + TableModuleWithRelations, + CreateTableModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + TableModuleSelect, + TableModuleWithRelations, + CreateTableModuleInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a TableModule + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateTableModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateTableModuleMutation( + params: { + selection: { + fields: S & TableModuleSelect; + } & HookStrictSelect, TableModuleSelect>; + } & Omit< + UseMutationOptions< + { + createTableModule: { + tableModule: InferSelectResult; + }; + }, + Error, + CreateTableModuleInput['tableModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createTableModule: { + tableModule: InferSelectResult; + }; + }, + Error, + CreateTableModuleInput['tableModule'] +>; +export function useCreateTableModuleMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: tableModuleMutationKeys.create(), + mutationFn: (data: CreateTableModuleInput['tableModule']) => + getClient() + .tableModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: tableModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateTableMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateTableMutation.ts new file mode 100644 index 000000000..a14469fe1 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateTableMutation.ts @@ -0,0 +1,80 @@ +/** + * Create mutation hook for 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 { tableKeys } from '../query-keys'; +import { tableMutationKeys } from '../mutation-keys'; +import type { TableSelect, TableWithRelations, CreateTableInput } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { TableSelect, TableWithRelations, CreateTableInput } from '../../orm/input-types'; +/** + * Mutation hook for creating a Table + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateTableMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateTableMutation( + params: { + selection: { + fields: S & TableSelect; + } & HookStrictSelect, TableSelect>; + } & Omit< + UseMutationOptions< + { + createTable: { + table: InferSelectResult; + }; + }, + Error, + CreateTableInput['table'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createTable: { + table: InferSelectResult; + }; + }, + Error, + CreateTableInput['table'] +>; +export function useCreateTableMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: tableMutationKeys.create(), + mutationFn: (data: CreateTableInput['table']) => + getClient() + .table.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: tableKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateTableTemplateModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateTableTemplateModuleMutation.ts new file mode 100644 index 000000000..af6255e35 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateTableTemplateModuleMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for TableTemplateModule + * @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 { tableTemplateModuleKeys } from '../query-keys'; +import { tableTemplateModuleMutationKeys } from '../mutation-keys'; +import type { + TableTemplateModuleSelect, + TableTemplateModuleWithRelations, + CreateTableTemplateModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + TableTemplateModuleSelect, + TableTemplateModuleWithRelations, + CreateTableTemplateModuleInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a TableTemplateModule + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateTableTemplateModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateTableTemplateModuleMutation( + params: { + selection: { + fields: S & TableTemplateModuleSelect; + } & HookStrictSelect, TableTemplateModuleSelect>; + } & Omit< + UseMutationOptions< + { + createTableTemplateModule: { + tableTemplateModule: InferSelectResult; + }; + }, + Error, + CreateTableTemplateModuleInput['tableTemplateModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createTableTemplateModule: { + tableTemplateModule: InferSelectResult; + }; + }, + Error, + CreateTableTemplateModuleInput['tableTemplateModule'] +>; +export function useCreateTableTemplateModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: tableTemplateModuleMutationKeys.create(), + mutationFn: (data: CreateTableTemplateModuleInput['tableTemplateModule']) => + getClient() + .tableTemplateModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: tableTemplateModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateTriggerFunctionMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateTriggerFunctionMutation.ts new file mode 100644 index 000000000..f9e47f2be --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateTriggerFunctionMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for TriggerFunction + * @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 { triggerFunctionKeys } from '../query-keys'; +import { triggerFunctionMutationKeys } from '../mutation-keys'; +import type { + TriggerFunctionSelect, + TriggerFunctionWithRelations, + CreateTriggerFunctionInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + TriggerFunctionSelect, + TriggerFunctionWithRelations, + CreateTriggerFunctionInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a TriggerFunction + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateTriggerFunctionMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateTriggerFunctionMutation( + params: { + selection: { + fields: S & TriggerFunctionSelect; + } & HookStrictSelect, TriggerFunctionSelect>; + } & Omit< + UseMutationOptions< + { + createTriggerFunction: { + triggerFunction: InferSelectResult; + }; + }, + Error, + CreateTriggerFunctionInput['triggerFunction'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createTriggerFunction: { + triggerFunction: InferSelectResult; + }; + }, + Error, + CreateTriggerFunctionInput['triggerFunction'] +>; +export function useCreateTriggerFunctionMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: triggerFunctionMutationKeys.create(), + mutationFn: (data: CreateTriggerFunctionInput['triggerFunction']) => + getClient() + .triggerFunction.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: triggerFunctionKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateTriggerMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateTriggerMutation.ts new file mode 100644 index 000000000..1a8e8a9f8 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateTriggerMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for Trigger + * @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 { triggerKeys } from '../query-keys'; +import { triggerMutationKeys } from '../mutation-keys'; +import type { + TriggerSelect, + TriggerWithRelations, + CreateTriggerInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + TriggerSelect, + TriggerWithRelations, + CreateTriggerInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a Trigger + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateTriggerMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateTriggerMutation( + params: { + selection: { + fields: S & TriggerSelect; + } & HookStrictSelect, TriggerSelect>; + } & Omit< + UseMutationOptions< + { + createTrigger: { + trigger: InferSelectResult; + }; + }, + Error, + CreateTriggerInput['trigger'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createTrigger: { + trigger: InferSelectResult; + }; + }, + Error, + CreateTriggerInput['trigger'] +>; +export function useCreateTriggerMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: triggerMutationKeys.create(), + mutationFn: (data: CreateTriggerInput['trigger']) => + getClient() + .trigger.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: triggerKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateUniqueConstraintMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateUniqueConstraintMutation.ts new file mode 100644 index 000000000..9dde059c6 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateUniqueConstraintMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for UniqueConstraint + * @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 { uniqueConstraintKeys } from '../query-keys'; +import { uniqueConstraintMutationKeys } from '../mutation-keys'; +import type { + UniqueConstraintSelect, + UniqueConstraintWithRelations, + CreateUniqueConstraintInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + UniqueConstraintSelect, + UniqueConstraintWithRelations, + CreateUniqueConstraintInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a UniqueConstraint + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateUniqueConstraintMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateUniqueConstraintMutation( + params: { + selection: { + fields: S & UniqueConstraintSelect; + } & HookStrictSelect, UniqueConstraintSelect>; + } & Omit< + UseMutationOptions< + { + createUniqueConstraint: { + uniqueConstraint: InferSelectResult; + }; + }, + Error, + CreateUniqueConstraintInput['uniqueConstraint'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createUniqueConstraint: { + uniqueConstraint: InferSelectResult; + }; + }, + Error, + CreateUniqueConstraintInput['uniqueConstraint'] +>; +export function useCreateUniqueConstraintMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: uniqueConstraintMutationKeys.create(), + mutationFn: (data: CreateUniqueConstraintInput['uniqueConstraint']) => + getClient() + .uniqueConstraint.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: uniqueConstraintKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateUserAuthModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateUserAuthModuleMutation.ts new file mode 100644 index 000000000..edc15ead9 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateUserAuthModuleMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for UserAuthModule + * @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 { userAuthModuleKeys } from '../query-keys'; +import { userAuthModuleMutationKeys } from '../mutation-keys'; +import type { + UserAuthModuleSelect, + UserAuthModuleWithRelations, + CreateUserAuthModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + UserAuthModuleSelect, + UserAuthModuleWithRelations, + CreateUserAuthModuleInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a UserAuthModule + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateUserAuthModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateUserAuthModuleMutation( + params: { + selection: { + fields: S & UserAuthModuleSelect; + } & HookStrictSelect, UserAuthModuleSelect>; + } & Omit< + UseMutationOptions< + { + createUserAuthModule: { + userAuthModule: InferSelectResult; + }; + }, + Error, + CreateUserAuthModuleInput['userAuthModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createUserAuthModule: { + userAuthModule: InferSelectResult; + }; + }, + Error, + CreateUserAuthModuleInput['userAuthModule'] +>; +export function useCreateUserAuthModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: userAuthModuleMutationKeys.create(), + mutationFn: (data: CreateUserAuthModuleInput['userAuthModule']) => + getClient() + .userAuthModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: userAuthModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateUserDatabaseMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateUserDatabaseMutation.ts new file mode 100644 index 000000000..3ac6d18c0 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateUserDatabaseMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for createUserDatabase + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } 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 { customMutationKeys } from '../mutation-keys'; +import type { CreateUserDatabaseVariables } from '../../orm/mutation'; +import type { + CreateUserDatabasePayloadSelect, + CreateUserDatabasePayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { CreateUserDatabaseVariables } from '../../orm/mutation'; +export type { CreateUserDatabasePayloadSelect } from '../../orm/input-types'; +export function useCreateUserDatabaseMutation( + params: { + selection: { + fields: S & CreateUserDatabasePayloadSelect; + } & HookStrictSelect, CreateUserDatabasePayloadSelect>; + } & Omit< + UseMutationOptions< + { + createUserDatabase: InferSelectResult | null; + }, + Error, + CreateUserDatabaseVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + createUserDatabase: InferSelectResult | null; + }, + Error, + CreateUserDatabaseVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.createUserDatabase(), + mutationFn: (variables: CreateUserDatabaseVariables) => + getClient() + .mutation.createUserDatabase(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateUserMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateUserMutation.ts new file mode 100644 index 000000000..0d5bfff47 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateUserMutation.ts @@ -0,0 +1,80 @@ +/** + * Create mutation hook for User + * @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 { userKeys } from '../query-keys'; +import { userMutationKeys } from '../mutation-keys'; +import type { UserSelect, UserWithRelations, CreateUserInput } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { UserSelect, UserWithRelations, CreateUserInput } from '../../orm/input-types'; +/** + * Mutation hook for creating a User + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateUserMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateUserMutation( + params: { + selection: { + fields: S & UserSelect; + } & HookStrictSelect, UserSelect>; + } & Omit< + UseMutationOptions< + { + createUser: { + user: InferSelectResult; + }; + }, + Error, + CreateUserInput['user'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createUser: { + user: InferSelectResult; + }; + }, + Error, + CreateUserInput['user'] +>; +export function useCreateUserMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: userMutationKeys.create(), + mutationFn: (data: CreateUserInput['user']) => + getClient() + .user.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: userKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateUsersModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateUsersModuleMutation.ts new file mode 100644 index 000000000..bc8efbc99 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateUsersModuleMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for UsersModule + * @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 { usersModuleKeys } from '../query-keys'; +import { usersModuleMutationKeys } from '../mutation-keys'; +import type { + UsersModuleSelect, + UsersModuleWithRelations, + CreateUsersModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + UsersModuleSelect, + UsersModuleWithRelations, + CreateUsersModuleInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a UsersModule + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateUsersModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateUsersModuleMutation( + params: { + selection: { + fields: S & UsersModuleSelect; + } & HookStrictSelect, UsersModuleSelect>; + } & Omit< + UseMutationOptions< + { + createUsersModule: { + usersModule: InferSelectResult; + }; + }, + Error, + CreateUsersModuleInput['usersModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createUsersModule: { + usersModule: InferSelectResult; + }; + }, + Error, + CreateUsersModuleInput['usersModule'] +>; +export function useCreateUsersModuleMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: usersModuleMutationKeys.create(), + mutationFn: (data: CreateUsersModuleInput['usersModule']) => + getClient() + .usersModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: usersModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateUuidModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateUuidModuleMutation.ts new file mode 100644 index 000000000..feb0e549c --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateUuidModuleMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for UuidModule + * @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 { uuidModuleKeys } from '../query-keys'; +import { uuidModuleMutationKeys } from '../mutation-keys'; +import type { + UuidModuleSelect, + UuidModuleWithRelations, + CreateUuidModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + UuidModuleSelect, + UuidModuleWithRelations, + CreateUuidModuleInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a UuidModule + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateUuidModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateUuidModuleMutation( + params: { + selection: { + fields: S & UuidModuleSelect; + } & HookStrictSelect, UuidModuleSelect>; + } & Omit< + UseMutationOptions< + { + createUuidModule: { + uuidModule: InferSelectResult; + }; + }, + Error, + CreateUuidModuleInput['uuidModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createUuidModule: { + uuidModule: InferSelectResult; + }; + }, + Error, + CreateUuidModuleInput['uuidModule'] +>; +export function useCreateUuidModuleMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: uuidModuleMutationKeys.create(), + mutationFn: (data: CreateUuidModuleInput['uuidModule']) => + getClient() + .uuidModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: uuidModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateViewGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateViewGrantMutation.ts new file mode 100644 index 000000000..16b37b379 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateViewGrantMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for ViewGrant + * @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 { viewGrantKeys } from '../query-keys'; +import { viewGrantMutationKeys } from '../mutation-keys'; +import type { + ViewGrantSelect, + ViewGrantWithRelations, + CreateViewGrantInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ViewGrantSelect, + ViewGrantWithRelations, + CreateViewGrantInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a ViewGrant + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateViewGrantMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateViewGrantMutation( + params: { + selection: { + fields: S & ViewGrantSelect; + } & HookStrictSelect, ViewGrantSelect>; + } & Omit< + UseMutationOptions< + { + createViewGrant: { + viewGrant: InferSelectResult; + }; + }, + Error, + CreateViewGrantInput['viewGrant'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createViewGrant: { + viewGrant: InferSelectResult; + }; + }, + Error, + CreateViewGrantInput['viewGrant'] +>; +export function useCreateViewGrantMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: viewGrantMutationKeys.create(), + mutationFn: (data: CreateViewGrantInput['viewGrant']) => + getClient() + .viewGrant.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: viewGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateViewMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateViewMutation.ts new file mode 100644 index 000000000..91e59f1e5 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateViewMutation.ts @@ -0,0 +1,80 @@ +/** + * Create mutation hook for View + * @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 { viewKeys } from '../query-keys'; +import { viewMutationKeys } from '../mutation-keys'; +import type { ViewSelect, ViewWithRelations, CreateViewInput } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ViewSelect, ViewWithRelations, CreateViewInput } from '../../orm/input-types'; +/** + * Mutation hook for creating a View + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateViewMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateViewMutation( + params: { + selection: { + fields: S & ViewSelect; + } & HookStrictSelect, ViewSelect>; + } & Omit< + UseMutationOptions< + { + createView: { + view: InferSelectResult; + }; + }, + Error, + CreateViewInput['view'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createView: { + view: InferSelectResult; + }; + }, + Error, + CreateViewInput['view'] +>; +export function useCreateViewMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: viewMutationKeys.create(), + mutationFn: (data: CreateViewInput['view']) => + getClient() + .view.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: viewKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateViewRuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateViewRuleMutation.ts new file mode 100644 index 000000000..c20e74707 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateViewRuleMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for ViewRule + * @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 { viewRuleKeys } from '../query-keys'; +import { viewRuleMutationKeys } from '../mutation-keys'; +import type { + ViewRuleSelect, + ViewRuleWithRelations, + CreateViewRuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ViewRuleSelect, + ViewRuleWithRelations, + CreateViewRuleInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a ViewRule + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateViewRuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateViewRuleMutation( + params: { + selection: { + fields: S & ViewRuleSelect; + } & HookStrictSelect, ViewRuleSelect>; + } & Omit< + UseMutationOptions< + { + createViewRule: { + viewRule: InferSelectResult; + }; + }, + Error, + CreateViewRuleInput['viewRule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createViewRule: { + viewRule: InferSelectResult; + }; + }, + Error, + CreateViewRuleInput['viewRule'] +>; +export function useCreateViewRuleMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: viewRuleMutationKeys.create(), + mutationFn: (data: CreateViewRuleInput['viewRule']) => + getClient() + .viewRule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: viewRuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateViewTableMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateViewTableMutation.ts new file mode 100644 index 000000000..e042b1331 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateViewTableMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for ViewTable + * @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 { viewTableKeys } from '../query-keys'; +import { viewTableMutationKeys } from '../mutation-keys'; +import type { + ViewTableSelect, + ViewTableWithRelations, + CreateViewTableInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ViewTableSelect, + ViewTableWithRelations, + CreateViewTableInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a ViewTable + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateViewTableMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateViewTableMutation( + params: { + selection: { + fields: S & ViewTableSelect; + } & HookStrictSelect, ViewTableSelect>; + } & Omit< + UseMutationOptions< + { + createViewTable: { + viewTable: InferSelectResult; + }; + }, + Error, + CreateViewTableInput['viewTable'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createViewTable: { + viewTable: InferSelectResult; + }; + }, + Error, + CreateViewTableInput['viewTable'] +>; +export function useCreateViewTableMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: viewTableMutationKeys.create(), + mutationFn: (data: CreateViewTableInput['viewTable']) => + getClient() + .viewTable.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: viewTableKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteApiModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteApiModuleMutation.ts new file mode 100644 index 000000000..0ba69d251 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteApiModuleMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for ApiModule + * @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 { apiModuleKeys } from '../query-keys'; +import { apiModuleMutationKeys } from '../mutation-keys'; +import type { ApiModuleSelect, ApiModuleWithRelations } from '../../orm/input-types'; +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 + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteApiModuleMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteApiModuleMutation( + params: { + selection: { + fields: S & ApiModuleSelect; + } & HookStrictSelect, ApiModuleSelect>; + } & Omit< + UseMutationOptions< + { + deleteApiModule: { + apiModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteApiModule: { + apiModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteApiModuleMutation( + 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: apiModuleMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .apiModule.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: apiModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: apiModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteApiMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteApiMutation.ts new file mode 100644 index 000000000..96bf7f0e0 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteApiMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for Api + * @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 { apiKeys } from '../query-keys'; +import { apiMutationKeys } from '../mutation-keys'; +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 + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteApiMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteApiMutation( + params: { + selection: { + fields: S & ApiSelect; + } & HookStrictSelect, ApiSelect>; + } & Omit< + UseMutationOptions< + { + deleteApi: { + api: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteApi: { + api: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteApiMutation( + 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: apiMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .api.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: apiKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: apiKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteApiSchemaMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteApiSchemaMutation.ts new file mode 100644 index 000000000..85bf06041 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteApiSchemaMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for ApiSchema + * @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 { apiSchemaKeys } from '../query-keys'; +import { apiSchemaMutationKeys } from '../mutation-keys'; +import type { ApiSchemaSelect, ApiSchemaWithRelations } from '../../orm/input-types'; +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 + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteApiSchemaMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteApiSchemaMutation( + params: { + selection: { + fields: S & ApiSchemaSelect; + } & HookStrictSelect, ApiSchemaSelect>; + } & Omit< + UseMutationOptions< + { + deleteApiSchema: { + apiSchema: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteApiSchema: { + apiSchema: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteApiSchemaMutation( + 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: apiSchemaMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .apiSchema.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: apiSchemaKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: apiSchemaKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppAchievementMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppAchievementMutation.ts new file mode 100644 index 000000000..73f3b0b52 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppAchievementMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for AppAchievement + * @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 { appAchievementKeys } from '../query-keys'; +import { appAchievementMutationKeys } from '../mutation-keys'; +import type { AppAchievementSelect, AppAchievementWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AppAchievementSelect, AppAchievementWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a AppAchievement with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteAppAchievementMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteAppAchievementMutation( + params: { + selection: { + fields: S & AppAchievementSelect; + } & HookStrictSelect, AppAchievementSelect>; + } & Omit< + UseMutationOptions< + { + deleteAppAchievement: { + appAchievement: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteAppAchievement: { + appAchievement: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteAppAchievementMutation( + 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: appAchievementMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .appAchievement.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: appAchievementKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appAchievementKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppAdminGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppAdminGrantMutation.ts new file mode 100644 index 000000000..83efe201c --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppAdminGrantMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for AppAdminGrant + * @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 { appAdminGrantKeys } from '../query-keys'; +import { appAdminGrantMutationKeys } from '../mutation-keys'; +import type { AppAdminGrantSelect, AppAdminGrantWithRelations } from '../../orm/input-types'; +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 + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteAppAdminGrantMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteAppAdminGrantMutation( + params: { + selection: { + fields: S & AppAdminGrantSelect; + } & HookStrictSelect, AppAdminGrantSelect>; + } & Omit< + UseMutationOptions< + { + deleteAppAdminGrant: { + appAdminGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteAppAdminGrant: { + appAdminGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteAppAdminGrantMutation( + 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: appAdminGrantMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .appAdminGrant.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: appAdminGrantKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appAdminGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppGrantMutation.ts new file mode 100644 index 000000000..2dcc61484 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppGrantMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for AppGrant + * @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 { appGrantKeys } from '../query-keys'; +import { appGrantMutationKeys } from '../mutation-keys'; +import type { AppGrantSelect, AppGrantWithRelations } from '../../orm/input-types'; +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 + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteAppGrantMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteAppGrantMutation( + params: { + selection: { + fields: S & AppGrantSelect; + } & HookStrictSelect, AppGrantSelect>; + } & Omit< + UseMutationOptions< + { + deleteAppGrant: { + appGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteAppGrant: { + appGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteAppGrantMutation( + 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: appGrantMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .appGrant.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: appGrantKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLevelMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLevelMutation.ts new file mode 100644 index 000000000..d7d002ddb --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLevelMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for AppLevel + * @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 { appLevelKeys } from '../query-keys'; +import { appLevelMutationKeys } from '../mutation-keys'; +import type { AppLevelSelect, AppLevelWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AppLevelSelect, AppLevelWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a AppLevel with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteAppLevelMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteAppLevelMutation( + params: { + selection: { + fields: S & AppLevelSelect; + } & HookStrictSelect, AppLevelSelect>; + } & Omit< + UseMutationOptions< + { + deleteAppLevel: { + appLevel: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteAppLevel: { + appLevel: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteAppLevelMutation( + 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: appLevelMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .appLevel.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: appLevelKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appLevelKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLevelRequirementMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLevelRequirementMutation.ts new file mode 100644 index 000000000..bcb3e249f --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLevelRequirementMutation.ts @@ -0,0 +1,104 @@ +/** + * Delete mutation hook for AppLevelRequirement + * @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 { appLevelRequirementKeys } from '../query-keys'; +import { appLevelRequirementMutationKeys } from '../mutation-keys'; +import type { + AppLevelRequirementSelect, + AppLevelRequirementWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppLevelRequirementSelect, + AppLevelRequirementWithRelations, +} from '../../orm/input-types'; +/** + * Mutation hook for deleting a AppLevelRequirement with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteAppLevelRequirementMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteAppLevelRequirementMutation( + params: { + selection: { + fields: S & AppLevelRequirementSelect; + } & HookStrictSelect, AppLevelRequirementSelect>; + } & Omit< + UseMutationOptions< + { + deleteAppLevelRequirement: { + appLevelRequirement: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteAppLevelRequirement: { + appLevelRequirement: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteAppLevelRequirementMutation( + 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: appLevelRequirementMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .appLevelRequirement.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: appLevelRequirementKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appLevelRequirementKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLimitDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLimitDefaultMutation.ts new file mode 100644 index 000000000..3d8cec160 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLimitDefaultMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for AppLimitDefault + * @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 { appLimitDefaultKeys } from '../query-keys'; +import { appLimitDefaultMutationKeys } from '../mutation-keys'; +import type { AppLimitDefaultSelect, AppLimitDefaultWithRelations } from '../../orm/input-types'; +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 + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteAppLimitDefaultMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteAppLimitDefaultMutation( + params: { + selection: { + fields: S & AppLimitDefaultSelect; + } & HookStrictSelect, AppLimitDefaultSelect>; + } & Omit< + UseMutationOptions< + { + deleteAppLimitDefault: { + appLimitDefault: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteAppLimitDefault: { + appLimitDefault: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteAppLimitDefaultMutation( + 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: appLimitDefaultMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .appLimitDefault.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: appLimitDefaultKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appLimitDefaultKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLimitMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLimitMutation.ts new file mode 100644 index 000000000..9b3ebc52e --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLimitMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for AppLimit + * @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 { appLimitKeys } from '../query-keys'; +import { appLimitMutationKeys } from '../mutation-keys'; +import type { AppLimitSelect, AppLimitWithRelations } from '../../orm/input-types'; +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 + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteAppLimitMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteAppLimitMutation( + params: { + selection: { + fields: S & AppLimitSelect; + } & HookStrictSelect, AppLimitSelect>; + } & Omit< + UseMutationOptions< + { + deleteAppLimit: { + appLimit: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteAppLimit: { + appLimit: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteAppLimitMutation( + 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: appLimitMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .appLimit.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: appLimitKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appLimitKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppMembershipDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppMembershipDefaultMutation.ts new file mode 100644 index 000000000..bd2d8e77b --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppMembershipDefaultMutation.ts @@ -0,0 +1,104 @@ +/** + * Delete mutation hook for AppMembershipDefault + * @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 { appMembershipDefaultKeys } from '../query-keys'; +import { appMembershipDefaultMutationKeys } from '../mutation-keys'; +import type { + AppMembershipDefaultSelect, + AppMembershipDefaultWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppMembershipDefaultSelect, + AppMembershipDefaultWithRelations, +} from '../../orm/input-types'; +/** + * Mutation hook for deleting a AppMembershipDefault with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteAppMembershipDefaultMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteAppMembershipDefaultMutation( + params: { + selection: { + fields: S & AppMembershipDefaultSelect; + } & HookStrictSelect, AppMembershipDefaultSelect>; + } & Omit< + UseMutationOptions< + { + deleteAppMembershipDefault: { + appMembershipDefault: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteAppMembershipDefault: { + appMembershipDefault: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteAppMembershipDefaultMutation( + 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: appMembershipDefaultMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .appMembershipDefault.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: appMembershipDefaultKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appMembershipDefaultKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppMembershipMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppMembershipMutation.ts new file mode 100644 index 000000000..270821ab2 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppMembershipMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for AppMembership + * @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 { appMembershipKeys } from '../query-keys'; +import { appMembershipMutationKeys } from '../mutation-keys'; +import type { AppMembershipSelect, AppMembershipWithRelations } from '../../orm/input-types'; +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 + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteAppMembershipMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteAppMembershipMutation( + params: { + selection: { + fields: S & AppMembershipSelect; + } & HookStrictSelect, AppMembershipSelect>; + } & Omit< + UseMutationOptions< + { + deleteAppMembership: { + appMembership: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteAppMembership: { + appMembership: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteAppMembershipMutation( + 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: appMembershipMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .appMembership.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: appMembershipKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appMembershipKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppMutation.ts new file mode 100644 index 000000000..9ba2f036a --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for App + * @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 { appKeys } from '../query-keys'; +import { appMutationKeys } from '../mutation-keys'; +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 + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteAppMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteAppMutation( + params: { + selection: { + fields: S & AppSelect; + } & HookStrictSelect, AppSelect>; + } & Omit< + UseMutationOptions< + { + deleteApp: { + app: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteApp: { + app: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteAppMutation( + 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: appMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .app.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: appKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppOwnerGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppOwnerGrantMutation.ts new file mode 100644 index 000000000..037ca9d28 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppOwnerGrantMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for AppOwnerGrant + * @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 { appOwnerGrantKeys } from '../query-keys'; +import { appOwnerGrantMutationKeys } from '../mutation-keys'; +import type { AppOwnerGrantSelect, AppOwnerGrantWithRelations } from '../../orm/input-types'; +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 + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteAppOwnerGrantMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteAppOwnerGrantMutation( + params: { + selection: { + fields: S & AppOwnerGrantSelect; + } & HookStrictSelect, AppOwnerGrantSelect>; + } & Omit< + UseMutationOptions< + { + deleteAppOwnerGrant: { + appOwnerGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteAppOwnerGrant: { + appOwnerGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteAppOwnerGrantMutation( + 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: appOwnerGrantMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .appOwnerGrant.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: appOwnerGrantKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appOwnerGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppPermissionDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppPermissionDefaultMutation.ts new file mode 100644 index 000000000..1c350f3fb --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppPermissionDefaultMutation.ts @@ -0,0 +1,104 @@ +/** + * Delete mutation hook for AppPermissionDefault + * @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 { appPermissionDefaultKeys } from '../query-keys'; +import { appPermissionDefaultMutationKeys } from '../mutation-keys'; +import type { + AppPermissionDefaultSelect, + AppPermissionDefaultWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppPermissionDefaultSelect, + AppPermissionDefaultWithRelations, +} from '../../orm/input-types'; +/** + * Mutation hook for deleting a AppPermissionDefault with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteAppPermissionDefaultMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteAppPermissionDefaultMutation( + params: { + selection: { + fields: S & AppPermissionDefaultSelect; + } & HookStrictSelect, AppPermissionDefaultSelect>; + } & Omit< + UseMutationOptions< + { + deleteAppPermissionDefault: { + appPermissionDefault: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteAppPermissionDefault: { + appPermissionDefault: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteAppPermissionDefaultMutation( + 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: appPermissionDefaultMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .appPermissionDefault.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: appPermissionDefaultKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appPermissionDefaultKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppPermissionMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppPermissionMutation.ts new file mode 100644 index 000000000..327b4a107 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppPermissionMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for AppPermission + * @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 { appPermissionKeys } from '../query-keys'; +import { appPermissionMutationKeys } from '../mutation-keys'; +import type { AppPermissionSelect, AppPermissionWithRelations } from '../../orm/input-types'; +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 + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteAppPermissionMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteAppPermissionMutation( + params: { + selection: { + fields: S & AppPermissionSelect; + } & HookStrictSelect, AppPermissionSelect>; + } & Omit< + UseMutationOptions< + { + deleteAppPermission: { + appPermission: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteAppPermission: { + appPermission: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteAppPermissionMutation( + 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: appPermissionMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .appPermission.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: appPermissionKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appPermissionKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppStepMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppStepMutation.ts new file mode 100644 index 000000000..f9f36baf8 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppStepMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for AppStep + * @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 { appStepKeys } from '../query-keys'; +import { appStepMutationKeys } from '../mutation-keys'; +import type { AppStepSelect, AppStepWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AppStepSelect, AppStepWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a AppStep with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteAppStepMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteAppStepMutation( + params: { + selection: { + fields: S & AppStepSelect; + } & HookStrictSelect, AppStepSelect>; + } & Omit< + UseMutationOptions< + { + deleteAppStep: { + appStep: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteAppStep: { + appStep: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteAppStepMutation( + 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: appStepMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .appStep.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: appStepKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appStepKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAuditLogMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAuditLogMutation.ts new file mode 100644 index 000000000..694be08d8 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAuditLogMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for AuditLog + * @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 { auditLogKeys } from '../query-keys'; +import { auditLogMutationKeys } from '../mutation-keys'; +import type { AuditLogSelect, AuditLogWithRelations } from '../../orm/input-types'; +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 + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteAuditLogMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteAuditLogMutation( + params: { + selection: { + fields: S & AuditLogSelect; + } & HookStrictSelect, AuditLogSelect>; + } & Omit< + UseMutationOptions< + { + deleteAuditLog: { + auditLog: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteAuditLog: { + auditLog: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteAuditLogMutation( + 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: auditLogMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .auditLog.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: auditLogKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: auditLogKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteCheckConstraintMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteCheckConstraintMutation.ts new file mode 100644 index 000000000..8f5aa7190 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteCheckConstraintMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for CheckConstraint + * @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 { checkConstraintKeys } from '../query-keys'; +import { checkConstraintMutationKeys } from '../mutation-keys'; +import type { CheckConstraintSelect, CheckConstraintWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { CheckConstraintSelect, CheckConstraintWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a CheckConstraint with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteCheckConstraintMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteCheckConstraintMutation( + params: { + selection: { + fields: S & CheckConstraintSelect; + } & HookStrictSelect, CheckConstraintSelect>; + } & Omit< + UseMutationOptions< + { + deleteCheckConstraint: { + checkConstraint: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteCheckConstraint: { + checkConstraint: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteCheckConstraintMutation( + 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: checkConstraintMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .checkConstraint.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: checkConstraintKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: checkConstraintKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteClaimedInviteMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteClaimedInviteMutation.ts new file mode 100644 index 000000000..2c3709bd0 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteClaimedInviteMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for ClaimedInvite + * @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 { claimedInviteKeys } from '../query-keys'; +import { claimedInviteMutationKeys } from '../mutation-keys'; +import type { ClaimedInviteSelect, ClaimedInviteWithRelations } from '../../orm/input-types'; +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 + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteClaimedInviteMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteClaimedInviteMutation( + params: { + selection: { + fields: S & ClaimedInviteSelect; + } & HookStrictSelect, ClaimedInviteSelect>; + } & Omit< + UseMutationOptions< + { + deleteClaimedInvite: { + claimedInvite: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteClaimedInvite: { + claimedInvite: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteClaimedInviteMutation( + 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: claimedInviteMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .claimedInvite.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: claimedInviteKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: claimedInviteKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteCommitMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteCommitMutation.ts new file mode 100644 index 000000000..435da8423 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteCommitMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for Commit + * @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 { commitKeys } from '../query-keys'; +import { commitMutationKeys } from '../mutation-keys'; +import type { CommitSelect, CommitWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { CommitSelect, CommitWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a Commit with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteCommitMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteCommitMutation( + params: { + selection: { + fields: S & CommitSelect; + } & HookStrictSelect, CommitSelect>; + } & Omit< + UseMutationOptions< + { + deleteCommit: { + commit: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteCommit: { + commit: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteCommitMutation( + 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: commitMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .commit.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: commitKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: commitKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteConnectedAccountMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteConnectedAccountMutation.ts new file mode 100644 index 000000000..29212bade --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteConnectedAccountMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for ConnectedAccount + * @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 { connectedAccountKeys } from '../query-keys'; +import { connectedAccountMutationKeys } from '../mutation-keys'; +import type { ConnectedAccountSelect, ConnectedAccountWithRelations } from '../../orm/input-types'; +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 + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteConnectedAccountMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteConnectedAccountMutation( + params: { + selection: { + fields: S & ConnectedAccountSelect; + } & HookStrictSelect, ConnectedAccountSelect>; + } & Omit< + UseMutationOptions< + { + deleteConnectedAccount: { + connectedAccount: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteConnectedAccount: { + connectedAccount: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteConnectedAccountMutation( + 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: connectedAccountMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .connectedAccount.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: connectedAccountKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: connectedAccountKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteConnectedAccountsModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteConnectedAccountsModuleMutation.ts new file mode 100644 index 000000000..8935b4ea0 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteConnectedAccountsModuleMutation.ts @@ -0,0 +1,104 @@ +/** + * Delete mutation hook for ConnectedAccountsModule + * @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 { connectedAccountsModuleKeys } from '../query-keys'; +import { connectedAccountsModuleMutationKeys } from '../mutation-keys'; +import type { + ConnectedAccountsModuleSelect, + ConnectedAccountsModuleWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ConnectedAccountsModuleSelect, + ConnectedAccountsModuleWithRelations, +} from '../../orm/input-types'; +/** + * Mutation hook for deleting a ConnectedAccountsModule with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteConnectedAccountsModuleMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteConnectedAccountsModuleMutation( + params: { + selection: { + fields: S & ConnectedAccountsModuleSelect; + } & HookStrictSelect, ConnectedAccountsModuleSelect>; + } & Omit< + UseMutationOptions< + { + deleteConnectedAccountsModule: { + connectedAccountsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteConnectedAccountsModule: { + connectedAccountsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteConnectedAccountsModuleMutation( + 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: connectedAccountsModuleMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .connectedAccountsModule.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: connectedAccountsModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: connectedAccountsModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteCryptoAddressMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteCryptoAddressMutation.ts new file mode 100644 index 000000000..15d7507ac --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteCryptoAddressMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for CryptoAddress + * @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 { cryptoAddressKeys } from '../query-keys'; +import { cryptoAddressMutationKeys } from '../mutation-keys'; +import type { CryptoAddressSelect, CryptoAddressWithRelations } from '../../orm/input-types'; +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 + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteCryptoAddressMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteCryptoAddressMutation( + params: { + selection: { + fields: S & CryptoAddressSelect; + } & HookStrictSelect, CryptoAddressSelect>; + } & Omit< + UseMutationOptions< + { + deleteCryptoAddress: { + cryptoAddress: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteCryptoAddress: { + cryptoAddress: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteCryptoAddressMutation( + 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: cryptoAddressMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .cryptoAddress.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: cryptoAddressKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: cryptoAddressKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteCryptoAddressesModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteCryptoAddressesModuleMutation.ts new file mode 100644 index 000000000..b08e20b4f --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteCryptoAddressesModuleMutation.ts @@ -0,0 +1,104 @@ +/** + * Delete mutation hook for CryptoAddressesModule + * @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 { cryptoAddressesModuleKeys } from '../query-keys'; +import { cryptoAddressesModuleMutationKeys } from '../mutation-keys'; +import type { + CryptoAddressesModuleSelect, + CryptoAddressesModuleWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + CryptoAddressesModuleSelect, + CryptoAddressesModuleWithRelations, +} from '../../orm/input-types'; +/** + * Mutation hook for deleting a CryptoAddressesModule with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteCryptoAddressesModuleMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteCryptoAddressesModuleMutation( + params: { + selection: { + fields: S & CryptoAddressesModuleSelect; + } & HookStrictSelect, CryptoAddressesModuleSelect>; + } & Omit< + UseMutationOptions< + { + deleteCryptoAddressesModule: { + cryptoAddressesModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteCryptoAddressesModule: { + cryptoAddressesModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteCryptoAddressesModuleMutation( + 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: cryptoAddressesModuleMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .cryptoAddressesModule.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: cryptoAddressesModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: cryptoAddressesModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteCryptoAuthModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteCryptoAuthModuleMutation.ts new file mode 100644 index 000000000..2fc10c2fa --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteCryptoAuthModuleMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for CryptoAuthModule + * @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 { cryptoAuthModuleKeys } from '../query-keys'; +import { cryptoAuthModuleMutationKeys } from '../mutation-keys'; +import type { CryptoAuthModuleSelect, CryptoAuthModuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { CryptoAuthModuleSelect, CryptoAuthModuleWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a CryptoAuthModule with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteCryptoAuthModuleMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteCryptoAuthModuleMutation( + params: { + selection: { + fields: S & CryptoAuthModuleSelect; + } & HookStrictSelect, CryptoAuthModuleSelect>; + } & Omit< + UseMutationOptions< + { + deleteCryptoAuthModule: { + cryptoAuthModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteCryptoAuthModule: { + cryptoAuthModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteCryptoAuthModuleMutation( + 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: cryptoAuthModuleMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .cryptoAuthModule.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: cryptoAuthModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: cryptoAuthModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteDatabaseMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteDatabaseMutation.ts new file mode 100644 index 000000000..dbfb72c03 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteDatabaseMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for Database + * @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 { databaseKeys } from '../query-keys'; +import { databaseMutationKeys } from '../mutation-keys'; +import type { DatabaseSelect, DatabaseWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { DatabaseSelect, DatabaseWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a Database with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteDatabaseMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteDatabaseMutation( + params: { + selection: { + fields: S & DatabaseSelect; + } & HookStrictSelect, DatabaseSelect>; + } & Omit< + UseMutationOptions< + { + deleteDatabase: { + database: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteDatabase: { + database: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteDatabaseMutation( + 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: databaseMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .database.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: databaseKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: databaseKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteDatabaseProvisionModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteDatabaseProvisionModuleMutation.ts new file mode 100644 index 000000000..a93386ca5 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteDatabaseProvisionModuleMutation.ts @@ -0,0 +1,104 @@ +/** + * Delete mutation hook for DatabaseProvisionModule + * @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 { databaseProvisionModuleKeys } from '../query-keys'; +import { databaseProvisionModuleMutationKeys } from '../mutation-keys'; +import type { + DatabaseProvisionModuleSelect, + DatabaseProvisionModuleWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + DatabaseProvisionModuleSelect, + DatabaseProvisionModuleWithRelations, +} from '../../orm/input-types'; +/** + * Mutation hook for deleting a DatabaseProvisionModule with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteDatabaseProvisionModuleMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteDatabaseProvisionModuleMutation( + params: { + selection: { + fields: S & DatabaseProvisionModuleSelect; + } & HookStrictSelect, DatabaseProvisionModuleSelect>; + } & Omit< + UseMutationOptions< + { + deleteDatabaseProvisionModule: { + databaseProvisionModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteDatabaseProvisionModule: { + databaseProvisionModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteDatabaseProvisionModuleMutation( + 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: databaseProvisionModuleMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .databaseProvisionModule.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: databaseProvisionModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: databaseProvisionModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteDefaultIdsModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteDefaultIdsModuleMutation.ts new file mode 100644 index 000000000..4eb6f0c89 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteDefaultIdsModuleMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for DefaultIdsModule + * @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 { defaultIdsModuleKeys } from '../query-keys'; +import { defaultIdsModuleMutationKeys } from '../mutation-keys'; +import type { DefaultIdsModuleSelect, DefaultIdsModuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { DefaultIdsModuleSelect, DefaultIdsModuleWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a DefaultIdsModule with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteDefaultIdsModuleMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteDefaultIdsModuleMutation( + params: { + selection: { + fields: S & DefaultIdsModuleSelect; + } & HookStrictSelect, DefaultIdsModuleSelect>; + } & Omit< + UseMutationOptions< + { + deleteDefaultIdsModule: { + defaultIdsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteDefaultIdsModule: { + defaultIdsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteDefaultIdsModuleMutation( + 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: defaultIdsModuleMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .defaultIdsModule.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: defaultIdsModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: defaultIdsModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteDenormalizedTableFieldMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteDenormalizedTableFieldMutation.ts new file mode 100644 index 000000000..1f8dd4bd9 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteDenormalizedTableFieldMutation.ts @@ -0,0 +1,104 @@ +/** + * Delete mutation hook for DenormalizedTableField + * @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 { denormalizedTableFieldKeys } from '../query-keys'; +import { denormalizedTableFieldMutationKeys } from '../mutation-keys'; +import type { + DenormalizedTableFieldSelect, + DenormalizedTableFieldWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + DenormalizedTableFieldSelect, + DenormalizedTableFieldWithRelations, +} from '../../orm/input-types'; +/** + * Mutation hook for deleting a DenormalizedTableField with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteDenormalizedTableFieldMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteDenormalizedTableFieldMutation( + params: { + selection: { + fields: S & DenormalizedTableFieldSelect; + } & HookStrictSelect, DenormalizedTableFieldSelect>; + } & Omit< + UseMutationOptions< + { + deleteDenormalizedTableField: { + denormalizedTableField: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteDenormalizedTableField: { + denormalizedTableField: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteDenormalizedTableFieldMutation( + 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: denormalizedTableFieldMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .denormalizedTableField.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: denormalizedTableFieldKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: denormalizedTableFieldKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteDomainMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteDomainMutation.ts new file mode 100644 index 000000000..34649edce --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteDomainMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for Domain + * @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 { domainKeys } from '../query-keys'; +import { domainMutationKeys } from '../mutation-keys'; +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 + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteDomainMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteDomainMutation( + params: { + selection: { + fields: S & DomainSelect; + } & HookStrictSelect, DomainSelect>; + } & Omit< + UseMutationOptions< + { + deleteDomain: { + domain: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteDomain: { + domain: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteDomainMutation( + 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: domainMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .domain.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: domainKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: domainKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteEmailMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteEmailMutation.ts new file mode 100644 index 000000000..55d906a64 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteEmailMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for Email + * @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 { emailKeys } from '../query-keys'; +import { emailMutationKeys } from '../mutation-keys'; +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 + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteEmailMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteEmailMutation( + params: { + selection: { + fields: S & EmailSelect; + } & HookStrictSelect, EmailSelect>; + } & Omit< + UseMutationOptions< + { + deleteEmail: { + email: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteEmail: { + email: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteEmailMutation( + 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: emailMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .email.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: emailKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: emailKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteEmailsModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteEmailsModuleMutation.ts new file mode 100644 index 000000000..a8e0c47ca --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteEmailsModuleMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for EmailsModule + * @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 { emailsModuleKeys } from '../query-keys'; +import { emailsModuleMutationKeys } from '../mutation-keys'; +import type { EmailsModuleSelect, EmailsModuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { EmailsModuleSelect, EmailsModuleWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a EmailsModule with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteEmailsModuleMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteEmailsModuleMutation( + params: { + selection: { + fields: S & EmailsModuleSelect; + } & HookStrictSelect, EmailsModuleSelect>; + } & Omit< + UseMutationOptions< + { + deleteEmailsModule: { + emailsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteEmailsModule: { + emailsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteEmailsModuleMutation( + 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: emailsModuleMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .emailsModule.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: emailsModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: emailsModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteEncryptedSecretsModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteEncryptedSecretsModuleMutation.ts new file mode 100644 index 000000000..9177e8d37 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteEncryptedSecretsModuleMutation.ts @@ -0,0 +1,104 @@ +/** + * Delete mutation hook for EncryptedSecretsModule + * @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 { encryptedSecretsModuleKeys } from '../query-keys'; +import { encryptedSecretsModuleMutationKeys } from '../mutation-keys'; +import type { + EncryptedSecretsModuleSelect, + EncryptedSecretsModuleWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + EncryptedSecretsModuleSelect, + EncryptedSecretsModuleWithRelations, +} from '../../orm/input-types'; +/** + * Mutation hook for deleting a EncryptedSecretsModule with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteEncryptedSecretsModuleMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteEncryptedSecretsModuleMutation( + params: { + selection: { + fields: S & EncryptedSecretsModuleSelect; + } & HookStrictSelect, EncryptedSecretsModuleSelect>; + } & Omit< + UseMutationOptions< + { + deleteEncryptedSecretsModule: { + encryptedSecretsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteEncryptedSecretsModule: { + encryptedSecretsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteEncryptedSecretsModuleMutation( + 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: encryptedSecretsModuleMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .encryptedSecretsModule.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: encryptedSecretsModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: encryptedSecretsModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteFieldModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteFieldModuleMutation.ts new file mode 100644 index 000000000..815afa5dc --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteFieldModuleMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for FieldModule + * @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 { fieldModuleKeys } from '../query-keys'; +import { fieldModuleMutationKeys } from '../mutation-keys'; +import type { FieldModuleSelect, FieldModuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { FieldModuleSelect, FieldModuleWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a FieldModule with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteFieldModuleMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteFieldModuleMutation( + params: { + selection: { + fields: S & FieldModuleSelect; + } & HookStrictSelect, FieldModuleSelect>; + } & Omit< + UseMutationOptions< + { + deleteFieldModule: { + fieldModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteFieldModule: { + fieldModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteFieldModuleMutation( + 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: fieldModuleMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .fieldModule.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: fieldModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: fieldModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteFieldMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteFieldMutation.ts new file mode 100644 index 000000000..96b9a2f6f --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteFieldMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for Field + * @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 { fieldKeys } from '../query-keys'; +import { fieldMutationKeys } from '../mutation-keys'; +import type { FieldSelect, FieldWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { FieldSelect, FieldWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a Field with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteFieldMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteFieldMutation( + params: { + selection: { + fields: S & FieldSelect; + } & HookStrictSelect, FieldSelect>; + } & Omit< + UseMutationOptions< + { + deleteField: { + field: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteField: { + field: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteFieldMutation( + 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: fieldMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .field.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: fieldKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: fieldKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteForeignKeyConstraintMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteForeignKeyConstraintMutation.ts new file mode 100644 index 000000000..8c6df80cb --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteForeignKeyConstraintMutation.ts @@ -0,0 +1,104 @@ +/** + * Delete mutation hook for ForeignKeyConstraint + * @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 { foreignKeyConstraintKeys } from '../query-keys'; +import { foreignKeyConstraintMutationKeys } from '../mutation-keys'; +import type { + ForeignKeyConstraintSelect, + ForeignKeyConstraintWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ForeignKeyConstraintSelect, + ForeignKeyConstraintWithRelations, +} from '../../orm/input-types'; +/** + * Mutation hook for deleting a ForeignKeyConstraint with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteForeignKeyConstraintMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteForeignKeyConstraintMutation( + params: { + selection: { + fields: S & ForeignKeyConstraintSelect; + } & HookStrictSelect, ForeignKeyConstraintSelect>; + } & Omit< + UseMutationOptions< + { + deleteForeignKeyConstraint: { + foreignKeyConstraint: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteForeignKeyConstraint: { + foreignKeyConstraint: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteForeignKeyConstraintMutation( + 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: foreignKeyConstraintMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .foreignKeyConstraint.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: foreignKeyConstraintKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: foreignKeyConstraintKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteFullTextSearchMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteFullTextSearchMutation.ts new file mode 100644 index 000000000..ee81e5eee --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteFullTextSearchMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for FullTextSearch + * @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 { fullTextSearchKeys } from '../query-keys'; +import { fullTextSearchMutationKeys } from '../mutation-keys'; +import type { FullTextSearchSelect, FullTextSearchWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { FullTextSearchSelect, FullTextSearchWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a FullTextSearch with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteFullTextSearchMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteFullTextSearchMutation( + params: { + selection: { + fields: S & FullTextSearchSelect; + } & HookStrictSelect, FullTextSearchSelect>; + } & Omit< + UseMutationOptions< + { + deleteFullTextSearch: { + fullTextSearch: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteFullTextSearch: { + fullTextSearch: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteFullTextSearchMutation( + 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: fullTextSearchMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .fullTextSearch.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: fullTextSearchKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: fullTextSearchKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteHierarchyModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteHierarchyModuleMutation.ts new file mode 100644 index 000000000..d798936eb --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteHierarchyModuleMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for HierarchyModule + * @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 { hierarchyModuleKeys } from '../query-keys'; +import { hierarchyModuleMutationKeys } from '../mutation-keys'; +import type { HierarchyModuleSelect, HierarchyModuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { HierarchyModuleSelect, HierarchyModuleWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a HierarchyModule with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteHierarchyModuleMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteHierarchyModuleMutation( + params: { + selection: { + fields: S & HierarchyModuleSelect; + } & HookStrictSelect, HierarchyModuleSelect>; + } & Omit< + UseMutationOptions< + { + deleteHierarchyModule: { + hierarchyModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteHierarchyModule: { + hierarchyModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteHierarchyModuleMutation( + 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: hierarchyModuleMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .hierarchyModule.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: hierarchyModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: hierarchyModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteIndexMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteIndexMutation.ts new file mode 100644 index 000000000..68af9ba2d --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteIndexMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for Index + * @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 { indexKeys } from '../query-keys'; +import { indexMutationKeys } from '../mutation-keys'; +import type { IndexSelect, IndexWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { IndexSelect, IndexWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a Index with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteIndexMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteIndexMutation( + params: { + selection: { + fields: S & IndexSelect; + } & HookStrictSelect, IndexSelect>; + } & Omit< + UseMutationOptions< + { + deleteIndex: { + index: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteIndex: { + index: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteIndexMutation( + 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: indexMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .index.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: indexKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: indexKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteInviteMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteInviteMutation.ts new file mode 100644 index 000000000..bf9850ba6 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteInviteMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for Invite + * @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 { inviteKeys } from '../query-keys'; +import { inviteMutationKeys } from '../mutation-keys'; +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 + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteInviteMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteInviteMutation( + params: { + selection: { + fields: S & InviteSelect; + } & HookStrictSelect, InviteSelect>; + } & Omit< + UseMutationOptions< + { + deleteInvite: { + invite: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteInvite: { + invite: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteInviteMutation( + 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: inviteMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .invite.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: inviteKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: inviteKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteInvitesModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteInvitesModuleMutation.ts new file mode 100644 index 000000000..42fa1699e --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteInvitesModuleMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for InvitesModule + * @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 { invitesModuleKeys } from '../query-keys'; +import { invitesModuleMutationKeys } from '../mutation-keys'; +import type { InvitesModuleSelect, InvitesModuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { InvitesModuleSelect, InvitesModuleWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a InvitesModule with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteInvitesModuleMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteInvitesModuleMutation( + params: { + selection: { + fields: S & InvitesModuleSelect; + } & HookStrictSelect, InvitesModuleSelect>; + } & Omit< + UseMutationOptions< + { + deleteInvitesModule: { + invitesModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteInvitesModule: { + invitesModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteInvitesModuleMutation( + 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: invitesModuleMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .invitesModule.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: invitesModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: invitesModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteLevelsModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteLevelsModuleMutation.ts new file mode 100644 index 000000000..7227e1f97 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteLevelsModuleMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for LevelsModule + * @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 { levelsModuleKeys } from '../query-keys'; +import { levelsModuleMutationKeys } from '../mutation-keys'; +import type { LevelsModuleSelect, LevelsModuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { LevelsModuleSelect, LevelsModuleWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a LevelsModule with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteLevelsModuleMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteLevelsModuleMutation( + params: { + selection: { + fields: S & LevelsModuleSelect; + } & HookStrictSelect, LevelsModuleSelect>; + } & Omit< + UseMutationOptions< + { + deleteLevelsModule: { + levelsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteLevelsModule: { + levelsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteLevelsModuleMutation( + 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: levelsModuleMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .levelsModule.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: levelsModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: levelsModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteLimitFunctionMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteLimitFunctionMutation.ts new file mode 100644 index 000000000..05debf225 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteLimitFunctionMutation.ts @@ -0,0 +1,98 @@ +/** + * 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/useDeleteLimitsModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteLimitsModuleMutation.ts new file mode 100644 index 000000000..a2eddb73b --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteLimitsModuleMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for LimitsModule + * @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 { limitsModuleKeys } from '../query-keys'; +import { limitsModuleMutationKeys } from '../mutation-keys'; +import type { LimitsModuleSelect, LimitsModuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { LimitsModuleSelect, LimitsModuleWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a LimitsModule with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteLimitsModuleMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteLimitsModuleMutation( + params: { + selection: { + fields: S & LimitsModuleSelect; + } & HookStrictSelect, LimitsModuleSelect>; + } & Omit< + UseMutationOptions< + { + deleteLimitsModule: { + limitsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteLimitsModule: { + limitsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteLimitsModuleMutation( + 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: limitsModuleMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .limitsModule.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: limitsModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: limitsModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteMembershipTypeMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteMembershipTypeMutation.ts new file mode 100644 index 000000000..dbec0d9e9 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteMembershipTypeMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for MembershipType + * @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 { membershipTypeKeys } from '../query-keys'; +import { membershipTypeMutationKeys } from '../mutation-keys'; +import type { MembershipTypeSelect, MembershipTypeWithRelations } from '../../orm/input-types'; +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 + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteMembershipTypeMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 123 }); + * ``` + */ +export function useDeleteMembershipTypeMutation( + params: { + selection: { + fields: S & MembershipTypeSelect; + } & HookStrictSelect, MembershipTypeSelect>; + } & Omit< + UseMutationOptions< + { + deleteMembershipType: { + membershipType: InferSelectResult; + }; + }, + Error, + { + id: number; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteMembershipType: { + membershipType: InferSelectResult; + }; + }, + Error, + { + id: number; + } +>; +export function useDeleteMembershipTypeMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: number; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: membershipTypeMutationKeys.all, + mutationFn: ({ id }: { id: number }) => + getClient() + .membershipType.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: membershipTypeKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: membershipTypeKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteMembershipTypesModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteMembershipTypesModuleMutation.ts new file mode 100644 index 000000000..0b9ba6ef3 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteMembershipTypesModuleMutation.ts @@ -0,0 +1,104 @@ +/** + * Delete mutation hook for MembershipTypesModule + * @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 { membershipTypesModuleKeys } from '../query-keys'; +import { membershipTypesModuleMutationKeys } from '../mutation-keys'; +import type { + MembershipTypesModuleSelect, + MembershipTypesModuleWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + MembershipTypesModuleSelect, + MembershipTypesModuleWithRelations, +} from '../../orm/input-types'; +/** + * Mutation hook for deleting a MembershipTypesModule with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteMembershipTypesModuleMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteMembershipTypesModuleMutation( + params: { + selection: { + fields: S & MembershipTypesModuleSelect; + } & HookStrictSelect, MembershipTypesModuleSelect>; + } & Omit< + UseMutationOptions< + { + deleteMembershipTypesModule: { + membershipTypesModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteMembershipTypesModule: { + membershipTypesModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteMembershipTypesModuleMutation( + 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: membershipTypesModuleMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .membershipTypesModule.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: membershipTypesModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: membershipTypesModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteMembershipsModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteMembershipsModuleMutation.ts new file mode 100644 index 000000000..cbba5195b --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteMembershipsModuleMutation.ts @@ -0,0 +1,104 @@ +/** + * Delete mutation hook for MembershipsModule + * @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 { membershipsModuleKeys } from '../query-keys'; +import { membershipsModuleMutationKeys } from '../mutation-keys'; +import type { + MembershipsModuleSelect, + MembershipsModuleWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + MembershipsModuleSelect, + MembershipsModuleWithRelations, +} from '../../orm/input-types'; +/** + * Mutation hook for deleting a MembershipsModule with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteMembershipsModuleMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteMembershipsModuleMutation( + params: { + selection: { + fields: S & MembershipsModuleSelect; + } & HookStrictSelect, MembershipsModuleSelect>; + } & Omit< + UseMutationOptions< + { + deleteMembershipsModule: { + membershipsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteMembershipsModule: { + membershipsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteMembershipsModuleMutation( + 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: membershipsModuleMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .membershipsModule.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: membershipsModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: membershipsModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteNodeTypeRegistryMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteNodeTypeRegistryMutation.ts new file mode 100644 index 000000000..a7a6c2ece --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteNodeTypeRegistryMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for NodeTypeRegistry + * @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 { nodeTypeRegistryKeys } from '../query-keys'; +import { nodeTypeRegistryMutationKeys } from '../mutation-keys'; +import type { NodeTypeRegistrySelect, NodeTypeRegistryWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { NodeTypeRegistrySelect, NodeTypeRegistryWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a NodeTypeRegistry with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteNodeTypeRegistryMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ name: 'value-to-delete' }); + * ``` + */ +export function useDeleteNodeTypeRegistryMutation( + params: { + selection: { + fields: S & NodeTypeRegistrySelect; + } & HookStrictSelect, NodeTypeRegistrySelect>; + } & Omit< + UseMutationOptions< + { + deleteNodeTypeRegistry: { + nodeTypeRegistry: InferSelectResult; + }; + }, + Error, + { + name: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteNodeTypeRegistry: { + nodeTypeRegistry: InferSelectResult; + }; + }, + Error, + { + name: string; + } +>; +export function useDeleteNodeTypeRegistryMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + name: string; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: nodeTypeRegistryMutationKeys.all, + mutationFn: ({ name }: { name: string }) => + getClient() + .nodeTypeRegistry.delete({ + where: { + name, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: nodeTypeRegistryKeys.detail(variables.name), + }); + queryClient.invalidateQueries({ + queryKey: nodeTypeRegistryKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteObjectMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteObjectMutation.ts new file mode 100644 index 000000000..c1027ecd6 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteObjectMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for Object + * @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 { objectKeys } from '../query-keys'; +import { objectMutationKeys } from '../mutation-keys'; +import type { ObjectSelect, ObjectWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ObjectSelect, ObjectWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a Object with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteObjectMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteObjectMutation( + params: { + selection: { + fields: S & ObjectSelect; + } & HookStrictSelect, ObjectSelect>; + } & Omit< + UseMutationOptions< + { + deleteObject: { + object: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteObject: { + object: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteObjectMutation( + 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: objectMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .object.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: objectKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: objectKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgAdminGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgAdminGrantMutation.ts new file mode 100644 index 000000000..b2b62e271 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgAdminGrantMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for OrgAdminGrant + * @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 { orgAdminGrantKeys } from '../query-keys'; +import { orgAdminGrantMutationKeys } from '../mutation-keys'; +import type { OrgAdminGrantSelect, OrgAdminGrantWithRelations } from '../../orm/input-types'; +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 + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteOrgAdminGrantMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteOrgAdminGrantMutation( + params: { + selection: { + fields: S & OrgAdminGrantSelect; + } & HookStrictSelect, OrgAdminGrantSelect>; + } & Omit< + UseMutationOptions< + { + deleteOrgAdminGrant: { + orgAdminGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteOrgAdminGrant: { + orgAdminGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteOrgAdminGrantMutation( + 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: orgAdminGrantMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .orgAdminGrant.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: orgAdminGrantKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgAdminGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgClaimedInviteMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgClaimedInviteMutation.ts new file mode 100644 index 000000000..267b1abfe --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgClaimedInviteMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for OrgClaimedInvite + * @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 { orgClaimedInviteKeys } from '../query-keys'; +import { orgClaimedInviteMutationKeys } from '../mutation-keys'; +import type { OrgClaimedInviteSelect, OrgClaimedInviteWithRelations } from '../../orm/input-types'; +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 + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteOrgClaimedInviteMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteOrgClaimedInviteMutation( + params: { + selection: { + fields: S & OrgClaimedInviteSelect; + } & HookStrictSelect, OrgClaimedInviteSelect>; + } & Omit< + UseMutationOptions< + { + deleteOrgClaimedInvite: { + orgClaimedInvite: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteOrgClaimedInvite: { + orgClaimedInvite: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteOrgClaimedInviteMutation( + 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: orgClaimedInviteMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .orgClaimedInvite.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: orgClaimedInviteKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgClaimedInviteKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgGrantMutation.ts new file mode 100644 index 000000000..94b80fa12 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgGrantMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for OrgGrant + * @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 { orgGrantKeys } from '../query-keys'; +import { orgGrantMutationKeys } from '../mutation-keys'; +import type { OrgGrantSelect, OrgGrantWithRelations } from '../../orm/input-types'; +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 + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteOrgGrantMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteOrgGrantMutation( + params: { + selection: { + fields: S & OrgGrantSelect; + } & HookStrictSelect, OrgGrantSelect>; + } & Omit< + UseMutationOptions< + { + deleteOrgGrant: { + orgGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteOrgGrant: { + orgGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteOrgGrantMutation( + 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: orgGrantMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .orgGrant.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: orgGrantKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgInviteMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgInviteMutation.ts new file mode 100644 index 000000000..2960aeac6 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgInviteMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for OrgInvite + * @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 { orgInviteKeys } from '../query-keys'; +import { orgInviteMutationKeys } from '../mutation-keys'; +import type { OrgInviteSelect, OrgInviteWithRelations } from '../../orm/input-types'; +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 + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteOrgInviteMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteOrgInviteMutation( + params: { + selection: { + fields: S & OrgInviteSelect; + } & HookStrictSelect, OrgInviteSelect>; + } & Omit< + UseMutationOptions< + { + deleteOrgInvite: { + orgInvite: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteOrgInvite: { + orgInvite: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteOrgInviteMutation( + 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: orgInviteMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .orgInvite.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: orgInviteKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgInviteKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgLimitDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgLimitDefaultMutation.ts new file mode 100644 index 000000000..a8e7bf162 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgLimitDefaultMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for OrgLimitDefault + * @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 { orgLimitDefaultKeys } from '../query-keys'; +import { orgLimitDefaultMutationKeys } from '../mutation-keys'; +import type { OrgLimitDefaultSelect, OrgLimitDefaultWithRelations } from '../../orm/input-types'; +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 + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteOrgLimitDefaultMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteOrgLimitDefaultMutation( + params: { + selection: { + fields: S & OrgLimitDefaultSelect; + } & HookStrictSelect, OrgLimitDefaultSelect>; + } & Omit< + UseMutationOptions< + { + deleteOrgLimitDefault: { + orgLimitDefault: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteOrgLimitDefault: { + orgLimitDefault: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteOrgLimitDefaultMutation( + 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: orgLimitDefaultMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .orgLimitDefault.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: orgLimitDefaultKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgLimitDefaultKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgLimitMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgLimitMutation.ts new file mode 100644 index 000000000..818a3b294 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgLimitMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for OrgLimit + * @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 { orgLimitKeys } from '../query-keys'; +import { orgLimitMutationKeys } from '../mutation-keys'; +import type { OrgLimitSelect, OrgLimitWithRelations } from '../../orm/input-types'; +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 + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteOrgLimitMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteOrgLimitMutation( + params: { + selection: { + fields: S & OrgLimitSelect; + } & HookStrictSelect, OrgLimitSelect>; + } & Omit< + UseMutationOptions< + { + deleteOrgLimit: { + orgLimit: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteOrgLimit: { + orgLimit: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteOrgLimitMutation( + 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: orgLimitMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .orgLimit.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: orgLimitKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgLimitKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgMemberMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgMemberMutation.ts new file mode 100644 index 000000000..9c7697147 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgMemberMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for OrgMember + * @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 { orgMemberKeys } from '../query-keys'; +import { orgMemberMutationKeys } from '../mutation-keys'; +import type { OrgMemberSelect, OrgMemberWithRelations } from '../../orm/input-types'; +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 + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteOrgMemberMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteOrgMemberMutation( + params: { + selection: { + fields: S & OrgMemberSelect; + } & HookStrictSelect, OrgMemberSelect>; + } & Omit< + UseMutationOptions< + { + deleteOrgMember: { + orgMember: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteOrgMember: { + orgMember: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteOrgMemberMutation( + 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: orgMemberMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .orgMember.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: orgMemberKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgMemberKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgMembershipDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgMembershipDefaultMutation.ts new file mode 100644 index 000000000..e5c398c57 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgMembershipDefaultMutation.ts @@ -0,0 +1,104 @@ +/** + * Delete mutation hook for OrgMembershipDefault + * @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 { orgMembershipDefaultKeys } from '../query-keys'; +import { orgMembershipDefaultMutationKeys } from '../mutation-keys'; +import type { + OrgMembershipDefaultSelect, + OrgMembershipDefaultWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgMembershipDefaultSelect, + OrgMembershipDefaultWithRelations, +} from '../../orm/input-types'; +/** + * Mutation hook for deleting a OrgMembershipDefault with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteOrgMembershipDefaultMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteOrgMembershipDefaultMutation( + params: { + selection: { + fields: S & OrgMembershipDefaultSelect; + } & HookStrictSelect, OrgMembershipDefaultSelect>; + } & Omit< + UseMutationOptions< + { + deleteOrgMembershipDefault: { + orgMembershipDefault: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteOrgMembershipDefault: { + orgMembershipDefault: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteOrgMembershipDefaultMutation( + 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: orgMembershipDefaultMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .orgMembershipDefault.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: orgMembershipDefaultKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgMembershipDefaultKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgMembershipMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgMembershipMutation.ts new file mode 100644 index 000000000..5108e73b9 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgMembershipMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for OrgMembership + * @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 { orgMembershipKeys } from '../query-keys'; +import { orgMembershipMutationKeys } from '../mutation-keys'; +import type { OrgMembershipSelect, OrgMembershipWithRelations } from '../../orm/input-types'; +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 + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteOrgMembershipMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteOrgMembershipMutation( + params: { + selection: { + fields: S & OrgMembershipSelect; + } & HookStrictSelect, OrgMembershipSelect>; + } & Omit< + UseMutationOptions< + { + deleteOrgMembership: { + orgMembership: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteOrgMembership: { + orgMembership: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteOrgMembershipMutation( + 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: orgMembershipMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .orgMembership.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: orgMembershipKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgMembershipKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgOwnerGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgOwnerGrantMutation.ts new file mode 100644 index 000000000..4700e63cd --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgOwnerGrantMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for OrgOwnerGrant + * @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 { orgOwnerGrantKeys } from '../query-keys'; +import { orgOwnerGrantMutationKeys } from '../mutation-keys'; +import type { OrgOwnerGrantSelect, OrgOwnerGrantWithRelations } from '../../orm/input-types'; +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 + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteOrgOwnerGrantMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteOrgOwnerGrantMutation( + params: { + selection: { + fields: S & OrgOwnerGrantSelect; + } & HookStrictSelect, OrgOwnerGrantSelect>; + } & Omit< + UseMutationOptions< + { + deleteOrgOwnerGrant: { + orgOwnerGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteOrgOwnerGrant: { + orgOwnerGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteOrgOwnerGrantMutation( + 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: orgOwnerGrantMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .orgOwnerGrant.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: orgOwnerGrantKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgOwnerGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgPermissionDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgPermissionDefaultMutation.ts new file mode 100644 index 000000000..841805104 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgPermissionDefaultMutation.ts @@ -0,0 +1,104 @@ +/** + * Delete mutation hook for OrgPermissionDefault + * @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 { orgPermissionDefaultKeys } from '../query-keys'; +import { orgPermissionDefaultMutationKeys } from '../mutation-keys'; +import type { + OrgPermissionDefaultSelect, + OrgPermissionDefaultWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgPermissionDefaultSelect, + OrgPermissionDefaultWithRelations, +} from '../../orm/input-types'; +/** + * Mutation hook for deleting a OrgPermissionDefault with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteOrgPermissionDefaultMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteOrgPermissionDefaultMutation( + params: { + selection: { + fields: S & OrgPermissionDefaultSelect; + } & HookStrictSelect, OrgPermissionDefaultSelect>; + } & Omit< + UseMutationOptions< + { + deleteOrgPermissionDefault: { + orgPermissionDefault: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteOrgPermissionDefault: { + orgPermissionDefault: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteOrgPermissionDefaultMutation( + 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: orgPermissionDefaultMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .orgPermissionDefault.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: orgPermissionDefaultKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgPermissionDefaultKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgPermissionMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgPermissionMutation.ts new file mode 100644 index 000000000..0792b5be9 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgPermissionMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for OrgPermission + * @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 { orgPermissionKeys } from '../query-keys'; +import { orgPermissionMutationKeys } from '../mutation-keys'; +import type { OrgPermissionSelect, OrgPermissionWithRelations } from '../../orm/input-types'; +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 + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteOrgPermissionMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteOrgPermissionMutation( + params: { + selection: { + fields: S & OrgPermissionSelect; + } & HookStrictSelect, OrgPermissionSelect>; + } & Omit< + UseMutationOptions< + { + deleteOrgPermission: { + orgPermission: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteOrgPermission: { + orgPermission: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteOrgPermissionMutation( + 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: orgPermissionMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .orgPermission.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: orgPermissionKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgPermissionKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeletePermissionsModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeletePermissionsModuleMutation.ts new file mode 100644 index 000000000..bcd6060e2 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeletePermissionsModuleMutation.ts @@ -0,0 +1,104 @@ +/** + * Delete mutation hook for PermissionsModule + * @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 { permissionsModuleKeys } from '../query-keys'; +import { permissionsModuleMutationKeys } from '../mutation-keys'; +import type { + PermissionsModuleSelect, + PermissionsModuleWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PermissionsModuleSelect, + PermissionsModuleWithRelations, +} from '../../orm/input-types'; +/** + * Mutation hook for deleting a PermissionsModule with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeletePermissionsModuleMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeletePermissionsModuleMutation( + params: { + selection: { + fields: S & PermissionsModuleSelect; + } & HookStrictSelect, PermissionsModuleSelect>; + } & Omit< + UseMutationOptions< + { + deletePermissionsModule: { + permissionsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deletePermissionsModule: { + permissionsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeletePermissionsModuleMutation( + 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: permissionsModuleMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .permissionsModule.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: permissionsModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: permissionsModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeletePhoneNumberMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeletePhoneNumberMutation.ts new file mode 100644 index 000000000..a76ed1b26 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeletePhoneNumberMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for PhoneNumber + * @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 { phoneNumberKeys } from '../query-keys'; +import { phoneNumberMutationKeys } from '../mutation-keys'; +import type { PhoneNumberSelect, PhoneNumberWithRelations } from '../../orm/input-types'; +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 + * + * @example + * ```tsx + * const { mutate, isPending } = useDeletePhoneNumberMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeletePhoneNumberMutation( + params: { + selection: { + fields: S & PhoneNumberSelect; + } & HookStrictSelect, PhoneNumberSelect>; + } & Omit< + UseMutationOptions< + { + deletePhoneNumber: { + phoneNumber: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deletePhoneNumber: { + phoneNumber: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeletePhoneNumberMutation( + 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: phoneNumberMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .phoneNumber.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: phoneNumberKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: phoneNumberKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeletePhoneNumbersModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeletePhoneNumbersModuleMutation.ts new file mode 100644 index 000000000..5234c3040 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeletePhoneNumbersModuleMutation.ts @@ -0,0 +1,104 @@ +/** + * Delete mutation hook for PhoneNumbersModule + * @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 { phoneNumbersModuleKeys } from '../query-keys'; +import { phoneNumbersModuleMutationKeys } from '../mutation-keys'; +import type { + PhoneNumbersModuleSelect, + PhoneNumbersModuleWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PhoneNumbersModuleSelect, + PhoneNumbersModuleWithRelations, +} from '../../orm/input-types'; +/** + * Mutation hook for deleting a PhoneNumbersModule with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeletePhoneNumbersModuleMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeletePhoneNumbersModuleMutation( + params: { + selection: { + fields: S & PhoneNumbersModuleSelect; + } & HookStrictSelect, PhoneNumbersModuleSelect>; + } & Omit< + UseMutationOptions< + { + deletePhoneNumbersModule: { + phoneNumbersModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deletePhoneNumbersModule: { + phoneNumbersModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeletePhoneNumbersModuleMutation( + 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: phoneNumbersModuleMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .phoneNumbersModule.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: phoneNumbersModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: phoneNumbersModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeletePolicyMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeletePolicyMutation.ts new file mode 100644 index 000000000..40ccfefbf --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeletePolicyMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for Policy + * @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 { policyKeys } from '../query-keys'; +import { policyMutationKeys } from '../mutation-keys'; +import type { PolicySelect, PolicyWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { PolicySelect, PolicyWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a Policy with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeletePolicyMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeletePolicyMutation( + params: { + selection: { + fields: S & PolicySelect; + } & HookStrictSelect, PolicySelect>; + } & Omit< + UseMutationOptions< + { + deletePolicy: { + policy: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deletePolicy: { + policy: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeletePolicyMutation( + 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: policyMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .policy.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: policyKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: policyKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeletePrimaryKeyConstraintMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeletePrimaryKeyConstraintMutation.ts new file mode 100644 index 000000000..758c59ca7 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeletePrimaryKeyConstraintMutation.ts @@ -0,0 +1,104 @@ +/** + * Delete mutation hook for PrimaryKeyConstraint + * @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 { primaryKeyConstraintKeys } from '../query-keys'; +import { primaryKeyConstraintMutationKeys } from '../mutation-keys'; +import type { + PrimaryKeyConstraintSelect, + PrimaryKeyConstraintWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PrimaryKeyConstraintSelect, + PrimaryKeyConstraintWithRelations, +} from '../../orm/input-types'; +/** + * Mutation hook for deleting a PrimaryKeyConstraint with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeletePrimaryKeyConstraintMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeletePrimaryKeyConstraintMutation( + params: { + selection: { + fields: S & PrimaryKeyConstraintSelect; + } & HookStrictSelect, PrimaryKeyConstraintSelect>; + } & Omit< + UseMutationOptions< + { + deletePrimaryKeyConstraint: { + primaryKeyConstraint: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deletePrimaryKeyConstraint: { + primaryKeyConstraint: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeletePrimaryKeyConstraintMutation( + 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: primaryKeyConstraintMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .primaryKeyConstraint.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: primaryKeyConstraintKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: primaryKeyConstraintKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteProcedureMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteProcedureMutation.ts new file mode 100644 index 000000000..080000ba9 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteProcedureMutation.ts @@ -0,0 +1,98 @@ +/** + * 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/useDeleteProfilesModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteProfilesModuleMutation.ts new file mode 100644 index 000000000..26b66b9b6 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteProfilesModuleMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for ProfilesModule + * @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 { profilesModuleKeys } from '../query-keys'; +import { profilesModuleMutationKeys } from '../mutation-keys'; +import type { ProfilesModuleSelect, ProfilesModuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ProfilesModuleSelect, ProfilesModuleWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a ProfilesModule with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteProfilesModuleMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteProfilesModuleMutation( + params: { + selection: { + fields: S & ProfilesModuleSelect; + } & HookStrictSelect, ProfilesModuleSelect>; + } & Omit< + UseMutationOptions< + { + deleteProfilesModule: { + profilesModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteProfilesModule: { + profilesModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteProfilesModuleMutation( + 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: profilesModuleMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .profilesModule.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: profilesModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: profilesModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteRefMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteRefMutation.ts new file mode 100644 index 000000000..5059da529 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteRefMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for Ref + * @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 { refKeys } from '../query-keys'; +import { refMutationKeys } from '../mutation-keys'; +import type { RefSelect, RefWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { RefSelect, RefWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a Ref with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteRefMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteRefMutation( + params: { + selection: { + fields: S & RefSelect; + } & HookStrictSelect, RefSelect>; + } & Omit< + UseMutationOptions< + { + deleteRef: { + ref: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteRef: { + ref: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteRefMutation( + 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: refMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .ref.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: refKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: refKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteRlsModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteRlsModuleMutation.ts new file mode 100644 index 000000000..ffd1df1f8 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteRlsModuleMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for RlsModule + * @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 { rlsModuleKeys } from '../query-keys'; +import { rlsModuleMutationKeys } from '../mutation-keys'; +import type { RlsModuleSelect, RlsModuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { RlsModuleSelect, RlsModuleWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a RlsModule with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteRlsModuleMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteRlsModuleMutation( + params: { + selection: { + fields: S & RlsModuleSelect; + } & HookStrictSelect, RlsModuleSelect>; + } & Omit< + UseMutationOptions< + { + deleteRlsModule: { + rlsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteRlsModule: { + rlsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteRlsModuleMutation( + 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: rlsModuleMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .rlsModule.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: rlsModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: rlsModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteRoleTypeMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteRoleTypeMutation.ts new file mode 100644 index 000000000..34495fa52 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteRoleTypeMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for RoleType + * @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 { roleTypeKeys } from '../query-keys'; +import { roleTypeMutationKeys } from '../mutation-keys'; +import type { RoleTypeSelect, RoleTypeWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { RoleTypeSelect, RoleTypeWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a RoleType with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteRoleTypeMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 123 }); + * ``` + */ +export function useDeleteRoleTypeMutation( + params: { + selection: { + fields: S & RoleTypeSelect; + } & HookStrictSelect, RoleTypeSelect>; + } & Omit< + UseMutationOptions< + { + deleteRoleType: { + roleType: InferSelectResult; + }; + }, + Error, + { + id: number; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteRoleType: { + roleType: InferSelectResult; + }; + }, + Error, + { + id: number; + } +>; +export function useDeleteRoleTypeMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: number; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: roleTypeMutationKeys.all, + mutationFn: ({ id }: { id: number }) => + getClient() + .roleType.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: roleTypeKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: roleTypeKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteSchemaGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteSchemaGrantMutation.ts new file mode 100644 index 000000000..f7e5535f9 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteSchemaGrantMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for SchemaGrant + * @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 { schemaGrantKeys } from '../query-keys'; +import { schemaGrantMutationKeys } from '../mutation-keys'; +import type { SchemaGrantSelect, SchemaGrantWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { SchemaGrantSelect, SchemaGrantWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a SchemaGrant with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteSchemaGrantMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteSchemaGrantMutation( + params: { + selection: { + fields: S & SchemaGrantSelect; + } & HookStrictSelect, SchemaGrantSelect>; + } & Omit< + UseMutationOptions< + { + deleteSchemaGrant: { + schemaGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteSchemaGrant: { + schemaGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteSchemaGrantMutation( + 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: schemaGrantMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .schemaGrant.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: schemaGrantKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: schemaGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteSchemaMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteSchemaMutation.ts new file mode 100644 index 000000000..bec1dd04a --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteSchemaMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for Schema + * @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 { schemaKeys } from '../query-keys'; +import { schemaMutationKeys } from '../mutation-keys'; +import type { SchemaSelect, SchemaWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { SchemaSelect, SchemaWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a Schema with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteSchemaMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteSchemaMutation( + params: { + selection: { + fields: S & SchemaSelect; + } & HookStrictSelect, SchemaSelect>; + } & Omit< + UseMutationOptions< + { + deleteSchema: { + schema: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteSchema: { + schema: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteSchemaMutation( + 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: schemaMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .schema.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: schemaKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: schemaKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteSecretsModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteSecretsModuleMutation.ts new file mode 100644 index 000000000..eb7743b92 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteSecretsModuleMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for SecretsModule + * @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 { secretsModuleKeys } from '../query-keys'; +import { secretsModuleMutationKeys } from '../mutation-keys'; +import type { SecretsModuleSelect, SecretsModuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { SecretsModuleSelect, SecretsModuleWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a SecretsModule with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteSecretsModuleMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteSecretsModuleMutation( + params: { + selection: { + fields: S & SecretsModuleSelect; + } & HookStrictSelect, SecretsModuleSelect>; + } & Omit< + UseMutationOptions< + { + deleteSecretsModule: { + secretsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteSecretsModule: { + secretsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteSecretsModuleMutation( + 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: secretsModuleMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .secretsModule.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: secretsModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: secretsModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteSessionsModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteSessionsModuleMutation.ts new file mode 100644 index 000000000..225330732 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteSessionsModuleMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for SessionsModule + * @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 { sessionsModuleKeys } from '../query-keys'; +import { sessionsModuleMutationKeys } from '../mutation-keys'; +import type { SessionsModuleSelect, SessionsModuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { SessionsModuleSelect, SessionsModuleWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a SessionsModule with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteSessionsModuleMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteSessionsModuleMutation( + params: { + selection: { + fields: S & SessionsModuleSelect; + } & HookStrictSelect, SessionsModuleSelect>; + } & Omit< + UseMutationOptions< + { + deleteSessionsModule: { + sessionsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteSessionsModule: { + sessionsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteSessionsModuleMutation( + 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: sessionsModuleMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .sessionsModule.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: sessionsModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: sessionsModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteSiteMetadatumMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteSiteMetadatumMutation.ts new file mode 100644 index 000000000..0801a13e4 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteSiteMetadatumMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for SiteMetadatum + * @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 { siteMetadatumKeys } from '../query-keys'; +import { siteMetadatumMutationKeys } from '../mutation-keys'; +import type { SiteMetadatumSelect, SiteMetadatumWithRelations } from '../../orm/input-types'; +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 + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteSiteMetadatumMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteSiteMetadatumMutation( + params: { + selection: { + fields: S & SiteMetadatumSelect; + } & HookStrictSelect, SiteMetadatumSelect>; + } & Omit< + UseMutationOptions< + { + deleteSiteMetadatum: { + siteMetadatum: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteSiteMetadatum: { + siteMetadatum: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteSiteMetadatumMutation( + 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: siteMetadatumMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .siteMetadatum.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: siteMetadatumKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: siteMetadatumKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteSiteModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteSiteModuleMutation.ts new file mode 100644 index 000000000..da2029857 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteSiteModuleMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for SiteModule + * @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 { siteModuleKeys } from '../query-keys'; +import { siteModuleMutationKeys } from '../mutation-keys'; +import type { SiteModuleSelect, SiteModuleWithRelations } from '../../orm/input-types'; +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 + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteSiteModuleMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteSiteModuleMutation( + params: { + selection: { + fields: S & SiteModuleSelect; + } & HookStrictSelect, SiteModuleSelect>; + } & Omit< + UseMutationOptions< + { + deleteSiteModule: { + siteModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteSiteModule: { + siteModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteSiteModuleMutation( + 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: siteModuleMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .siteModule.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: siteModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: siteModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteSiteMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteSiteMutation.ts new file mode 100644 index 000000000..619c413b6 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteSiteMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for Site + * @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 { siteKeys } from '../query-keys'; +import { siteMutationKeys } from '../mutation-keys'; +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 + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteSiteMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteSiteMutation( + params: { + selection: { + fields: S & SiteSelect; + } & HookStrictSelect, SiteSelect>; + } & Omit< + UseMutationOptions< + { + deleteSite: { + site: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteSite: { + site: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteSiteMutation( + 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: siteMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .site.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: siteKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: siteKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteSiteThemeMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteSiteThemeMutation.ts new file mode 100644 index 000000000..e09679eae --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteSiteThemeMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for SiteTheme + * @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 { siteThemeKeys } from '../query-keys'; +import { siteThemeMutationKeys } from '../mutation-keys'; +import type { SiteThemeSelect, SiteThemeWithRelations } from '../../orm/input-types'; +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 + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteSiteThemeMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteSiteThemeMutation( + params: { + selection: { + fields: S & SiteThemeSelect; + } & HookStrictSelect, SiteThemeSelect>; + } & Omit< + UseMutationOptions< + { + deleteSiteTheme: { + siteTheme: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteSiteTheme: { + siteTheme: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteSiteThemeMutation( + 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: siteThemeMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .siteTheme.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: siteThemeKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: siteThemeKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteStoreMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteStoreMutation.ts new file mode 100644 index 000000000..d78ea3bb5 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteStoreMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for Store + * @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 { storeKeys } from '../query-keys'; +import { storeMutationKeys } from '../mutation-keys'; +import type { StoreSelect, StoreWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { StoreSelect, StoreWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a Store with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteStoreMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteStoreMutation( + params: { + selection: { + fields: S & StoreSelect; + } & HookStrictSelect, StoreSelect>; + } & Omit< + UseMutationOptions< + { + deleteStore: { + store: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteStore: { + store: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteStoreMutation( + 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: storeMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .store.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: storeKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: storeKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteTableGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteTableGrantMutation.ts new file mode 100644 index 000000000..de24465b5 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteTableGrantMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for TableGrant + * @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 { tableGrantKeys } from '../query-keys'; +import { tableGrantMutationKeys } from '../mutation-keys'; +import type { TableGrantSelect, TableGrantWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { TableGrantSelect, TableGrantWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a TableGrant with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteTableGrantMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteTableGrantMutation( + params: { + selection: { + fields: S & TableGrantSelect; + } & HookStrictSelect, TableGrantSelect>; + } & Omit< + UseMutationOptions< + { + deleteTableGrant: { + tableGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteTableGrant: { + tableGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteTableGrantMutation( + 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: tableGrantMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .tableGrant.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: tableGrantKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: tableGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteTableModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteTableModuleMutation.ts new file mode 100644 index 000000000..6ec2d2708 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteTableModuleMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for TableModule + * @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 { tableModuleKeys } from '../query-keys'; +import { tableModuleMutationKeys } from '../mutation-keys'; +import type { TableModuleSelect, TableModuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { TableModuleSelect, TableModuleWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a TableModule with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteTableModuleMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteTableModuleMutation( + params: { + selection: { + fields: S & TableModuleSelect; + } & HookStrictSelect, TableModuleSelect>; + } & Omit< + UseMutationOptions< + { + deleteTableModule: { + tableModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteTableModule: { + tableModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteTableModuleMutation( + 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: tableModuleMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .tableModule.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: tableModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: tableModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteTableMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteTableMutation.ts new file mode 100644 index 000000000..ab496db2f --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteTableMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for 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 { tableKeys } from '../query-keys'; +import { tableMutationKeys } from '../mutation-keys'; +import type { TableSelect, TableWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { TableSelect, TableWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a Table with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteTableMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteTableMutation( + params: { + selection: { + fields: S & TableSelect; + } & HookStrictSelect, TableSelect>; + } & Omit< + UseMutationOptions< + { + deleteTable: { + table: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteTable: { + table: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteTableMutation( + 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: tableMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .table.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: tableKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: tableKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteTableTemplateModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteTableTemplateModuleMutation.ts new file mode 100644 index 000000000..d80fc2f60 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteTableTemplateModuleMutation.ts @@ -0,0 +1,104 @@ +/** + * Delete mutation hook for TableTemplateModule + * @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 { tableTemplateModuleKeys } from '../query-keys'; +import { tableTemplateModuleMutationKeys } from '../mutation-keys'; +import type { + TableTemplateModuleSelect, + TableTemplateModuleWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + TableTemplateModuleSelect, + TableTemplateModuleWithRelations, +} from '../../orm/input-types'; +/** + * Mutation hook for deleting a TableTemplateModule with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteTableTemplateModuleMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteTableTemplateModuleMutation( + params: { + selection: { + fields: S & TableTemplateModuleSelect; + } & HookStrictSelect, TableTemplateModuleSelect>; + } & Omit< + UseMutationOptions< + { + deleteTableTemplateModule: { + tableTemplateModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteTableTemplateModule: { + tableTemplateModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteTableTemplateModuleMutation( + 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: tableTemplateModuleMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .tableTemplateModule.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: tableTemplateModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: tableTemplateModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteTriggerFunctionMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteTriggerFunctionMutation.ts new file mode 100644 index 000000000..d36f5b47f --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteTriggerFunctionMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for TriggerFunction + * @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 { triggerFunctionKeys } from '../query-keys'; +import { triggerFunctionMutationKeys } from '../mutation-keys'; +import type { TriggerFunctionSelect, TriggerFunctionWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { TriggerFunctionSelect, TriggerFunctionWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a TriggerFunction with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteTriggerFunctionMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteTriggerFunctionMutation( + params: { + selection: { + fields: S & TriggerFunctionSelect; + } & HookStrictSelect, TriggerFunctionSelect>; + } & Omit< + UseMutationOptions< + { + deleteTriggerFunction: { + triggerFunction: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteTriggerFunction: { + triggerFunction: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteTriggerFunctionMutation( + 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: triggerFunctionMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .triggerFunction.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: triggerFunctionKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: triggerFunctionKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteTriggerMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteTriggerMutation.ts new file mode 100644 index 000000000..8b7399942 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteTriggerMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for Trigger + * @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 { triggerKeys } from '../query-keys'; +import { triggerMutationKeys } from '../mutation-keys'; +import type { TriggerSelect, TriggerWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { TriggerSelect, TriggerWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a Trigger with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteTriggerMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteTriggerMutation( + params: { + selection: { + fields: S & TriggerSelect; + } & HookStrictSelect, TriggerSelect>; + } & Omit< + UseMutationOptions< + { + deleteTrigger: { + trigger: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteTrigger: { + trigger: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteTriggerMutation( + 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: triggerMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .trigger.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: triggerKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: triggerKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteUniqueConstraintMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteUniqueConstraintMutation.ts new file mode 100644 index 000000000..583e889d8 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteUniqueConstraintMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for UniqueConstraint + * @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 { uniqueConstraintKeys } from '../query-keys'; +import { uniqueConstraintMutationKeys } from '../mutation-keys'; +import type { UniqueConstraintSelect, UniqueConstraintWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { UniqueConstraintSelect, UniqueConstraintWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a UniqueConstraint with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteUniqueConstraintMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteUniqueConstraintMutation( + params: { + selection: { + fields: S & UniqueConstraintSelect; + } & HookStrictSelect, UniqueConstraintSelect>; + } & Omit< + UseMutationOptions< + { + deleteUniqueConstraint: { + uniqueConstraint: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteUniqueConstraint: { + uniqueConstraint: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteUniqueConstraintMutation( + 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: uniqueConstraintMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .uniqueConstraint.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: uniqueConstraintKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: uniqueConstraintKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteUserAuthModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteUserAuthModuleMutation.ts new file mode 100644 index 000000000..d36ff1776 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteUserAuthModuleMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for UserAuthModule + * @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 { userAuthModuleKeys } from '../query-keys'; +import { userAuthModuleMutationKeys } from '../mutation-keys'; +import type { UserAuthModuleSelect, UserAuthModuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { UserAuthModuleSelect, UserAuthModuleWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a UserAuthModule with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteUserAuthModuleMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteUserAuthModuleMutation( + params: { + selection: { + fields: S & UserAuthModuleSelect; + } & HookStrictSelect, UserAuthModuleSelect>; + } & Omit< + UseMutationOptions< + { + deleteUserAuthModule: { + userAuthModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteUserAuthModule: { + userAuthModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteUserAuthModuleMutation( + 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: userAuthModuleMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .userAuthModule.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: userAuthModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: userAuthModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteUserMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteUserMutation.ts new file mode 100644 index 000000000..77880ad09 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteUserMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for User + * @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 { userKeys } from '../query-keys'; +import { userMutationKeys } from '../mutation-keys'; +import type { UserSelect, UserWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { UserSelect, UserWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a User with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteUserMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteUserMutation( + params: { + selection: { + fields: S & UserSelect; + } & HookStrictSelect, UserSelect>; + } & Omit< + UseMutationOptions< + { + deleteUser: { + user: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteUser: { + user: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteUserMutation( + 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: userMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .user.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: userKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: userKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteUsersModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteUsersModuleMutation.ts new file mode 100644 index 000000000..163eb549a --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteUsersModuleMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for UsersModule + * @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 { usersModuleKeys } from '../query-keys'; +import { usersModuleMutationKeys } from '../mutation-keys'; +import type { UsersModuleSelect, UsersModuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { UsersModuleSelect, UsersModuleWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a UsersModule with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteUsersModuleMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteUsersModuleMutation( + params: { + selection: { + fields: S & UsersModuleSelect; + } & HookStrictSelect, UsersModuleSelect>; + } & Omit< + UseMutationOptions< + { + deleteUsersModule: { + usersModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteUsersModule: { + usersModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteUsersModuleMutation( + 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: usersModuleMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .usersModule.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: usersModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: usersModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteUuidModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteUuidModuleMutation.ts new file mode 100644 index 000000000..0dc11108f --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteUuidModuleMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for UuidModule + * @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 { uuidModuleKeys } from '../query-keys'; +import { uuidModuleMutationKeys } from '../mutation-keys'; +import type { UuidModuleSelect, UuidModuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { UuidModuleSelect, UuidModuleWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a UuidModule with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteUuidModuleMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteUuidModuleMutation( + params: { + selection: { + fields: S & UuidModuleSelect; + } & HookStrictSelect, UuidModuleSelect>; + } & Omit< + UseMutationOptions< + { + deleteUuidModule: { + uuidModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteUuidModule: { + uuidModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteUuidModuleMutation( + 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: uuidModuleMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .uuidModule.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: uuidModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: uuidModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteViewGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteViewGrantMutation.ts new file mode 100644 index 000000000..7f16bee8e --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteViewGrantMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for ViewGrant + * @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 { viewGrantKeys } from '../query-keys'; +import { viewGrantMutationKeys } from '../mutation-keys'; +import type { ViewGrantSelect, ViewGrantWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ViewGrantSelect, ViewGrantWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a ViewGrant with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteViewGrantMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteViewGrantMutation( + params: { + selection: { + fields: S & ViewGrantSelect; + } & HookStrictSelect, ViewGrantSelect>; + } & Omit< + UseMutationOptions< + { + deleteViewGrant: { + viewGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteViewGrant: { + viewGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteViewGrantMutation( + 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: viewGrantMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .viewGrant.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: viewGrantKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: viewGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteViewMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteViewMutation.ts new file mode 100644 index 000000000..4a51300ea --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteViewMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for View + * @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 { viewKeys } from '../query-keys'; +import { viewMutationKeys } from '../mutation-keys'; +import type { ViewSelect, ViewWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ViewSelect, ViewWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a View with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteViewMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteViewMutation( + params: { + selection: { + fields: S & ViewSelect; + } & HookStrictSelect, ViewSelect>; + } & Omit< + UseMutationOptions< + { + deleteView: { + view: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteView: { + view: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteViewMutation( + 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: viewMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .view.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: viewKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: viewKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteViewRuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteViewRuleMutation.ts new file mode 100644 index 000000000..b1f633bdf --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteViewRuleMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for ViewRule + * @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 { viewRuleKeys } from '../query-keys'; +import { viewRuleMutationKeys } from '../mutation-keys'; +import type { ViewRuleSelect, ViewRuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ViewRuleSelect, ViewRuleWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a ViewRule with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteViewRuleMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteViewRuleMutation( + params: { + selection: { + fields: S & ViewRuleSelect; + } & HookStrictSelect, ViewRuleSelect>; + } & Omit< + UseMutationOptions< + { + deleteViewRule: { + viewRule: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteViewRule: { + viewRule: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteViewRuleMutation( + 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: viewRuleMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .viewRule.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: viewRuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: viewRuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteViewTableMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteViewTableMutation.ts new file mode 100644 index 000000000..2c5d6fec7 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteViewTableMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for ViewTable + * @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 { viewTableKeys } from '../query-keys'; +import { viewTableMutationKeys } from '../mutation-keys'; +import type { ViewTableSelect, ViewTableWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ViewTableSelect, ViewTableWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a ViewTable with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteViewTableMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteViewTableMutation( + params: { + selection: { + fields: S & ViewTableSelect; + } & HookStrictSelect, ViewTableSelect>; + } & Omit< + UseMutationOptions< + { + deleteViewTable: { + viewTable: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteViewTable: { + viewTable: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteViewTableMutation( + 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: viewTableMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .viewTable.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: viewTableKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: viewTableKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useExtendTokenExpiresMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useExtendTokenExpiresMutation.ts new file mode 100644 index 000000000..d5d081a1f --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useExtendTokenExpiresMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for extendTokenExpires + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } 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 { customMutationKeys } from '../mutation-keys'; +import type { ExtendTokenExpiresVariables } from '../../orm/mutation'; +import type { + ExtendTokenExpiresPayloadSelect, + ExtendTokenExpiresPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { ExtendTokenExpiresVariables } from '../../orm/mutation'; +export type { ExtendTokenExpiresPayloadSelect } from '../../orm/input-types'; +export function useExtendTokenExpiresMutation( + params: { + selection: { + fields: S & ExtendTokenExpiresPayloadSelect; + } & HookStrictSelect, ExtendTokenExpiresPayloadSelect>; + } & Omit< + UseMutationOptions< + { + extendTokenExpires: InferSelectResult | null; + }, + Error, + ExtendTokenExpiresVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + extendTokenExpires: InferSelectResult | null; + }, + Error, + ExtendTokenExpiresVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.extendTokenExpires(), + mutationFn: (variables: ExtendTokenExpiresVariables) => + getClient() + .mutation.extendTokenExpires(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useForgotPasswordMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useForgotPasswordMutation.ts new file mode 100644 index 000000000..a30ced386 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useForgotPasswordMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for forgotPassword + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } 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 { customMutationKeys } from '../mutation-keys'; +import type { ForgotPasswordVariables } from '../../orm/mutation'; +import type { ForgotPasswordPayloadSelect, ForgotPasswordPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { ForgotPasswordVariables } from '../../orm/mutation'; +export type { ForgotPasswordPayloadSelect } from '../../orm/input-types'; +export function useForgotPasswordMutation( + params: { + selection: { + fields: S & ForgotPasswordPayloadSelect; + } & HookStrictSelect, ForgotPasswordPayloadSelect>; + } & Omit< + UseMutationOptions< + { + forgotPassword: InferSelectResult | null; + }, + Error, + ForgotPasswordVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + forgotPassword: InferSelectResult | null; + }, + Error, + ForgotPasswordVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.forgotPassword(), + mutationFn: (variables: ForgotPasswordVariables) => + getClient() + .mutation.forgotPassword(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useFreezeObjectsMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useFreezeObjectsMutation.ts new file mode 100644 index 000000000..334bdcf31 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useFreezeObjectsMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for freezeObjects + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } 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 { customMutationKeys } from '../mutation-keys'; +import type { FreezeObjectsVariables } from '../../orm/mutation'; +import type { FreezeObjectsPayloadSelect, FreezeObjectsPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { FreezeObjectsVariables } from '../../orm/mutation'; +export type { FreezeObjectsPayloadSelect } from '../../orm/input-types'; +export function useFreezeObjectsMutation( + params: { + selection: { + fields: S & FreezeObjectsPayloadSelect; + } & HookStrictSelect, FreezeObjectsPayloadSelect>; + } & Omit< + UseMutationOptions< + { + freezeObjects: InferSelectResult | null; + }, + Error, + FreezeObjectsVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + freezeObjects: InferSelectResult | null; + }, + Error, + FreezeObjectsVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.freezeObjects(), + mutationFn: (variables: FreezeObjectsVariables) => + getClient() + .mutation.freezeObjects(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useInitEmptyRepoMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useInitEmptyRepoMutation.ts new file mode 100644 index 000000000..f82dc9e02 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useInitEmptyRepoMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for initEmptyRepo + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } 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 { customMutationKeys } from '../mutation-keys'; +import type { InitEmptyRepoVariables } from '../../orm/mutation'; +import type { InitEmptyRepoPayloadSelect, InitEmptyRepoPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { InitEmptyRepoVariables } from '../../orm/mutation'; +export type { InitEmptyRepoPayloadSelect } from '../../orm/input-types'; +export function useInitEmptyRepoMutation( + params: { + selection: { + fields: S & InitEmptyRepoPayloadSelect; + } & HookStrictSelect, InitEmptyRepoPayloadSelect>; + } & Omit< + UseMutationOptions< + { + initEmptyRepo: InferSelectResult | null; + }, + Error, + InitEmptyRepoVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + initEmptyRepo: InferSelectResult | null; + }, + Error, + InitEmptyRepoVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.initEmptyRepo(), + mutationFn: (variables: InitEmptyRepoVariables) => + getClient() + .mutation.initEmptyRepo(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useInsertNodeAtPathMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useInsertNodeAtPathMutation.ts new file mode 100644 index 000000000..9da7a1bd5 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useInsertNodeAtPathMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for insertNodeAtPath + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } 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 { customMutationKeys } from '../mutation-keys'; +import type { InsertNodeAtPathVariables } from '../../orm/mutation'; +import type { InsertNodeAtPathPayloadSelect, InsertNodeAtPathPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { InsertNodeAtPathVariables } from '../../orm/mutation'; +export type { InsertNodeAtPathPayloadSelect } from '../../orm/input-types'; +export function useInsertNodeAtPathMutation( + params: { + selection: { + fields: S & InsertNodeAtPathPayloadSelect; + } & HookStrictSelect, InsertNodeAtPathPayloadSelect>; + } & Omit< + UseMutationOptions< + { + insertNodeAtPath: InferSelectResult | null; + }, + Error, + InsertNodeAtPathVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + insertNodeAtPath: InferSelectResult | null; + }, + Error, + InsertNodeAtPathVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.insertNodeAtPath(), + mutationFn: (variables: InsertNodeAtPathVariables) => + getClient() + .mutation.insertNodeAtPath(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useOneTimeTokenMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useOneTimeTokenMutation.ts new file mode 100644 index 000000000..0215b7d08 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useOneTimeTokenMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for oneTimeToken + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } 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 { customMutationKeys } from '../mutation-keys'; +import type { OneTimeTokenVariables } from '../../orm/mutation'; +import type { OneTimeTokenPayloadSelect, OneTimeTokenPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { OneTimeTokenVariables } from '../../orm/mutation'; +export type { OneTimeTokenPayloadSelect } from '../../orm/input-types'; +export function useOneTimeTokenMutation( + params: { + selection: { + fields: S & OneTimeTokenPayloadSelect; + } & HookStrictSelect, OneTimeTokenPayloadSelect>; + } & Omit< + UseMutationOptions< + { + oneTimeToken: InferSelectResult | null; + }, + Error, + OneTimeTokenVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + oneTimeToken: InferSelectResult | null; + }, + Error, + OneTimeTokenVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.oneTimeToken(), + mutationFn: (variables: OneTimeTokenVariables) => + getClient() + .mutation.oneTimeToken(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useProvisionDatabaseWithUserMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useProvisionDatabaseWithUserMutation.ts new file mode 100644 index 000000000..10e5793db --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useProvisionDatabaseWithUserMutation.ts @@ -0,0 +1,60 @@ +/** + * Custom mutation hook for provisionDatabaseWithUser + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } 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 { customMutationKeys } from '../mutation-keys'; +import type { ProvisionDatabaseWithUserVariables } from '../../orm/mutation'; +import type { + ProvisionDatabaseWithUserPayloadSelect, + ProvisionDatabaseWithUserPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { ProvisionDatabaseWithUserVariables } from '../../orm/mutation'; +export type { ProvisionDatabaseWithUserPayloadSelect } from '../../orm/input-types'; +export function useProvisionDatabaseWithUserMutation< + S extends ProvisionDatabaseWithUserPayloadSelect, +>( + params: { + selection: { + fields: S & ProvisionDatabaseWithUserPayloadSelect; + } & HookStrictSelect, ProvisionDatabaseWithUserPayloadSelect>; + } & Omit< + UseMutationOptions< + { + provisionDatabaseWithUser: InferSelectResult | null; + }, + Error, + ProvisionDatabaseWithUserVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + provisionDatabaseWithUser: InferSelectResult | null; + }, + Error, + ProvisionDatabaseWithUserVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.provisionDatabaseWithUser(), + mutationFn: (variables: ProvisionDatabaseWithUserVariables) => + getClient() + .mutation.provisionDatabaseWithUser(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useRemoveNodeAtPathMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useRemoveNodeAtPathMutation.ts new file mode 100644 index 000000000..e44daf6bf --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useRemoveNodeAtPathMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for removeNodeAtPath + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } 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 { customMutationKeys } from '../mutation-keys'; +import type { RemoveNodeAtPathVariables } from '../../orm/mutation'; +import type { RemoveNodeAtPathPayloadSelect, RemoveNodeAtPathPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { RemoveNodeAtPathVariables } from '../../orm/mutation'; +export type { RemoveNodeAtPathPayloadSelect } from '../../orm/input-types'; +export function useRemoveNodeAtPathMutation( + params: { + selection: { + fields: S & RemoveNodeAtPathPayloadSelect; + } & HookStrictSelect, RemoveNodeAtPathPayloadSelect>; + } & Omit< + UseMutationOptions< + { + removeNodeAtPath: InferSelectResult | null; + }, + Error, + RemoveNodeAtPathVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + removeNodeAtPath: InferSelectResult | null; + }, + Error, + RemoveNodeAtPathVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.removeNodeAtPath(), + mutationFn: (variables: RemoveNodeAtPathVariables) => + getClient() + .mutation.removeNodeAtPath(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useResetPasswordMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useResetPasswordMutation.ts new file mode 100644 index 000000000..383cb8fa3 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useResetPasswordMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for resetPassword + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } 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 { customMutationKeys } from '../mutation-keys'; +import type { ResetPasswordVariables } from '../../orm/mutation'; +import type { ResetPasswordPayloadSelect, ResetPasswordPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { ResetPasswordVariables } from '../../orm/mutation'; +export type { ResetPasswordPayloadSelect } from '../../orm/input-types'; +export function useResetPasswordMutation( + params: { + selection: { + fields: S & ResetPasswordPayloadSelect; + } & HookStrictSelect, ResetPasswordPayloadSelect>; + } & Omit< + UseMutationOptions< + { + resetPassword: InferSelectResult | null; + }, + Error, + ResetPasswordVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + resetPassword: InferSelectResult | null; + }, + Error, + ResetPasswordVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.resetPassword(), + mutationFn: (variables: ResetPasswordVariables) => + getClient() + .mutation.resetPassword(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useSendAccountDeletionEmailMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useSendAccountDeletionEmailMutation.ts new file mode 100644 index 000000000..55a179118 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useSendAccountDeletionEmailMutation.ts @@ -0,0 +1,60 @@ +/** + * Custom mutation hook for sendAccountDeletionEmail + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } 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 { customMutationKeys } from '../mutation-keys'; +import type { SendAccountDeletionEmailVariables } from '../../orm/mutation'; +import type { + SendAccountDeletionEmailPayloadSelect, + SendAccountDeletionEmailPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { SendAccountDeletionEmailVariables } from '../../orm/mutation'; +export type { SendAccountDeletionEmailPayloadSelect } from '../../orm/input-types'; +export function useSendAccountDeletionEmailMutation< + S extends SendAccountDeletionEmailPayloadSelect, +>( + params: { + selection: { + fields: S & SendAccountDeletionEmailPayloadSelect; + } & HookStrictSelect, SendAccountDeletionEmailPayloadSelect>; + } & Omit< + UseMutationOptions< + { + sendAccountDeletionEmail: InferSelectResult | null; + }, + Error, + SendAccountDeletionEmailVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + sendAccountDeletionEmail: InferSelectResult | null; + }, + Error, + SendAccountDeletionEmailVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.sendAccountDeletionEmail(), + mutationFn: (variables: SendAccountDeletionEmailVariables) => + getClient() + .mutation.sendAccountDeletionEmail(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useSendVerificationEmailMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useSendVerificationEmailMutation.ts new file mode 100644 index 000000000..ea9ee0d76 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useSendVerificationEmailMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for sendVerificationEmail + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } 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 { customMutationKeys } from '../mutation-keys'; +import type { SendVerificationEmailVariables } from '../../orm/mutation'; +import type { + SendVerificationEmailPayloadSelect, + SendVerificationEmailPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { SendVerificationEmailVariables } from '../../orm/mutation'; +export type { SendVerificationEmailPayloadSelect } from '../../orm/input-types'; +export function useSendVerificationEmailMutation( + params: { + selection: { + fields: S & SendVerificationEmailPayloadSelect; + } & HookStrictSelect, SendVerificationEmailPayloadSelect>; + } & Omit< + UseMutationOptions< + { + sendVerificationEmail: InferSelectResult | null; + }, + Error, + SendVerificationEmailVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + sendVerificationEmail: InferSelectResult | null; + }, + Error, + SendVerificationEmailVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.sendVerificationEmail(), + mutationFn: (variables: SendVerificationEmailVariables) => + getClient() + .mutation.sendVerificationEmail(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useSetAndCommitMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useSetAndCommitMutation.ts new file mode 100644 index 000000000..efbed7692 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useSetAndCommitMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for setAndCommit + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } 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 { customMutationKeys } from '../mutation-keys'; +import type { SetAndCommitVariables } from '../../orm/mutation'; +import type { SetAndCommitPayloadSelect, SetAndCommitPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { SetAndCommitVariables } from '../../orm/mutation'; +export type { SetAndCommitPayloadSelect } from '../../orm/input-types'; +export function useSetAndCommitMutation( + params: { + selection: { + fields: S & SetAndCommitPayloadSelect; + } & HookStrictSelect, SetAndCommitPayloadSelect>; + } & Omit< + UseMutationOptions< + { + setAndCommit: InferSelectResult | null; + }, + Error, + SetAndCommitVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + setAndCommit: InferSelectResult | null; + }, + Error, + SetAndCommitVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.setAndCommit(), + mutationFn: (variables: SetAndCommitVariables) => + getClient() + .mutation.setAndCommit(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useSetDataAtPathMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useSetDataAtPathMutation.ts new file mode 100644 index 000000000..63f39667a --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useSetDataAtPathMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for setDataAtPath + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } 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 { customMutationKeys } from '../mutation-keys'; +import type { SetDataAtPathVariables } from '../../orm/mutation'; +import type { SetDataAtPathPayloadSelect, SetDataAtPathPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { SetDataAtPathVariables } from '../../orm/mutation'; +export type { SetDataAtPathPayloadSelect } from '../../orm/input-types'; +export function useSetDataAtPathMutation( + params: { + selection: { + fields: S & SetDataAtPathPayloadSelect; + } & HookStrictSelect, SetDataAtPathPayloadSelect>; + } & Omit< + UseMutationOptions< + { + setDataAtPath: InferSelectResult | null; + }, + Error, + SetDataAtPathVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + setDataAtPath: InferSelectResult | null; + }, + Error, + SetDataAtPathVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.setDataAtPath(), + mutationFn: (variables: SetDataAtPathVariables) => + getClient() + .mutation.setDataAtPath(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useSetFieldOrderMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useSetFieldOrderMutation.ts new file mode 100644 index 000000000..e24d213dd --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useSetFieldOrderMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for setFieldOrder + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } 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 { customMutationKeys } from '../mutation-keys'; +import type { SetFieldOrderVariables } from '../../orm/mutation'; +import type { SetFieldOrderPayloadSelect, SetFieldOrderPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { SetFieldOrderVariables } from '../../orm/mutation'; +export type { SetFieldOrderPayloadSelect } from '../../orm/input-types'; +export function useSetFieldOrderMutation( + params: { + selection: { + fields: S & SetFieldOrderPayloadSelect; + } & HookStrictSelect, SetFieldOrderPayloadSelect>; + } & Omit< + UseMutationOptions< + { + setFieldOrder: InferSelectResult | null; + }, + Error, + SetFieldOrderVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + setFieldOrder: InferSelectResult | null; + }, + Error, + SetFieldOrderVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.setFieldOrder(), + mutationFn: (variables: SetFieldOrderVariables) => + getClient() + .mutation.setFieldOrder(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useSetPasswordMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useSetPasswordMutation.ts new file mode 100644 index 000000000..af901aba1 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useSetPasswordMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for setPassword + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } 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 { customMutationKeys } from '../mutation-keys'; +import type { SetPasswordVariables } from '../../orm/mutation'; +import type { SetPasswordPayloadSelect, SetPasswordPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { SetPasswordVariables } from '../../orm/mutation'; +export type { SetPasswordPayloadSelect } from '../../orm/input-types'; +export function useSetPasswordMutation( + params: { + selection: { + fields: S & SetPasswordPayloadSelect; + } & HookStrictSelect, SetPasswordPayloadSelect>; + } & Omit< + UseMutationOptions< + { + setPassword: InferSelectResult | null; + }, + Error, + SetPasswordVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + setPassword: InferSelectResult | null; + }, + Error, + SetPasswordVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.setPassword(), + mutationFn: (variables: SetPasswordVariables) => + getClient() + .mutation.setPassword(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useSetPropsAndCommitMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useSetPropsAndCommitMutation.ts new file mode 100644 index 000000000..49e6bbcd0 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useSetPropsAndCommitMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for setPropsAndCommit + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } 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 { customMutationKeys } from '../mutation-keys'; +import type { SetPropsAndCommitVariables } from '../../orm/mutation'; +import type { + SetPropsAndCommitPayloadSelect, + SetPropsAndCommitPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { SetPropsAndCommitVariables } from '../../orm/mutation'; +export type { SetPropsAndCommitPayloadSelect } from '../../orm/input-types'; +export function useSetPropsAndCommitMutation( + params: { + selection: { + fields: S & SetPropsAndCommitPayloadSelect; + } & HookStrictSelect, SetPropsAndCommitPayloadSelect>; + } & Omit< + UseMutationOptions< + { + setPropsAndCommit: InferSelectResult | null; + }, + Error, + SetPropsAndCommitVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + setPropsAndCommit: InferSelectResult | null; + }, + Error, + SetPropsAndCommitVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.setPropsAndCommit(), + mutationFn: (variables: SetPropsAndCommitVariables) => + getClient() + .mutation.setPropsAndCommit(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useSignInMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useSignInMutation.ts new file mode 100644 index 000000000..ff20ed5c4 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useSignInMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for signIn + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } 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 { customMutationKeys } from '../mutation-keys'; +import type { SignInVariables } from '../../orm/mutation'; +import type { SignInPayloadSelect, SignInPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { SignInVariables } from '../../orm/mutation'; +export type { SignInPayloadSelect } from '../../orm/input-types'; +export function useSignInMutation( + params: { + selection: { + fields: S & SignInPayloadSelect; + } & HookStrictSelect, SignInPayloadSelect>; + } & Omit< + UseMutationOptions< + { + signIn: InferSelectResult | null; + }, + Error, + SignInVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + signIn: InferSelectResult | null; + }, + Error, + SignInVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.signIn(), + mutationFn: (variables: SignInVariables) => + getClient() + .mutation.signIn(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useSignInOneTimeTokenMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useSignInOneTimeTokenMutation.ts new file mode 100644 index 000000000..2485fe1a6 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useSignInOneTimeTokenMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for signInOneTimeToken + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } 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 { customMutationKeys } from '../mutation-keys'; +import type { SignInOneTimeTokenVariables } from '../../orm/mutation'; +import type { + SignInOneTimeTokenPayloadSelect, + SignInOneTimeTokenPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { SignInOneTimeTokenVariables } from '../../orm/mutation'; +export type { SignInOneTimeTokenPayloadSelect } from '../../orm/input-types'; +export function useSignInOneTimeTokenMutation( + params: { + selection: { + fields: S & SignInOneTimeTokenPayloadSelect; + } & HookStrictSelect, SignInOneTimeTokenPayloadSelect>; + } & Omit< + UseMutationOptions< + { + signInOneTimeToken: InferSelectResult | null; + }, + Error, + SignInOneTimeTokenVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + signInOneTimeToken: InferSelectResult | null; + }, + Error, + SignInOneTimeTokenVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.signInOneTimeToken(), + mutationFn: (variables: SignInOneTimeTokenVariables) => + getClient() + .mutation.signInOneTimeToken(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useSignOutMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useSignOutMutation.ts new file mode 100644 index 000000000..fba4da1f5 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useSignOutMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for signOut + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } 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 { customMutationKeys } from '../mutation-keys'; +import type { SignOutVariables } from '../../orm/mutation'; +import type { SignOutPayloadSelect, SignOutPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { SignOutVariables } from '../../orm/mutation'; +export type { SignOutPayloadSelect } from '../../orm/input-types'; +export function useSignOutMutation( + params: { + selection: { + fields: S & SignOutPayloadSelect; + } & HookStrictSelect, SignOutPayloadSelect>; + } & Omit< + UseMutationOptions< + { + signOut: InferSelectResult | null; + }, + Error, + SignOutVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + signOut: InferSelectResult | null; + }, + Error, + SignOutVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.signOut(), + mutationFn: (variables: SignOutVariables) => + getClient() + .mutation.signOut(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useSignUpMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useSignUpMutation.ts new file mode 100644 index 000000000..8dc94a896 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useSignUpMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for signUp + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } 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 { customMutationKeys } from '../mutation-keys'; +import type { SignUpVariables } from '../../orm/mutation'; +import type { SignUpPayloadSelect, SignUpPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { SignUpVariables } from '../../orm/mutation'; +export type { SignUpPayloadSelect } from '../../orm/input-types'; +export function useSignUpMutation( + params: { + selection: { + fields: S & SignUpPayloadSelect; + } & HookStrictSelect, SignUpPayloadSelect>; + } & Omit< + UseMutationOptions< + { + signUp: InferSelectResult | null; + }, + Error, + SignUpVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + signUp: InferSelectResult | null; + }, + Error, + SignUpVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.signUp(), + mutationFn: (variables: SignUpVariables) => + getClient() + .mutation.signUp(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useSubmitInviteCodeMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useSubmitInviteCodeMutation.ts new file mode 100644 index 000000000..f98317bc5 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useSubmitInviteCodeMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for submitInviteCode + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } 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 { customMutationKeys } from '../mutation-keys'; +import type { SubmitInviteCodeVariables } from '../../orm/mutation'; +import type { SubmitInviteCodePayloadSelect, SubmitInviteCodePayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { SubmitInviteCodeVariables } from '../../orm/mutation'; +export type { SubmitInviteCodePayloadSelect } from '../../orm/input-types'; +export function useSubmitInviteCodeMutation( + params: { + selection: { + fields: S & SubmitInviteCodePayloadSelect; + } & HookStrictSelect, SubmitInviteCodePayloadSelect>; + } & Omit< + UseMutationOptions< + { + submitInviteCode: InferSelectResult | null; + }, + Error, + SubmitInviteCodeVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + submitInviteCode: InferSelectResult | null; + }, + Error, + SubmitInviteCodeVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.submitInviteCode(), + mutationFn: (variables: SubmitInviteCodeVariables) => + getClient() + .mutation.submitInviteCode(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useSubmitOrgInviteCodeMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useSubmitOrgInviteCodeMutation.ts new file mode 100644 index 000000000..a2e71103b --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useSubmitOrgInviteCodeMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for submitOrgInviteCode + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } 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 { customMutationKeys } from '../mutation-keys'; +import type { SubmitOrgInviteCodeVariables } from '../../orm/mutation'; +import type { + SubmitOrgInviteCodePayloadSelect, + SubmitOrgInviteCodePayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { SubmitOrgInviteCodeVariables } from '../../orm/mutation'; +export type { SubmitOrgInviteCodePayloadSelect } from '../../orm/input-types'; +export function useSubmitOrgInviteCodeMutation( + params: { + selection: { + fields: S & SubmitOrgInviteCodePayloadSelect; + } & HookStrictSelect, SubmitOrgInviteCodePayloadSelect>; + } & Omit< + UseMutationOptions< + { + submitOrgInviteCode: InferSelectResult | null; + }, + Error, + SubmitOrgInviteCodeVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + submitOrgInviteCode: InferSelectResult | null; + }, + Error, + SubmitOrgInviteCodeVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.submitOrgInviteCode(), + mutationFn: (variables: SubmitOrgInviteCodeVariables) => + getClient() + .mutation.submitOrgInviteCode(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateApiModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateApiModuleMutation.ts new file mode 100644 index 000000000..0cbf3cb8e --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateApiModuleMutation.ts @@ -0,0 +1,110 @@ +/** + * Update mutation hook for ApiModule + * @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 { apiModuleKeys } from '../query-keys'; +import { apiModuleMutationKeys } from '../mutation-keys'; +import type { + ApiModuleSelect, + ApiModuleWithRelations, + ApiModulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ApiModuleSelect, + ApiModuleWithRelations, + ApiModulePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a ApiModule + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateApiModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', apiModulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateApiModuleMutation( + params: { + selection: { + fields: S & ApiModuleSelect; + } & HookStrictSelect, ApiModuleSelect>; + } & Omit< + UseMutationOptions< + { + updateApiModule: { + apiModule: InferSelectResult; + }; + }, + Error, + { + id: string; + apiModulePatch: ApiModulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateApiModule: { + apiModule: InferSelectResult; + }; + }, + Error, + { + id: string; + apiModulePatch: ApiModulePatch; + } +>; +export function useUpdateApiModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + apiModulePatch: ApiModulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: apiModuleMutationKeys.all, + mutationFn: ({ id, apiModulePatch }: { id: string; apiModulePatch: ApiModulePatch }) => + getClient() + .apiModule.update({ + where: { + id, + }, + data: apiModulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: apiModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: apiModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateApiMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateApiMutation.ts new file mode 100644 index 000000000..27a304c25 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateApiMutation.ts @@ -0,0 +1,102 @@ +/** + * Update mutation hook for Api + * @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 { apiKeys } from '../query-keys'; +import { apiMutationKeys } from '../mutation-keys'; +import type { ApiSelect, ApiWithRelations, ApiPatch } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ApiSelect, ApiWithRelations, ApiPatch } from '../../orm/input-types'; +/** + * Mutation hook for updating a Api + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateApiMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', apiPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateApiMutation( + params: { + selection: { + fields: S & ApiSelect; + } & HookStrictSelect, ApiSelect>; + } & Omit< + UseMutationOptions< + { + updateApi: { + api: InferSelectResult; + }; + }, + Error, + { + id: string; + apiPatch: ApiPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateApi: { + api: InferSelectResult; + }; + }, + Error, + { + id: string; + apiPatch: ApiPatch; + } +>; +export function useUpdateApiMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + apiPatch: ApiPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: apiMutationKeys.all, + mutationFn: ({ id, apiPatch }: { id: string; apiPatch: ApiPatch }) => + getClient() + .api.update({ + where: { + id, + }, + data: apiPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: apiKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: apiKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateApiSchemaMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateApiSchemaMutation.ts new file mode 100644 index 000000000..47185a7c0 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateApiSchemaMutation.ts @@ -0,0 +1,110 @@ +/** + * Update mutation hook for ApiSchema + * @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 { apiSchemaKeys } from '../query-keys'; +import { apiSchemaMutationKeys } from '../mutation-keys'; +import type { + ApiSchemaSelect, + ApiSchemaWithRelations, + ApiSchemaPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ApiSchemaSelect, + ApiSchemaWithRelations, + ApiSchemaPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a ApiSchema + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateApiSchemaMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', apiSchemaPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateApiSchemaMutation( + params: { + selection: { + fields: S & ApiSchemaSelect; + } & HookStrictSelect, ApiSchemaSelect>; + } & Omit< + UseMutationOptions< + { + updateApiSchema: { + apiSchema: InferSelectResult; + }; + }, + Error, + { + id: string; + apiSchemaPatch: ApiSchemaPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateApiSchema: { + apiSchema: InferSelectResult; + }; + }, + Error, + { + id: string; + apiSchemaPatch: ApiSchemaPatch; + } +>; +export function useUpdateApiSchemaMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + apiSchemaPatch: ApiSchemaPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: apiSchemaMutationKeys.all, + mutationFn: ({ id, apiSchemaPatch }: { id: string; apiSchemaPatch: ApiSchemaPatch }) => + getClient() + .apiSchema.update({ + where: { + id, + }, + data: apiSchemaPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: apiSchemaKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: apiSchemaKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppAchievementMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppAchievementMutation.ts new file mode 100644 index 000000000..799b7770f --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppAchievementMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for AppAchievement + * @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 { appAchievementKeys } from '../query-keys'; +import { appAchievementMutationKeys } from '../mutation-keys'; +import type { + AppAchievementSelect, + AppAchievementWithRelations, + AppAchievementPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppAchievementSelect, + AppAchievementWithRelations, + AppAchievementPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a AppAchievement + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateAppAchievementMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', appAchievementPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateAppAchievementMutation( + params: { + selection: { + fields: S & AppAchievementSelect; + } & HookStrictSelect, AppAchievementSelect>; + } & Omit< + UseMutationOptions< + { + updateAppAchievement: { + appAchievement: InferSelectResult; + }; + }, + Error, + { + id: string; + appAchievementPatch: AppAchievementPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateAppAchievement: { + appAchievement: InferSelectResult; + }; + }, + Error, + { + id: string; + appAchievementPatch: AppAchievementPatch; + } +>; +export function useUpdateAppAchievementMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + appAchievementPatch: AppAchievementPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appAchievementMutationKeys.all, + mutationFn: ({ + id, + appAchievementPatch, + }: { + id: string; + appAchievementPatch: AppAchievementPatch; + }) => + getClient() + .appAchievement.update({ + where: { + id, + }, + data: appAchievementPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: appAchievementKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appAchievementKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppAdminGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppAdminGrantMutation.ts new file mode 100644 index 000000000..9f97a4a26 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppAdminGrantMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for AppAdminGrant + * @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 { appAdminGrantKeys } from '../query-keys'; +import { appAdminGrantMutationKeys } from '../mutation-keys'; +import type { + AppAdminGrantSelect, + AppAdminGrantWithRelations, + AppAdminGrantPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppAdminGrantSelect, + AppAdminGrantWithRelations, + AppAdminGrantPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a AppAdminGrant + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateAppAdminGrantMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', appAdminGrantPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateAppAdminGrantMutation( + params: { + selection: { + fields: S & AppAdminGrantSelect; + } & HookStrictSelect, AppAdminGrantSelect>; + } & Omit< + UseMutationOptions< + { + updateAppAdminGrant: { + appAdminGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + appAdminGrantPatch: AppAdminGrantPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateAppAdminGrant: { + appAdminGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + appAdminGrantPatch: AppAdminGrantPatch; + } +>; +export function useUpdateAppAdminGrantMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + appAdminGrantPatch: AppAdminGrantPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appAdminGrantMutationKeys.all, + mutationFn: ({ + id, + appAdminGrantPatch, + }: { + id: string; + appAdminGrantPatch: AppAdminGrantPatch; + }) => + getClient() + .appAdminGrant.update({ + where: { + id, + }, + data: appAdminGrantPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: appAdminGrantKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appAdminGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppGrantMutation.ts new file mode 100644 index 000000000..fe323065c --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppGrantMutation.ts @@ -0,0 +1,102 @@ +/** + * Update mutation hook for AppGrant + * @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 { appGrantKeys } from '../query-keys'; +import { appGrantMutationKeys } from '../mutation-keys'; +import type { AppGrantSelect, AppGrantWithRelations, AppGrantPatch } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AppGrantSelect, AppGrantWithRelations, AppGrantPatch } from '../../orm/input-types'; +/** + * Mutation hook for updating a AppGrant + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateAppGrantMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', appGrantPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateAppGrantMutation( + params: { + selection: { + fields: S & AppGrantSelect; + } & HookStrictSelect, AppGrantSelect>; + } & Omit< + UseMutationOptions< + { + updateAppGrant: { + appGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + appGrantPatch: AppGrantPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateAppGrant: { + appGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + appGrantPatch: AppGrantPatch; + } +>; +export function useUpdateAppGrantMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + appGrantPatch: AppGrantPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appGrantMutationKeys.all, + mutationFn: ({ id, appGrantPatch }: { id: string; appGrantPatch: AppGrantPatch }) => + getClient() + .appGrant.update({ + where: { + id, + }, + data: appGrantPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: appGrantKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLevelMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLevelMutation.ts new file mode 100644 index 000000000..309666ec5 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLevelMutation.ts @@ -0,0 +1,102 @@ +/** + * Update mutation hook for AppLevel + * @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 { appLevelKeys } from '../query-keys'; +import { appLevelMutationKeys } from '../mutation-keys'; +import type { AppLevelSelect, AppLevelWithRelations, AppLevelPatch } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AppLevelSelect, AppLevelWithRelations, AppLevelPatch } from '../../orm/input-types'; +/** + * Mutation hook for updating a AppLevel + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateAppLevelMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', appLevelPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateAppLevelMutation( + params: { + selection: { + fields: S & AppLevelSelect; + } & HookStrictSelect, AppLevelSelect>; + } & Omit< + UseMutationOptions< + { + updateAppLevel: { + appLevel: InferSelectResult; + }; + }, + Error, + { + id: string; + appLevelPatch: AppLevelPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateAppLevel: { + appLevel: InferSelectResult; + }; + }, + Error, + { + id: string; + appLevelPatch: AppLevelPatch; + } +>; +export function useUpdateAppLevelMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + appLevelPatch: AppLevelPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appLevelMutationKeys.all, + mutationFn: ({ id, appLevelPatch }: { id: string; appLevelPatch: AppLevelPatch }) => + getClient() + .appLevel.update({ + where: { + id, + }, + data: appLevelPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: appLevelKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appLevelKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLevelRequirementMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLevelRequirementMutation.ts new file mode 100644 index 000000000..418f3464a --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLevelRequirementMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for AppLevelRequirement + * @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 { appLevelRequirementKeys } from '../query-keys'; +import { appLevelRequirementMutationKeys } from '../mutation-keys'; +import type { + AppLevelRequirementSelect, + AppLevelRequirementWithRelations, + AppLevelRequirementPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppLevelRequirementSelect, + AppLevelRequirementWithRelations, + AppLevelRequirementPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a AppLevelRequirement + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateAppLevelRequirementMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', appLevelRequirementPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateAppLevelRequirementMutation( + params: { + selection: { + fields: S & AppLevelRequirementSelect; + } & HookStrictSelect, AppLevelRequirementSelect>; + } & Omit< + UseMutationOptions< + { + updateAppLevelRequirement: { + appLevelRequirement: InferSelectResult; + }; + }, + Error, + { + id: string; + appLevelRequirementPatch: AppLevelRequirementPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateAppLevelRequirement: { + appLevelRequirement: InferSelectResult; + }; + }, + Error, + { + id: string; + appLevelRequirementPatch: AppLevelRequirementPatch; + } +>; +export function useUpdateAppLevelRequirementMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + appLevelRequirementPatch: AppLevelRequirementPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appLevelRequirementMutationKeys.all, + mutationFn: ({ + id, + appLevelRequirementPatch, + }: { + id: string; + appLevelRequirementPatch: AppLevelRequirementPatch; + }) => + getClient() + .appLevelRequirement.update({ + where: { + id, + }, + data: appLevelRequirementPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: appLevelRequirementKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appLevelRequirementKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLimitDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLimitDefaultMutation.ts new file mode 100644 index 000000000..e4bf58682 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLimitDefaultMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for AppLimitDefault + * @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 { appLimitDefaultKeys } from '../query-keys'; +import { appLimitDefaultMutationKeys } from '../mutation-keys'; +import type { + AppLimitDefaultSelect, + AppLimitDefaultWithRelations, + AppLimitDefaultPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppLimitDefaultSelect, + AppLimitDefaultWithRelations, + AppLimitDefaultPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a AppLimitDefault + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateAppLimitDefaultMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', appLimitDefaultPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateAppLimitDefaultMutation( + params: { + selection: { + fields: S & AppLimitDefaultSelect; + } & HookStrictSelect, AppLimitDefaultSelect>; + } & Omit< + UseMutationOptions< + { + updateAppLimitDefault: { + appLimitDefault: InferSelectResult; + }; + }, + Error, + { + id: string; + appLimitDefaultPatch: AppLimitDefaultPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateAppLimitDefault: { + appLimitDefault: InferSelectResult; + }; + }, + Error, + { + id: string; + appLimitDefaultPatch: AppLimitDefaultPatch; + } +>; +export function useUpdateAppLimitDefaultMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + appLimitDefaultPatch: AppLimitDefaultPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appLimitDefaultMutationKeys.all, + mutationFn: ({ + id, + appLimitDefaultPatch, + }: { + id: string; + appLimitDefaultPatch: AppLimitDefaultPatch; + }) => + getClient() + .appLimitDefault.update({ + where: { + id, + }, + data: appLimitDefaultPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: appLimitDefaultKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appLimitDefaultKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLimitMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLimitMutation.ts new file mode 100644 index 000000000..673e80850 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLimitMutation.ts @@ -0,0 +1,102 @@ +/** + * Update mutation hook for AppLimit + * @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 { appLimitKeys } from '../query-keys'; +import { appLimitMutationKeys } from '../mutation-keys'; +import type { AppLimitSelect, AppLimitWithRelations, AppLimitPatch } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AppLimitSelect, AppLimitWithRelations, AppLimitPatch } from '../../orm/input-types'; +/** + * Mutation hook for updating a AppLimit + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateAppLimitMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', appLimitPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateAppLimitMutation( + params: { + selection: { + fields: S & AppLimitSelect; + } & HookStrictSelect, AppLimitSelect>; + } & Omit< + UseMutationOptions< + { + updateAppLimit: { + appLimit: InferSelectResult; + }; + }, + Error, + { + id: string; + appLimitPatch: AppLimitPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateAppLimit: { + appLimit: InferSelectResult; + }; + }, + Error, + { + id: string; + appLimitPatch: AppLimitPatch; + } +>; +export function useUpdateAppLimitMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + appLimitPatch: AppLimitPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appLimitMutationKeys.all, + mutationFn: ({ id, appLimitPatch }: { id: string; appLimitPatch: AppLimitPatch }) => + getClient() + .appLimit.update({ + where: { + id, + }, + data: appLimitPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: appLimitKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appLimitKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppMembershipDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppMembershipDefaultMutation.ts new file mode 100644 index 000000000..c2d03af41 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppMembershipDefaultMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for AppMembershipDefault + * @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 { appMembershipDefaultKeys } from '../query-keys'; +import { appMembershipDefaultMutationKeys } from '../mutation-keys'; +import type { + AppMembershipDefaultSelect, + AppMembershipDefaultWithRelations, + AppMembershipDefaultPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppMembershipDefaultSelect, + AppMembershipDefaultWithRelations, + AppMembershipDefaultPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a AppMembershipDefault + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateAppMembershipDefaultMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', appMembershipDefaultPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateAppMembershipDefaultMutation( + params: { + selection: { + fields: S & AppMembershipDefaultSelect; + } & HookStrictSelect, AppMembershipDefaultSelect>; + } & Omit< + UseMutationOptions< + { + updateAppMembershipDefault: { + appMembershipDefault: InferSelectResult; + }; + }, + Error, + { + id: string; + appMembershipDefaultPatch: AppMembershipDefaultPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateAppMembershipDefault: { + appMembershipDefault: InferSelectResult; + }; + }, + Error, + { + id: string; + appMembershipDefaultPatch: AppMembershipDefaultPatch; + } +>; +export function useUpdateAppMembershipDefaultMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + appMembershipDefaultPatch: AppMembershipDefaultPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appMembershipDefaultMutationKeys.all, + mutationFn: ({ + id, + appMembershipDefaultPatch, + }: { + id: string; + appMembershipDefaultPatch: AppMembershipDefaultPatch; + }) => + getClient() + .appMembershipDefault.update({ + where: { + id, + }, + data: appMembershipDefaultPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: appMembershipDefaultKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appMembershipDefaultKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppMembershipMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppMembershipMutation.ts new file mode 100644 index 000000000..21a8572d7 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppMembershipMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for AppMembership + * @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 { appMembershipKeys } from '../query-keys'; +import { appMembershipMutationKeys } from '../mutation-keys'; +import type { + AppMembershipSelect, + AppMembershipWithRelations, + AppMembershipPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppMembershipSelect, + AppMembershipWithRelations, + AppMembershipPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a AppMembership + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateAppMembershipMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', appMembershipPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateAppMembershipMutation( + params: { + selection: { + fields: S & AppMembershipSelect; + } & HookStrictSelect, AppMembershipSelect>; + } & Omit< + UseMutationOptions< + { + updateAppMembership: { + appMembership: InferSelectResult; + }; + }, + Error, + { + id: string; + appMembershipPatch: AppMembershipPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateAppMembership: { + appMembership: InferSelectResult; + }; + }, + Error, + { + id: string; + appMembershipPatch: AppMembershipPatch; + } +>; +export function useUpdateAppMembershipMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + appMembershipPatch: AppMembershipPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appMembershipMutationKeys.all, + mutationFn: ({ + id, + appMembershipPatch, + }: { + id: string; + appMembershipPatch: AppMembershipPatch; + }) => + getClient() + .appMembership.update({ + where: { + id, + }, + data: appMembershipPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: appMembershipKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appMembershipKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppMutation.ts new file mode 100644 index 000000000..63d62de1f --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppMutation.ts @@ -0,0 +1,102 @@ +/** + * Update mutation hook for App + * @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 { appKeys } from '../query-keys'; +import { appMutationKeys } from '../mutation-keys'; +import type { AppSelect, AppWithRelations, AppPatch } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AppSelect, AppWithRelations, AppPatch } from '../../orm/input-types'; +/** + * Mutation hook for updating a App + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateAppMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', appPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateAppMutation( + params: { + selection: { + fields: S & AppSelect; + } & HookStrictSelect, AppSelect>; + } & Omit< + UseMutationOptions< + { + updateApp: { + app: InferSelectResult; + }; + }, + Error, + { + id: string; + appPatch: AppPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateApp: { + app: InferSelectResult; + }; + }, + Error, + { + id: string; + appPatch: AppPatch; + } +>; +export function useUpdateAppMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + appPatch: AppPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appMutationKeys.all, + mutationFn: ({ id, appPatch }: { id: string; appPatch: AppPatch }) => + getClient() + .app.update({ + where: { + id, + }, + data: appPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: appKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppOwnerGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppOwnerGrantMutation.ts new file mode 100644 index 000000000..ec1d11eb5 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppOwnerGrantMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for AppOwnerGrant + * @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 { appOwnerGrantKeys } from '../query-keys'; +import { appOwnerGrantMutationKeys } from '../mutation-keys'; +import type { + AppOwnerGrantSelect, + AppOwnerGrantWithRelations, + AppOwnerGrantPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppOwnerGrantSelect, + AppOwnerGrantWithRelations, + AppOwnerGrantPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a AppOwnerGrant + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateAppOwnerGrantMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', appOwnerGrantPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateAppOwnerGrantMutation( + params: { + selection: { + fields: S & AppOwnerGrantSelect; + } & HookStrictSelect, AppOwnerGrantSelect>; + } & Omit< + UseMutationOptions< + { + updateAppOwnerGrant: { + appOwnerGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + appOwnerGrantPatch: AppOwnerGrantPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateAppOwnerGrant: { + appOwnerGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + appOwnerGrantPatch: AppOwnerGrantPatch; + } +>; +export function useUpdateAppOwnerGrantMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + appOwnerGrantPatch: AppOwnerGrantPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appOwnerGrantMutationKeys.all, + mutationFn: ({ + id, + appOwnerGrantPatch, + }: { + id: string; + appOwnerGrantPatch: AppOwnerGrantPatch; + }) => + getClient() + .appOwnerGrant.update({ + where: { + id, + }, + data: appOwnerGrantPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: appOwnerGrantKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appOwnerGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppPermissionDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppPermissionDefaultMutation.ts new file mode 100644 index 000000000..9413e7ad3 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppPermissionDefaultMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for AppPermissionDefault + * @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 { appPermissionDefaultKeys } from '../query-keys'; +import { appPermissionDefaultMutationKeys } from '../mutation-keys'; +import type { + AppPermissionDefaultSelect, + AppPermissionDefaultWithRelations, + AppPermissionDefaultPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppPermissionDefaultSelect, + AppPermissionDefaultWithRelations, + AppPermissionDefaultPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a AppPermissionDefault + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateAppPermissionDefaultMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', appPermissionDefaultPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateAppPermissionDefaultMutation( + params: { + selection: { + fields: S & AppPermissionDefaultSelect; + } & HookStrictSelect, AppPermissionDefaultSelect>; + } & Omit< + UseMutationOptions< + { + updateAppPermissionDefault: { + appPermissionDefault: InferSelectResult; + }; + }, + Error, + { + id: string; + appPermissionDefaultPatch: AppPermissionDefaultPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateAppPermissionDefault: { + appPermissionDefault: InferSelectResult; + }; + }, + Error, + { + id: string; + appPermissionDefaultPatch: AppPermissionDefaultPatch; + } +>; +export function useUpdateAppPermissionDefaultMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + appPermissionDefaultPatch: AppPermissionDefaultPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appPermissionDefaultMutationKeys.all, + mutationFn: ({ + id, + appPermissionDefaultPatch, + }: { + id: string; + appPermissionDefaultPatch: AppPermissionDefaultPatch; + }) => + getClient() + .appPermissionDefault.update({ + where: { + id, + }, + data: appPermissionDefaultPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: appPermissionDefaultKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appPermissionDefaultKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppPermissionMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppPermissionMutation.ts new file mode 100644 index 000000000..73effb82a --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppPermissionMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for AppPermission + * @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 { appPermissionKeys } from '../query-keys'; +import { appPermissionMutationKeys } from '../mutation-keys'; +import type { + AppPermissionSelect, + AppPermissionWithRelations, + AppPermissionPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppPermissionSelect, + AppPermissionWithRelations, + AppPermissionPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a AppPermission + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateAppPermissionMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', appPermissionPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateAppPermissionMutation( + params: { + selection: { + fields: S & AppPermissionSelect; + } & HookStrictSelect, AppPermissionSelect>; + } & Omit< + UseMutationOptions< + { + updateAppPermission: { + appPermission: InferSelectResult; + }; + }, + Error, + { + id: string; + appPermissionPatch: AppPermissionPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateAppPermission: { + appPermission: InferSelectResult; + }; + }, + Error, + { + id: string; + appPermissionPatch: AppPermissionPatch; + } +>; +export function useUpdateAppPermissionMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + appPermissionPatch: AppPermissionPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appPermissionMutationKeys.all, + mutationFn: ({ + id, + appPermissionPatch, + }: { + id: string; + appPermissionPatch: AppPermissionPatch; + }) => + getClient() + .appPermission.update({ + where: { + id, + }, + data: appPermissionPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: appPermissionKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appPermissionKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppStepMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppStepMutation.ts new file mode 100644 index 000000000..2cfe95818 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppStepMutation.ts @@ -0,0 +1,102 @@ +/** + * Update mutation hook for AppStep + * @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 { appStepKeys } from '../query-keys'; +import { appStepMutationKeys } from '../mutation-keys'; +import type { AppStepSelect, AppStepWithRelations, AppStepPatch } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AppStepSelect, AppStepWithRelations, AppStepPatch } from '../../orm/input-types'; +/** + * Mutation hook for updating a AppStep + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateAppStepMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', appStepPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateAppStepMutation( + params: { + selection: { + fields: S & AppStepSelect; + } & HookStrictSelect, AppStepSelect>; + } & Omit< + UseMutationOptions< + { + updateAppStep: { + appStep: InferSelectResult; + }; + }, + Error, + { + id: string; + appStepPatch: AppStepPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateAppStep: { + appStep: InferSelectResult; + }; + }, + Error, + { + id: string; + appStepPatch: AppStepPatch; + } +>; +export function useUpdateAppStepMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + appStepPatch: AppStepPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appStepMutationKeys.all, + mutationFn: ({ id, appStepPatch }: { id: string; appStepPatch: AppStepPatch }) => + getClient() + .appStep.update({ + where: { + id, + }, + data: appStepPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: appStepKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appStepKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAuditLogMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAuditLogMutation.ts new file mode 100644 index 000000000..c1f3aba69 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAuditLogMutation.ts @@ -0,0 +1,102 @@ +/** + * Update mutation hook for AuditLog + * @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 { auditLogKeys } from '../query-keys'; +import { auditLogMutationKeys } from '../mutation-keys'; +import type { AuditLogSelect, AuditLogWithRelations, AuditLogPatch } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AuditLogSelect, AuditLogWithRelations, AuditLogPatch } from '../../orm/input-types'; +/** + * Mutation hook for updating a AuditLog + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateAuditLogMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', auditLogPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateAuditLogMutation( + params: { + selection: { + fields: S & AuditLogSelect; + } & HookStrictSelect, AuditLogSelect>; + } & Omit< + UseMutationOptions< + { + updateAuditLog: { + auditLog: InferSelectResult; + }; + }, + Error, + { + id: string; + auditLogPatch: AuditLogPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateAuditLog: { + auditLog: InferSelectResult; + }; + }, + Error, + { + id: string; + auditLogPatch: AuditLogPatch; + } +>; +export function useUpdateAuditLogMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + auditLogPatch: AuditLogPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: auditLogMutationKeys.all, + mutationFn: ({ id, auditLogPatch }: { id: string; auditLogPatch: AuditLogPatch }) => + getClient() + .auditLog.update({ + where: { + id, + }, + data: auditLogPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: auditLogKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: auditLogKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateCheckConstraintMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateCheckConstraintMutation.ts new file mode 100644 index 000000000..9088de037 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateCheckConstraintMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for CheckConstraint + * @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 { checkConstraintKeys } from '../query-keys'; +import { checkConstraintMutationKeys } from '../mutation-keys'; +import type { + CheckConstraintSelect, + CheckConstraintWithRelations, + CheckConstraintPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + CheckConstraintSelect, + CheckConstraintWithRelations, + CheckConstraintPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a CheckConstraint + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateCheckConstraintMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', checkConstraintPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateCheckConstraintMutation( + params: { + selection: { + fields: S & CheckConstraintSelect; + } & HookStrictSelect, CheckConstraintSelect>; + } & Omit< + UseMutationOptions< + { + updateCheckConstraint: { + checkConstraint: InferSelectResult; + }; + }, + Error, + { + id: string; + checkConstraintPatch: CheckConstraintPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateCheckConstraint: { + checkConstraint: InferSelectResult; + }; + }, + Error, + { + id: string; + checkConstraintPatch: CheckConstraintPatch; + } +>; +export function useUpdateCheckConstraintMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + checkConstraintPatch: CheckConstraintPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: checkConstraintMutationKeys.all, + mutationFn: ({ + id, + checkConstraintPatch, + }: { + id: string; + checkConstraintPatch: CheckConstraintPatch; + }) => + getClient() + .checkConstraint.update({ + where: { + id, + }, + data: checkConstraintPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: checkConstraintKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: checkConstraintKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateClaimedInviteMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateClaimedInviteMutation.ts new file mode 100644 index 000000000..45ccdc49a --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateClaimedInviteMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for ClaimedInvite + * @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 { claimedInviteKeys } from '../query-keys'; +import { claimedInviteMutationKeys } from '../mutation-keys'; +import type { + ClaimedInviteSelect, + ClaimedInviteWithRelations, + ClaimedInvitePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ClaimedInviteSelect, + ClaimedInviteWithRelations, + ClaimedInvitePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a ClaimedInvite + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateClaimedInviteMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', claimedInvitePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateClaimedInviteMutation( + params: { + selection: { + fields: S & ClaimedInviteSelect; + } & HookStrictSelect, ClaimedInviteSelect>; + } & Omit< + UseMutationOptions< + { + updateClaimedInvite: { + claimedInvite: InferSelectResult; + }; + }, + Error, + { + id: string; + claimedInvitePatch: ClaimedInvitePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateClaimedInvite: { + claimedInvite: InferSelectResult; + }; + }, + Error, + { + id: string; + claimedInvitePatch: ClaimedInvitePatch; + } +>; +export function useUpdateClaimedInviteMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + claimedInvitePatch: ClaimedInvitePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: claimedInviteMutationKeys.all, + mutationFn: ({ + id, + claimedInvitePatch, + }: { + id: string; + claimedInvitePatch: ClaimedInvitePatch; + }) => + getClient() + .claimedInvite.update({ + where: { + id, + }, + data: claimedInvitePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: claimedInviteKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: claimedInviteKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateCommitMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateCommitMutation.ts new file mode 100644 index 000000000..d03e177ec --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateCommitMutation.ts @@ -0,0 +1,102 @@ +/** + * Update mutation hook for Commit + * @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 { commitKeys } from '../query-keys'; +import { commitMutationKeys } from '../mutation-keys'; +import type { CommitSelect, CommitWithRelations, CommitPatch } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { CommitSelect, CommitWithRelations, CommitPatch } from '../../orm/input-types'; +/** + * Mutation hook for updating a Commit + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateCommitMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', commitPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateCommitMutation( + params: { + selection: { + fields: S & CommitSelect; + } & HookStrictSelect, CommitSelect>; + } & Omit< + UseMutationOptions< + { + updateCommit: { + commit: InferSelectResult; + }; + }, + Error, + { + id: string; + commitPatch: CommitPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateCommit: { + commit: InferSelectResult; + }; + }, + Error, + { + id: string; + commitPatch: CommitPatch; + } +>; +export function useUpdateCommitMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + commitPatch: CommitPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: commitMutationKeys.all, + mutationFn: ({ id, commitPatch }: { id: string; commitPatch: CommitPatch }) => + getClient() + .commit.update({ + where: { + id, + }, + data: commitPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: commitKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: commitKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateConnectedAccountMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateConnectedAccountMutation.ts new file mode 100644 index 000000000..826dce155 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateConnectedAccountMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for ConnectedAccount + * @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 { connectedAccountKeys } from '../query-keys'; +import { connectedAccountMutationKeys } from '../mutation-keys'; +import type { + ConnectedAccountSelect, + ConnectedAccountWithRelations, + ConnectedAccountPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ConnectedAccountSelect, + ConnectedAccountWithRelations, + ConnectedAccountPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a ConnectedAccount + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateConnectedAccountMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', connectedAccountPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateConnectedAccountMutation( + params: { + selection: { + fields: S & ConnectedAccountSelect; + } & HookStrictSelect, ConnectedAccountSelect>; + } & Omit< + UseMutationOptions< + { + updateConnectedAccount: { + connectedAccount: InferSelectResult; + }; + }, + Error, + { + id: string; + connectedAccountPatch: ConnectedAccountPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateConnectedAccount: { + connectedAccount: InferSelectResult; + }; + }, + Error, + { + id: string; + connectedAccountPatch: ConnectedAccountPatch; + } +>; +export function useUpdateConnectedAccountMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + connectedAccountPatch: ConnectedAccountPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: connectedAccountMutationKeys.all, + mutationFn: ({ + id, + connectedAccountPatch, + }: { + id: string; + connectedAccountPatch: ConnectedAccountPatch; + }) => + getClient() + .connectedAccount.update({ + where: { + id, + }, + data: connectedAccountPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: connectedAccountKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: connectedAccountKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateConnectedAccountsModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateConnectedAccountsModuleMutation.ts new file mode 100644 index 000000000..91acecbb4 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateConnectedAccountsModuleMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for ConnectedAccountsModule + * @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 { connectedAccountsModuleKeys } from '../query-keys'; +import { connectedAccountsModuleMutationKeys } from '../mutation-keys'; +import type { + ConnectedAccountsModuleSelect, + ConnectedAccountsModuleWithRelations, + ConnectedAccountsModulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ConnectedAccountsModuleSelect, + ConnectedAccountsModuleWithRelations, + ConnectedAccountsModulePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a ConnectedAccountsModule + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateConnectedAccountsModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', connectedAccountsModulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateConnectedAccountsModuleMutation( + params: { + selection: { + fields: S & ConnectedAccountsModuleSelect; + } & HookStrictSelect, ConnectedAccountsModuleSelect>; + } & Omit< + UseMutationOptions< + { + updateConnectedAccountsModule: { + connectedAccountsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + connectedAccountsModulePatch: ConnectedAccountsModulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateConnectedAccountsModule: { + connectedAccountsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + connectedAccountsModulePatch: ConnectedAccountsModulePatch; + } +>; +export function useUpdateConnectedAccountsModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + connectedAccountsModulePatch: ConnectedAccountsModulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: connectedAccountsModuleMutationKeys.all, + mutationFn: ({ + id, + connectedAccountsModulePatch, + }: { + id: string; + connectedAccountsModulePatch: ConnectedAccountsModulePatch; + }) => + getClient() + .connectedAccountsModule.update({ + where: { + id, + }, + data: connectedAccountsModulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: connectedAccountsModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: connectedAccountsModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateCryptoAddressMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateCryptoAddressMutation.ts new file mode 100644 index 000000000..f1987ec6e --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateCryptoAddressMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for CryptoAddress + * @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 { cryptoAddressKeys } from '../query-keys'; +import { cryptoAddressMutationKeys } from '../mutation-keys'; +import type { + CryptoAddressSelect, + CryptoAddressWithRelations, + CryptoAddressPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + CryptoAddressSelect, + CryptoAddressWithRelations, + CryptoAddressPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a CryptoAddress + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateCryptoAddressMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', cryptoAddressPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateCryptoAddressMutation( + params: { + selection: { + fields: S & CryptoAddressSelect; + } & HookStrictSelect, CryptoAddressSelect>; + } & Omit< + UseMutationOptions< + { + updateCryptoAddress: { + cryptoAddress: InferSelectResult; + }; + }, + Error, + { + id: string; + cryptoAddressPatch: CryptoAddressPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateCryptoAddress: { + cryptoAddress: InferSelectResult; + }; + }, + Error, + { + id: string; + cryptoAddressPatch: CryptoAddressPatch; + } +>; +export function useUpdateCryptoAddressMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + cryptoAddressPatch: CryptoAddressPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: cryptoAddressMutationKeys.all, + mutationFn: ({ + id, + cryptoAddressPatch, + }: { + id: string; + cryptoAddressPatch: CryptoAddressPatch; + }) => + getClient() + .cryptoAddress.update({ + where: { + id, + }, + data: cryptoAddressPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: cryptoAddressKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: cryptoAddressKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateCryptoAddressesModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateCryptoAddressesModuleMutation.ts new file mode 100644 index 000000000..192f5cf50 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateCryptoAddressesModuleMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for CryptoAddressesModule + * @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 { cryptoAddressesModuleKeys } from '../query-keys'; +import { cryptoAddressesModuleMutationKeys } from '../mutation-keys'; +import type { + CryptoAddressesModuleSelect, + CryptoAddressesModuleWithRelations, + CryptoAddressesModulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + CryptoAddressesModuleSelect, + CryptoAddressesModuleWithRelations, + CryptoAddressesModulePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a CryptoAddressesModule + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateCryptoAddressesModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', cryptoAddressesModulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateCryptoAddressesModuleMutation( + params: { + selection: { + fields: S & CryptoAddressesModuleSelect; + } & HookStrictSelect, CryptoAddressesModuleSelect>; + } & Omit< + UseMutationOptions< + { + updateCryptoAddressesModule: { + cryptoAddressesModule: InferSelectResult; + }; + }, + Error, + { + id: string; + cryptoAddressesModulePatch: CryptoAddressesModulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateCryptoAddressesModule: { + cryptoAddressesModule: InferSelectResult; + }; + }, + Error, + { + id: string; + cryptoAddressesModulePatch: CryptoAddressesModulePatch; + } +>; +export function useUpdateCryptoAddressesModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + cryptoAddressesModulePatch: CryptoAddressesModulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: cryptoAddressesModuleMutationKeys.all, + mutationFn: ({ + id, + cryptoAddressesModulePatch, + }: { + id: string; + cryptoAddressesModulePatch: CryptoAddressesModulePatch; + }) => + getClient() + .cryptoAddressesModule.update({ + where: { + id, + }, + data: cryptoAddressesModulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: cryptoAddressesModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: cryptoAddressesModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateCryptoAuthModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateCryptoAuthModuleMutation.ts new file mode 100644 index 000000000..bc53c2a60 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateCryptoAuthModuleMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for CryptoAuthModule + * @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 { cryptoAuthModuleKeys } from '../query-keys'; +import { cryptoAuthModuleMutationKeys } from '../mutation-keys'; +import type { + CryptoAuthModuleSelect, + CryptoAuthModuleWithRelations, + CryptoAuthModulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + CryptoAuthModuleSelect, + CryptoAuthModuleWithRelations, + CryptoAuthModulePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a CryptoAuthModule + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateCryptoAuthModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', cryptoAuthModulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateCryptoAuthModuleMutation( + params: { + selection: { + fields: S & CryptoAuthModuleSelect; + } & HookStrictSelect, CryptoAuthModuleSelect>; + } & Omit< + UseMutationOptions< + { + updateCryptoAuthModule: { + cryptoAuthModule: InferSelectResult; + }; + }, + Error, + { + id: string; + cryptoAuthModulePatch: CryptoAuthModulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateCryptoAuthModule: { + cryptoAuthModule: InferSelectResult; + }; + }, + Error, + { + id: string; + cryptoAuthModulePatch: CryptoAuthModulePatch; + } +>; +export function useUpdateCryptoAuthModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + cryptoAuthModulePatch: CryptoAuthModulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: cryptoAuthModuleMutationKeys.all, + mutationFn: ({ + id, + cryptoAuthModulePatch, + }: { + id: string; + cryptoAuthModulePatch: CryptoAuthModulePatch; + }) => + getClient() + .cryptoAuthModule.update({ + where: { + id, + }, + data: cryptoAuthModulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: cryptoAuthModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: cryptoAuthModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateDatabaseMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateDatabaseMutation.ts new file mode 100644 index 000000000..0f77a91ba --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateDatabaseMutation.ts @@ -0,0 +1,102 @@ +/** + * Update mutation hook for Database + * @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 { databaseKeys } from '../query-keys'; +import { databaseMutationKeys } from '../mutation-keys'; +import type { DatabaseSelect, DatabaseWithRelations, DatabasePatch } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { DatabaseSelect, DatabaseWithRelations, DatabasePatch } from '../../orm/input-types'; +/** + * Mutation hook for updating a Database + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateDatabaseMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', databasePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateDatabaseMutation( + params: { + selection: { + fields: S & DatabaseSelect; + } & HookStrictSelect, DatabaseSelect>; + } & Omit< + UseMutationOptions< + { + updateDatabase: { + database: InferSelectResult; + }; + }, + Error, + { + id: string; + databasePatch: DatabasePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateDatabase: { + database: InferSelectResult; + }; + }, + Error, + { + id: string; + databasePatch: DatabasePatch; + } +>; +export function useUpdateDatabaseMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + databasePatch: DatabasePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: databaseMutationKeys.all, + mutationFn: ({ id, databasePatch }: { id: string; databasePatch: DatabasePatch }) => + getClient() + .database.update({ + where: { + id, + }, + data: databasePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: databaseKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: databaseKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateDatabaseProvisionModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateDatabaseProvisionModuleMutation.ts new file mode 100644 index 000000000..c844f5426 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateDatabaseProvisionModuleMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for DatabaseProvisionModule + * @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 { databaseProvisionModuleKeys } from '../query-keys'; +import { databaseProvisionModuleMutationKeys } from '../mutation-keys'; +import type { + DatabaseProvisionModuleSelect, + DatabaseProvisionModuleWithRelations, + DatabaseProvisionModulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + DatabaseProvisionModuleSelect, + DatabaseProvisionModuleWithRelations, + DatabaseProvisionModulePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a DatabaseProvisionModule + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateDatabaseProvisionModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', databaseProvisionModulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateDatabaseProvisionModuleMutation( + params: { + selection: { + fields: S & DatabaseProvisionModuleSelect; + } & HookStrictSelect, DatabaseProvisionModuleSelect>; + } & Omit< + UseMutationOptions< + { + updateDatabaseProvisionModule: { + databaseProvisionModule: InferSelectResult; + }; + }, + Error, + { + id: string; + databaseProvisionModulePatch: DatabaseProvisionModulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateDatabaseProvisionModule: { + databaseProvisionModule: InferSelectResult; + }; + }, + Error, + { + id: string; + databaseProvisionModulePatch: DatabaseProvisionModulePatch; + } +>; +export function useUpdateDatabaseProvisionModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + databaseProvisionModulePatch: DatabaseProvisionModulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: databaseProvisionModuleMutationKeys.all, + mutationFn: ({ + id, + databaseProvisionModulePatch, + }: { + id: string; + databaseProvisionModulePatch: DatabaseProvisionModulePatch; + }) => + getClient() + .databaseProvisionModule.update({ + where: { + id, + }, + data: databaseProvisionModulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: databaseProvisionModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: databaseProvisionModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateDefaultIdsModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateDefaultIdsModuleMutation.ts new file mode 100644 index 000000000..26bd6ff0e --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateDefaultIdsModuleMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for DefaultIdsModule + * @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 { defaultIdsModuleKeys } from '../query-keys'; +import { defaultIdsModuleMutationKeys } from '../mutation-keys'; +import type { + DefaultIdsModuleSelect, + DefaultIdsModuleWithRelations, + DefaultIdsModulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + DefaultIdsModuleSelect, + DefaultIdsModuleWithRelations, + DefaultIdsModulePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a DefaultIdsModule + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateDefaultIdsModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', defaultIdsModulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateDefaultIdsModuleMutation( + params: { + selection: { + fields: S & DefaultIdsModuleSelect; + } & HookStrictSelect, DefaultIdsModuleSelect>; + } & Omit< + UseMutationOptions< + { + updateDefaultIdsModule: { + defaultIdsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + defaultIdsModulePatch: DefaultIdsModulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateDefaultIdsModule: { + defaultIdsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + defaultIdsModulePatch: DefaultIdsModulePatch; + } +>; +export function useUpdateDefaultIdsModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + defaultIdsModulePatch: DefaultIdsModulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: defaultIdsModuleMutationKeys.all, + mutationFn: ({ + id, + defaultIdsModulePatch, + }: { + id: string; + defaultIdsModulePatch: DefaultIdsModulePatch; + }) => + getClient() + .defaultIdsModule.update({ + where: { + id, + }, + data: defaultIdsModulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: defaultIdsModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: defaultIdsModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateDenormalizedTableFieldMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateDenormalizedTableFieldMutation.ts new file mode 100644 index 000000000..61e4a7bd8 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateDenormalizedTableFieldMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for DenormalizedTableField + * @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 { denormalizedTableFieldKeys } from '../query-keys'; +import { denormalizedTableFieldMutationKeys } from '../mutation-keys'; +import type { + DenormalizedTableFieldSelect, + DenormalizedTableFieldWithRelations, + DenormalizedTableFieldPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + DenormalizedTableFieldSelect, + DenormalizedTableFieldWithRelations, + DenormalizedTableFieldPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a DenormalizedTableField + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateDenormalizedTableFieldMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', denormalizedTableFieldPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateDenormalizedTableFieldMutation( + params: { + selection: { + fields: S & DenormalizedTableFieldSelect; + } & HookStrictSelect, DenormalizedTableFieldSelect>; + } & Omit< + UseMutationOptions< + { + updateDenormalizedTableField: { + denormalizedTableField: InferSelectResult; + }; + }, + Error, + { + id: string; + denormalizedTableFieldPatch: DenormalizedTableFieldPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateDenormalizedTableField: { + denormalizedTableField: InferSelectResult; + }; + }, + Error, + { + id: string; + denormalizedTableFieldPatch: DenormalizedTableFieldPatch; + } +>; +export function useUpdateDenormalizedTableFieldMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + denormalizedTableFieldPatch: DenormalizedTableFieldPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: denormalizedTableFieldMutationKeys.all, + mutationFn: ({ + id, + denormalizedTableFieldPatch, + }: { + id: string; + denormalizedTableFieldPatch: DenormalizedTableFieldPatch; + }) => + getClient() + .denormalizedTableField.update({ + where: { + id, + }, + data: denormalizedTableFieldPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: denormalizedTableFieldKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: denormalizedTableFieldKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateDomainMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateDomainMutation.ts new file mode 100644 index 000000000..d2cc9d031 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateDomainMutation.ts @@ -0,0 +1,102 @@ +/** + * Update mutation hook for Domain + * @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 { domainKeys } from '../query-keys'; +import { domainMutationKeys } from '../mutation-keys'; +import type { DomainSelect, DomainWithRelations, DomainPatch } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { DomainSelect, DomainWithRelations, DomainPatch } from '../../orm/input-types'; +/** + * Mutation hook for updating a Domain + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateDomainMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', domainPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateDomainMutation( + params: { + selection: { + fields: S & DomainSelect; + } & HookStrictSelect, DomainSelect>; + } & Omit< + UseMutationOptions< + { + updateDomain: { + domain: InferSelectResult; + }; + }, + Error, + { + id: string; + domainPatch: DomainPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateDomain: { + domain: InferSelectResult; + }; + }, + Error, + { + id: string; + domainPatch: DomainPatch; + } +>; +export function useUpdateDomainMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + domainPatch: DomainPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: domainMutationKeys.all, + mutationFn: ({ id, domainPatch }: { id: string; domainPatch: DomainPatch }) => + getClient() + .domain.update({ + where: { + id, + }, + data: domainPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: domainKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: domainKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateEmailMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateEmailMutation.ts new file mode 100644 index 000000000..89c8a59da --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateEmailMutation.ts @@ -0,0 +1,102 @@ +/** + * Update mutation hook for Email + * @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 { emailKeys } from '../query-keys'; +import { emailMutationKeys } from '../mutation-keys'; +import type { EmailSelect, EmailWithRelations, EmailPatch } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { EmailSelect, EmailWithRelations, EmailPatch } from '../../orm/input-types'; +/** + * Mutation hook for updating a Email + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateEmailMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', emailPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateEmailMutation( + params: { + selection: { + fields: S & EmailSelect; + } & HookStrictSelect, EmailSelect>; + } & Omit< + UseMutationOptions< + { + updateEmail: { + email: InferSelectResult; + }; + }, + Error, + { + id: string; + emailPatch: EmailPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateEmail: { + email: InferSelectResult; + }; + }, + Error, + { + id: string; + emailPatch: EmailPatch; + } +>; +export function useUpdateEmailMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + emailPatch: EmailPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: emailMutationKeys.all, + mutationFn: ({ id, emailPatch }: { id: string; emailPatch: EmailPatch }) => + getClient() + .email.update({ + where: { + id, + }, + data: emailPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: emailKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: emailKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateEmailsModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateEmailsModuleMutation.ts new file mode 100644 index 000000000..bb2f31170 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateEmailsModuleMutation.ts @@ -0,0 +1,110 @@ +/** + * Update mutation hook for EmailsModule + * @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 { emailsModuleKeys } from '../query-keys'; +import { emailsModuleMutationKeys } from '../mutation-keys'; +import type { + EmailsModuleSelect, + EmailsModuleWithRelations, + EmailsModulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + EmailsModuleSelect, + EmailsModuleWithRelations, + EmailsModulePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a EmailsModule + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateEmailsModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', emailsModulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateEmailsModuleMutation( + params: { + selection: { + fields: S & EmailsModuleSelect; + } & HookStrictSelect, EmailsModuleSelect>; + } & Omit< + UseMutationOptions< + { + updateEmailsModule: { + emailsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + emailsModulePatch: EmailsModulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateEmailsModule: { + emailsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + emailsModulePatch: EmailsModulePatch; + } +>; +export function useUpdateEmailsModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + emailsModulePatch: EmailsModulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: emailsModuleMutationKeys.all, + mutationFn: ({ id, emailsModulePatch }: { id: string; emailsModulePatch: EmailsModulePatch }) => + getClient() + .emailsModule.update({ + where: { + id, + }, + data: emailsModulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: emailsModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: emailsModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateEncryptedSecretsModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateEncryptedSecretsModuleMutation.ts new file mode 100644 index 000000000..9c6476ff2 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateEncryptedSecretsModuleMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for EncryptedSecretsModule + * @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 { encryptedSecretsModuleKeys } from '../query-keys'; +import { encryptedSecretsModuleMutationKeys } from '../mutation-keys'; +import type { + EncryptedSecretsModuleSelect, + EncryptedSecretsModuleWithRelations, + EncryptedSecretsModulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + EncryptedSecretsModuleSelect, + EncryptedSecretsModuleWithRelations, + EncryptedSecretsModulePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a EncryptedSecretsModule + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateEncryptedSecretsModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', encryptedSecretsModulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateEncryptedSecretsModuleMutation( + params: { + selection: { + fields: S & EncryptedSecretsModuleSelect; + } & HookStrictSelect, EncryptedSecretsModuleSelect>; + } & Omit< + UseMutationOptions< + { + updateEncryptedSecretsModule: { + encryptedSecretsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + encryptedSecretsModulePatch: EncryptedSecretsModulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateEncryptedSecretsModule: { + encryptedSecretsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + encryptedSecretsModulePatch: EncryptedSecretsModulePatch; + } +>; +export function useUpdateEncryptedSecretsModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + encryptedSecretsModulePatch: EncryptedSecretsModulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: encryptedSecretsModuleMutationKeys.all, + mutationFn: ({ + id, + encryptedSecretsModulePatch, + }: { + id: string; + encryptedSecretsModulePatch: EncryptedSecretsModulePatch; + }) => + getClient() + .encryptedSecretsModule.update({ + where: { + id, + }, + data: encryptedSecretsModulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: encryptedSecretsModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: encryptedSecretsModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateFieldModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateFieldModuleMutation.ts new file mode 100644 index 000000000..737225d95 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateFieldModuleMutation.ts @@ -0,0 +1,110 @@ +/** + * Update mutation hook for FieldModule + * @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 { fieldModuleKeys } from '../query-keys'; +import { fieldModuleMutationKeys } from '../mutation-keys'; +import type { + FieldModuleSelect, + FieldModuleWithRelations, + FieldModulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + FieldModuleSelect, + FieldModuleWithRelations, + FieldModulePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a FieldModule + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateFieldModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', fieldModulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateFieldModuleMutation( + params: { + selection: { + fields: S & FieldModuleSelect; + } & HookStrictSelect, FieldModuleSelect>; + } & Omit< + UseMutationOptions< + { + updateFieldModule: { + fieldModule: InferSelectResult; + }; + }, + Error, + { + id: string; + fieldModulePatch: FieldModulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateFieldModule: { + fieldModule: InferSelectResult; + }; + }, + Error, + { + id: string; + fieldModulePatch: FieldModulePatch; + } +>; +export function useUpdateFieldModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + fieldModulePatch: FieldModulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: fieldModuleMutationKeys.all, + mutationFn: ({ id, fieldModulePatch }: { id: string; fieldModulePatch: FieldModulePatch }) => + getClient() + .fieldModule.update({ + where: { + id, + }, + data: fieldModulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: fieldModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: fieldModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateFieldMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateFieldMutation.ts new file mode 100644 index 000000000..33e20ed97 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateFieldMutation.ts @@ -0,0 +1,102 @@ +/** + * Update mutation hook for Field + * @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 { fieldKeys } from '../query-keys'; +import { fieldMutationKeys } from '../mutation-keys'; +import type { FieldSelect, FieldWithRelations, FieldPatch } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { FieldSelect, FieldWithRelations, FieldPatch } from '../../orm/input-types'; +/** + * Mutation hook for updating a Field + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateFieldMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', fieldPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateFieldMutation( + params: { + selection: { + fields: S & FieldSelect; + } & HookStrictSelect, FieldSelect>; + } & Omit< + UseMutationOptions< + { + updateField: { + field: InferSelectResult; + }; + }, + Error, + { + id: string; + fieldPatch: FieldPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateField: { + field: InferSelectResult; + }; + }, + Error, + { + id: string; + fieldPatch: FieldPatch; + } +>; +export function useUpdateFieldMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + fieldPatch: FieldPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: fieldMutationKeys.all, + mutationFn: ({ id, fieldPatch }: { id: string; fieldPatch: FieldPatch }) => + getClient() + .field.update({ + where: { + id, + }, + data: fieldPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: fieldKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: fieldKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateForeignKeyConstraintMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateForeignKeyConstraintMutation.ts new file mode 100644 index 000000000..b918c3e4d --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateForeignKeyConstraintMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for ForeignKeyConstraint + * @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 { foreignKeyConstraintKeys } from '../query-keys'; +import { foreignKeyConstraintMutationKeys } from '../mutation-keys'; +import type { + ForeignKeyConstraintSelect, + ForeignKeyConstraintWithRelations, + ForeignKeyConstraintPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ForeignKeyConstraintSelect, + ForeignKeyConstraintWithRelations, + ForeignKeyConstraintPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a ForeignKeyConstraint + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateForeignKeyConstraintMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', foreignKeyConstraintPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateForeignKeyConstraintMutation( + params: { + selection: { + fields: S & ForeignKeyConstraintSelect; + } & HookStrictSelect, ForeignKeyConstraintSelect>; + } & Omit< + UseMutationOptions< + { + updateForeignKeyConstraint: { + foreignKeyConstraint: InferSelectResult; + }; + }, + Error, + { + id: string; + foreignKeyConstraintPatch: ForeignKeyConstraintPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateForeignKeyConstraint: { + foreignKeyConstraint: InferSelectResult; + }; + }, + Error, + { + id: string; + foreignKeyConstraintPatch: ForeignKeyConstraintPatch; + } +>; +export function useUpdateForeignKeyConstraintMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + foreignKeyConstraintPatch: ForeignKeyConstraintPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: foreignKeyConstraintMutationKeys.all, + mutationFn: ({ + id, + foreignKeyConstraintPatch, + }: { + id: string; + foreignKeyConstraintPatch: ForeignKeyConstraintPatch; + }) => + getClient() + .foreignKeyConstraint.update({ + where: { + id, + }, + data: foreignKeyConstraintPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: foreignKeyConstraintKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: foreignKeyConstraintKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateFullTextSearchMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateFullTextSearchMutation.ts new file mode 100644 index 000000000..b0e14575f --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateFullTextSearchMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for FullTextSearch + * @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 { fullTextSearchKeys } from '../query-keys'; +import { fullTextSearchMutationKeys } from '../mutation-keys'; +import type { + FullTextSearchSelect, + FullTextSearchWithRelations, + FullTextSearchPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + FullTextSearchSelect, + FullTextSearchWithRelations, + FullTextSearchPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a FullTextSearch + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateFullTextSearchMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', fullTextSearchPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateFullTextSearchMutation( + params: { + selection: { + fields: S & FullTextSearchSelect; + } & HookStrictSelect, FullTextSearchSelect>; + } & Omit< + UseMutationOptions< + { + updateFullTextSearch: { + fullTextSearch: InferSelectResult; + }; + }, + Error, + { + id: string; + fullTextSearchPatch: FullTextSearchPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateFullTextSearch: { + fullTextSearch: InferSelectResult; + }; + }, + Error, + { + id: string; + fullTextSearchPatch: FullTextSearchPatch; + } +>; +export function useUpdateFullTextSearchMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + fullTextSearchPatch: FullTextSearchPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: fullTextSearchMutationKeys.all, + mutationFn: ({ + id, + fullTextSearchPatch, + }: { + id: string; + fullTextSearchPatch: FullTextSearchPatch; + }) => + getClient() + .fullTextSearch.update({ + where: { + id, + }, + data: fullTextSearchPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: fullTextSearchKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: fullTextSearchKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateHierarchyModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateHierarchyModuleMutation.ts new file mode 100644 index 000000000..86c709e4c --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateHierarchyModuleMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for HierarchyModule + * @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 { hierarchyModuleKeys } from '../query-keys'; +import { hierarchyModuleMutationKeys } from '../mutation-keys'; +import type { + HierarchyModuleSelect, + HierarchyModuleWithRelations, + HierarchyModulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + HierarchyModuleSelect, + HierarchyModuleWithRelations, + HierarchyModulePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a HierarchyModule + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateHierarchyModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', hierarchyModulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateHierarchyModuleMutation( + params: { + selection: { + fields: S & HierarchyModuleSelect; + } & HookStrictSelect, HierarchyModuleSelect>; + } & Omit< + UseMutationOptions< + { + updateHierarchyModule: { + hierarchyModule: InferSelectResult; + }; + }, + Error, + { + id: string; + hierarchyModulePatch: HierarchyModulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateHierarchyModule: { + hierarchyModule: InferSelectResult; + }; + }, + Error, + { + id: string; + hierarchyModulePatch: HierarchyModulePatch; + } +>; +export function useUpdateHierarchyModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + hierarchyModulePatch: HierarchyModulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: hierarchyModuleMutationKeys.all, + mutationFn: ({ + id, + hierarchyModulePatch, + }: { + id: string; + hierarchyModulePatch: HierarchyModulePatch; + }) => + getClient() + .hierarchyModule.update({ + where: { + id, + }, + data: hierarchyModulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: hierarchyModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: hierarchyModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateIndexMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateIndexMutation.ts new file mode 100644 index 000000000..75faed6de --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateIndexMutation.ts @@ -0,0 +1,102 @@ +/** + * Update mutation hook for Index + * @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 { indexKeys } from '../query-keys'; +import { indexMutationKeys } from '../mutation-keys'; +import type { IndexSelect, IndexWithRelations, IndexPatch } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { IndexSelect, IndexWithRelations, IndexPatch } from '../../orm/input-types'; +/** + * Mutation hook for updating a Index + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateIndexMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', indexPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateIndexMutation( + params: { + selection: { + fields: S & IndexSelect; + } & HookStrictSelect, IndexSelect>; + } & Omit< + UseMutationOptions< + { + updateIndex: { + index: InferSelectResult; + }; + }, + Error, + { + id: string; + indexPatch: IndexPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateIndex: { + index: InferSelectResult; + }; + }, + Error, + { + id: string; + indexPatch: IndexPatch; + } +>; +export function useUpdateIndexMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + indexPatch: IndexPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: indexMutationKeys.all, + mutationFn: ({ id, indexPatch }: { id: string; indexPatch: IndexPatch }) => + getClient() + .index.update({ + where: { + id, + }, + data: indexPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: indexKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: indexKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateInviteMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateInviteMutation.ts new file mode 100644 index 000000000..819636de6 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateInviteMutation.ts @@ -0,0 +1,102 @@ +/** + * Update mutation hook for Invite + * @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 { inviteKeys } from '../query-keys'; +import { inviteMutationKeys } from '../mutation-keys'; +import type { InviteSelect, InviteWithRelations, InvitePatch } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { InviteSelect, InviteWithRelations, InvitePatch } from '../../orm/input-types'; +/** + * Mutation hook for updating a Invite + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateInviteMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', invitePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateInviteMutation( + params: { + selection: { + fields: S & InviteSelect; + } & HookStrictSelect, InviteSelect>; + } & Omit< + UseMutationOptions< + { + updateInvite: { + invite: InferSelectResult; + }; + }, + Error, + { + id: string; + invitePatch: InvitePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateInvite: { + invite: InferSelectResult; + }; + }, + Error, + { + id: string; + invitePatch: InvitePatch; + } +>; +export function useUpdateInviteMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + invitePatch: InvitePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: inviteMutationKeys.all, + mutationFn: ({ id, invitePatch }: { id: string; invitePatch: InvitePatch }) => + getClient() + .invite.update({ + where: { + id, + }, + data: invitePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: inviteKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: inviteKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateInvitesModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateInvitesModuleMutation.ts new file mode 100644 index 000000000..93ac28817 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateInvitesModuleMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for InvitesModule + * @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 { invitesModuleKeys } from '../query-keys'; +import { invitesModuleMutationKeys } from '../mutation-keys'; +import type { + InvitesModuleSelect, + InvitesModuleWithRelations, + InvitesModulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + InvitesModuleSelect, + InvitesModuleWithRelations, + InvitesModulePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a InvitesModule + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateInvitesModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', invitesModulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateInvitesModuleMutation( + params: { + selection: { + fields: S & InvitesModuleSelect; + } & HookStrictSelect, InvitesModuleSelect>; + } & Omit< + UseMutationOptions< + { + updateInvitesModule: { + invitesModule: InferSelectResult; + }; + }, + Error, + { + id: string; + invitesModulePatch: InvitesModulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateInvitesModule: { + invitesModule: InferSelectResult; + }; + }, + Error, + { + id: string; + invitesModulePatch: InvitesModulePatch; + } +>; +export function useUpdateInvitesModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + invitesModulePatch: InvitesModulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: invitesModuleMutationKeys.all, + mutationFn: ({ + id, + invitesModulePatch, + }: { + id: string; + invitesModulePatch: InvitesModulePatch; + }) => + getClient() + .invitesModule.update({ + where: { + id, + }, + data: invitesModulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: invitesModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: invitesModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateLevelsModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateLevelsModuleMutation.ts new file mode 100644 index 000000000..11fc05b15 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateLevelsModuleMutation.ts @@ -0,0 +1,110 @@ +/** + * Update mutation hook for LevelsModule + * @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 { levelsModuleKeys } from '../query-keys'; +import { levelsModuleMutationKeys } from '../mutation-keys'; +import type { + LevelsModuleSelect, + LevelsModuleWithRelations, + LevelsModulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + LevelsModuleSelect, + LevelsModuleWithRelations, + LevelsModulePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a LevelsModule + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateLevelsModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', levelsModulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateLevelsModuleMutation( + params: { + selection: { + fields: S & LevelsModuleSelect; + } & HookStrictSelect, LevelsModuleSelect>; + } & Omit< + UseMutationOptions< + { + updateLevelsModule: { + levelsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + levelsModulePatch: LevelsModulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateLevelsModule: { + levelsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + levelsModulePatch: LevelsModulePatch; + } +>; +export function useUpdateLevelsModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + levelsModulePatch: LevelsModulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: levelsModuleMutationKeys.all, + mutationFn: ({ id, levelsModulePatch }: { id: string; levelsModulePatch: LevelsModulePatch }) => + getClient() + .levelsModule.update({ + where: { + id, + }, + data: levelsModulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: levelsModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: levelsModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateLimitFunctionMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateLimitFunctionMutation.ts new file mode 100644 index 000000000..ca0f69bbb --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateLimitFunctionMutation.ts @@ -0,0 +1,116 @@ +/** + * 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/useUpdateLimitsModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateLimitsModuleMutation.ts new file mode 100644 index 000000000..99d8a8681 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateLimitsModuleMutation.ts @@ -0,0 +1,110 @@ +/** + * Update mutation hook for LimitsModule + * @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 { limitsModuleKeys } from '../query-keys'; +import { limitsModuleMutationKeys } from '../mutation-keys'; +import type { + LimitsModuleSelect, + LimitsModuleWithRelations, + LimitsModulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + LimitsModuleSelect, + LimitsModuleWithRelations, + LimitsModulePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a LimitsModule + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateLimitsModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', limitsModulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateLimitsModuleMutation( + params: { + selection: { + fields: S & LimitsModuleSelect; + } & HookStrictSelect, LimitsModuleSelect>; + } & Omit< + UseMutationOptions< + { + updateLimitsModule: { + limitsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + limitsModulePatch: LimitsModulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateLimitsModule: { + limitsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + limitsModulePatch: LimitsModulePatch; + } +>; +export function useUpdateLimitsModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + limitsModulePatch: LimitsModulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: limitsModuleMutationKeys.all, + mutationFn: ({ id, limitsModulePatch }: { id: string; limitsModulePatch: LimitsModulePatch }) => + getClient() + .limitsModule.update({ + where: { + id, + }, + data: limitsModulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: limitsModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: limitsModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateMembershipTypeMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateMembershipTypeMutation.ts new file mode 100644 index 000000000..caee90ff0 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateMembershipTypeMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for MembershipType + * @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 { membershipTypeKeys } from '../query-keys'; +import { membershipTypeMutationKeys } from '../mutation-keys'; +import type { + MembershipTypeSelect, + MembershipTypeWithRelations, + MembershipTypePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + MembershipTypeSelect, + MembershipTypeWithRelations, + MembershipTypePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a MembershipType + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateMembershipTypeMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', membershipTypePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateMembershipTypeMutation( + params: { + selection: { + fields: S & MembershipTypeSelect; + } & HookStrictSelect, MembershipTypeSelect>; + } & Omit< + UseMutationOptions< + { + updateMembershipType: { + membershipType: InferSelectResult; + }; + }, + Error, + { + id: number; + membershipTypePatch: MembershipTypePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateMembershipType: { + membershipType: InferSelectResult; + }; + }, + Error, + { + id: number; + membershipTypePatch: MembershipTypePatch; + } +>; +export function useUpdateMembershipTypeMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: number; + membershipTypePatch: MembershipTypePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: membershipTypeMutationKeys.all, + mutationFn: ({ + id, + membershipTypePatch, + }: { + id: number; + membershipTypePatch: MembershipTypePatch; + }) => + getClient() + .membershipType.update({ + where: { + id, + }, + data: membershipTypePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: membershipTypeKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: membershipTypeKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateMembershipTypesModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateMembershipTypesModuleMutation.ts new file mode 100644 index 000000000..57c080be1 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateMembershipTypesModuleMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for MembershipTypesModule + * @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 { membershipTypesModuleKeys } from '../query-keys'; +import { membershipTypesModuleMutationKeys } from '../mutation-keys'; +import type { + MembershipTypesModuleSelect, + MembershipTypesModuleWithRelations, + MembershipTypesModulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + MembershipTypesModuleSelect, + MembershipTypesModuleWithRelations, + MembershipTypesModulePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a MembershipTypesModule + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateMembershipTypesModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', membershipTypesModulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateMembershipTypesModuleMutation( + params: { + selection: { + fields: S & MembershipTypesModuleSelect; + } & HookStrictSelect, MembershipTypesModuleSelect>; + } & Omit< + UseMutationOptions< + { + updateMembershipTypesModule: { + membershipTypesModule: InferSelectResult; + }; + }, + Error, + { + id: string; + membershipTypesModulePatch: MembershipTypesModulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateMembershipTypesModule: { + membershipTypesModule: InferSelectResult; + }; + }, + Error, + { + id: string; + membershipTypesModulePatch: MembershipTypesModulePatch; + } +>; +export function useUpdateMembershipTypesModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + membershipTypesModulePatch: MembershipTypesModulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: membershipTypesModuleMutationKeys.all, + mutationFn: ({ + id, + membershipTypesModulePatch, + }: { + id: string; + membershipTypesModulePatch: MembershipTypesModulePatch; + }) => + getClient() + .membershipTypesModule.update({ + where: { + id, + }, + data: membershipTypesModulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: membershipTypesModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: membershipTypesModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateMembershipsModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateMembershipsModuleMutation.ts new file mode 100644 index 000000000..5571846e8 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateMembershipsModuleMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for MembershipsModule + * @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 { membershipsModuleKeys } from '../query-keys'; +import { membershipsModuleMutationKeys } from '../mutation-keys'; +import type { + MembershipsModuleSelect, + MembershipsModuleWithRelations, + MembershipsModulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + MembershipsModuleSelect, + MembershipsModuleWithRelations, + MembershipsModulePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a MembershipsModule + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateMembershipsModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', membershipsModulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateMembershipsModuleMutation( + params: { + selection: { + fields: S & MembershipsModuleSelect; + } & HookStrictSelect, MembershipsModuleSelect>; + } & Omit< + UseMutationOptions< + { + updateMembershipsModule: { + membershipsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + membershipsModulePatch: MembershipsModulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateMembershipsModule: { + membershipsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + membershipsModulePatch: MembershipsModulePatch; + } +>; +export function useUpdateMembershipsModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + membershipsModulePatch: MembershipsModulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: membershipsModuleMutationKeys.all, + mutationFn: ({ + id, + membershipsModulePatch, + }: { + id: string; + membershipsModulePatch: MembershipsModulePatch; + }) => + getClient() + .membershipsModule.update({ + where: { + id, + }, + data: membershipsModulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: membershipsModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: membershipsModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateNodeAtPathMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateNodeAtPathMutation.ts new file mode 100644 index 000000000..79e3ebe21 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateNodeAtPathMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for updateNodeAtPath + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } 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 { customMutationKeys } from '../mutation-keys'; +import type { UpdateNodeAtPathVariables } from '../../orm/mutation'; +import type { UpdateNodeAtPathPayloadSelect, UpdateNodeAtPathPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { UpdateNodeAtPathVariables } from '../../orm/mutation'; +export type { UpdateNodeAtPathPayloadSelect } from '../../orm/input-types'; +export function useUpdateNodeAtPathMutation( + params: { + selection: { + fields: S & UpdateNodeAtPathPayloadSelect; + } & HookStrictSelect, UpdateNodeAtPathPayloadSelect>; + } & Omit< + UseMutationOptions< + { + updateNodeAtPath: InferSelectResult | null; + }, + Error, + UpdateNodeAtPathVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + updateNodeAtPath: InferSelectResult | null; + }, + Error, + UpdateNodeAtPathVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.updateNodeAtPath(), + mutationFn: (variables: UpdateNodeAtPathVariables) => + getClient() + .mutation.updateNodeAtPath(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateNodeTypeRegistryMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateNodeTypeRegistryMutation.ts new file mode 100644 index 000000000..86d619ebb --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateNodeTypeRegistryMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for NodeTypeRegistry + * @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 { nodeTypeRegistryKeys } from '../query-keys'; +import { nodeTypeRegistryMutationKeys } from '../mutation-keys'; +import type { + NodeTypeRegistrySelect, + NodeTypeRegistryWithRelations, + NodeTypeRegistryPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + NodeTypeRegistrySelect, + NodeTypeRegistryWithRelations, + NodeTypeRegistryPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a NodeTypeRegistry + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateNodeTypeRegistryMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'value-here', nodeTypeRegistryPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateNodeTypeRegistryMutation( + params: { + selection: { + fields: S & NodeTypeRegistrySelect; + } & HookStrictSelect, NodeTypeRegistrySelect>; + } & Omit< + UseMutationOptions< + { + updateNodeTypeRegistry: { + nodeTypeRegistry: InferSelectResult; + }; + }, + Error, + { + name: string; + nodeTypeRegistryPatch: NodeTypeRegistryPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateNodeTypeRegistry: { + nodeTypeRegistry: InferSelectResult; + }; + }, + Error, + { + name: string; + nodeTypeRegistryPatch: NodeTypeRegistryPatch; + } +>; +export function useUpdateNodeTypeRegistryMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + name: string; + nodeTypeRegistryPatch: NodeTypeRegistryPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: nodeTypeRegistryMutationKeys.all, + mutationFn: ({ + name, + nodeTypeRegistryPatch, + }: { + name: string; + nodeTypeRegistryPatch: NodeTypeRegistryPatch; + }) => + getClient() + .nodeTypeRegistry.update({ + where: { + name, + }, + data: nodeTypeRegistryPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: nodeTypeRegistryKeys.detail(variables.name), + }); + queryClient.invalidateQueries({ + queryKey: nodeTypeRegistryKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateObjectMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateObjectMutation.ts new file mode 100644 index 000000000..3c60807de --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateObjectMutation.ts @@ -0,0 +1,102 @@ +/** + * Update mutation hook for Object + * @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 { objectKeys } from '../query-keys'; +import { objectMutationKeys } from '../mutation-keys'; +import type { ObjectSelect, ObjectWithRelations, ObjectPatch } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ObjectSelect, ObjectWithRelations, ObjectPatch } from '../../orm/input-types'; +/** + * Mutation hook for updating a Object + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateObjectMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', objectPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateObjectMutation( + params: { + selection: { + fields: S & ObjectSelect; + } & HookStrictSelect, ObjectSelect>; + } & Omit< + UseMutationOptions< + { + updateObject: { + object: InferSelectResult; + }; + }, + Error, + { + id: string; + objectPatch: ObjectPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateObject: { + object: InferSelectResult; + }; + }, + Error, + { + id: string; + objectPatch: ObjectPatch; + } +>; +export function useUpdateObjectMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + objectPatch: ObjectPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: objectMutationKeys.all, + mutationFn: ({ id, objectPatch }: { id: string; objectPatch: ObjectPatch }) => + getClient() + .object.update({ + where: { + id, + }, + data: objectPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: objectKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: objectKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgAdminGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgAdminGrantMutation.ts new file mode 100644 index 000000000..41f8e6380 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgAdminGrantMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for OrgAdminGrant + * @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 { orgAdminGrantKeys } from '../query-keys'; +import { orgAdminGrantMutationKeys } from '../mutation-keys'; +import type { + OrgAdminGrantSelect, + OrgAdminGrantWithRelations, + OrgAdminGrantPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgAdminGrantSelect, + OrgAdminGrantWithRelations, + OrgAdminGrantPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a OrgAdminGrant + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateOrgAdminGrantMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', orgAdminGrantPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateOrgAdminGrantMutation( + params: { + selection: { + fields: S & OrgAdminGrantSelect; + } & HookStrictSelect, OrgAdminGrantSelect>; + } & Omit< + UseMutationOptions< + { + updateOrgAdminGrant: { + orgAdminGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + orgAdminGrantPatch: OrgAdminGrantPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateOrgAdminGrant: { + orgAdminGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + orgAdminGrantPatch: OrgAdminGrantPatch; + } +>; +export function useUpdateOrgAdminGrantMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + orgAdminGrantPatch: OrgAdminGrantPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgAdminGrantMutationKeys.all, + mutationFn: ({ + id, + orgAdminGrantPatch, + }: { + id: string; + orgAdminGrantPatch: OrgAdminGrantPatch; + }) => + getClient() + .orgAdminGrant.update({ + where: { + id, + }, + data: orgAdminGrantPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: orgAdminGrantKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgAdminGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgClaimedInviteMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgClaimedInviteMutation.ts new file mode 100644 index 000000000..8b2a21d55 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgClaimedInviteMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for OrgClaimedInvite + * @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 { orgClaimedInviteKeys } from '../query-keys'; +import { orgClaimedInviteMutationKeys } from '../mutation-keys'; +import type { + OrgClaimedInviteSelect, + OrgClaimedInviteWithRelations, + OrgClaimedInvitePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgClaimedInviteSelect, + OrgClaimedInviteWithRelations, + OrgClaimedInvitePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a OrgClaimedInvite + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateOrgClaimedInviteMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', orgClaimedInvitePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateOrgClaimedInviteMutation( + params: { + selection: { + fields: S & OrgClaimedInviteSelect; + } & HookStrictSelect, OrgClaimedInviteSelect>; + } & Omit< + UseMutationOptions< + { + updateOrgClaimedInvite: { + orgClaimedInvite: InferSelectResult; + }; + }, + Error, + { + id: string; + orgClaimedInvitePatch: OrgClaimedInvitePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateOrgClaimedInvite: { + orgClaimedInvite: InferSelectResult; + }; + }, + Error, + { + id: string; + orgClaimedInvitePatch: OrgClaimedInvitePatch; + } +>; +export function useUpdateOrgClaimedInviteMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + orgClaimedInvitePatch: OrgClaimedInvitePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgClaimedInviteMutationKeys.all, + mutationFn: ({ + id, + orgClaimedInvitePatch, + }: { + id: string; + orgClaimedInvitePatch: OrgClaimedInvitePatch; + }) => + getClient() + .orgClaimedInvite.update({ + where: { + id, + }, + data: orgClaimedInvitePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: orgClaimedInviteKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgClaimedInviteKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgGrantMutation.ts new file mode 100644 index 000000000..fc612cf93 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgGrantMutation.ts @@ -0,0 +1,102 @@ +/** + * Update mutation hook for OrgGrant + * @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 { orgGrantKeys } from '../query-keys'; +import { orgGrantMutationKeys } from '../mutation-keys'; +import type { OrgGrantSelect, OrgGrantWithRelations, OrgGrantPatch } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { OrgGrantSelect, OrgGrantWithRelations, OrgGrantPatch } from '../../orm/input-types'; +/** + * Mutation hook for updating a OrgGrant + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateOrgGrantMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', orgGrantPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateOrgGrantMutation( + params: { + selection: { + fields: S & OrgGrantSelect; + } & HookStrictSelect, OrgGrantSelect>; + } & Omit< + UseMutationOptions< + { + updateOrgGrant: { + orgGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + orgGrantPatch: OrgGrantPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateOrgGrant: { + orgGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + orgGrantPatch: OrgGrantPatch; + } +>; +export function useUpdateOrgGrantMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + orgGrantPatch: OrgGrantPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgGrantMutationKeys.all, + mutationFn: ({ id, orgGrantPatch }: { id: string; orgGrantPatch: OrgGrantPatch }) => + getClient() + .orgGrant.update({ + where: { + id, + }, + data: orgGrantPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: orgGrantKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgInviteMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgInviteMutation.ts new file mode 100644 index 000000000..5093adbfc --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgInviteMutation.ts @@ -0,0 +1,110 @@ +/** + * Update mutation hook for OrgInvite + * @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 { orgInviteKeys } from '../query-keys'; +import { orgInviteMutationKeys } from '../mutation-keys'; +import type { + OrgInviteSelect, + OrgInviteWithRelations, + OrgInvitePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgInviteSelect, + OrgInviteWithRelations, + OrgInvitePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a OrgInvite + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateOrgInviteMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', orgInvitePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateOrgInviteMutation( + params: { + selection: { + fields: S & OrgInviteSelect; + } & HookStrictSelect, OrgInviteSelect>; + } & Omit< + UseMutationOptions< + { + updateOrgInvite: { + orgInvite: InferSelectResult; + }; + }, + Error, + { + id: string; + orgInvitePatch: OrgInvitePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateOrgInvite: { + orgInvite: InferSelectResult; + }; + }, + Error, + { + id: string; + orgInvitePatch: OrgInvitePatch; + } +>; +export function useUpdateOrgInviteMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + orgInvitePatch: OrgInvitePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgInviteMutationKeys.all, + mutationFn: ({ id, orgInvitePatch }: { id: string; orgInvitePatch: OrgInvitePatch }) => + getClient() + .orgInvite.update({ + where: { + id, + }, + data: orgInvitePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: orgInviteKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgInviteKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgLimitDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgLimitDefaultMutation.ts new file mode 100644 index 000000000..9226eadb8 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgLimitDefaultMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for OrgLimitDefault + * @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 { orgLimitDefaultKeys } from '../query-keys'; +import { orgLimitDefaultMutationKeys } from '../mutation-keys'; +import type { + OrgLimitDefaultSelect, + OrgLimitDefaultWithRelations, + OrgLimitDefaultPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgLimitDefaultSelect, + OrgLimitDefaultWithRelations, + OrgLimitDefaultPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a OrgLimitDefault + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateOrgLimitDefaultMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', orgLimitDefaultPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateOrgLimitDefaultMutation( + params: { + selection: { + fields: S & OrgLimitDefaultSelect; + } & HookStrictSelect, OrgLimitDefaultSelect>; + } & Omit< + UseMutationOptions< + { + updateOrgLimitDefault: { + orgLimitDefault: InferSelectResult; + }; + }, + Error, + { + id: string; + orgLimitDefaultPatch: OrgLimitDefaultPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateOrgLimitDefault: { + orgLimitDefault: InferSelectResult; + }; + }, + Error, + { + id: string; + orgLimitDefaultPatch: OrgLimitDefaultPatch; + } +>; +export function useUpdateOrgLimitDefaultMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + orgLimitDefaultPatch: OrgLimitDefaultPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgLimitDefaultMutationKeys.all, + mutationFn: ({ + id, + orgLimitDefaultPatch, + }: { + id: string; + orgLimitDefaultPatch: OrgLimitDefaultPatch; + }) => + getClient() + .orgLimitDefault.update({ + where: { + id, + }, + data: orgLimitDefaultPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: orgLimitDefaultKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgLimitDefaultKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgLimitMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgLimitMutation.ts new file mode 100644 index 000000000..cd8f3baed --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgLimitMutation.ts @@ -0,0 +1,102 @@ +/** + * Update mutation hook for OrgLimit + * @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 { orgLimitKeys } from '../query-keys'; +import { orgLimitMutationKeys } from '../mutation-keys'; +import type { OrgLimitSelect, OrgLimitWithRelations, OrgLimitPatch } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { OrgLimitSelect, OrgLimitWithRelations, OrgLimitPatch } from '../../orm/input-types'; +/** + * Mutation hook for updating a OrgLimit + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateOrgLimitMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', orgLimitPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateOrgLimitMutation( + params: { + selection: { + fields: S & OrgLimitSelect; + } & HookStrictSelect, OrgLimitSelect>; + } & Omit< + UseMutationOptions< + { + updateOrgLimit: { + orgLimit: InferSelectResult; + }; + }, + Error, + { + id: string; + orgLimitPatch: OrgLimitPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateOrgLimit: { + orgLimit: InferSelectResult; + }; + }, + Error, + { + id: string; + orgLimitPatch: OrgLimitPatch; + } +>; +export function useUpdateOrgLimitMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + orgLimitPatch: OrgLimitPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgLimitMutationKeys.all, + mutationFn: ({ id, orgLimitPatch }: { id: string; orgLimitPatch: OrgLimitPatch }) => + getClient() + .orgLimit.update({ + where: { + id, + }, + data: orgLimitPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: orgLimitKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgLimitKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgMemberMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgMemberMutation.ts new file mode 100644 index 000000000..42f54bfc7 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgMemberMutation.ts @@ -0,0 +1,110 @@ +/** + * Update mutation hook for OrgMember + * @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 { orgMemberKeys } from '../query-keys'; +import { orgMemberMutationKeys } from '../mutation-keys'; +import type { + OrgMemberSelect, + OrgMemberWithRelations, + OrgMemberPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgMemberSelect, + OrgMemberWithRelations, + OrgMemberPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a OrgMember + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateOrgMemberMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', orgMemberPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateOrgMemberMutation( + params: { + selection: { + fields: S & OrgMemberSelect; + } & HookStrictSelect, OrgMemberSelect>; + } & Omit< + UseMutationOptions< + { + updateOrgMember: { + orgMember: InferSelectResult; + }; + }, + Error, + { + id: string; + orgMemberPatch: OrgMemberPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateOrgMember: { + orgMember: InferSelectResult; + }; + }, + Error, + { + id: string; + orgMemberPatch: OrgMemberPatch; + } +>; +export function useUpdateOrgMemberMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + orgMemberPatch: OrgMemberPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgMemberMutationKeys.all, + mutationFn: ({ id, orgMemberPatch }: { id: string; orgMemberPatch: OrgMemberPatch }) => + getClient() + .orgMember.update({ + where: { + id, + }, + data: orgMemberPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: orgMemberKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgMemberKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgMembershipDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgMembershipDefaultMutation.ts new file mode 100644 index 000000000..06b97181c --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgMembershipDefaultMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for OrgMembershipDefault + * @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 { orgMembershipDefaultKeys } from '../query-keys'; +import { orgMembershipDefaultMutationKeys } from '../mutation-keys'; +import type { + OrgMembershipDefaultSelect, + OrgMembershipDefaultWithRelations, + OrgMembershipDefaultPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgMembershipDefaultSelect, + OrgMembershipDefaultWithRelations, + OrgMembershipDefaultPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a OrgMembershipDefault + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateOrgMembershipDefaultMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', orgMembershipDefaultPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateOrgMembershipDefaultMutation( + params: { + selection: { + fields: S & OrgMembershipDefaultSelect; + } & HookStrictSelect, OrgMembershipDefaultSelect>; + } & Omit< + UseMutationOptions< + { + updateOrgMembershipDefault: { + orgMembershipDefault: InferSelectResult; + }; + }, + Error, + { + id: string; + orgMembershipDefaultPatch: OrgMembershipDefaultPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateOrgMembershipDefault: { + orgMembershipDefault: InferSelectResult; + }; + }, + Error, + { + id: string; + orgMembershipDefaultPatch: OrgMembershipDefaultPatch; + } +>; +export function useUpdateOrgMembershipDefaultMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + orgMembershipDefaultPatch: OrgMembershipDefaultPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgMembershipDefaultMutationKeys.all, + mutationFn: ({ + id, + orgMembershipDefaultPatch, + }: { + id: string; + orgMembershipDefaultPatch: OrgMembershipDefaultPatch; + }) => + getClient() + .orgMembershipDefault.update({ + where: { + id, + }, + data: orgMembershipDefaultPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: orgMembershipDefaultKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgMembershipDefaultKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgMembershipMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgMembershipMutation.ts new file mode 100644 index 000000000..5a8998fb2 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgMembershipMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for OrgMembership + * @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 { orgMembershipKeys } from '../query-keys'; +import { orgMembershipMutationKeys } from '../mutation-keys'; +import type { + OrgMembershipSelect, + OrgMembershipWithRelations, + OrgMembershipPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgMembershipSelect, + OrgMembershipWithRelations, + OrgMembershipPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a OrgMembership + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateOrgMembershipMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', orgMembershipPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateOrgMembershipMutation( + params: { + selection: { + fields: S & OrgMembershipSelect; + } & HookStrictSelect, OrgMembershipSelect>; + } & Omit< + UseMutationOptions< + { + updateOrgMembership: { + orgMembership: InferSelectResult; + }; + }, + Error, + { + id: string; + orgMembershipPatch: OrgMembershipPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateOrgMembership: { + orgMembership: InferSelectResult; + }; + }, + Error, + { + id: string; + orgMembershipPatch: OrgMembershipPatch; + } +>; +export function useUpdateOrgMembershipMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + orgMembershipPatch: OrgMembershipPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgMembershipMutationKeys.all, + mutationFn: ({ + id, + orgMembershipPatch, + }: { + id: string; + orgMembershipPatch: OrgMembershipPatch; + }) => + getClient() + .orgMembership.update({ + where: { + id, + }, + data: orgMembershipPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: orgMembershipKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgMembershipKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgOwnerGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgOwnerGrantMutation.ts new file mode 100644 index 000000000..f1704e8be --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgOwnerGrantMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for OrgOwnerGrant + * @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 { orgOwnerGrantKeys } from '../query-keys'; +import { orgOwnerGrantMutationKeys } from '../mutation-keys'; +import type { + OrgOwnerGrantSelect, + OrgOwnerGrantWithRelations, + OrgOwnerGrantPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgOwnerGrantSelect, + OrgOwnerGrantWithRelations, + OrgOwnerGrantPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a OrgOwnerGrant + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateOrgOwnerGrantMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', orgOwnerGrantPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateOrgOwnerGrantMutation( + params: { + selection: { + fields: S & OrgOwnerGrantSelect; + } & HookStrictSelect, OrgOwnerGrantSelect>; + } & Omit< + UseMutationOptions< + { + updateOrgOwnerGrant: { + orgOwnerGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + orgOwnerGrantPatch: OrgOwnerGrantPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateOrgOwnerGrant: { + orgOwnerGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + orgOwnerGrantPatch: OrgOwnerGrantPatch; + } +>; +export function useUpdateOrgOwnerGrantMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + orgOwnerGrantPatch: OrgOwnerGrantPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgOwnerGrantMutationKeys.all, + mutationFn: ({ + id, + orgOwnerGrantPatch, + }: { + id: string; + orgOwnerGrantPatch: OrgOwnerGrantPatch; + }) => + getClient() + .orgOwnerGrant.update({ + where: { + id, + }, + data: orgOwnerGrantPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: orgOwnerGrantKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgOwnerGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgPermissionDefaultMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgPermissionDefaultMutation.ts new file mode 100644 index 000000000..b512499d2 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgPermissionDefaultMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for OrgPermissionDefault + * @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 { orgPermissionDefaultKeys } from '../query-keys'; +import { orgPermissionDefaultMutationKeys } from '../mutation-keys'; +import type { + OrgPermissionDefaultSelect, + OrgPermissionDefaultWithRelations, + OrgPermissionDefaultPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgPermissionDefaultSelect, + OrgPermissionDefaultWithRelations, + OrgPermissionDefaultPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a OrgPermissionDefault + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateOrgPermissionDefaultMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', orgPermissionDefaultPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateOrgPermissionDefaultMutation( + params: { + selection: { + fields: S & OrgPermissionDefaultSelect; + } & HookStrictSelect, OrgPermissionDefaultSelect>; + } & Omit< + UseMutationOptions< + { + updateOrgPermissionDefault: { + orgPermissionDefault: InferSelectResult; + }; + }, + Error, + { + id: string; + orgPermissionDefaultPatch: OrgPermissionDefaultPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateOrgPermissionDefault: { + orgPermissionDefault: InferSelectResult; + }; + }, + Error, + { + id: string; + orgPermissionDefaultPatch: OrgPermissionDefaultPatch; + } +>; +export function useUpdateOrgPermissionDefaultMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + orgPermissionDefaultPatch: OrgPermissionDefaultPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgPermissionDefaultMutationKeys.all, + mutationFn: ({ + id, + orgPermissionDefaultPatch, + }: { + id: string; + orgPermissionDefaultPatch: OrgPermissionDefaultPatch; + }) => + getClient() + .orgPermissionDefault.update({ + where: { + id, + }, + data: orgPermissionDefaultPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: orgPermissionDefaultKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgPermissionDefaultKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgPermissionMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgPermissionMutation.ts new file mode 100644 index 000000000..69be765f0 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgPermissionMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for OrgPermission + * @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 { orgPermissionKeys } from '../query-keys'; +import { orgPermissionMutationKeys } from '../mutation-keys'; +import type { + OrgPermissionSelect, + OrgPermissionWithRelations, + OrgPermissionPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgPermissionSelect, + OrgPermissionWithRelations, + OrgPermissionPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a OrgPermission + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateOrgPermissionMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', orgPermissionPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateOrgPermissionMutation( + params: { + selection: { + fields: S & OrgPermissionSelect; + } & HookStrictSelect, OrgPermissionSelect>; + } & Omit< + UseMutationOptions< + { + updateOrgPermission: { + orgPermission: InferSelectResult; + }; + }, + Error, + { + id: string; + orgPermissionPatch: OrgPermissionPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateOrgPermission: { + orgPermission: InferSelectResult; + }; + }, + Error, + { + id: string; + orgPermissionPatch: OrgPermissionPatch; + } +>; +export function useUpdateOrgPermissionMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + orgPermissionPatch: OrgPermissionPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgPermissionMutationKeys.all, + mutationFn: ({ + id, + orgPermissionPatch, + }: { + id: string; + orgPermissionPatch: OrgPermissionPatch; + }) => + getClient() + .orgPermission.update({ + where: { + id, + }, + data: orgPermissionPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: orgPermissionKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgPermissionKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdatePermissionsModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdatePermissionsModuleMutation.ts new file mode 100644 index 000000000..de206e8b7 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdatePermissionsModuleMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for PermissionsModule + * @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 { permissionsModuleKeys } from '../query-keys'; +import { permissionsModuleMutationKeys } from '../mutation-keys'; +import type { + PermissionsModuleSelect, + PermissionsModuleWithRelations, + PermissionsModulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PermissionsModuleSelect, + PermissionsModuleWithRelations, + PermissionsModulePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a PermissionsModule + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdatePermissionsModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', permissionsModulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdatePermissionsModuleMutation( + params: { + selection: { + fields: S & PermissionsModuleSelect; + } & HookStrictSelect, PermissionsModuleSelect>; + } & Omit< + UseMutationOptions< + { + updatePermissionsModule: { + permissionsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + permissionsModulePatch: PermissionsModulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePermissionsModule: { + permissionsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + permissionsModulePatch: PermissionsModulePatch; + } +>; +export function useUpdatePermissionsModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + permissionsModulePatch: PermissionsModulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: permissionsModuleMutationKeys.all, + mutationFn: ({ + id, + permissionsModulePatch, + }: { + id: string; + permissionsModulePatch: PermissionsModulePatch; + }) => + getClient() + .permissionsModule.update({ + where: { + id, + }, + data: permissionsModulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: permissionsModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: permissionsModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdatePhoneNumberMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdatePhoneNumberMutation.ts new file mode 100644 index 000000000..e78b8e139 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdatePhoneNumberMutation.ts @@ -0,0 +1,110 @@ +/** + * Update mutation hook for PhoneNumber + * @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 { phoneNumberKeys } from '../query-keys'; +import { phoneNumberMutationKeys } from '../mutation-keys'; +import type { + PhoneNumberSelect, + PhoneNumberWithRelations, + PhoneNumberPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PhoneNumberSelect, + PhoneNumberWithRelations, + PhoneNumberPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a PhoneNumber + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdatePhoneNumberMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', phoneNumberPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdatePhoneNumberMutation( + params: { + selection: { + fields: S & PhoneNumberSelect; + } & HookStrictSelect, PhoneNumberSelect>; + } & Omit< + UseMutationOptions< + { + updatePhoneNumber: { + phoneNumber: InferSelectResult; + }; + }, + Error, + { + id: string; + phoneNumberPatch: PhoneNumberPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePhoneNumber: { + phoneNumber: InferSelectResult; + }; + }, + Error, + { + id: string; + phoneNumberPatch: PhoneNumberPatch; + } +>; +export function useUpdatePhoneNumberMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + phoneNumberPatch: PhoneNumberPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: phoneNumberMutationKeys.all, + mutationFn: ({ id, phoneNumberPatch }: { id: string; phoneNumberPatch: PhoneNumberPatch }) => + getClient() + .phoneNumber.update({ + where: { + id, + }, + data: phoneNumberPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: phoneNumberKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: phoneNumberKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdatePhoneNumbersModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdatePhoneNumbersModuleMutation.ts new file mode 100644 index 000000000..c1250ba4f --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdatePhoneNumbersModuleMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for PhoneNumbersModule + * @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 { phoneNumbersModuleKeys } from '../query-keys'; +import { phoneNumbersModuleMutationKeys } from '../mutation-keys'; +import type { + PhoneNumbersModuleSelect, + PhoneNumbersModuleWithRelations, + PhoneNumbersModulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PhoneNumbersModuleSelect, + PhoneNumbersModuleWithRelations, + PhoneNumbersModulePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a PhoneNumbersModule + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdatePhoneNumbersModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', phoneNumbersModulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdatePhoneNumbersModuleMutation( + params: { + selection: { + fields: S & PhoneNumbersModuleSelect; + } & HookStrictSelect, PhoneNumbersModuleSelect>; + } & Omit< + UseMutationOptions< + { + updatePhoneNumbersModule: { + phoneNumbersModule: InferSelectResult; + }; + }, + Error, + { + id: string; + phoneNumbersModulePatch: PhoneNumbersModulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePhoneNumbersModule: { + phoneNumbersModule: InferSelectResult; + }; + }, + Error, + { + id: string; + phoneNumbersModulePatch: PhoneNumbersModulePatch; + } +>; +export function useUpdatePhoneNumbersModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + phoneNumbersModulePatch: PhoneNumbersModulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: phoneNumbersModuleMutationKeys.all, + mutationFn: ({ + id, + phoneNumbersModulePatch, + }: { + id: string; + phoneNumbersModulePatch: PhoneNumbersModulePatch; + }) => + getClient() + .phoneNumbersModule.update({ + where: { + id, + }, + data: phoneNumbersModulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: phoneNumbersModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: phoneNumbersModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdatePolicyMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdatePolicyMutation.ts new file mode 100644 index 000000000..0c975e2a2 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdatePolicyMutation.ts @@ -0,0 +1,102 @@ +/** + * Update mutation hook for Policy + * @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 { policyKeys } from '../query-keys'; +import { policyMutationKeys } from '../mutation-keys'; +import type { PolicySelect, PolicyWithRelations, PolicyPatch } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { PolicySelect, PolicyWithRelations, PolicyPatch } from '../../orm/input-types'; +/** + * Mutation hook for updating a Policy + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdatePolicyMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', policyPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdatePolicyMutation( + params: { + selection: { + fields: S & PolicySelect; + } & HookStrictSelect, PolicySelect>; + } & Omit< + UseMutationOptions< + { + updatePolicy: { + policy: InferSelectResult; + }; + }, + Error, + { + id: string; + policyPatch: PolicyPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePolicy: { + policy: InferSelectResult; + }; + }, + Error, + { + id: string; + policyPatch: PolicyPatch; + } +>; +export function useUpdatePolicyMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + policyPatch: PolicyPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: policyMutationKeys.all, + mutationFn: ({ id, policyPatch }: { id: string; policyPatch: PolicyPatch }) => + getClient() + .policy.update({ + where: { + id, + }, + data: policyPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: policyKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: policyKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdatePrimaryKeyConstraintMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdatePrimaryKeyConstraintMutation.ts new file mode 100644 index 000000000..82f94721f --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdatePrimaryKeyConstraintMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for PrimaryKeyConstraint + * @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 { primaryKeyConstraintKeys } from '../query-keys'; +import { primaryKeyConstraintMutationKeys } from '../mutation-keys'; +import type { + PrimaryKeyConstraintSelect, + PrimaryKeyConstraintWithRelations, + PrimaryKeyConstraintPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PrimaryKeyConstraintSelect, + PrimaryKeyConstraintWithRelations, + PrimaryKeyConstraintPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a PrimaryKeyConstraint + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdatePrimaryKeyConstraintMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', primaryKeyConstraintPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdatePrimaryKeyConstraintMutation( + params: { + selection: { + fields: S & PrimaryKeyConstraintSelect; + } & HookStrictSelect, PrimaryKeyConstraintSelect>; + } & Omit< + UseMutationOptions< + { + updatePrimaryKeyConstraint: { + primaryKeyConstraint: InferSelectResult; + }; + }, + Error, + { + id: string; + primaryKeyConstraintPatch: PrimaryKeyConstraintPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePrimaryKeyConstraint: { + primaryKeyConstraint: InferSelectResult; + }; + }, + Error, + { + id: string; + primaryKeyConstraintPatch: PrimaryKeyConstraintPatch; + } +>; +export function useUpdatePrimaryKeyConstraintMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + primaryKeyConstraintPatch: PrimaryKeyConstraintPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: primaryKeyConstraintMutationKeys.all, + mutationFn: ({ + id, + primaryKeyConstraintPatch, + }: { + id: string; + primaryKeyConstraintPatch: PrimaryKeyConstraintPatch; + }) => + getClient() + .primaryKeyConstraint.update({ + where: { + id, + }, + data: primaryKeyConstraintPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: primaryKeyConstraintKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: primaryKeyConstraintKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateProcedureMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateProcedureMutation.ts new file mode 100644 index 000000000..7a4654e0e --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateProcedureMutation.ts @@ -0,0 +1,110 @@ +/** + * 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/useUpdateProfilesModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateProfilesModuleMutation.ts new file mode 100644 index 000000000..dfe82354f --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateProfilesModuleMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for ProfilesModule + * @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 { profilesModuleKeys } from '../query-keys'; +import { profilesModuleMutationKeys } from '../mutation-keys'; +import type { + ProfilesModuleSelect, + ProfilesModuleWithRelations, + ProfilesModulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ProfilesModuleSelect, + ProfilesModuleWithRelations, + ProfilesModulePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a ProfilesModule + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateProfilesModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', profilesModulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateProfilesModuleMutation( + params: { + selection: { + fields: S & ProfilesModuleSelect; + } & HookStrictSelect, ProfilesModuleSelect>; + } & Omit< + UseMutationOptions< + { + updateProfilesModule: { + profilesModule: InferSelectResult; + }; + }, + Error, + { + id: string; + profilesModulePatch: ProfilesModulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateProfilesModule: { + profilesModule: InferSelectResult; + }; + }, + Error, + { + id: string; + profilesModulePatch: ProfilesModulePatch; + } +>; +export function useUpdateProfilesModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + profilesModulePatch: ProfilesModulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: profilesModuleMutationKeys.all, + mutationFn: ({ + id, + profilesModulePatch, + }: { + id: string; + profilesModulePatch: ProfilesModulePatch; + }) => + getClient() + .profilesModule.update({ + where: { + id, + }, + data: profilesModulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: profilesModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: profilesModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateRefMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateRefMutation.ts new file mode 100644 index 000000000..e9b413324 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateRefMutation.ts @@ -0,0 +1,102 @@ +/** + * Update mutation hook for Ref + * @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 { refKeys } from '../query-keys'; +import { refMutationKeys } from '../mutation-keys'; +import type { RefSelect, RefWithRelations, RefPatch } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { RefSelect, RefWithRelations, RefPatch } from '../../orm/input-types'; +/** + * Mutation hook for updating a Ref + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateRefMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', refPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateRefMutation( + params: { + selection: { + fields: S & RefSelect; + } & HookStrictSelect, RefSelect>; + } & Omit< + UseMutationOptions< + { + updateRef: { + ref: InferSelectResult; + }; + }, + Error, + { + id: string; + refPatch: RefPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateRef: { + ref: InferSelectResult; + }; + }, + Error, + { + id: string; + refPatch: RefPatch; + } +>; +export function useUpdateRefMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + refPatch: RefPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: refMutationKeys.all, + mutationFn: ({ id, refPatch }: { id: string; refPatch: RefPatch }) => + getClient() + .ref.update({ + where: { + id, + }, + data: refPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: refKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: refKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateRlsModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateRlsModuleMutation.ts new file mode 100644 index 000000000..27ec3409c --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateRlsModuleMutation.ts @@ -0,0 +1,110 @@ +/** + * Update mutation hook for RlsModule + * @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 { rlsModuleKeys } from '../query-keys'; +import { rlsModuleMutationKeys } from '../mutation-keys'; +import type { + RlsModuleSelect, + RlsModuleWithRelations, + RlsModulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + RlsModuleSelect, + RlsModuleWithRelations, + RlsModulePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a RlsModule + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateRlsModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', rlsModulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateRlsModuleMutation( + params: { + selection: { + fields: S & RlsModuleSelect; + } & HookStrictSelect, RlsModuleSelect>; + } & Omit< + UseMutationOptions< + { + updateRlsModule: { + rlsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + rlsModulePatch: RlsModulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateRlsModule: { + rlsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + rlsModulePatch: RlsModulePatch; + } +>; +export function useUpdateRlsModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + rlsModulePatch: RlsModulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: rlsModuleMutationKeys.all, + mutationFn: ({ id, rlsModulePatch }: { id: string; rlsModulePatch: RlsModulePatch }) => + getClient() + .rlsModule.update({ + where: { + id, + }, + data: rlsModulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: rlsModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: rlsModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateRoleTypeMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateRoleTypeMutation.ts new file mode 100644 index 000000000..b25b4efcb --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateRoleTypeMutation.ts @@ -0,0 +1,102 @@ +/** + * Update mutation hook for RoleType + * @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 { roleTypeKeys } from '../query-keys'; +import { roleTypeMutationKeys } from '../mutation-keys'; +import type { RoleTypeSelect, RoleTypeWithRelations, RoleTypePatch } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { RoleTypeSelect, RoleTypeWithRelations, RoleTypePatch } from '../../orm/input-types'; +/** + * Mutation hook for updating a RoleType + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateRoleTypeMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', roleTypePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateRoleTypeMutation( + params: { + selection: { + fields: S & RoleTypeSelect; + } & HookStrictSelect, RoleTypeSelect>; + } & Omit< + UseMutationOptions< + { + updateRoleType: { + roleType: InferSelectResult; + }; + }, + Error, + { + id: number; + roleTypePatch: RoleTypePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateRoleType: { + roleType: InferSelectResult; + }; + }, + Error, + { + id: number; + roleTypePatch: RoleTypePatch; + } +>; +export function useUpdateRoleTypeMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: number; + roleTypePatch: RoleTypePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: roleTypeMutationKeys.all, + mutationFn: ({ id, roleTypePatch }: { id: number; roleTypePatch: RoleTypePatch }) => + getClient() + .roleType.update({ + where: { + id, + }, + data: roleTypePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: roleTypeKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: roleTypeKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateSchemaGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateSchemaGrantMutation.ts new file mode 100644 index 000000000..a09245137 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateSchemaGrantMutation.ts @@ -0,0 +1,110 @@ +/** + * Update mutation hook for SchemaGrant + * @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 { schemaGrantKeys } from '../query-keys'; +import { schemaGrantMutationKeys } from '../mutation-keys'; +import type { + SchemaGrantSelect, + SchemaGrantWithRelations, + SchemaGrantPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + SchemaGrantSelect, + SchemaGrantWithRelations, + SchemaGrantPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a SchemaGrant + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateSchemaGrantMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', schemaGrantPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateSchemaGrantMutation( + params: { + selection: { + fields: S & SchemaGrantSelect; + } & HookStrictSelect, SchemaGrantSelect>; + } & Omit< + UseMutationOptions< + { + updateSchemaGrant: { + schemaGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + schemaGrantPatch: SchemaGrantPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateSchemaGrant: { + schemaGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + schemaGrantPatch: SchemaGrantPatch; + } +>; +export function useUpdateSchemaGrantMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + schemaGrantPatch: SchemaGrantPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: schemaGrantMutationKeys.all, + mutationFn: ({ id, schemaGrantPatch }: { id: string; schemaGrantPatch: SchemaGrantPatch }) => + getClient() + .schemaGrant.update({ + where: { + id, + }, + data: schemaGrantPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: schemaGrantKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: schemaGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateSchemaMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateSchemaMutation.ts new file mode 100644 index 000000000..e9567a51c --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateSchemaMutation.ts @@ -0,0 +1,102 @@ +/** + * Update mutation hook for Schema + * @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 { schemaKeys } from '../query-keys'; +import { schemaMutationKeys } from '../mutation-keys'; +import type { SchemaSelect, SchemaWithRelations, SchemaPatch } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { SchemaSelect, SchemaWithRelations, SchemaPatch } from '../../orm/input-types'; +/** + * Mutation hook for updating a Schema + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateSchemaMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', schemaPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateSchemaMutation( + params: { + selection: { + fields: S & SchemaSelect; + } & HookStrictSelect, SchemaSelect>; + } & Omit< + UseMutationOptions< + { + updateSchema: { + schema: InferSelectResult; + }; + }, + Error, + { + id: string; + schemaPatch: SchemaPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateSchema: { + schema: InferSelectResult; + }; + }, + Error, + { + id: string; + schemaPatch: SchemaPatch; + } +>; +export function useUpdateSchemaMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + schemaPatch: SchemaPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: schemaMutationKeys.all, + mutationFn: ({ id, schemaPatch }: { id: string; schemaPatch: SchemaPatch }) => + getClient() + .schema.update({ + where: { + id, + }, + data: schemaPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: schemaKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: schemaKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateSecretsModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateSecretsModuleMutation.ts new file mode 100644 index 000000000..be288cb5a --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateSecretsModuleMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for SecretsModule + * @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 { secretsModuleKeys } from '../query-keys'; +import { secretsModuleMutationKeys } from '../mutation-keys'; +import type { + SecretsModuleSelect, + SecretsModuleWithRelations, + SecretsModulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + SecretsModuleSelect, + SecretsModuleWithRelations, + SecretsModulePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a SecretsModule + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateSecretsModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', secretsModulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateSecretsModuleMutation( + params: { + selection: { + fields: S & SecretsModuleSelect; + } & HookStrictSelect, SecretsModuleSelect>; + } & Omit< + UseMutationOptions< + { + updateSecretsModule: { + secretsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + secretsModulePatch: SecretsModulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateSecretsModule: { + secretsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + secretsModulePatch: SecretsModulePatch; + } +>; +export function useUpdateSecretsModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + secretsModulePatch: SecretsModulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: secretsModuleMutationKeys.all, + mutationFn: ({ + id, + secretsModulePatch, + }: { + id: string; + secretsModulePatch: SecretsModulePatch; + }) => + getClient() + .secretsModule.update({ + where: { + id, + }, + data: secretsModulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: secretsModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: secretsModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateSessionsModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateSessionsModuleMutation.ts new file mode 100644 index 000000000..d5aebc9f1 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateSessionsModuleMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for SessionsModule + * @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 { sessionsModuleKeys } from '../query-keys'; +import { sessionsModuleMutationKeys } from '../mutation-keys'; +import type { + SessionsModuleSelect, + SessionsModuleWithRelations, + SessionsModulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + SessionsModuleSelect, + SessionsModuleWithRelations, + SessionsModulePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a SessionsModule + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateSessionsModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', sessionsModulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateSessionsModuleMutation( + params: { + selection: { + fields: S & SessionsModuleSelect; + } & HookStrictSelect, SessionsModuleSelect>; + } & Omit< + UseMutationOptions< + { + updateSessionsModule: { + sessionsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + sessionsModulePatch: SessionsModulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateSessionsModule: { + sessionsModule: InferSelectResult; + }; + }, + Error, + { + id: string; + sessionsModulePatch: SessionsModulePatch; + } +>; +export function useUpdateSessionsModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + sessionsModulePatch: SessionsModulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: sessionsModuleMutationKeys.all, + mutationFn: ({ + id, + sessionsModulePatch, + }: { + id: string; + sessionsModulePatch: SessionsModulePatch; + }) => + getClient() + .sessionsModule.update({ + where: { + id, + }, + data: sessionsModulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: sessionsModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: sessionsModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateSiteMetadatumMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateSiteMetadatumMutation.ts new file mode 100644 index 000000000..ff095193b --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateSiteMetadatumMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for SiteMetadatum + * @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 { siteMetadatumKeys } from '../query-keys'; +import { siteMetadatumMutationKeys } from '../mutation-keys'; +import type { + SiteMetadatumSelect, + SiteMetadatumWithRelations, + SiteMetadatumPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + SiteMetadatumSelect, + SiteMetadatumWithRelations, + SiteMetadatumPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a SiteMetadatum + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateSiteMetadatumMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', siteMetadatumPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateSiteMetadatumMutation( + params: { + selection: { + fields: S & SiteMetadatumSelect; + } & HookStrictSelect, SiteMetadatumSelect>; + } & Omit< + UseMutationOptions< + { + updateSiteMetadatum: { + siteMetadatum: InferSelectResult; + }; + }, + Error, + { + id: string; + siteMetadatumPatch: SiteMetadatumPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateSiteMetadatum: { + siteMetadatum: InferSelectResult; + }; + }, + Error, + { + id: string; + siteMetadatumPatch: SiteMetadatumPatch; + } +>; +export function useUpdateSiteMetadatumMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + siteMetadatumPatch: SiteMetadatumPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: siteMetadatumMutationKeys.all, + mutationFn: ({ + id, + siteMetadatumPatch, + }: { + id: string; + siteMetadatumPatch: SiteMetadatumPatch; + }) => + getClient() + .siteMetadatum.update({ + where: { + id, + }, + data: siteMetadatumPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: siteMetadatumKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: siteMetadatumKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateSiteModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateSiteModuleMutation.ts new file mode 100644 index 000000000..bad5e2c14 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateSiteModuleMutation.ts @@ -0,0 +1,110 @@ +/** + * Update mutation hook for SiteModule + * @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 { siteModuleKeys } from '../query-keys'; +import { siteModuleMutationKeys } from '../mutation-keys'; +import type { + SiteModuleSelect, + SiteModuleWithRelations, + SiteModulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + SiteModuleSelect, + SiteModuleWithRelations, + SiteModulePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a SiteModule + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateSiteModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', siteModulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateSiteModuleMutation( + params: { + selection: { + fields: S & SiteModuleSelect; + } & HookStrictSelect, SiteModuleSelect>; + } & Omit< + UseMutationOptions< + { + updateSiteModule: { + siteModule: InferSelectResult; + }; + }, + Error, + { + id: string; + siteModulePatch: SiteModulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateSiteModule: { + siteModule: InferSelectResult; + }; + }, + Error, + { + id: string; + siteModulePatch: SiteModulePatch; + } +>; +export function useUpdateSiteModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + siteModulePatch: SiteModulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: siteModuleMutationKeys.all, + mutationFn: ({ id, siteModulePatch }: { id: string; siteModulePatch: SiteModulePatch }) => + getClient() + .siteModule.update({ + where: { + id, + }, + data: siteModulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: siteModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: siteModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateSiteMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateSiteMutation.ts new file mode 100644 index 000000000..e0f36e311 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateSiteMutation.ts @@ -0,0 +1,102 @@ +/** + * Update mutation hook for Site + * @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 { siteKeys } from '../query-keys'; +import { siteMutationKeys } from '../mutation-keys'; +import type { SiteSelect, SiteWithRelations, SitePatch } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { SiteSelect, SiteWithRelations, SitePatch } from '../../orm/input-types'; +/** + * Mutation hook for updating a Site + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateSiteMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', sitePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateSiteMutation( + params: { + selection: { + fields: S & SiteSelect; + } & HookStrictSelect, SiteSelect>; + } & Omit< + UseMutationOptions< + { + updateSite: { + site: InferSelectResult; + }; + }, + Error, + { + id: string; + sitePatch: SitePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateSite: { + site: InferSelectResult; + }; + }, + Error, + { + id: string; + sitePatch: SitePatch; + } +>; +export function useUpdateSiteMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + sitePatch: SitePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: siteMutationKeys.all, + mutationFn: ({ id, sitePatch }: { id: string; sitePatch: SitePatch }) => + getClient() + .site.update({ + where: { + id, + }, + data: sitePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: siteKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: siteKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateSiteThemeMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateSiteThemeMutation.ts new file mode 100644 index 000000000..9f98fc641 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateSiteThemeMutation.ts @@ -0,0 +1,110 @@ +/** + * Update mutation hook for SiteTheme + * @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 { siteThemeKeys } from '../query-keys'; +import { siteThemeMutationKeys } from '../mutation-keys'; +import type { + SiteThemeSelect, + SiteThemeWithRelations, + SiteThemePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + SiteThemeSelect, + SiteThemeWithRelations, + SiteThemePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a SiteTheme + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateSiteThemeMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', siteThemePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateSiteThemeMutation( + params: { + selection: { + fields: S & SiteThemeSelect; + } & HookStrictSelect, SiteThemeSelect>; + } & Omit< + UseMutationOptions< + { + updateSiteTheme: { + siteTheme: InferSelectResult; + }; + }, + Error, + { + id: string; + siteThemePatch: SiteThemePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateSiteTheme: { + siteTheme: InferSelectResult; + }; + }, + Error, + { + id: string; + siteThemePatch: SiteThemePatch; + } +>; +export function useUpdateSiteThemeMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + siteThemePatch: SiteThemePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: siteThemeMutationKeys.all, + mutationFn: ({ id, siteThemePatch }: { id: string; siteThemePatch: SiteThemePatch }) => + getClient() + .siteTheme.update({ + where: { + id, + }, + data: siteThemePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: siteThemeKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: siteThemeKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateStoreMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateStoreMutation.ts new file mode 100644 index 000000000..8ddedfd0a --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateStoreMutation.ts @@ -0,0 +1,102 @@ +/** + * Update mutation hook for Store + * @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 { storeKeys } from '../query-keys'; +import { storeMutationKeys } from '../mutation-keys'; +import type { StoreSelect, StoreWithRelations, StorePatch } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { StoreSelect, StoreWithRelations, StorePatch } from '../../orm/input-types'; +/** + * Mutation hook for updating a Store + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateStoreMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', storePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateStoreMutation( + params: { + selection: { + fields: S & StoreSelect; + } & HookStrictSelect, StoreSelect>; + } & Omit< + UseMutationOptions< + { + updateStore: { + store: InferSelectResult; + }; + }, + Error, + { + id: string; + storePatch: StorePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateStore: { + store: InferSelectResult; + }; + }, + Error, + { + id: string; + storePatch: StorePatch; + } +>; +export function useUpdateStoreMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + storePatch: StorePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: storeMutationKeys.all, + mutationFn: ({ id, storePatch }: { id: string; storePatch: StorePatch }) => + getClient() + .store.update({ + where: { + id, + }, + data: storePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: storeKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: storeKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateTableGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateTableGrantMutation.ts new file mode 100644 index 000000000..c88b15da6 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateTableGrantMutation.ts @@ -0,0 +1,110 @@ +/** + * Update mutation hook for TableGrant + * @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 { tableGrantKeys } from '../query-keys'; +import { tableGrantMutationKeys } from '../mutation-keys'; +import type { + TableGrantSelect, + TableGrantWithRelations, + TableGrantPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + TableGrantSelect, + TableGrantWithRelations, + TableGrantPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a TableGrant + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateTableGrantMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', tableGrantPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateTableGrantMutation( + params: { + selection: { + fields: S & TableGrantSelect; + } & HookStrictSelect, TableGrantSelect>; + } & Omit< + UseMutationOptions< + { + updateTableGrant: { + tableGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + tableGrantPatch: TableGrantPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateTableGrant: { + tableGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + tableGrantPatch: TableGrantPatch; + } +>; +export function useUpdateTableGrantMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + tableGrantPatch: TableGrantPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: tableGrantMutationKeys.all, + mutationFn: ({ id, tableGrantPatch }: { id: string; tableGrantPatch: TableGrantPatch }) => + getClient() + .tableGrant.update({ + where: { + id, + }, + data: tableGrantPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: tableGrantKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: tableGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateTableModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateTableModuleMutation.ts new file mode 100644 index 000000000..cdce5fcf2 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateTableModuleMutation.ts @@ -0,0 +1,110 @@ +/** + * Update mutation hook for TableModule + * @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 { tableModuleKeys } from '../query-keys'; +import { tableModuleMutationKeys } from '../mutation-keys'; +import type { + TableModuleSelect, + TableModuleWithRelations, + TableModulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + TableModuleSelect, + TableModuleWithRelations, + TableModulePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a TableModule + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateTableModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', tableModulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateTableModuleMutation( + params: { + selection: { + fields: S & TableModuleSelect; + } & HookStrictSelect, TableModuleSelect>; + } & Omit< + UseMutationOptions< + { + updateTableModule: { + tableModule: InferSelectResult; + }; + }, + Error, + { + id: string; + tableModulePatch: TableModulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateTableModule: { + tableModule: InferSelectResult; + }; + }, + Error, + { + id: string; + tableModulePatch: TableModulePatch; + } +>; +export function useUpdateTableModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + tableModulePatch: TableModulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: tableModuleMutationKeys.all, + mutationFn: ({ id, tableModulePatch }: { id: string; tableModulePatch: TableModulePatch }) => + getClient() + .tableModule.update({ + where: { + id, + }, + data: tableModulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: tableModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: tableModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateTableMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateTableMutation.ts new file mode 100644 index 000000000..8c4039175 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateTableMutation.ts @@ -0,0 +1,102 @@ +/** + * Update mutation hook for 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 { tableKeys } from '../query-keys'; +import { tableMutationKeys } from '../mutation-keys'; +import type { TableSelect, TableWithRelations, TablePatch } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { TableSelect, TableWithRelations, TablePatch } from '../../orm/input-types'; +/** + * Mutation hook for updating a Table + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateTableMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', tablePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateTableMutation( + params: { + selection: { + fields: S & TableSelect; + } & HookStrictSelect, TableSelect>; + } & Omit< + UseMutationOptions< + { + updateTable: { + table: InferSelectResult; + }; + }, + Error, + { + id: string; + tablePatch: TablePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateTable: { + table: InferSelectResult; + }; + }, + Error, + { + id: string; + tablePatch: TablePatch; + } +>; +export function useUpdateTableMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + tablePatch: TablePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: tableMutationKeys.all, + mutationFn: ({ id, tablePatch }: { id: string; tablePatch: TablePatch }) => + getClient() + .table.update({ + where: { + id, + }, + data: tablePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: tableKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: tableKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateTableTemplateModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateTableTemplateModuleMutation.ts new file mode 100644 index 000000000..8d4b9f9b6 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateTableTemplateModuleMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for TableTemplateModule + * @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 { tableTemplateModuleKeys } from '../query-keys'; +import { tableTemplateModuleMutationKeys } from '../mutation-keys'; +import type { + TableTemplateModuleSelect, + TableTemplateModuleWithRelations, + TableTemplateModulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + TableTemplateModuleSelect, + TableTemplateModuleWithRelations, + TableTemplateModulePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a TableTemplateModule + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateTableTemplateModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', tableTemplateModulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateTableTemplateModuleMutation( + params: { + selection: { + fields: S & TableTemplateModuleSelect; + } & HookStrictSelect, TableTemplateModuleSelect>; + } & Omit< + UseMutationOptions< + { + updateTableTemplateModule: { + tableTemplateModule: InferSelectResult; + }; + }, + Error, + { + id: string; + tableTemplateModulePatch: TableTemplateModulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateTableTemplateModule: { + tableTemplateModule: InferSelectResult; + }; + }, + Error, + { + id: string; + tableTemplateModulePatch: TableTemplateModulePatch; + } +>; +export function useUpdateTableTemplateModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + tableTemplateModulePatch: TableTemplateModulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: tableTemplateModuleMutationKeys.all, + mutationFn: ({ + id, + tableTemplateModulePatch, + }: { + id: string; + tableTemplateModulePatch: TableTemplateModulePatch; + }) => + getClient() + .tableTemplateModule.update({ + where: { + id, + }, + data: tableTemplateModulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: tableTemplateModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: tableTemplateModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateTriggerFunctionMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateTriggerFunctionMutation.ts new file mode 100644 index 000000000..8f7beae21 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateTriggerFunctionMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for TriggerFunction + * @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 { triggerFunctionKeys } from '../query-keys'; +import { triggerFunctionMutationKeys } from '../mutation-keys'; +import type { + TriggerFunctionSelect, + TriggerFunctionWithRelations, + TriggerFunctionPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + TriggerFunctionSelect, + TriggerFunctionWithRelations, + TriggerFunctionPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a TriggerFunction + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateTriggerFunctionMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', triggerFunctionPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateTriggerFunctionMutation( + params: { + selection: { + fields: S & TriggerFunctionSelect; + } & HookStrictSelect, TriggerFunctionSelect>; + } & Omit< + UseMutationOptions< + { + updateTriggerFunction: { + triggerFunction: InferSelectResult; + }; + }, + Error, + { + id: string; + triggerFunctionPatch: TriggerFunctionPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateTriggerFunction: { + triggerFunction: InferSelectResult; + }; + }, + Error, + { + id: string; + triggerFunctionPatch: TriggerFunctionPatch; + } +>; +export function useUpdateTriggerFunctionMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + triggerFunctionPatch: TriggerFunctionPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: triggerFunctionMutationKeys.all, + mutationFn: ({ + id, + triggerFunctionPatch, + }: { + id: string; + triggerFunctionPatch: TriggerFunctionPatch; + }) => + getClient() + .triggerFunction.update({ + where: { + id, + }, + data: triggerFunctionPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: triggerFunctionKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: triggerFunctionKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateTriggerMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateTriggerMutation.ts new file mode 100644 index 000000000..94b2f3677 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateTriggerMutation.ts @@ -0,0 +1,102 @@ +/** + * Update mutation hook for Trigger + * @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 { triggerKeys } from '../query-keys'; +import { triggerMutationKeys } from '../mutation-keys'; +import type { TriggerSelect, TriggerWithRelations, TriggerPatch } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { TriggerSelect, TriggerWithRelations, TriggerPatch } from '../../orm/input-types'; +/** + * Mutation hook for updating a Trigger + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateTriggerMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', triggerPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateTriggerMutation( + params: { + selection: { + fields: S & TriggerSelect; + } & HookStrictSelect, TriggerSelect>; + } & Omit< + UseMutationOptions< + { + updateTrigger: { + trigger: InferSelectResult; + }; + }, + Error, + { + id: string; + triggerPatch: TriggerPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateTrigger: { + trigger: InferSelectResult; + }; + }, + Error, + { + id: string; + triggerPatch: TriggerPatch; + } +>; +export function useUpdateTriggerMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + triggerPatch: TriggerPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: triggerMutationKeys.all, + mutationFn: ({ id, triggerPatch }: { id: string; triggerPatch: TriggerPatch }) => + getClient() + .trigger.update({ + where: { + id, + }, + data: triggerPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: triggerKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: triggerKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateUniqueConstraintMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateUniqueConstraintMutation.ts new file mode 100644 index 000000000..76e118568 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateUniqueConstraintMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for UniqueConstraint + * @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 { uniqueConstraintKeys } from '../query-keys'; +import { uniqueConstraintMutationKeys } from '../mutation-keys'; +import type { + UniqueConstraintSelect, + UniqueConstraintWithRelations, + UniqueConstraintPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + UniqueConstraintSelect, + UniqueConstraintWithRelations, + UniqueConstraintPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a UniqueConstraint + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateUniqueConstraintMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', uniqueConstraintPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateUniqueConstraintMutation( + params: { + selection: { + fields: S & UniqueConstraintSelect; + } & HookStrictSelect, UniqueConstraintSelect>; + } & Omit< + UseMutationOptions< + { + updateUniqueConstraint: { + uniqueConstraint: InferSelectResult; + }; + }, + Error, + { + id: string; + uniqueConstraintPatch: UniqueConstraintPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateUniqueConstraint: { + uniqueConstraint: InferSelectResult; + }; + }, + Error, + { + id: string; + uniqueConstraintPatch: UniqueConstraintPatch; + } +>; +export function useUpdateUniqueConstraintMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + uniqueConstraintPatch: UniqueConstraintPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: uniqueConstraintMutationKeys.all, + mutationFn: ({ + id, + uniqueConstraintPatch, + }: { + id: string; + uniqueConstraintPatch: UniqueConstraintPatch; + }) => + getClient() + .uniqueConstraint.update({ + where: { + id, + }, + data: uniqueConstraintPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: uniqueConstraintKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: uniqueConstraintKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateUserAuthModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateUserAuthModuleMutation.ts new file mode 100644 index 000000000..c07887316 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateUserAuthModuleMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for UserAuthModule + * @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 { userAuthModuleKeys } from '../query-keys'; +import { userAuthModuleMutationKeys } from '../mutation-keys'; +import type { + UserAuthModuleSelect, + UserAuthModuleWithRelations, + UserAuthModulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + UserAuthModuleSelect, + UserAuthModuleWithRelations, + UserAuthModulePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a UserAuthModule + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateUserAuthModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', userAuthModulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateUserAuthModuleMutation( + params: { + selection: { + fields: S & UserAuthModuleSelect; + } & HookStrictSelect, UserAuthModuleSelect>; + } & Omit< + UseMutationOptions< + { + updateUserAuthModule: { + userAuthModule: InferSelectResult; + }; + }, + Error, + { + id: string; + userAuthModulePatch: UserAuthModulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateUserAuthModule: { + userAuthModule: InferSelectResult; + }; + }, + Error, + { + id: string; + userAuthModulePatch: UserAuthModulePatch; + } +>; +export function useUpdateUserAuthModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + userAuthModulePatch: UserAuthModulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: userAuthModuleMutationKeys.all, + mutationFn: ({ + id, + userAuthModulePatch, + }: { + id: string; + userAuthModulePatch: UserAuthModulePatch; + }) => + getClient() + .userAuthModule.update({ + where: { + id, + }, + data: userAuthModulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: userAuthModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: userAuthModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateUserMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateUserMutation.ts new file mode 100644 index 000000000..d1ab02501 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateUserMutation.ts @@ -0,0 +1,102 @@ +/** + * Update mutation hook for User + * @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 { userKeys } from '../query-keys'; +import { userMutationKeys } from '../mutation-keys'; +import type { UserSelect, UserWithRelations, UserPatch } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { UserSelect, UserWithRelations, UserPatch } from '../../orm/input-types'; +/** + * Mutation hook for updating a User + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateUserMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', userPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateUserMutation( + params: { + selection: { + fields: S & UserSelect; + } & HookStrictSelect, UserSelect>; + } & Omit< + UseMutationOptions< + { + updateUser: { + user: InferSelectResult; + }; + }, + Error, + { + id: string; + userPatch: UserPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateUser: { + user: InferSelectResult; + }; + }, + Error, + { + id: string; + userPatch: UserPatch; + } +>; +export function useUpdateUserMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + userPatch: UserPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: userMutationKeys.all, + mutationFn: ({ id, userPatch }: { id: string; userPatch: UserPatch }) => + getClient() + .user.update({ + where: { + id, + }, + data: userPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: userKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: userKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateUsersModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateUsersModuleMutation.ts new file mode 100644 index 000000000..b3ce4f6bd --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateUsersModuleMutation.ts @@ -0,0 +1,110 @@ +/** + * Update mutation hook for UsersModule + * @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 { usersModuleKeys } from '../query-keys'; +import { usersModuleMutationKeys } from '../mutation-keys'; +import type { + UsersModuleSelect, + UsersModuleWithRelations, + UsersModulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + UsersModuleSelect, + UsersModuleWithRelations, + UsersModulePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a UsersModule + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateUsersModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', usersModulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateUsersModuleMutation( + params: { + selection: { + fields: S & UsersModuleSelect; + } & HookStrictSelect, UsersModuleSelect>; + } & Omit< + UseMutationOptions< + { + updateUsersModule: { + usersModule: InferSelectResult; + }; + }, + Error, + { + id: string; + usersModulePatch: UsersModulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateUsersModule: { + usersModule: InferSelectResult; + }; + }, + Error, + { + id: string; + usersModulePatch: UsersModulePatch; + } +>; +export function useUpdateUsersModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + usersModulePatch: UsersModulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: usersModuleMutationKeys.all, + mutationFn: ({ id, usersModulePatch }: { id: string; usersModulePatch: UsersModulePatch }) => + getClient() + .usersModule.update({ + where: { + id, + }, + data: usersModulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: usersModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: usersModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateUuidModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateUuidModuleMutation.ts new file mode 100644 index 000000000..d567d4730 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateUuidModuleMutation.ts @@ -0,0 +1,110 @@ +/** + * Update mutation hook for UuidModule + * @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 { uuidModuleKeys } from '../query-keys'; +import { uuidModuleMutationKeys } from '../mutation-keys'; +import type { + UuidModuleSelect, + UuidModuleWithRelations, + UuidModulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + UuidModuleSelect, + UuidModuleWithRelations, + UuidModulePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a UuidModule + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateUuidModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', uuidModulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateUuidModuleMutation( + params: { + selection: { + fields: S & UuidModuleSelect; + } & HookStrictSelect, UuidModuleSelect>; + } & Omit< + UseMutationOptions< + { + updateUuidModule: { + uuidModule: InferSelectResult; + }; + }, + Error, + { + id: string; + uuidModulePatch: UuidModulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateUuidModule: { + uuidModule: InferSelectResult; + }; + }, + Error, + { + id: string; + uuidModulePatch: UuidModulePatch; + } +>; +export function useUpdateUuidModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + uuidModulePatch: UuidModulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: uuidModuleMutationKeys.all, + mutationFn: ({ id, uuidModulePatch }: { id: string; uuidModulePatch: UuidModulePatch }) => + getClient() + .uuidModule.update({ + where: { + id, + }, + data: uuidModulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: uuidModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: uuidModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateViewGrantMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateViewGrantMutation.ts new file mode 100644 index 000000000..a8db2ef12 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateViewGrantMutation.ts @@ -0,0 +1,110 @@ +/** + * Update mutation hook for ViewGrant + * @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 { viewGrantKeys } from '../query-keys'; +import { viewGrantMutationKeys } from '../mutation-keys'; +import type { + ViewGrantSelect, + ViewGrantWithRelations, + ViewGrantPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ViewGrantSelect, + ViewGrantWithRelations, + ViewGrantPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a ViewGrant + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateViewGrantMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', viewGrantPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateViewGrantMutation( + params: { + selection: { + fields: S & ViewGrantSelect; + } & HookStrictSelect, ViewGrantSelect>; + } & Omit< + UseMutationOptions< + { + updateViewGrant: { + viewGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + viewGrantPatch: ViewGrantPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateViewGrant: { + viewGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + viewGrantPatch: ViewGrantPatch; + } +>; +export function useUpdateViewGrantMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + viewGrantPatch: ViewGrantPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: viewGrantMutationKeys.all, + mutationFn: ({ id, viewGrantPatch }: { id: string; viewGrantPatch: ViewGrantPatch }) => + getClient() + .viewGrant.update({ + where: { + id, + }, + data: viewGrantPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: viewGrantKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: viewGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateViewMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateViewMutation.ts new file mode 100644 index 000000000..2d396a059 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateViewMutation.ts @@ -0,0 +1,102 @@ +/** + * Update mutation hook for View + * @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 { viewKeys } from '../query-keys'; +import { viewMutationKeys } from '../mutation-keys'; +import type { ViewSelect, ViewWithRelations, ViewPatch } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ViewSelect, ViewWithRelations, ViewPatch } from '../../orm/input-types'; +/** + * Mutation hook for updating a View + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateViewMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', viewPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateViewMutation( + params: { + selection: { + fields: S & ViewSelect; + } & HookStrictSelect, ViewSelect>; + } & Omit< + UseMutationOptions< + { + updateView: { + view: InferSelectResult; + }; + }, + Error, + { + id: string; + viewPatch: ViewPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateView: { + view: InferSelectResult; + }; + }, + Error, + { + id: string; + viewPatch: ViewPatch; + } +>; +export function useUpdateViewMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + viewPatch: ViewPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: viewMutationKeys.all, + mutationFn: ({ id, viewPatch }: { id: string; viewPatch: ViewPatch }) => + getClient() + .view.update({ + where: { + id, + }, + data: viewPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: viewKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: viewKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateViewRuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateViewRuleMutation.ts new file mode 100644 index 000000000..6af2f784c --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateViewRuleMutation.ts @@ -0,0 +1,102 @@ +/** + * Update mutation hook for ViewRule + * @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 { viewRuleKeys } from '../query-keys'; +import { viewRuleMutationKeys } from '../mutation-keys'; +import type { ViewRuleSelect, ViewRuleWithRelations, ViewRulePatch } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ViewRuleSelect, ViewRuleWithRelations, ViewRulePatch } from '../../orm/input-types'; +/** + * Mutation hook for updating a ViewRule + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateViewRuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', viewRulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateViewRuleMutation( + params: { + selection: { + fields: S & ViewRuleSelect; + } & HookStrictSelect, ViewRuleSelect>; + } & Omit< + UseMutationOptions< + { + updateViewRule: { + viewRule: InferSelectResult; + }; + }, + Error, + { + id: string; + viewRulePatch: ViewRulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateViewRule: { + viewRule: InferSelectResult; + }; + }, + Error, + { + id: string; + viewRulePatch: ViewRulePatch; + } +>; +export function useUpdateViewRuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + viewRulePatch: ViewRulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: viewRuleMutationKeys.all, + mutationFn: ({ id, viewRulePatch }: { id: string; viewRulePatch: ViewRulePatch }) => + getClient() + .viewRule.update({ + where: { + id, + }, + data: viewRulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: viewRuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: viewRuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateViewTableMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateViewTableMutation.ts new file mode 100644 index 000000000..4dd3f2649 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateViewTableMutation.ts @@ -0,0 +1,110 @@ +/** + * Update mutation hook for ViewTable + * @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 { viewTableKeys } from '../query-keys'; +import { viewTableMutationKeys } from '../mutation-keys'; +import type { + ViewTableSelect, + ViewTableWithRelations, + ViewTablePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ViewTableSelect, + ViewTableWithRelations, + ViewTablePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a ViewTable + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateViewTableMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', viewTablePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateViewTableMutation( + params: { + selection: { + fields: S & ViewTableSelect; + } & HookStrictSelect, ViewTableSelect>; + } & Omit< + UseMutationOptions< + { + updateViewTable: { + viewTable: InferSelectResult; + }; + }, + Error, + { + id: string; + viewTablePatch: ViewTablePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateViewTable: { + viewTable: InferSelectResult; + }; + }, + Error, + { + id: string; + viewTablePatch: ViewTablePatch; + } +>; +export function useUpdateViewTableMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + viewTablePatch: ViewTablePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: viewTableMutationKeys.all, + mutationFn: ({ id, viewTablePatch }: { id: string; viewTablePatch: ViewTablePatch }) => + getClient() + .viewTable.update({ + where: { + id, + }, + data: viewTablePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: viewTableKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: viewTableKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useVerifyEmailMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useVerifyEmailMutation.ts new file mode 100644 index 000000000..6103a9bc1 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useVerifyEmailMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for verifyEmail + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } 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 { customMutationKeys } from '../mutation-keys'; +import type { VerifyEmailVariables } from '../../orm/mutation'; +import type { VerifyEmailPayloadSelect, VerifyEmailPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { VerifyEmailVariables } from '../../orm/mutation'; +export type { VerifyEmailPayloadSelect } from '../../orm/input-types'; +export function useVerifyEmailMutation( + params: { + selection: { + fields: S & VerifyEmailPayloadSelect; + } & HookStrictSelect, VerifyEmailPayloadSelect>; + } & Omit< + UseMutationOptions< + { + verifyEmail: InferSelectResult | null; + }, + Error, + VerifyEmailVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + verifyEmail: InferSelectResult | null; + }, + Error, + VerifyEmailVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.verifyEmail(), + mutationFn: (variables: VerifyEmailVariables) => + getClient() + .mutation.verifyEmail(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useVerifyPasswordMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useVerifyPasswordMutation.ts new file mode 100644 index 000000000..0cd31b8f3 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useVerifyPasswordMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for verifyPassword + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } 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 { customMutationKeys } from '../mutation-keys'; +import type { VerifyPasswordVariables } from '../../orm/mutation'; +import type { VerifyPasswordPayloadSelect, VerifyPasswordPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { VerifyPasswordVariables } from '../../orm/mutation'; +export type { VerifyPasswordPayloadSelect } from '../../orm/input-types'; +export function useVerifyPasswordMutation( + params: { + selection: { + fields: S & VerifyPasswordPayloadSelect; + } & HookStrictSelect, VerifyPasswordPayloadSelect>; + } & Omit< + UseMutationOptions< + { + verifyPassword: InferSelectResult | null; + }, + Error, + VerifyPasswordVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + verifyPassword: InferSelectResult | null; + }, + Error, + VerifyPasswordVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.verifyPassword(), + mutationFn: (variables: VerifyPasswordVariables) => + getClient() + .mutation.verifyPassword(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useVerifyTotpMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useVerifyTotpMutation.ts new file mode 100644 index 000000000..418d599a7 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useVerifyTotpMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for verifyTotp + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } 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 { customMutationKeys } from '../mutation-keys'; +import type { VerifyTotpVariables } from '../../orm/mutation'; +import type { VerifyTotpPayloadSelect, VerifyTotpPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { VerifyTotpVariables } from '../../orm/mutation'; +export type { VerifyTotpPayloadSelect } from '../../orm/input-types'; +export function useVerifyTotpMutation( + params: { + selection: { + fields: S & VerifyTotpPayloadSelect; + } & HookStrictSelect, VerifyTotpPayloadSelect>; + } & Omit< + UseMutationOptions< + { + verifyTotp: InferSelectResult | null; + }, + Error, + VerifyTotpVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + verifyTotp: InferSelectResult | null; + }, + Error, + VerifyTotpVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.verifyTotp(), + mutationFn: (variables: VerifyTotpVariables) => + getClient() + .mutation.verifyTotp(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/index.ts b/sdk/constructive-react/src/public/hooks/queries/index.ts new file mode 100644 index 000000000..dc028e7a2 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/index.ts @@ -0,0 +1,220 @@ +/** + * Query hooks barrel export + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export * from './useGetAllQuery'; +export * from './useAppPermissionsQuery'; +export * from './useAppPermissionQuery'; +export * from './useOrgPermissionsQuery'; +export * from './useOrgPermissionQuery'; +export * from './useObjectsQuery'; +export * from './useObjectQuery'; +export * from './useAppLevelRequirementsQuery'; +export * from './useAppLevelRequirementQuery'; +export * from './useDatabasesQuery'; +export * from './useDatabaseQuery'; +export * from './useSchemasQuery'; +export * from './useSchemaQuery'; +export * from './useTablesQuery'; +export * from './useTableQuery'; +export * from './useCheckConstraintsQuery'; +export * from './useCheckConstraintQuery'; +export * from './useFieldsQuery'; +export * from './useFieldQuery'; +export * from './useForeignKeyConstraintsQuery'; +export * from './useForeignKeyConstraintQuery'; +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'; +export * from './usePrimaryKeyConstraintQuery'; +export * from './useTableGrantsQuery'; +export * from './useTableGrantQuery'; +export * from './useTriggersQuery'; +export * from './useTriggerQuery'; +export * from './useUniqueConstraintsQuery'; +export * from './useUniqueConstraintQuery'; +export * from './useViewsQuery'; +export * from './useViewQuery'; +export * from './useViewTablesQuery'; +export * from './useViewTableQuery'; +export * from './useViewGrantsQuery'; +export * from './useViewGrantQuery'; +export * from './useViewRulesQuery'; +export * from './useViewRuleQuery'; +export * from './useTableModulesQuery'; +export * from './useTableModuleQuery'; +export * from './useTableTemplateModulesQuery'; +export * from './useTableTemplateModuleQuery'; +export * from './useSchemaGrantsQuery'; +export * from './useSchemaGrantQuery'; +export * from './useApiSchemasQuery'; +export * from './useApiSchemaQuery'; +export * from './useApiModulesQuery'; +export * from './useApiModuleQuery'; +export * from './useDomainsQuery'; +export * from './useDomainQuery'; +export * from './useSiteMetadataQuery'; +export * from './useSiteMetadatumQuery'; +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'; +export * from './useApiQuery'; +export * from './useSitesQuery'; +export * from './useSiteQuery'; +export * from './useAppsQuery'; +export * from './useAppQuery'; +export * from './useConnectedAccountsModulesQuery'; +export * from './useConnectedAccountsModuleQuery'; +export * from './useCryptoAddressesModulesQuery'; +export * from './useCryptoAddressesModuleQuery'; +export * from './useCryptoAuthModulesQuery'; +export * from './useCryptoAuthModuleQuery'; +export * from './useDefaultIdsModulesQuery'; +export * from './useDefaultIdsModuleQuery'; +export * from './useDenormalizedTableFieldsQuery'; +export * from './useDenormalizedTableFieldQuery'; +export * from './useEmailsModulesQuery'; +export * from './useEmailsModuleQuery'; +export * from './useEncryptedSecretsModulesQuery'; +export * from './useEncryptedSecretsModuleQuery'; +export * from './useFieldModulesQuery'; +export * from './useFieldModuleQuery'; +export * from './useInvitesModulesQuery'; +export * from './useInvitesModuleQuery'; +export * from './useLevelsModulesQuery'; +export * from './useLevelsModuleQuery'; +export * from './useLimitsModulesQuery'; +export * from './useLimitsModuleQuery'; +export * from './useMembershipTypesModulesQuery'; +export * from './useMembershipTypesModuleQuery'; +export * from './useMembershipsModulesQuery'; +export * from './useMembershipsModuleQuery'; +export * from './usePermissionsModulesQuery'; +export * from './usePermissionsModuleQuery'; +export * from './usePhoneNumbersModulesQuery'; +export * from './usePhoneNumbersModuleQuery'; +export * from './useProfilesModulesQuery'; +export * from './useProfilesModuleQuery'; +export * from './useRlsModulesQuery'; +export * from './useRlsModuleQuery'; +export * from './useSecretsModulesQuery'; +export * from './useSecretsModuleQuery'; +export * from './useSessionsModulesQuery'; +export * from './useSessionsModuleQuery'; +export * from './useUserAuthModulesQuery'; +export * from './useUserAuthModuleQuery'; +export * from './useUsersModulesQuery'; +export * from './useUsersModuleQuery'; +export * from './useUuidModulesQuery'; +export * from './useUuidModuleQuery'; +export * from './useDatabaseProvisionModulesQuery'; +export * from './useDatabaseProvisionModuleQuery'; +export * from './useAppAdminGrantsQuery'; +export * from './useAppAdminGrantQuery'; +export * from './useAppOwnerGrantsQuery'; +export * from './useAppOwnerGrantQuery'; +export * from './useAppGrantsQuery'; +export * from './useAppGrantQuery'; +export * from './useOrgMembershipsQuery'; +export * from './useOrgMembershipQuery'; +export * from './useOrgMembersQuery'; +export * from './useOrgMemberQuery'; +export * from './useOrgAdminGrantsQuery'; +export * from './useOrgAdminGrantQuery'; +export * from './useOrgOwnerGrantsQuery'; +export * from './useOrgOwnerGrantQuery'; +export * from './useOrgGrantsQuery'; +export * from './useOrgGrantQuery'; +export * from './useAppLimitsQuery'; +export * from './useAppLimitQuery'; +export * from './useOrgLimitsQuery'; +export * from './useOrgLimitQuery'; +export * from './useAppStepsQuery'; +export * from './useAppStepQuery'; +export * from './useAppAchievementsQuery'; +export * from './useAppAchievementQuery'; +export * from './useInvitesQuery'; +export * from './useInviteQuery'; +export * from './useClaimedInvitesQuery'; +export * from './useClaimedInviteQuery'; +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 './useRoleTypesQuery'; +export * from './useRoleTypeQuery'; +export * from './useOrgPermissionDefaultsQuery'; +export * from './useOrgPermissionDefaultQuery'; +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 './useNodeTypeRegistriesQuery'; +export * from './useNodeTypeRegistryQuery'; +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 './useSqlMigrationsQuery'; +export * from './useSqlMigrationQuery'; +export * from './useAstMigrationsQuery'; +export * from './useAstMigrationQuery'; +export * from './useAppMembershipsQuery'; +export * from './useAppMembershipQuery'; +export * from './useUsersQuery'; +export * from './useUserQuery'; +export * from './useHierarchyModulesQuery'; +export * from './useHierarchyModuleQuery'; +export * from './useCurrentUserIdQuery'; +export * from './useCurrentIpAddressQuery'; +export * from './useCurrentUserAgentQuery'; +export * from './useAppPermissionsGetPaddedMaskQuery'; +export * from './useOrgPermissionsGetPaddedMaskQuery'; +export * from './useStepsAchievedQuery'; +export * from './useRevParseQuery'; +export * from './useAppPermissionsGetMaskQuery'; +export * from './useOrgPermissionsGetMaskQuery'; +export * from './useAppPermissionsGetMaskByNamesQuery'; +export * from './useOrgPermissionsGetMaskByNamesQuery'; +export * from './useAppPermissionsGetByMaskQuery'; +export * from './useOrgPermissionsGetByMaskQuery'; +export * from './useGetAllObjectsFromRootQuery'; +export * from './useGetPathObjectsFromRootQuery'; +export * from './useGetObjectAtPathQuery'; +export * from './useStepsRequiredQuery'; +export * from './useCurrentUserQuery'; diff --git a/sdk/constructive-react/src/public/hooks/queries/useApiModuleQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useApiModuleQuery.ts new file mode 100644 index 000000000..feea7a029 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useApiModuleQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for ApiModule + * @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 { apiModuleKeys } from '../query-keys'; +import type { ApiModuleSelect, ApiModuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ApiModuleSelect, ApiModuleWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const apiModuleQueryKey = apiModuleKeys.detail; +/** + * Query hook for fetching a single ApiModule + * + * @example + * ```tsx + * const { data, isLoading } = useApiModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useApiModuleQuery< + S extends ApiModuleSelect, + TData = { + apiModule: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ApiModuleSelect>; + } & Omit< + UseQueryOptions< + { + apiModule: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useApiModuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: apiModuleKeys.detail(params.id), + queryFn: () => + getClient() + .apiModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single ApiModule without React hooks + * + * @example + * ```ts + * const data = await fetchApiModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchApiModuleQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ApiModuleSelect>; +}): Promise<{ + apiModule: InferSelectResult | null; +}>; +export async function fetchApiModuleQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .apiModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single ApiModule for SSR or cache warming + * + * @example + * ```ts + * await prefetchApiModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchApiModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ApiModuleSelect>; + } +): Promise; +export async function prefetchApiModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: apiModuleKeys.detail(params.id), + queryFn: () => + getClient() + .apiModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useApiModulesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useApiModulesQuery.ts new file mode 100644 index 000000000..29071cbfb --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useApiModulesQuery.ts @@ -0,0 +1,145 @@ +/** + * List query hook for ApiModule + * @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 { apiModuleKeys } from '../query-keys'; +import type { + ApiModuleSelect, + ApiModuleWithRelations, + ApiModuleFilter, + ApiModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + ApiModuleSelect, + ApiModuleWithRelations, + ApiModuleFilter, + ApiModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const apiModulesQueryKey = apiModuleKeys.list; +/** + * Query hook for fetching ApiModule list + * + * @example + * ```tsx + * const { data, isLoading } = useApiModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useApiModulesQuery< + S extends ApiModuleSelect, + TData = { + apiModules: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ApiModuleSelect>; + } & Omit< + UseQueryOptions< + { + apiModules: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useApiModulesQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: apiModuleKeys.list(args), + queryFn: () => getClient().apiModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch ApiModule list without React hooks + * + * @example + * ```ts + * const data = await fetchApiModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchApiModulesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ApiModuleSelect>; +}): Promise<{ + apiModules: ConnectionResult>; +}>; +export async function fetchApiModulesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().apiModule.findMany(args).unwrap(); +} +/** + * Prefetch ApiModule list for SSR or cache warming + * + * @example + * ```ts + * await prefetchApiModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchApiModulesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ApiModuleSelect>; + } +): Promise; +export async function prefetchApiModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: apiModuleKeys.list(args), + queryFn: () => getClient().apiModule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useApiQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useApiQuery.ts new file mode 100644 index 000000000..090b98750 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useApiQuery.ts @@ -0,0 +1,135 @@ +/** + * Single item query hook for Api + * @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 { apiKeys } from '../query-keys'; +import type { ApiSelect, ApiWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +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 + * + * @example + * ```tsx + * const { data, isLoading } = useApiQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useApiQuery< + S extends ApiSelect, + TData = { + api: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ApiSelect>; + } & Omit< + UseQueryOptions< + { + api: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useApiQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: apiKeys.detail(params.id), + queryFn: () => + getClient() + .api.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single Api without React hooks + * + * @example + * ```ts + * const data = await fetchApiQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchApiQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ApiSelect>; +}): Promise<{ + api: InferSelectResult | null; +}>; +export async function fetchApiQuery(params: { id: string; selection: SelectionConfig }) { + const args = buildSelectionArgs(params.selection); + return getClient() + .api.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single Api for SSR or cache warming + * + * @example + * ```ts + * await prefetchApiQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchApiQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ApiSelect>; + } +): Promise; +export async function prefetchApiQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: apiKeys.detail(params.id), + queryFn: () => + getClient() + .api.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useApiSchemaQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useApiSchemaQuery.ts new file mode 100644 index 000000000..451fb0299 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useApiSchemaQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for ApiSchema + * @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 { apiSchemaKeys } from '../query-keys'; +import type { ApiSchemaSelect, ApiSchemaWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ApiSchemaSelect, ApiSchemaWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const apiSchemaQueryKey = apiSchemaKeys.detail; +/** + * Query hook for fetching a single ApiSchema + * + * @example + * ```tsx + * const { data, isLoading } = useApiSchemaQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useApiSchemaQuery< + S extends ApiSchemaSelect, + TData = { + apiSchema: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ApiSchemaSelect>; + } & Omit< + UseQueryOptions< + { + apiSchema: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useApiSchemaQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: apiSchemaKeys.detail(params.id), + queryFn: () => + getClient() + .apiSchema.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single ApiSchema without React hooks + * + * @example + * ```ts + * const data = await fetchApiSchemaQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchApiSchemaQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ApiSchemaSelect>; +}): Promise<{ + apiSchema: InferSelectResult | null; +}>; +export async function fetchApiSchemaQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .apiSchema.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single ApiSchema for SSR or cache warming + * + * @example + * ```ts + * await prefetchApiSchemaQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchApiSchemaQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ApiSchemaSelect>; + } +): Promise; +export async function prefetchApiSchemaQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: apiSchemaKeys.detail(params.id), + queryFn: () => + getClient() + .apiSchema.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useApiSchemasQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useApiSchemasQuery.ts new file mode 100644 index 000000000..56efdb59a --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useApiSchemasQuery.ts @@ -0,0 +1,145 @@ +/** + * List query hook for ApiSchema + * @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 { apiSchemaKeys } from '../query-keys'; +import type { + ApiSchemaSelect, + ApiSchemaWithRelations, + ApiSchemaFilter, + ApiSchemaOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + ApiSchemaSelect, + ApiSchemaWithRelations, + ApiSchemaFilter, + ApiSchemaOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const apiSchemasQueryKey = apiSchemaKeys.list; +/** + * Query hook for fetching ApiSchema list + * + * @example + * ```tsx + * const { data, isLoading } = useApiSchemasQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useApiSchemasQuery< + S extends ApiSchemaSelect, + TData = { + apiSchemas: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ApiSchemaSelect>; + } & Omit< + UseQueryOptions< + { + apiSchemas: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useApiSchemasQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: apiSchemaKeys.list(args), + queryFn: () => getClient().apiSchema.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch ApiSchema list without React hooks + * + * @example + * ```ts + * const data = await fetchApiSchemasQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchApiSchemasQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ApiSchemaSelect>; +}): Promise<{ + apiSchemas: ConnectionResult>; +}>; +export async function fetchApiSchemasQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().apiSchema.findMany(args).unwrap(); +} +/** + * Prefetch ApiSchema list for SSR or cache warming + * + * @example + * ```ts + * await prefetchApiSchemasQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchApiSchemasQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ApiSchemaSelect>; + } +): Promise; +export async function prefetchApiSchemasQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: apiSchemaKeys.list(args), + queryFn: () => getClient().apiSchema.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useApisQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useApisQuery.ts new file mode 100644 index 000000000..b3fa3b5bd --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useApisQuery.ts @@ -0,0 +1,129 @@ +/** + * List query hook for Api + * @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 { apiKeys } from '../query-keys'; +import type { ApiSelect, ApiWithRelations, ApiFilter, ApiOrderBy } from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { ApiSelect, ApiWithRelations, ApiFilter, ApiOrderBy } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const apisQueryKey = apiKeys.list; +/** + * Query hook for fetching Api list + * + * @example + * ```tsx + * const { data, isLoading } = useApisQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useApisQuery< + S extends ApiSelect, + TData = { + apis: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ApiSelect>; + } & Omit< + UseQueryOptions< + { + apis: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useApisQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: apiKeys.list(args), + queryFn: () => getClient().api.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch Api list without React hooks + * + * @example + * ```ts + * const data = await fetchApisQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchApisQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ApiSelect>; +}): Promise<{ + apis: ConnectionResult>; +}>; +export async function fetchApisQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs(params.selection); + return getClient().api.findMany(args).unwrap(); +} +/** + * Prefetch Api list for SSR or cache warming + * + * @example + * ```ts + * await prefetchApisQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchApisQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ApiSelect>; + } +): Promise; +export async function prefetchApisQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: apiKeys.list(args), + queryFn: () => getClient().api.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppAchievementQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppAchievementQuery.ts new file mode 100644 index 000000000..136d30313 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useAppAchievementQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for AppAchievement + * @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 { appAchievementKeys } from '../query-keys'; +import type { AppAchievementSelect, AppAchievementWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AppAchievementSelect, AppAchievementWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appAchievementQueryKey = appAchievementKeys.detail; +/** + * Query hook for fetching a single AppAchievement + * + * @example + * ```tsx + * const { data, isLoading } = useAppAchievementQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useAppAchievementQuery< + S extends AppAchievementSelect, + TData = { + appAchievement: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppAchievementSelect>; + } & Omit< + UseQueryOptions< + { + appAchievement: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppAchievementQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appAchievementKeys.detail(params.id), + queryFn: () => + getClient() + .appAchievement.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single AppAchievement without React hooks + * + * @example + * ```ts + * const data = await fetchAppAchievementQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchAppAchievementQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppAchievementSelect>; +}): Promise<{ + appAchievement: InferSelectResult | null; +}>; +export async function fetchAppAchievementQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .appAchievement.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single AppAchievement for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppAchievementQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchAppAchievementQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppAchievementSelect>; + } +): Promise; +export async function prefetchAppAchievementQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: appAchievementKeys.detail(params.id), + queryFn: () => + getClient() + .appAchievement.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppAchievementsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppAchievementsQuery.ts new file mode 100644 index 000000000..fb905cd4e --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useAppAchievementsQuery.ts @@ -0,0 +1,159 @@ +/** + * List query hook for AppAchievement + * @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 { appAchievementKeys } from '../query-keys'; +import type { + AppAchievementSelect, + AppAchievementWithRelations, + AppAchievementFilter, + AppAchievementOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + AppAchievementSelect, + AppAchievementWithRelations, + AppAchievementFilter, + AppAchievementOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appAchievementsQueryKey = appAchievementKeys.list; +/** + * Query hook for fetching AppAchievement list + * + * @example + * ```tsx + * const { data, isLoading } = useAppAchievementsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useAppAchievementsQuery< + S extends AppAchievementSelect, + TData = { + appAchievements: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppAchievementSelect>; + } & Omit< + UseQueryOptions< + { + appAchievements: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppAchievementsQuery( + params: { + selection: ListSelectionConfig< + AppAchievementSelect, + AppAchievementFilter, + AppAchievementOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + AppAchievementSelect, + AppAchievementFilter, + AppAchievementOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appAchievementKeys.list(args), + queryFn: () => getClient().appAchievement.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch AppAchievement list without React hooks + * + * @example + * ```ts + * const data = await fetchAppAchievementsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchAppAchievementsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppAchievementSelect>; +}): Promise<{ + appAchievements: ConnectionResult>; +}>; +export async function fetchAppAchievementsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + AppAchievementSelect, + AppAchievementFilter, + AppAchievementOrderBy + >(params.selection); + return getClient().appAchievement.findMany(args).unwrap(); +} +/** + * Prefetch AppAchievement list for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppAchievementsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchAppAchievementsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppAchievementSelect>; + } +): Promise; +export async function prefetchAppAchievementsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + AppAchievementSelect, + AppAchievementFilter, + AppAchievementOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + AppAchievementSelect, + AppAchievementFilter, + AppAchievementOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: appAchievementKeys.list(args), + queryFn: () => getClient().appAchievement.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppAdminGrantQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppAdminGrantQuery.ts new file mode 100644 index 000000000..d010f7876 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useAppAdminGrantQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for AppAdminGrant + * @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 { appAdminGrantKeys } from '../query-keys'; +import type { AppAdminGrantSelect, AppAdminGrantWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AppAdminGrantSelect, AppAdminGrantWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appAdminGrantQueryKey = appAdminGrantKeys.detail; +/** + * Query hook for fetching a single AppAdminGrant + * + * @example + * ```tsx + * const { data, isLoading } = useAppAdminGrantQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useAppAdminGrantQuery< + S extends AppAdminGrantSelect, + TData = { + appAdminGrant: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppAdminGrantSelect>; + } & Omit< + UseQueryOptions< + { + appAdminGrant: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppAdminGrantQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appAdminGrantKeys.detail(params.id), + queryFn: () => + getClient() + .appAdminGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single AppAdminGrant without React hooks + * + * @example + * ```ts + * const data = await fetchAppAdminGrantQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchAppAdminGrantQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppAdminGrantSelect>; +}): Promise<{ + appAdminGrant: InferSelectResult | null; +}>; +export async function fetchAppAdminGrantQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .appAdminGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single AppAdminGrant for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppAdminGrantQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchAppAdminGrantQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppAdminGrantSelect>; + } +): Promise; +export async function prefetchAppAdminGrantQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: appAdminGrantKeys.detail(params.id), + queryFn: () => + getClient() + .appAdminGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppAdminGrantsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppAdminGrantsQuery.ts new file mode 100644 index 000000000..eb47436de --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useAppAdminGrantsQuery.ts @@ -0,0 +1,151 @@ +/** + * List query hook for AppAdminGrant + * @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 { appAdminGrantKeys } from '../query-keys'; +import type { + AppAdminGrantSelect, + AppAdminGrantWithRelations, + AppAdminGrantFilter, + AppAdminGrantOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + AppAdminGrantSelect, + AppAdminGrantWithRelations, + AppAdminGrantFilter, + AppAdminGrantOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appAdminGrantsQueryKey = appAdminGrantKeys.list; +/** + * Query hook for fetching AppAdminGrant list + * + * @example + * ```tsx + * const { data, isLoading } = useAppAdminGrantsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useAppAdminGrantsQuery< + S extends AppAdminGrantSelect, + TData = { + appAdminGrants: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppAdminGrantSelect>; + } & Omit< + UseQueryOptions< + { + appAdminGrants: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppAdminGrantsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + AppAdminGrantSelect, + AppAdminGrantFilter, + AppAdminGrantOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appAdminGrantKeys.list(args), + queryFn: () => getClient().appAdminGrant.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch AppAdminGrant list without React hooks + * + * @example + * ```ts + * const data = await fetchAppAdminGrantsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchAppAdminGrantsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppAdminGrantSelect>; +}): Promise<{ + appAdminGrants: ConnectionResult>; +}>; +export async function fetchAppAdminGrantsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + AppAdminGrantSelect, + AppAdminGrantFilter, + AppAdminGrantOrderBy + >(params.selection); + return getClient().appAdminGrant.findMany(args).unwrap(); +} +/** + * Prefetch AppAdminGrant list for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppAdminGrantsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchAppAdminGrantsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppAdminGrantSelect>; + } +): Promise; +export async function prefetchAppAdminGrantsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs< + AppAdminGrantSelect, + AppAdminGrantFilter, + AppAdminGrantOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: appAdminGrantKeys.list(args), + queryFn: () => getClient().appAdminGrant.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppGrantQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppGrantQuery.ts new file mode 100644 index 000000000..a730510c7 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useAppGrantQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for AppGrant + * @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 { appGrantKeys } from '../query-keys'; +import type { AppGrantSelect, AppGrantWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AppGrantSelect, AppGrantWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appGrantQueryKey = appGrantKeys.detail; +/** + * Query hook for fetching a single AppGrant + * + * @example + * ```tsx + * const { data, isLoading } = useAppGrantQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useAppGrantQuery< + S extends AppGrantSelect, + TData = { + appGrant: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppGrantSelect>; + } & Omit< + UseQueryOptions< + { + appGrant: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppGrantQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appGrantKeys.detail(params.id), + queryFn: () => + getClient() + .appGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single AppGrant without React hooks + * + * @example + * ```ts + * const data = await fetchAppGrantQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchAppGrantQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppGrantSelect>; +}): Promise<{ + appGrant: InferSelectResult | null; +}>; +export async function fetchAppGrantQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .appGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single AppGrant for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppGrantQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchAppGrantQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppGrantSelect>; + } +): Promise; +export async function prefetchAppGrantQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: appGrantKeys.detail(params.id), + queryFn: () => + getClient() + .appGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppGrantsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppGrantsQuery.ts new file mode 100644 index 000000000..cf20fe3c6 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useAppGrantsQuery.ts @@ -0,0 +1,145 @@ +/** + * List query hook for AppGrant + * @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 { appGrantKeys } from '../query-keys'; +import type { + AppGrantSelect, + AppGrantWithRelations, + AppGrantFilter, + AppGrantOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + AppGrantSelect, + AppGrantWithRelations, + AppGrantFilter, + AppGrantOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appGrantsQueryKey = appGrantKeys.list; +/** + * Query hook for fetching AppGrant list + * + * @example + * ```tsx + * const { data, isLoading } = useAppGrantsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useAppGrantsQuery< + S extends AppGrantSelect, + TData = { + appGrants: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppGrantSelect>; + } & Omit< + UseQueryOptions< + { + appGrants: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppGrantsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appGrantKeys.list(args), + queryFn: () => getClient().appGrant.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch AppGrant list without React hooks + * + * @example + * ```ts + * const data = await fetchAppGrantsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchAppGrantsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppGrantSelect>; +}): Promise<{ + appGrants: ConnectionResult>; +}>; +export async function fetchAppGrantsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().appGrant.findMany(args).unwrap(); +} +/** + * Prefetch AppGrant list for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppGrantsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchAppGrantsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppGrantSelect>; + } +): Promise; +export async function prefetchAppGrantsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: appGrantKeys.list(args), + queryFn: () => getClient().appGrant.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppLevelQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppLevelQuery.ts new file mode 100644 index 000000000..0c550dd44 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useAppLevelQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for AppLevel + * @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 { appLevelKeys } from '../query-keys'; +import type { AppLevelSelect, AppLevelWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AppLevelSelect, AppLevelWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appLevelQueryKey = appLevelKeys.detail; +/** + * Query hook for fetching a single AppLevel + * + * @example + * ```tsx + * const { data, isLoading } = useAppLevelQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useAppLevelQuery< + S extends AppLevelSelect, + TData = { + appLevel: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppLevelSelect>; + } & Omit< + UseQueryOptions< + { + appLevel: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppLevelQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appLevelKeys.detail(params.id), + queryFn: () => + getClient() + .appLevel.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single AppLevel without React hooks + * + * @example + * ```ts + * const data = await fetchAppLevelQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchAppLevelQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppLevelSelect>; +}): Promise<{ + appLevel: InferSelectResult | null; +}>; +export async function fetchAppLevelQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .appLevel.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single AppLevel for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppLevelQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchAppLevelQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppLevelSelect>; + } +): Promise; +export async function prefetchAppLevelQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: appLevelKeys.detail(params.id), + queryFn: () => + getClient() + .appLevel.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppLevelRequirementQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppLevelRequirementQuery.ts new file mode 100644 index 000000000..03271277e --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useAppLevelRequirementQuery.ts @@ -0,0 +1,144 @@ +/** + * Single item query hook for AppLevelRequirement + * @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 { appLevelRequirementKeys } from '../query-keys'; +import type { + AppLevelRequirementSelect, + AppLevelRequirementWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppLevelRequirementSelect, + AppLevelRequirementWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appLevelRequirementQueryKey = appLevelRequirementKeys.detail; +/** + * Query hook for fetching a single AppLevelRequirement + * + * @example + * ```tsx + * const { data, isLoading } = useAppLevelRequirementQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useAppLevelRequirementQuery< + S extends AppLevelRequirementSelect, + TData = { + appLevelRequirement: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppLevelRequirementSelect>; + } & Omit< + UseQueryOptions< + { + appLevelRequirement: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppLevelRequirementQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appLevelRequirementKeys.detail(params.id), + queryFn: () => + getClient() + .appLevelRequirement.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single AppLevelRequirement without React hooks + * + * @example + * ```ts + * const data = await fetchAppLevelRequirementQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchAppLevelRequirementQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppLevelRequirementSelect>; +}): Promise<{ + appLevelRequirement: InferSelectResult | null; +}>; +export async function fetchAppLevelRequirementQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .appLevelRequirement.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single AppLevelRequirement for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppLevelRequirementQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchAppLevelRequirementQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppLevelRequirementSelect>; + } +): Promise; +export async function prefetchAppLevelRequirementQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: appLevelRequirementKeys.detail(params.id), + queryFn: () => + getClient() + .appLevelRequirement.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppLevelRequirementsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppLevelRequirementsQuery.ts new file mode 100644 index 000000000..f085058b5 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useAppLevelRequirementsQuery.ts @@ -0,0 +1,174 @@ +/** + * List query hook for AppLevelRequirement + * @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 { appLevelRequirementKeys } from '../query-keys'; +import type { + AppLevelRequirementSelect, + AppLevelRequirementWithRelations, + AppLevelRequirementFilter, + AppLevelRequirementOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + AppLevelRequirementSelect, + AppLevelRequirementWithRelations, + AppLevelRequirementFilter, + AppLevelRequirementOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appLevelRequirementsQueryKey = appLevelRequirementKeys.list; +/** + * Query hook for fetching AppLevelRequirement list + * + * @example + * ```tsx + * const { data, isLoading } = useAppLevelRequirementsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useAppLevelRequirementsQuery< + S extends AppLevelRequirementSelect, + TData = { + appLevelRequirements: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, AppLevelRequirementSelect>; + } & Omit< + UseQueryOptions< + { + appLevelRequirements: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppLevelRequirementsQuery( + params: { + selection: ListSelectionConfig< + AppLevelRequirementSelect, + AppLevelRequirementFilter, + AppLevelRequirementOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + AppLevelRequirementSelect, + AppLevelRequirementFilter, + AppLevelRequirementOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appLevelRequirementKeys.list(args), + queryFn: () => getClient().appLevelRequirement.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch AppLevelRequirement list without React hooks + * + * @example + * ```ts + * const data = await fetchAppLevelRequirementsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchAppLevelRequirementsQuery(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, AppLevelRequirementSelect>; +}): Promise<{ + appLevelRequirements: ConnectionResult>; +}>; +export async function fetchAppLevelRequirementsQuery(params: { + selection: ListSelectionConfig< + AppLevelRequirementSelect, + AppLevelRequirementFilter, + AppLevelRequirementOrderBy + >; +}) { + const args = buildListSelectionArgs< + AppLevelRequirementSelect, + AppLevelRequirementFilter, + AppLevelRequirementOrderBy + >(params.selection); + return getClient().appLevelRequirement.findMany(args).unwrap(); +} +/** + * Prefetch AppLevelRequirement list for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppLevelRequirementsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchAppLevelRequirementsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, AppLevelRequirementSelect>; + } +): Promise; +export async function prefetchAppLevelRequirementsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + AppLevelRequirementSelect, + AppLevelRequirementFilter, + AppLevelRequirementOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + AppLevelRequirementSelect, + AppLevelRequirementFilter, + AppLevelRequirementOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: appLevelRequirementKeys.list(args), + queryFn: () => getClient().appLevelRequirement.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppLevelsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppLevelsQuery.ts new file mode 100644 index 000000000..39c9b44bc --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useAppLevelsQuery.ts @@ -0,0 +1,145 @@ +/** + * List query hook for AppLevel + * @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 { appLevelKeys } from '../query-keys'; +import type { + AppLevelSelect, + AppLevelWithRelations, + AppLevelFilter, + AppLevelOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + AppLevelSelect, + AppLevelWithRelations, + AppLevelFilter, + AppLevelOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appLevelsQueryKey = appLevelKeys.list; +/** + * Query hook for fetching AppLevel list + * + * @example + * ```tsx + * const { data, isLoading } = useAppLevelsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useAppLevelsQuery< + S extends AppLevelSelect, + TData = { + appLevels: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppLevelSelect>; + } & Omit< + UseQueryOptions< + { + appLevels: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppLevelsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appLevelKeys.list(args), + queryFn: () => getClient().appLevel.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch AppLevel list without React hooks + * + * @example + * ```ts + * const data = await fetchAppLevelsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchAppLevelsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppLevelSelect>; +}): Promise<{ + appLevels: ConnectionResult>; +}>; +export async function fetchAppLevelsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().appLevel.findMany(args).unwrap(); +} +/** + * Prefetch AppLevel list for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppLevelsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchAppLevelsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppLevelSelect>; + } +): Promise; +export async function prefetchAppLevelsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: appLevelKeys.list(args), + queryFn: () => getClient().appLevel.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppLimitDefaultQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppLimitDefaultQuery.ts new file mode 100644 index 000000000..c68c8c7ca --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useAppLimitDefaultQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for AppLimitDefault + * @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 { appLimitDefaultKeys } from '../query-keys'; +import type { AppLimitDefaultSelect, AppLimitDefaultWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AppLimitDefaultSelect, AppLimitDefaultWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appLimitDefaultQueryKey = appLimitDefaultKeys.detail; +/** + * Query hook for fetching a single AppLimitDefault + * + * @example + * ```tsx + * const { data, isLoading } = useAppLimitDefaultQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useAppLimitDefaultQuery< + S extends AppLimitDefaultSelect, + TData = { + appLimitDefault: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppLimitDefaultSelect>; + } & Omit< + UseQueryOptions< + { + appLimitDefault: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppLimitDefaultQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appLimitDefaultKeys.detail(params.id), + queryFn: () => + getClient() + .appLimitDefault.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single AppLimitDefault without React hooks + * + * @example + * ```ts + * const data = await fetchAppLimitDefaultQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchAppLimitDefaultQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppLimitDefaultSelect>; +}): Promise<{ + appLimitDefault: InferSelectResult | null; +}>; +export async function fetchAppLimitDefaultQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .appLimitDefault.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single AppLimitDefault for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppLimitDefaultQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchAppLimitDefaultQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppLimitDefaultSelect>; + } +): Promise; +export async function prefetchAppLimitDefaultQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: appLimitDefaultKeys.detail(params.id), + queryFn: () => + getClient() + .appLimitDefault.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppLimitDefaultsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppLimitDefaultsQuery.ts new file mode 100644 index 000000000..8f702ecb1 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useAppLimitDefaultsQuery.ts @@ -0,0 +1,163 @@ +/** + * List query hook for AppLimitDefault + * @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 { appLimitDefaultKeys } from '../query-keys'; +import type { + AppLimitDefaultSelect, + AppLimitDefaultWithRelations, + AppLimitDefaultFilter, + AppLimitDefaultOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + AppLimitDefaultSelect, + AppLimitDefaultWithRelations, + AppLimitDefaultFilter, + AppLimitDefaultOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appLimitDefaultsQueryKey = appLimitDefaultKeys.list; +/** + * Query hook for fetching AppLimitDefault list + * + * @example + * ```tsx + * const { data, isLoading } = useAppLimitDefaultsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useAppLimitDefaultsQuery< + S extends AppLimitDefaultSelect, + TData = { + appLimitDefaults: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppLimitDefaultSelect>; + } & Omit< + UseQueryOptions< + { + appLimitDefaults: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppLimitDefaultsQuery( + params: { + selection: ListSelectionConfig< + AppLimitDefaultSelect, + AppLimitDefaultFilter, + AppLimitDefaultOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + AppLimitDefaultSelect, + AppLimitDefaultFilter, + AppLimitDefaultOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appLimitDefaultKeys.list(args), + queryFn: () => getClient().appLimitDefault.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch AppLimitDefault list without React hooks + * + * @example + * ```ts + * const data = await fetchAppLimitDefaultsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchAppLimitDefaultsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppLimitDefaultSelect>; +}): Promise<{ + appLimitDefaults: ConnectionResult>; +}>; +export async function fetchAppLimitDefaultsQuery(params: { + selection: ListSelectionConfig< + AppLimitDefaultSelect, + AppLimitDefaultFilter, + AppLimitDefaultOrderBy + >; +}) { + const args = buildListSelectionArgs< + AppLimitDefaultSelect, + AppLimitDefaultFilter, + AppLimitDefaultOrderBy + >(params.selection); + return getClient().appLimitDefault.findMany(args).unwrap(); +} +/** + * Prefetch AppLimitDefault list for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppLimitDefaultsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchAppLimitDefaultsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppLimitDefaultSelect>; + } +): Promise; +export async function prefetchAppLimitDefaultsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + AppLimitDefaultSelect, + AppLimitDefaultFilter, + AppLimitDefaultOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + AppLimitDefaultSelect, + AppLimitDefaultFilter, + AppLimitDefaultOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: appLimitDefaultKeys.list(args), + queryFn: () => getClient().appLimitDefault.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppLimitQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppLimitQuery.ts new file mode 100644 index 000000000..eb7beb27f --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useAppLimitQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for AppLimit + * @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 { appLimitKeys } from '../query-keys'; +import type { AppLimitSelect, AppLimitWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AppLimitSelect, AppLimitWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appLimitQueryKey = appLimitKeys.detail; +/** + * Query hook for fetching a single AppLimit + * + * @example + * ```tsx + * const { data, isLoading } = useAppLimitQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useAppLimitQuery< + S extends AppLimitSelect, + TData = { + appLimit: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppLimitSelect>; + } & Omit< + UseQueryOptions< + { + appLimit: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppLimitQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appLimitKeys.detail(params.id), + queryFn: () => + getClient() + .appLimit.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single AppLimit without React hooks + * + * @example + * ```ts + * const data = await fetchAppLimitQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchAppLimitQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppLimitSelect>; +}): Promise<{ + appLimit: InferSelectResult | null; +}>; +export async function fetchAppLimitQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .appLimit.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single AppLimit for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppLimitQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchAppLimitQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppLimitSelect>; + } +): Promise; +export async function prefetchAppLimitQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: appLimitKeys.detail(params.id), + queryFn: () => + getClient() + .appLimit.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppLimitsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppLimitsQuery.ts new file mode 100644 index 000000000..280fd25e8 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useAppLimitsQuery.ts @@ -0,0 +1,145 @@ +/** + * List query hook for AppLimit + * @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 { appLimitKeys } from '../query-keys'; +import type { + AppLimitSelect, + AppLimitWithRelations, + AppLimitFilter, + AppLimitOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + AppLimitSelect, + AppLimitWithRelations, + AppLimitFilter, + AppLimitOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appLimitsQueryKey = appLimitKeys.list; +/** + * Query hook for fetching AppLimit list + * + * @example + * ```tsx + * const { data, isLoading } = useAppLimitsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useAppLimitsQuery< + S extends AppLimitSelect, + TData = { + appLimits: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppLimitSelect>; + } & Omit< + UseQueryOptions< + { + appLimits: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppLimitsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appLimitKeys.list(args), + queryFn: () => getClient().appLimit.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch AppLimit list without React hooks + * + * @example + * ```ts + * const data = await fetchAppLimitsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchAppLimitsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppLimitSelect>; +}): Promise<{ + appLimits: ConnectionResult>; +}>; +export async function fetchAppLimitsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().appLimit.findMany(args).unwrap(); +} +/** + * Prefetch AppLimit list for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppLimitsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchAppLimitsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppLimitSelect>; + } +): Promise; +export async function prefetchAppLimitsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: appLimitKeys.list(args), + queryFn: () => getClient().appLimit.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppMembershipDefaultQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppMembershipDefaultQuery.ts new file mode 100644 index 000000000..b34f50fc2 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useAppMembershipDefaultQuery.ts @@ -0,0 +1,144 @@ +/** + * Single item query hook for AppMembershipDefault + * @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 { appMembershipDefaultKeys } from '../query-keys'; +import type { + AppMembershipDefaultSelect, + AppMembershipDefaultWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppMembershipDefaultSelect, + AppMembershipDefaultWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appMembershipDefaultQueryKey = appMembershipDefaultKeys.detail; +/** + * Query hook for fetching a single AppMembershipDefault + * + * @example + * ```tsx + * const { data, isLoading } = useAppMembershipDefaultQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useAppMembershipDefaultQuery< + S extends AppMembershipDefaultSelect, + TData = { + appMembershipDefault: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppMembershipDefaultSelect>; + } & Omit< + UseQueryOptions< + { + appMembershipDefault: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppMembershipDefaultQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appMembershipDefaultKeys.detail(params.id), + queryFn: () => + getClient() + .appMembershipDefault.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single AppMembershipDefault without React hooks + * + * @example + * ```ts + * const data = await fetchAppMembershipDefaultQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchAppMembershipDefaultQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppMembershipDefaultSelect>; +}): Promise<{ + appMembershipDefault: InferSelectResult | null; +}>; +export async function fetchAppMembershipDefaultQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .appMembershipDefault.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single AppMembershipDefault for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppMembershipDefaultQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchAppMembershipDefaultQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppMembershipDefaultSelect>; + } +): Promise; +export async function prefetchAppMembershipDefaultQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: appMembershipDefaultKeys.detail(params.id), + queryFn: () => + getClient() + .appMembershipDefault.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppMembershipDefaultsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppMembershipDefaultsQuery.ts new file mode 100644 index 000000000..bda74e8ba --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useAppMembershipDefaultsQuery.ts @@ -0,0 +1,178 @@ +/** + * List query hook for AppMembershipDefault + * @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 { appMembershipDefaultKeys } from '../query-keys'; +import type { + AppMembershipDefaultSelect, + AppMembershipDefaultWithRelations, + AppMembershipDefaultFilter, + AppMembershipDefaultOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + AppMembershipDefaultSelect, + AppMembershipDefaultWithRelations, + AppMembershipDefaultFilter, + AppMembershipDefaultOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appMembershipDefaultsQueryKey = appMembershipDefaultKeys.list; +/** + * Query hook for fetching AppMembershipDefault list + * + * @example + * ```tsx + * const { data, isLoading } = useAppMembershipDefaultsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useAppMembershipDefaultsQuery< + S extends AppMembershipDefaultSelect, + TData = { + appMembershipDefaults: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, AppMembershipDefaultSelect>; + } & Omit< + UseQueryOptions< + { + appMembershipDefaults: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppMembershipDefaultsQuery( + params: { + selection: ListSelectionConfig< + AppMembershipDefaultSelect, + AppMembershipDefaultFilter, + AppMembershipDefaultOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + AppMembershipDefaultSelect, + AppMembershipDefaultFilter, + AppMembershipDefaultOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appMembershipDefaultKeys.list(args), + queryFn: () => getClient().appMembershipDefault.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch AppMembershipDefault list without React hooks + * + * @example + * ```ts + * const data = await fetchAppMembershipDefaultsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchAppMembershipDefaultsQuery< + S extends AppMembershipDefaultSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, AppMembershipDefaultSelect>; +}): Promise<{ + appMembershipDefaults: ConnectionResult>; +}>; +export async function fetchAppMembershipDefaultsQuery(params: { + selection: ListSelectionConfig< + AppMembershipDefaultSelect, + AppMembershipDefaultFilter, + AppMembershipDefaultOrderBy + >; +}) { + const args = buildListSelectionArgs< + AppMembershipDefaultSelect, + AppMembershipDefaultFilter, + AppMembershipDefaultOrderBy + >(params.selection); + return getClient().appMembershipDefault.findMany(args).unwrap(); +} +/** + * Prefetch AppMembershipDefault list for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppMembershipDefaultsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchAppMembershipDefaultsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, AppMembershipDefaultSelect>; + } +): Promise; +export async function prefetchAppMembershipDefaultsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + AppMembershipDefaultSelect, + AppMembershipDefaultFilter, + AppMembershipDefaultOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + AppMembershipDefaultSelect, + AppMembershipDefaultFilter, + AppMembershipDefaultOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: appMembershipDefaultKeys.list(args), + queryFn: () => getClient().appMembershipDefault.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppMembershipQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppMembershipQuery.ts new file mode 100644 index 000000000..5cd832890 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useAppMembershipQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for AppMembership + * @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 { appMembershipKeys } from '../query-keys'; +import type { AppMembershipSelect, AppMembershipWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AppMembershipSelect, AppMembershipWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appMembershipQueryKey = appMembershipKeys.detail; +/** + * Query hook for fetching a single AppMembership + * + * @example + * ```tsx + * const { data, isLoading } = useAppMembershipQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useAppMembershipQuery< + S extends AppMembershipSelect, + TData = { + appMembership: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppMembershipSelect>; + } & Omit< + UseQueryOptions< + { + appMembership: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppMembershipQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appMembershipKeys.detail(params.id), + queryFn: () => + getClient() + .appMembership.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single AppMembership without React hooks + * + * @example + * ```ts + * const data = await fetchAppMembershipQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchAppMembershipQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppMembershipSelect>; +}): Promise<{ + appMembership: InferSelectResult | null; +}>; +export async function fetchAppMembershipQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .appMembership.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single AppMembership for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppMembershipQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchAppMembershipQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppMembershipSelect>; + } +): Promise; +export async function prefetchAppMembershipQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: appMembershipKeys.detail(params.id), + queryFn: () => + getClient() + .appMembership.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppMembershipsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppMembershipsQuery.ts new file mode 100644 index 000000000..714e4372b --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useAppMembershipsQuery.ts @@ -0,0 +1,151 @@ +/** + * List query hook for AppMembership + * @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 { appMembershipKeys } from '../query-keys'; +import type { + AppMembershipSelect, + AppMembershipWithRelations, + AppMembershipFilter, + AppMembershipOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + AppMembershipSelect, + AppMembershipWithRelations, + AppMembershipFilter, + AppMembershipOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appMembershipsQueryKey = appMembershipKeys.list; +/** + * Query hook for fetching AppMembership list + * + * @example + * ```tsx + * const { data, isLoading } = useAppMembershipsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useAppMembershipsQuery< + S extends AppMembershipSelect, + TData = { + appMemberships: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppMembershipSelect>; + } & Omit< + UseQueryOptions< + { + appMemberships: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppMembershipsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + AppMembershipSelect, + AppMembershipFilter, + AppMembershipOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appMembershipKeys.list(args), + queryFn: () => getClient().appMembership.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch AppMembership list without React hooks + * + * @example + * ```ts + * const data = await fetchAppMembershipsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchAppMembershipsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppMembershipSelect>; +}): Promise<{ + appMemberships: ConnectionResult>; +}>; +export async function fetchAppMembershipsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + AppMembershipSelect, + AppMembershipFilter, + AppMembershipOrderBy + >(params.selection); + return getClient().appMembership.findMany(args).unwrap(); +} +/** + * Prefetch AppMembership list for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppMembershipsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchAppMembershipsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppMembershipSelect>; + } +): Promise; +export async function prefetchAppMembershipsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs< + AppMembershipSelect, + AppMembershipFilter, + AppMembershipOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: appMembershipKeys.list(args), + queryFn: () => getClient().appMembership.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppOwnerGrantQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppOwnerGrantQuery.ts new file mode 100644 index 000000000..49fcb6506 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useAppOwnerGrantQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for AppOwnerGrant + * @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 { appOwnerGrantKeys } from '../query-keys'; +import type { AppOwnerGrantSelect, AppOwnerGrantWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AppOwnerGrantSelect, AppOwnerGrantWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appOwnerGrantQueryKey = appOwnerGrantKeys.detail; +/** + * Query hook for fetching a single AppOwnerGrant + * + * @example + * ```tsx + * const { data, isLoading } = useAppOwnerGrantQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useAppOwnerGrantQuery< + S extends AppOwnerGrantSelect, + TData = { + appOwnerGrant: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppOwnerGrantSelect>; + } & Omit< + UseQueryOptions< + { + appOwnerGrant: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppOwnerGrantQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appOwnerGrantKeys.detail(params.id), + queryFn: () => + getClient() + .appOwnerGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single AppOwnerGrant without React hooks + * + * @example + * ```ts + * const data = await fetchAppOwnerGrantQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchAppOwnerGrantQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppOwnerGrantSelect>; +}): Promise<{ + appOwnerGrant: InferSelectResult | null; +}>; +export async function fetchAppOwnerGrantQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .appOwnerGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single AppOwnerGrant for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppOwnerGrantQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchAppOwnerGrantQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppOwnerGrantSelect>; + } +): Promise; +export async function prefetchAppOwnerGrantQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: appOwnerGrantKeys.detail(params.id), + queryFn: () => + getClient() + .appOwnerGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppOwnerGrantsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppOwnerGrantsQuery.ts new file mode 100644 index 000000000..25a312bcc --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useAppOwnerGrantsQuery.ts @@ -0,0 +1,151 @@ +/** + * List query hook for AppOwnerGrant + * @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 { appOwnerGrantKeys } from '../query-keys'; +import type { + AppOwnerGrantSelect, + AppOwnerGrantWithRelations, + AppOwnerGrantFilter, + AppOwnerGrantOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + AppOwnerGrantSelect, + AppOwnerGrantWithRelations, + AppOwnerGrantFilter, + AppOwnerGrantOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appOwnerGrantsQueryKey = appOwnerGrantKeys.list; +/** + * Query hook for fetching AppOwnerGrant list + * + * @example + * ```tsx + * const { data, isLoading } = useAppOwnerGrantsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useAppOwnerGrantsQuery< + S extends AppOwnerGrantSelect, + TData = { + appOwnerGrants: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppOwnerGrantSelect>; + } & Omit< + UseQueryOptions< + { + appOwnerGrants: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppOwnerGrantsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + AppOwnerGrantSelect, + AppOwnerGrantFilter, + AppOwnerGrantOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appOwnerGrantKeys.list(args), + queryFn: () => getClient().appOwnerGrant.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch AppOwnerGrant list without React hooks + * + * @example + * ```ts + * const data = await fetchAppOwnerGrantsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchAppOwnerGrantsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppOwnerGrantSelect>; +}): Promise<{ + appOwnerGrants: ConnectionResult>; +}>; +export async function fetchAppOwnerGrantsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + AppOwnerGrantSelect, + AppOwnerGrantFilter, + AppOwnerGrantOrderBy + >(params.selection); + return getClient().appOwnerGrant.findMany(args).unwrap(); +} +/** + * Prefetch AppOwnerGrant list for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppOwnerGrantsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchAppOwnerGrantsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppOwnerGrantSelect>; + } +): Promise; +export async function prefetchAppOwnerGrantsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs< + AppOwnerGrantSelect, + AppOwnerGrantFilter, + AppOwnerGrantOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: appOwnerGrantKeys.list(args), + queryFn: () => getClient().appOwnerGrant.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppPermissionDefaultQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppPermissionDefaultQuery.ts new file mode 100644 index 000000000..47eb66e64 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useAppPermissionDefaultQuery.ts @@ -0,0 +1,144 @@ +/** + * Single item query hook for AppPermissionDefault + * @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 { appPermissionDefaultKeys } from '../query-keys'; +import type { + AppPermissionDefaultSelect, + AppPermissionDefaultWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppPermissionDefaultSelect, + AppPermissionDefaultWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appPermissionDefaultQueryKey = appPermissionDefaultKeys.detail; +/** + * Query hook for fetching a single AppPermissionDefault + * + * @example + * ```tsx + * const { data, isLoading } = useAppPermissionDefaultQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useAppPermissionDefaultQuery< + S extends AppPermissionDefaultSelect, + TData = { + appPermissionDefault: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppPermissionDefaultSelect>; + } & Omit< + UseQueryOptions< + { + appPermissionDefault: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppPermissionDefaultQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appPermissionDefaultKeys.detail(params.id), + queryFn: () => + getClient() + .appPermissionDefault.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single AppPermissionDefault without React hooks + * + * @example + * ```ts + * const data = await fetchAppPermissionDefaultQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchAppPermissionDefaultQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppPermissionDefaultSelect>; +}): Promise<{ + appPermissionDefault: InferSelectResult | null; +}>; +export async function fetchAppPermissionDefaultQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .appPermissionDefault.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single AppPermissionDefault for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppPermissionDefaultQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchAppPermissionDefaultQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppPermissionDefaultSelect>; + } +): Promise; +export async function prefetchAppPermissionDefaultQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: appPermissionDefaultKeys.detail(params.id), + queryFn: () => + getClient() + .appPermissionDefault.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppPermissionDefaultsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppPermissionDefaultsQuery.ts new file mode 100644 index 000000000..21414a9fb --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useAppPermissionDefaultsQuery.ts @@ -0,0 +1,178 @@ +/** + * List query hook for AppPermissionDefault + * @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 { appPermissionDefaultKeys } from '../query-keys'; +import type { + AppPermissionDefaultSelect, + AppPermissionDefaultWithRelations, + AppPermissionDefaultFilter, + AppPermissionDefaultOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + AppPermissionDefaultSelect, + AppPermissionDefaultWithRelations, + AppPermissionDefaultFilter, + AppPermissionDefaultOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appPermissionDefaultsQueryKey = appPermissionDefaultKeys.list; +/** + * Query hook for fetching AppPermissionDefault list + * + * @example + * ```tsx + * const { data, isLoading } = useAppPermissionDefaultsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useAppPermissionDefaultsQuery< + S extends AppPermissionDefaultSelect, + TData = { + appPermissionDefaults: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, AppPermissionDefaultSelect>; + } & Omit< + UseQueryOptions< + { + appPermissionDefaults: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppPermissionDefaultsQuery( + params: { + selection: ListSelectionConfig< + AppPermissionDefaultSelect, + AppPermissionDefaultFilter, + AppPermissionDefaultOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + AppPermissionDefaultSelect, + AppPermissionDefaultFilter, + AppPermissionDefaultOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appPermissionDefaultKeys.list(args), + queryFn: () => getClient().appPermissionDefault.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch AppPermissionDefault list without React hooks + * + * @example + * ```ts + * const data = await fetchAppPermissionDefaultsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchAppPermissionDefaultsQuery< + S extends AppPermissionDefaultSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, AppPermissionDefaultSelect>; +}): Promise<{ + appPermissionDefaults: ConnectionResult>; +}>; +export async function fetchAppPermissionDefaultsQuery(params: { + selection: ListSelectionConfig< + AppPermissionDefaultSelect, + AppPermissionDefaultFilter, + AppPermissionDefaultOrderBy + >; +}) { + const args = buildListSelectionArgs< + AppPermissionDefaultSelect, + AppPermissionDefaultFilter, + AppPermissionDefaultOrderBy + >(params.selection); + return getClient().appPermissionDefault.findMany(args).unwrap(); +} +/** + * Prefetch AppPermissionDefault list for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppPermissionDefaultsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchAppPermissionDefaultsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, AppPermissionDefaultSelect>; + } +): Promise; +export async function prefetchAppPermissionDefaultsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + AppPermissionDefaultSelect, + AppPermissionDefaultFilter, + AppPermissionDefaultOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + AppPermissionDefaultSelect, + AppPermissionDefaultFilter, + AppPermissionDefaultOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: appPermissionDefaultKeys.list(args), + queryFn: () => getClient().appPermissionDefault.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppPermissionQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppPermissionQuery.ts new file mode 100644 index 000000000..37a00c5e9 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useAppPermissionQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for AppPermission + * @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 { appPermissionKeys } from '../query-keys'; +import type { AppPermissionSelect, AppPermissionWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AppPermissionSelect, AppPermissionWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appPermissionQueryKey = appPermissionKeys.detail; +/** + * Query hook for fetching a single AppPermission + * + * @example + * ```tsx + * const { data, isLoading } = useAppPermissionQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useAppPermissionQuery< + S extends AppPermissionSelect, + TData = { + appPermission: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppPermissionSelect>; + } & Omit< + UseQueryOptions< + { + appPermission: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppPermissionQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appPermissionKeys.detail(params.id), + queryFn: () => + getClient() + .appPermission.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single AppPermission without React hooks + * + * @example + * ```ts + * const data = await fetchAppPermissionQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchAppPermissionQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppPermissionSelect>; +}): Promise<{ + appPermission: InferSelectResult | null; +}>; +export async function fetchAppPermissionQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .appPermission.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single AppPermission for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppPermissionQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchAppPermissionQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppPermissionSelect>; + } +): Promise; +export async function prefetchAppPermissionQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: appPermissionKeys.detail(params.id), + queryFn: () => + getClient() + .appPermission.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppPermissionsGetByMaskQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppPermissionsGetByMaskQuery.ts new file mode 100644 index 000000000..78774ab69 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useAppPermissionsGetByMaskQuery.ts @@ -0,0 +1,108 @@ +/** + * Custom query hook for appPermissionsGetByMask + * @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 { AppPermissionsGetByMaskVariables } from '../../orm/query'; +import type { AppPermissionConnection } from '../../orm/input-types'; +export type { AppPermissionsGetByMaskVariables } from '../../orm/query'; +/** Query key factory - re-exported from query-keys.ts */ +export const appPermissionsGetByMaskQueryKey = customQueryKeys.appPermissionsGetByMask; +/** + * Reads and enables pagination through a set of `AppPermission`. + * + * @example + * ```tsx + * const { data, isLoading } = useAppPermissionsGetByMaskQuery({ variables: { mask, first, offset, after } }); + * + * if (data?.appPermissionsGetByMask) { + * console.log(data.appPermissionsGetByMask); + * } + * ``` + */ +export function useAppPermissionsGetByMaskQuery< + TData = { + appPermissionsGetByMask: AppPermissionConnection | null; + }, +>( + params?: { + variables?: AppPermissionsGetByMaskVariables; + } & Omit< + UseQueryOptions< + { + appPermissionsGetByMask: AppPermissionConnection | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppPermissionsGetByMaskQuery< + TData = { + appPermissionsGetByMask: AppPermissionConnection | null; + }, +>( + params?: { + variables?: AppPermissionsGetByMaskVariables; + } & Omit< + UseQueryOptions< + { + appPermissionsGetByMask: AppPermissionConnection | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult { + const variables = params?.variables ?? {}; + const { variables: _variables, ...queryOptions } = params ?? {}; + void _variables; + return useQuery({ + queryKey: appPermissionsGetByMaskQueryKey(variables), + queryFn: () => getClient().query.appPermissionsGetByMask(variables).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch appPermissionsGetByMask without React hooks + * + * @example + * ```ts + * const data = await fetchAppPermissionsGetByMaskQuery({ variables: { mask, first, offset, after } }); + * ``` + */ +export async function fetchAppPermissionsGetByMaskQuery(params?: { + variables?: AppPermissionsGetByMaskVariables; +}) { + const variables = params?.variables ?? {}; + return getClient().query.appPermissionsGetByMask(variables).unwrap(); +} +/** + * Prefetch appPermissionsGetByMask for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppPermissionsGetByMaskQuery(queryClient, { variables: { mask, first, offset, after } }); + * ``` + */ +export async function prefetchAppPermissionsGetByMaskQuery( + queryClient: QueryClient, + params?: { + variables?: AppPermissionsGetByMaskVariables; + } +): Promise { + const variables = params?.variables ?? {}; + await queryClient.prefetchQuery({ + queryKey: appPermissionsGetByMaskQueryKey(variables), + queryFn: () => getClient().query.appPermissionsGetByMask(variables).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppPermissionsGetMaskByNamesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppPermissionsGetMaskByNamesQuery.ts new file mode 100644 index 000000000..cbfe1fad8 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useAppPermissionsGetMaskByNamesQuery.ts @@ -0,0 +1,107 @@ +/** + * Custom query hook for appPermissionsGetMaskByNames + * @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 { AppPermissionsGetMaskByNamesVariables } from '../../orm/query'; +export type { AppPermissionsGetMaskByNamesVariables } from '../../orm/query'; +/** Query key factory - re-exported from query-keys.ts */ +export const appPermissionsGetMaskByNamesQueryKey = customQueryKeys.appPermissionsGetMaskByNames; +/** + * Query hook for appPermissionsGetMaskByNames + * + * @example + * ```tsx + * const { data, isLoading } = useAppPermissionsGetMaskByNamesQuery({ variables: { names } }); + * + * if (data?.appPermissionsGetMaskByNames) { + * console.log(data.appPermissionsGetMaskByNames); + * } + * ``` + */ +export function useAppPermissionsGetMaskByNamesQuery< + TData = { + appPermissionsGetMaskByNames: string | null; + }, +>( + params?: { + variables?: AppPermissionsGetMaskByNamesVariables; + } & Omit< + UseQueryOptions< + { + appPermissionsGetMaskByNames: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppPermissionsGetMaskByNamesQuery< + TData = { + appPermissionsGetMaskByNames: string | null; + }, +>( + params?: { + variables?: AppPermissionsGetMaskByNamesVariables; + } & Omit< + UseQueryOptions< + { + appPermissionsGetMaskByNames: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult { + const variables = params?.variables ?? {}; + const { variables: _variables, ...queryOptions } = params ?? {}; + void _variables; + return useQuery({ + queryKey: appPermissionsGetMaskByNamesQueryKey(variables), + queryFn: () => getClient().query.appPermissionsGetMaskByNames(variables).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch appPermissionsGetMaskByNames without React hooks + * + * @example + * ```ts + * const data = await fetchAppPermissionsGetMaskByNamesQuery({ variables: { names } }); + * ``` + */ +export async function fetchAppPermissionsGetMaskByNamesQuery(params?: { + variables?: AppPermissionsGetMaskByNamesVariables; +}) { + const variables = params?.variables ?? {}; + return getClient().query.appPermissionsGetMaskByNames(variables).unwrap(); +} +/** + * Prefetch appPermissionsGetMaskByNames for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppPermissionsGetMaskByNamesQuery(queryClient, { variables: { names } }); + * ``` + */ +export async function prefetchAppPermissionsGetMaskByNamesQuery( + queryClient: QueryClient, + params?: { + variables?: AppPermissionsGetMaskByNamesVariables; + } +): Promise { + const variables = params?.variables ?? {}; + await queryClient.prefetchQuery({ + queryKey: appPermissionsGetMaskByNamesQueryKey(variables), + queryFn: () => getClient().query.appPermissionsGetMaskByNames(variables).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppPermissionsGetMaskQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppPermissionsGetMaskQuery.ts new file mode 100644 index 000000000..b1e3289da --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useAppPermissionsGetMaskQuery.ts @@ -0,0 +1,107 @@ +/** + * Custom query hook for appPermissionsGetMask + * @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 { AppPermissionsGetMaskVariables } from '../../orm/query'; +export type { AppPermissionsGetMaskVariables } from '../../orm/query'; +/** Query key factory - re-exported from query-keys.ts */ +export const appPermissionsGetMaskQueryKey = customQueryKeys.appPermissionsGetMask; +/** + * Query hook for appPermissionsGetMask + * + * @example + * ```tsx + * const { data, isLoading } = useAppPermissionsGetMaskQuery({ variables: { ids } }); + * + * if (data?.appPermissionsGetMask) { + * console.log(data.appPermissionsGetMask); + * } + * ``` + */ +export function useAppPermissionsGetMaskQuery< + TData = { + appPermissionsGetMask: string | null; + }, +>( + params?: { + variables?: AppPermissionsGetMaskVariables; + } & Omit< + UseQueryOptions< + { + appPermissionsGetMask: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppPermissionsGetMaskQuery< + TData = { + appPermissionsGetMask: string | null; + }, +>( + params?: { + variables?: AppPermissionsGetMaskVariables; + } & Omit< + UseQueryOptions< + { + appPermissionsGetMask: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult { + const variables = params?.variables ?? {}; + const { variables: _variables, ...queryOptions } = params ?? {}; + void _variables; + return useQuery({ + queryKey: appPermissionsGetMaskQueryKey(variables), + queryFn: () => getClient().query.appPermissionsGetMask(variables).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch appPermissionsGetMask without React hooks + * + * @example + * ```ts + * const data = await fetchAppPermissionsGetMaskQuery({ variables: { ids } }); + * ``` + */ +export async function fetchAppPermissionsGetMaskQuery(params?: { + variables?: AppPermissionsGetMaskVariables; +}) { + const variables = params?.variables ?? {}; + return getClient().query.appPermissionsGetMask(variables).unwrap(); +} +/** + * Prefetch appPermissionsGetMask for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppPermissionsGetMaskQuery(queryClient, { variables: { ids } }); + * ``` + */ +export async function prefetchAppPermissionsGetMaskQuery( + queryClient: QueryClient, + params?: { + variables?: AppPermissionsGetMaskVariables; + } +): Promise { + const variables = params?.variables ?? {}; + await queryClient.prefetchQuery({ + queryKey: appPermissionsGetMaskQueryKey(variables), + queryFn: () => getClient().query.appPermissionsGetMask(variables).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppPermissionsGetPaddedMaskQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppPermissionsGetPaddedMaskQuery.ts new file mode 100644 index 000000000..cb504f810 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useAppPermissionsGetPaddedMaskQuery.ts @@ -0,0 +1,107 @@ +/** + * Custom query hook for appPermissionsGetPaddedMask + * @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 { AppPermissionsGetPaddedMaskVariables } from '../../orm/query'; +export type { AppPermissionsGetPaddedMaskVariables } from '../../orm/query'; +/** Query key factory - re-exported from query-keys.ts */ +export const appPermissionsGetPaddedMaskQueryKey = customQueryKeys.appPermissionsGetPaddedMask; +/** + * Query hook for appPermissionsGetPaddedMask + * + * @example + * ```tsx + * const { data, isLoading } = useAppPermissionsGetPaddedMaskQuery({ variables: { mask } }); + * + * if (data?.appPermissionsGetPaddedMask) { + * console.log(data.appPermissionsGetPaddedMask); + * } + * ``` + */ +export function useAppPermissionsGetPaddedMaskQuery< + TData = { + appPermissionsGetPaddedMask: string | null; + }, +>( + params?: { + variables?: AppPermissionsGetPaddedMaskVariables; + } & Omit< + UseQueryOptions< + { + appPermissionsGetPaddedMask: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppPermissionsGetPaddedMaskQuery< + TData = { + appPermissionsGetPaddedMask: string | null; + }, +>( + params?: { + variables?: AppPermissionsGetPaddedMaskVariables; + } & Omit< + UseQueryOptions< + { + appPermissionsGetPaddedMask: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult { + const variables = params?.variables ?? {}; + const { variables: _variables, ...queryOptions } = params ?? {}; + void _variables; + return useQuery({ + queryKey: appPermissionsGetPaddedMaskQueryKey(variables), + queryFn: () => getClient().query.appPermissionsGetPaddedMask(variables).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch appPermissionsGetPaddedMask without React hooks + * + * @example + * ```ts + * const data = await fetchAppPermissionsGetPaddedMaskQuery({ variables: { mask } }); + * ``` + */ +export async function fetchAppPermissionsGetPaddedMaskQuery(params?: { + variables?: AppPermissionsGetPaddedMaskVariables; +}) { + const variables = params?.variables ?? {}; + return getClient().query.appPermissionsGetPaddedMask(variables).unwrap(); +} +/** + * Prefetch appPermissionsGetPaddedMask for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppPermissionsGetPaddedMaskQuery(queryClient, { variables: { mask } }); + * ``` + */ +export async function prefetchAppPermissionsGetPaddedMaskQuery( + queryClient: QueryClient, + params?: { + variables?: AppPermissionsGetPaddedMaskVariables; + } +): Promise { + const variables = params?.variables ?? {}; + await queryClient.prefetchQuery({ + queryKey: appPermissionsGetPaddedMaskQueryKey(variables), + queryFn: () => getClient().query.appPermissionsGetPaddedMask(variables).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppPermissionsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppPermissionsQuery.ts new file mode 100644 index 000000000..f44f4e105 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useAppPermissionsQuery.ts @@ -0,0 +1,151 @@ +/** + * List query hook for AppPermission + * @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 { appPermissionKeys } from '../query-keys'; +import type { + AppPermissionSelect, + AppPermissionWithRelations, + AppPermissionFilter, + AppPermissionOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + AppPermissionSelect, + AppPermissionWithRelations, + AppPermissionFilter, + AppPermissionOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appPermissionsQueryKey = appPermissionKeys.list; +/** + * Query hook for fetching AppPermission list + * + * @example + * ```tsx + * const { data, isLoading } = useAppPermissionsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useAppPermissionsQuery< + S extends AppPermissionSelect, + TData = { + appPermissions: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppPermissionSelect>; + } & Omit< + UseQueryOptions< + { + appPermissions: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppPermissionsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + AppPermissionSelect, + AppPermissionFilter, + AppPermissionOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appPermissionKeys.list(args), + queryFn: () => getClient().appPermission.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch AppPermission list without React hooks + * + * @example + * ```ts + * const data = await fetchAppPermissionsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchAppPermissionsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppPermissionSelect>; +}): Promise<{ + appPermissions: ConnectionResult>; +}>; +export async function fetchAppPermissionsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + AppPermissionSelect, + AppPermissionFilter, + AppPermissionOrderBy + >(params.selection); + return getClient().appPermission.findMany(args).unwrap(); +} +/** + * Prefetch AppPermission list for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppPermissionsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchAppPermissionsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppPermissionSelect>; + } +): Promise; +export async function prefetchAppPermissionsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs< + AppPermissionSelect, + AppPermissionFilter, + AppPermissionOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: appPermissionKeys.list(args), + queryFn: () => getClient().appPermission.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppQuery.ts new file mode 100644 index 000000000..517440db4 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useAppQuery.ts @@ -0,0 +1,135 @@ +/** + * Single item query hook for App + * @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 { appKeys } from '../query-keys'; +import type { AppSelect, AppWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +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 + * + * @example + * ```tsx + * const { data, isLoading } = useAppQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useAppQuery< + S extends AppSelect, + TData = { + app: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppSelect>; + } & Omit< + UseQueryOptions< + { + app: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appKeys.detail(params.id), + queryFn: () => + getClient() + .app.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single App without React hooks + * + * @example + * ```ts + * const data = await fetchAppQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchAppQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppSelect>; +}): Promise<{ + app: InferSelectResult | null; +}>; +export async function fetchAppQuery(params: { id: string; selection: SelectionConfig }) { + const args = buildSelectionArgs(params.selection); + return getClient() + .app.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single App for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchAppQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppSelect>; + } +): Promise; +export async function prefetchAppQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: appKeys.detail(params.id), + queryFn: () => + getClient() + .app.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppStepQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppStepQuery.ts new file mode 100644 index 000000000..7ccfc9884 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useAppStepQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for AppStep + * @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 { appStepKeys } from '../query-keys'; +import type { AppStepSelect, AppStepWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AppStepSelect, AppStepWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appStepQueryKey = appStepKeys.detail; +/** + * Query hook for fetching a single AppStep + * + * @example + * ```tsx + * const { data, isLoading } = useAppStepQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useAppStepQuery< + S extends AppStepSelect, + TData = { + appStep: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppStepSelect>; + } & Omit< + UseQueryOptions< + { + appStep: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppStepQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appStepKeys.detail(params.id), + queryFn: () => + getClient() + .appStep.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single AppStep without React hooks + * + * @example + * ```ts + * const data = await fetchAppStepQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchAppStepQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppStepSelect>; +}): Promise<{ + appStep: InferSelectResult | null; +}>; +export async function fetchAppStepQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .appStep.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single AppStep for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppStepQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchAppStepQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppStepSelect>; + } +): Promise; +export async function prefetchAppStepQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: appStepKeys.detail(params.id), + queryFn: () => + getClient() + .appStep.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppStepsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppStepsQuery.ts new file mode 100644 index 000000000..b6f7d90d8 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useAppStepsQuery.ts @@ -0,0 +1,145 @@ +/** + * List query hook for AppStep + * @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 { appStepKeys } from '../query-keys'; +import type { + AppStepSelect, + AppStepWithRelations, + AppStepFilter, + AppStepOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + AppStepSelect, + AppStepWithRelations, + AppStepFilter, + AppStepOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appStepsQueryKey = appStepKeys.list; +/** + * Query hook for fetching AppStep list + * + * @example + * ```tsx + * const { data, isLoading } = useAppStepsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useAppStepsQuery< + S extends AppStepSelect, + TData = { + appSteps: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppStepSelect>; + } & Omit< + UseQueryOptions< + { + appSteps: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppStepsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appStepKeys.list(args), + queryFn: () => getClient().appStep.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch AppStep list without React hooks + * + * @example + * ```ts + * const data = await fetchAppStepsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchAppStepsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppStepSelect>; +}): Promise<{ + appSteps: ConnectionResult>; +}>; +export async function fetchAppStepsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().appStep.findMany(args).unwrap(); +} +/** + * Prefetch AppStep list for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppStepsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchAppStepsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppStepSelect>; + } +): Promise; +export async function prefetchAppStepsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: appStepKeys.list(args), + queryFn: () => getClient().appStep.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppsQuery.ts new file mode 100644 index 000000000..34c802258 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useAppsQuery.ts @@ -0,0 +1,129 @@ +/** + * List query hook for App + * @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 { appKeys } from '../query-keys'; +import type { AppSelect, AppWithRelations, AppFilter, AppOrderBy } from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { AppSelect, AppWithRelations, AppFilter, AppOrderBy } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appsQueryKey = appKeys.list; +/** + * Query hook for fetching App list + * + * @example + * ```tsx + * const { data, isLoading } = useAppsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useAppsQuery< + S extends AppSelect, + TData = { + apps: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppSelect>; + } & Omit< + UseQueryOptions< + { + apps: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appKeys.list(args), + queryFn: () => getClient().app.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch App list without React hooks + * + * @example + * ```ts + * const data = await fetchAppsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchAppsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppSelect>; +}): Promise<{ + apps: ConnectionResult>; +}>; +export async function fetchAppsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs(params.selection); + return getClient().app.findMany(args).unwrap(); +} +/** + * Prefetch App list for SSR or cache warming + * + * @example + * ```ts + * await prefetchAppsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchAppsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppSelect>; + } +): Promise; +export async function prefetchAppsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: appKeys.list(args), + queryFn: () => getClient().app.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAstMigrationQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAstMigrationQuery.ts new file mode 100644 index 000000000..7360593a5 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useAstMigrationQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for AstMigration + * @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 { astMigrationKeys } from '../query-keys'; +import type { AstMigrationSelect, AstMigrationWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AstMigrationSelect, AstMigrationWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const astMigrationQueryKey = astMigrationKeys.detail; +/** + * Query hook for fetching a single AstMigration + * + * @example + * ```tsx + * const { data, isLoading } = useAstMigrationQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useAstMigrationQuery< + S extends AstMigrationSelect, + TData = { + astMigration: InferSelectResult | null; + }, +>( + params: { + id: number; + selection: { + fields: S; + } & HookStrictSelect, AstMigrationSelect>; + } & Omit< + UseQueryOptions< + { + astMigration: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAstMigrationQuery( + params: { + id: number; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: astMigrationKeys.detail(params.id), + queryFn: () => + getClient() + .astMigration.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single AstMigration without React hooks + * + * @example + * ```ts + * const data = await fetchAstMigrationQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchAstMigrationQuery(params: { + id: number; + selection: { + fields: S; + } & HookStrictSelect, AstMigrationSelect>; +}): Promise<{ + astMigration: InferSelectResult | null; +}>; +export async function fetchAstMigrationQuery(params: { + id: number; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .astMigration.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single AstMigration for SSR or cache warming + * + * @example + * ```ts + * await prefetchAstMigrationQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchAstMigrationQuery( + queryClient: QueryClient, + params: { + id: number; + selection: { + fields: S; + } & HookStrictSelect, AstMigrationSelect>; + } +): Promise; +export async function prefetchAstMigrationQuery( + queryClient: QueryClient, + params: { + id: number; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: astMigrationKeys.detail(params.id), + queryFn: () => + getClient() + .astMigration.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAstMigrationsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAstMigrationsQuery.ts new file mode 100644 index 000000000..d2f381296 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useAstMigrationsQuery.ts @@ -0,0 +1,145 @@ +/** + * List query hook for AstMigration + * @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 { astMigrationKeys } from '../query-keys'; +import type { + AstMigrationSelect, + AstMigrationWithRelations, + AstMigrationFilter, + AstMigrationOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + AstMigrationSelect, + AstMigrationWithRelations, + AstMigrationFilter, + AstMigrationOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const astMigrationsQueryKey = astMigrationKeys.list; +/** + * Query hook for fetching AstMigration list + * + * @example + * ```tsx + * const { data, isLoading } = useAstMigrationsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useAstMigrationsQuery< + S extends AstMigrationSelect, + TData = { + astMigrations: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AstMigrationSelect>; + } & Omit< + UseQueryOptions< + { + astMigrations: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAstMigrationsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: astMigrationKeys.list(args), + queryFn: () => getClient().astMigration.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch AstMigration list without React hooks + * + * @example + * ```ts + * const data = await fetchAstMigrationsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchAstMigrationsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AstMigrationSelect>; +}): Promise<{ + astMigrations: ConnectionResult>; +}>; +export async function fetchAstMigrationsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().astMigration.findMany(args).unwrap(); +} +/** + * Prefetch AstMigration list for SSR or cache warming + * + * @example + * ```ts + * await prefetchAstMigrationsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchAstMigrationsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AstMigrationSelect>; + } +): Promise; +export async function prefetchAstMigrationsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: astMigrationKeys.list(args), + queryFn: () => getClient().astMigration.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAuditLogQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAuditLogQuery.ts new file mode 100644 index 000000000..99af2d7fe --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useAuditLogQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for AuditLog + * @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 { auditLogKeys } from '../query-keys'; +import type { AuditLogSelect, AuditLogWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AuditLogSelect, AuditLogWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const auditLogQueryKey = auditLogKeys.detail; +/** + * Query hook for fetching a single AuditLog + * + * @example + * ```tsx + * const { data, isLoading } = useAuditLogQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useAuditLogQuery< + S extends AuditLogSelect, + TData = { + auditLog: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AuditLogSelect>; + } & Omit< + UseQueryOptions< + { + auditLog: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAuditLogQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: auditLogKeys.detail(params.id), + queryFn: () => + getClient() + .auditLog.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single AuditLog without React hooks + * + * @example + * ```ts + * const data = await fetchAuditLogQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchAuditLogQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AuditLogSelect>; +}): Promise<{ + auditLog: InferSelectResult | null; +}>; +export async function fetchAuditLogQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .auditLog.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single AuditLog for SSR or cache warming + * + * @example + * ```ts + * await prefetchAuditLogQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchAuditLogQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AuditLogSelect>; + } +): Promise; +export async function prefetchAuditLogQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: auditLogKeys.detail(params.id), + queryFn: () => + getClient() + .auditLog.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAuditLogsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAuditLogsQuery.ts new file mode 100644 index 000000000..2fd0f9384 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useAuditLogsQuery.ts @@ -0,0 +1,145 @@ +/** + * List query hook for AuditLog + * @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 { auditLogKeys } from '../query-keys'; +import type { + AuditLogSelect, + AuditLogWithRelations, + AuditLogFilter, + AuditLogOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + AuditLogSelect, + AuditLogWithRelations, + AuditLogFilter, + AuditLogOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const auditLogsQueryKey = auditLogKeys.list; +/** + * Query hook for fetching AuditLog list + * + * @example + * ```tsx + * const { data, isLoading } = useAuditLogsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useAuditLogsQuery< + S extends AuditLogSelect, + TData = { + auditLogs: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AuditLogSelect>; + } & Omit< + UseQueryOptions< + { + auditLogs: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAuditLogsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: auditLogKeys.list(args), + queryFn: () => getClient().auditLog.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch AuditLog list without React hooks + * + * @example + * ```ts + * const data = await fetchAuditLogsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchAuditLogsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AuditLogSelect>; +}): Promise<{ + auditLogs: ConnectionResult>; +}>; +export async function fetchAuditLogsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().auditLog.findMany(args).unwrap(); +} +/** + * Prefetch AuditLog list for SSR or cache warming + * + * @example + * ```ts + * await prefetchAuditLogsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchAuditLogsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AuditLogSelect>; + } +): Promise; +export async function prefetchAuditLogsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: auditLogKeys.list(args), + queryFn: () => getClient().auditLog.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useCheckConstraintQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useCheckConstraintQuery.ts new file mode 100644 index 000000000..daedfa56d --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useCheckConstraintQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for CheckConstraint + * @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 { checkConstraintKeys } from '../query-keys'; +import type { CheckConstraintSelect, CheckConstraintWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { CheckConstraintSelect, CheckConstraintWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const checkConstraintQueryKey = checkConstraintKeys.detail; +/** + * Query hook for fetching a single CheckConstraint + * + * @example + * ```tsx + * const { data, isLoading } = useCheckConstraintQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useCheckConstraintQuery< + S extends CheckConstraintSelect, + TData = { + checkConstraint: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, CheckConstraintSelect>; + } & Omit< + UseQueryOptions< + { + checkConstraint: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useCheckConstraintQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: checkConstraintKeys.detail(params.id), + queryFn: () => + getClient() + .checkConstraint.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single CheckConstraint without React hooks + * + * @example + * ```ts + * const data = await fetchCheckConstraintQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchCheckConstraintQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, CheckConstraintSelect>; +}): Promise<{ + checkConstraint: InferSelectResult | null; +}>; +export async function fetchCheckConstraintQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .checkConstraint.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single CheckConstraint for SSR or cache warming + * + * @example + * ```ts + * await prefetchCheckConstraintQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchCheckConstraintQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, CheckConstraintSelect>; + } +): Promise; +export async function prefetchCheckConstraintQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: checkConstraintKeys.detail(params.id), + queryFn: () => + getClient() + .checkConstraint.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useCheckConstraintsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useCheckConstraintsQuery.ts new file mode 100644 index 000000000..8a3d4277b --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useCheckConstraintsQuery.ts @@ -0,0 +1,163 @@ +/** + * List query hook for CheckConstraint + * @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 { checkConstraintKeys } from '../query-keys'; +import type { + CheckConstraintSelect, + CheckConstraintWithRelations, + CheckConstraintFilter, + CheckConstraintOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + CheckConstraintSelect, + CheckConstraintWithRelations, + CheckConstraintFilter, + CheckConstraintOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const checkConstraintsQueryKey = checkConstraintKeys.list; +/** + * Query hook for fetching CheckConstraint list + * + * @example + * ```tsx + * const { data, isLoading } = useCheckConstraintsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useCheckConstraintsQuery< + S extends CheckConstraintSelect, + TData = { + checkConstraints: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, CheckConstraintSelect>; + } & Omit< + UseQueryOptions< + { + checkConstraints: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useCheckConstraintsQuery( + params: { + selection: ListSelectionConfig< + CheckConstraintSelect, + CheckConstraintFilter, + CheckConstraintOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + CheckConstraintSelect, + CheckConstraintFilter, + CheckConstraintOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: checkConstraintKeys.list(args), + queryFn: () => getClient().checkConstraint.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch CheckConstraint list without React hooks + * + * @example + * ```ts + * const data = await fetchCheckConstraintsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchCheckConstraintsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, CheckConstraintSelect>; +}): Promise<{ + checkConstraints: ConnectionResult>; +}>; +export async function fetchCheckConstraintsQuery(params: { + selection: ListSelectionConfig< + CheckConstraintSelect, + CheckConstraintFilter, + CheckConstraintOrderBy + >; +}) { + const args = buildListSelectionArgs< + CheckConstraintSelect, + CheckConstraintFilter, + CheckConstraintOrderBy + >(params.selection); + return getClient().checkConstraint.findMany(args).unwrap(); +} +/** + * Prefetch CheckConstraint list for SSR or cache warming + * + * @example + * ```ts + * await prefetchCheckConstraintsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchCheckConstraintsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, CheckConstraintSelect>; + } +): Promise; +export async function prefetchCheckConstraintsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + CheckConstraintSelect, + CheckConstraintFilter, + CheckConstraintOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + CheckConstraintSelect, + CheckConstraintFilter, + CheckConstraintOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: checkConstraintKeys.list(args), + queryFn: () => getClient().checkConstraint.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useClaimedInviteQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useClaimedInviteQuery.ts new file mode 100644 index 000000000..e74f389c7 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useClaimedInviteQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for ClaimedInvite + * @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 { claimedInviteKeys } from '../query-keys'; +import type { ClaimedInviteSelect, ClaimedInviteWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ClaimedInviteSelect, ClaimedInviteWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const claimedInviteQueryKey = claimedInviteKeys.detail; +/** + * Query hook for fetching a single ClaimedInvite + * + * @example + * ```tsx + * const { data, isLoading } = useClaimedInviteQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useClaimedInviteQuery< + S extends ClaimedInviteSelect, + TData = { + claimedInvite: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ClaimedInviteSelect>; + } & Omit< + UseQueryOptions< + { + claimedInvite: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useClaimedInviteQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: claimedInviteKeys.detail(params.id), + queryFn: () => + getClient() + .claimedInvite.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single ClaimedInvite without React hooks + * + * @example + * ```ts + * const data = await fetchClaimedInviteQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchClaimedInviteQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ClaimedInviteSelect>; +}): Promise<{ + claimedInvite: InferSelectResult | null; +}>; +export async function fetchClaimedInviteQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .claimedInvite.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single ClaimedInvite for SSR or cache warming + * + * @example + * ```ts + * await prefetchClaimedInviteQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchClaimedInviteQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ClaimedInviteSelect>; + } +): Promise; +export async function prefetchClaimedInviteQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: claimedInviteKeys.detail(params.id), + queryFn: () => + getClient() + .claimedInvite.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useClaimedInvitesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useClaimedInvitesQuery.ts new file mode 100644 index 000000000..9373984d9 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useClaimedInvitesQuery.ts @@ -0,0 +1,151 @@ +/** + * List query hook for ClaimedInvite + * @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 { claimedInviteKeys } from '../query-keys'; +import type { + ClaimedInviteSelect, + ClaimedInviteWithRelations, + ClaimedInviteFilter, + ClaimedInviteOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + ClaimedInviteSelect, + ClaimedInviteWithRelations, + ClaimedInviteFilter, + ClaimedInviteOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const claimedInvitesQueryKey = claimedInviteKeys.list; +/** + * Query hook for fetching ClaimedInvite list + * + * @example + * ```tsx + * const { data, isLoading } = useClaimedInvitesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useClaimedInvitesQuery< + S extends ClaimedInviteSelect, + TData = { + claimedInvites: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ClaimedInviteSelect>; + } & Omit< + UseQueryOptions< + { + claimedInvites: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useClaimedInvitesQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + ClaimedInviteSelect, + ClaimedInviteFilter, + ClaimedInviteOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: claimedInviteKeys.list(args), + queryFn: () => getClient().claimedInvite.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch ClaimedInvite list without React hooks + * + * @example + * ```ts + * const data = await fetchClaimedInvitesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchClaimedInvitesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ClaimedInviteSelect>; +}): Promise<{ + claimedInvites: ConnectionResult>; +}>; +export async function fetchClaimedInvitesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + ClaimedInviteSelect, + ClaimedInviteFilter, + ClaimedInviteOrderBy + >(params.selection); + return getClient().claimedInvite.findMany(args).unwrap(); +} +/** + * Prefetch ClaimedInvite list for SSR or cache warming + * + * @example + * ```ts + * await prefetchClaimedInvitesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchClaimedInvitesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ClaimedInviteSelect>; + } +): Promise; +export async function prefetchClaimedInvitesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs< + ClaimedInviteSelect, + ClaimedInviteFilter, + ClaimedInviteOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: claimedInviteKeys.list(args), + queryFn: () => getClient().claimedInvite.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useCommitQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useCommitQuery.ts new file mode 100644 index 000000000..99bfe6e3c --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useCommitQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for Commit + * @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 { commitKeys } from '../query-keys'; +import type { CommitSelect, CommitWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { CommitSelect, CommitWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const commitQueryKey = commitKeys.detail; +/** + * Query hook for fetching a single Commit + * + * @example + * ```tsx + * const { data, isLoading } = useCommitQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useCommitQuery< + S extends CommitSelect, + TData = { + commit: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, CommitSelect>; + } & Omit< + UseQueryOptions< + { + commit: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useCommitQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: commitKeys.detail(params.id), + queryFn: () => + getClient() + .commit.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single Commit without React hooks + * + * @example + * ```ts + * const data = await fetchCommitQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchCommitQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, CommitSelect>; +}): Promise<{ + commit: InferSelectResult | null; +}>; +export async function fetchCommitQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .commit.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single Commit for SSR or cache warming + * + * @example + * ```ts + * await prefetchCommitQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchCommitQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, CommitSelect>; + } +): Promise; +export async function prefetchCommitQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: commitKeys.detail(params.id), + queryFn: () => + getClient() + .commit.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useCommitsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useCommitsQuery.ts new file mode 100644 index 000000000..1ec69f698 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useCommitsQuery.ts @@ -0,0 +1,139 @@ +/** + * List query hook for Commit + * @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 { commitKeys } from '../query-keys'; +import type { + CommitSelect, + CommitWithRelations, + CommitFilter, + CommitOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + CommitSelect, + CommitWithRelations, + CommitFilter, + CommitOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const commitsQueryKey = commitKeys.list; +/** + * Query hook for fetching Commit list + * + * @example + * ```tsx + * const { data, isLoading } = useCommitsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useCommitsQuery< + S extends CommitSelect, + TData = { + commits: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, CommitSelect>; + } & Omit< + UseQueryOptions< + { + commits: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useCommitsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: commitKeys.list(args), + queryFn: () => getClient().commit.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch Commit list without React hooks + * + * @example + * ```ts + * const data = await fetchCommitsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchCommitsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, CommitSelect>; +}): Promise<{ + commits: ConnectionResult>; +}>; +export async function fetchCommitsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs(params.selection); + return getClient().commit.findMany(args).unwrap(); +} +/** + * Prefetch Commit list for SSR or cache warming + * + * @example + * ```ts + * await prefetchCommitsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchCommitsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, CommitSelect>; + } +): Promise; +export async function prefetchCommitsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: commitKeys.list(args), + queryFn: () => getClient().commit.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useConnectedAccountQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useConnectedAccountQuery.ts new file mode 100644 index 000000000..21a88edf9 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useConnectedAccountQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for ConnectedAccount + * @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 { connectedAccountKeys } from '../query-keys'; +import type { ConnectedAccountSelect, ConnectedAccountWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ConnectedAccountSelect, ConnectedAccountWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const connectedAccountQueryKey = connectedAccountKeys.detail; +/** + * Query hook for fetching a single ConnectedAccount + * + * @example + * ```tsx + * const { data, isLoading } = useConnectedAccountQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useConnectedAccountQuery< + S extends ConnectedAccountSelect, + TData = { + connectedAccount: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ConnectedAccountSelect>; + } & Omit< + UseQueryOptions< + { + connectedAccount: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useConnectedAccountQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: connectedAccountKeys.detail(params.id), + queryFn: () => + getClient() + .connectedAccount.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single ConnectedAccount without React hooks + * + * @example + * ```ts + * const data = await fetchConnectedAccountQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchConnectedAccountQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ConnectedAccountSelect>; +}): Promise<{ + connectedAccount: InferSelectResult | null; +}>; +export async function fetchConnectedAccountQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .connectedAccount.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single ConnectedAccount for SSR or cache warming + * + * @example + * ```ts + * await prefetchConnectedAccountQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchConnectedAccountQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ConnectedAccountSelect>; + } +): Promise; +export async function prefetchConnectedAccountQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: connectedAccountKeys.detail(params.id), + queryFn: () => + getClient() + .connectedAccount.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useConnectedAccountsModuleQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useConnectedAccountsModuleQuery.ts new file mode 100644 index 000000000..da1221e42 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useConnectedAccountsModuleQuery.ts @@ -0,0 +1,146 @@ +/** + * Single item query hook for ConnectedAccountsModule + * @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 { connectedAccountsModuleKeys } from '../query-keys'; +import type { + ConnectedAccountsModuleSelect, + ConnectedAccountsModuleWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ConnectedAccountsModuleSelect, + ConnectedAccountsModuleWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const connectedAccountsModuleQueryKey = connectedAccountsModuleKeys.detail; +/** + * Query hook for fetching a single ConnectedAccountsModule + * + * @example + * ```tsx + * const { data, isLoading } = useConnectedAccountsModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useConnectedAccountsModuleQuery< + S extends ConnectedAccountsModuleSelect, + TData = { + connectedAccountsModule: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ConnectedAccountsModuleSelect>; + } & Omit< + UseQueryOptions< + { + connectedAccountsModule: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useConnectedAccountsModuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: connectedAccountsModuleKeys.detail(params.id), + queryFn: () => + getClient() + .connectedAccountsModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single ConnectedAccountsModule without React hooks + * + * @example + * ```ts + * const data = await fetchConnectedAccountsModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchConnectedAccountsModuleQuery< + S extends ConnectedAccountsModuleSelect, +>(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ConnectedAccountsModuleSelect>; +}): Promise<{ + connectedAccountsModule: InferSelectResult | null; +}>; +export async function fetchConnectedAccountsModuleQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .connectedAccountsModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single ConnectedAccountsModule for SSR or cache warming + * + * @example + * ```ts + * await prefetchConnectedAccountsModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchConnectedAccountsModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ConnectedAccountsModuleSelect>; + } +): Promise; +export async function prefetchConnectedAccountsModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: connectedAccountsModuleKeys.detail(params.id), + queryFn: () => + getClient() + .connectedAccountsModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useConnectedAccountsModulesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useConnectedAccountsModulesQuery.ts new file mode 100644 index 000000000..61289bfb3 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useConnectedAccountsModulesQuery.ts @@ -0,0 +1,182 @@ +/** + * List query hook for ConnectedAccountsModule + * @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 { connectedAccountsModuleKeys } from '../query-keys'; +import type { + ConnectedAccountsModuleSelect, + ConnectedAccountsModuleWithRelations, + ConnectedAccountsModuleFilter, + ConnectedAccountsModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + ConnectedAccountsModuleSelect, + ConnectedAccountsModuleWithRelations, + ConnectedAccountsModuleFilter, + ConnectedAccountsModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const connectedAccountsModulesQueryKey = connectedAccountsModuleKeys.list; +/** + * Query hook for fetching ConnectedAccountsModule list + * + * @example + * ```tsx + * const { data, isLoading } = useConnectedAccountsModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useConnectedAccountsModulesQuery< + S extends ConnectedAccountsModuleSelect, + TData = { + connectedAccountsModules: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, ConnectedAccountsModuleSelect>; + } & Omit< + UseQueryOptions< + { + connectedAccountsModules: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useConnectedAccountsModulesQuery( + params: { + selection: ListSelectionConfig< + ConnectedAccountsModuleSelect, + ConnectedAccountsModuleFilter, + ConnectedAccountsModuleOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + ConnectedAccountsModuleSelect, + ConnectedAccountsModuleFilter, + ConnectedAccountsModuleOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: connectedAccountsModuleKeys.list(args), + queryFn: () => getClient().connectedAccountsModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch ConnectedAccountsModule list without React hooks + * + * @example + * ```ts + * const data = await fetchConnectedAccountsModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchConnectedAccountsModulesQuery< + S extends ConnectedAccountsModuleSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, ConnectedAccountsModuleSelect>; +}): Promise<{ + connectedAccountsModules: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchConnectedAccountsModulesQuery(params: { + selection: ListSelectionConfig< + ConnectedAccountsModuleSelect, + ConnectedAccountsModuleFilter, + ConnectedAccountsModuleOrderBy + >; +}) { + const args = buildListSelectionArgs< + ConnectedAccountsModuleSelect, + ConnectedAccountsModuleFilter, + ConnectedAccountsModuleOrderBy + >(params.selection); + return getClient().connectedAccountsModule.findMany(args).unwrap(); +} +/** + * Prefetch ConnectedAccountsModule list for SSR or cache warming + * + * @example + * ```ts + * await prefetchConnectedAccountsModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchConnectedAccountsModulesQuery< + S extends ConnectedAccountsModuleSelect, +>( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, ConnectedAccountsModuleSelect>; + } +): Promise; +export async function prefetchConnectedAccountsModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + ConnectedAccountsModuleSelect, + ConnectedAccountsModuleFilter, + ConnectedAccountsModuleOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + ConnectedAccountsModuleSelect, + ConnectedAccountsModuleFilter, + ConnectedAccountsModuleOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: connectedAccountsModuleKeys.list(args), + queryFn: () => getClient().connectedAccountsModule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useConnectedAccountsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useConnectedAccountsQuery.ts new file mode 100644 index 000000000..326e1b80c --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useConnectedAccountsQuery.ts @@ -0,0 +1,163 @@ +/** + * List query hook for ConnectedAccount + * @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 { connectedAccountKeys } from '../query-keys'; +import type { + ConnectedAccountSelect, + ConnectedAccountWithRelations, + ConnectedAccountFilter, + ConnectedAccountOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + ConnectedAccountSelect, + ConnectedAccountWithRelations, + ConnectedAccountFilter, + ConnectedAccountOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const connectedAccountsQueryKey = connectedAccountKeys.list; +/** + * Query hook for fetching ConnectedAccount list + * + * @example + * ```tsx + * const { data, isLoading } = useConnectedAccountsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useConnectedAccountsQuery< + S extends ConnectedAccountSelect, + TData = { + connectedAccounts: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ConnectedAccountSelect>; + } & Omit< + UseQueryOptions< + { + connectedAccounts: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useConnectedAccountsQuery( + params: { + selection: ListSelectionConfig< + ConnectedAccountSelect, + ConnectedAccountFilter, + ConnectedAccountOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + ConnectedAccountSelect, + ConnectedAccountFilter, + ConnectedAccountOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: connectedAccountKeys.list(args), + queryFn: () => getClient().connectedAccount.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch ConnectedAccount list without React hooks + * + * @example + * ```ts + * const data = await fetchConnectedAccountsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchConnectedAccountsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ConnectedAccountSelect>; +}): Promise<{ + connectedAccounts: ConnectionResult>; +}>; +export async function fetchConnectedAccountsQuery(params: { + selection: ListSelectionConfig< + ConnectedAccountSelect, + ConnectedAccountFilter, + ConnectedAccountOrderBy + >; +}) { + const args = buildListSelectionArgs< + ConnectedAccountSelect, + ConnectedAccountFilter, + ConnectedAccountOrderBy + >(params.selection); + return getClient().connectedAccount.findMany(args).unwrap(); +} +/** + * Prefetch ConnectedAccount list for SSR or cache warming + * + * @example + * ```ts + * await prefetchConnectedAccountsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchConnectedAccountsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ConnectedAccountSelect>; + } +): Promise; +export async function prefetchConnectedAccountsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + ConnectedAccountSelect, + ConnectedAccountFilter, + ConnectedAccountOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + ConnectedAccountSelect, + ConnectedAccountFilter, + ConnectedAccountOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: connectedAccountKeys.list(args), + queryFn: () => getClient().connectedAccount.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useCryptoAddressQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useCryptoAddressQuery.ts new file mode 100644 index 000000000..cc9c73a90 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useCryptoAddressQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for CryptoAddress + * @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 { cryptoAddressKeys } from '../query-keys'; +import type { CryptoAddressSelect, CryptoAddressWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { CryptoAddressSelect, CryptoAddressWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const cryptoAddressQueryKey = cryptoAddressKeys.detail; +/** + * Query hook for fetching a single CryptoAddress + * + * @example + * ```tsx + * const { data, isLoading } = useCryptoAddressQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useCryptoAddressQuery< + S extends CryptoAddressSelect, + TData = { + cryptoAddress: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, CryptoAddressSelect>; + } & Omit< + UseQueryOptions< + { + cryptoAddress: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useCryptoAddressQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: cryptoAddressKeys.detail(params.id), + queryFn: () => + getClient() + .cryptoAddress.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single CryptoAddress without React hooks + * + * @example + * ```ts + * const data = await fetchCryptoAddressQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchCryptoAddressQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, CryptoAddressSelect>; +}): Promise<{ + cryptoAddress: InferSelectResult | null; +}>; +export async function fetchCryptoAddressQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .cryptoAddress.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single CryptoAddress for SSR or cache warming + * + * @example + * ```ts + * await prefetchCryptoAddressQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchCryptoAddressQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, CryptoAddressSelect>; + } +): Promise; +export async function prefetchCryptoAddressQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: cryptoAddressKeys.detail(params.id), + queryFn: () => + getClient() + .cryptoAddress.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useCryptoAddressesModuleQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useCryptoAddressesModuleQuery.ts new file mode 100644 index 000000000..941500402 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useCryptoAddressesModuleQuery.ts @@ -0,0 +1,146 @@ +/** + * Single item query hook for CryptoAddressesModule + * @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 { cryptoAddressesModuleKeys } from '../query-keys'; +import type { + CryptoAddressesModuleSelect, + CryptoAddressesModuleWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + CryptoAddressesModuleSelect, + CryptoAddressesModuleWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const cryptoAddressesModuleQueryKey = cryptoAddressesModuleKeys.detail; +/** + * Query hook for fetching a single CryptoAddressesModule + * + * @example + * ```tsx + * const { data, isLoading } = useCryptoAddressesModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useCryptoAddressesModuleQuery< + S extends CryptoAddressesModuleSelect, + TData = { + cryptoAddressesModule: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, CryptoAddressesModuleSelect>; + } & Omit< + UseQueryOptions< + { + cryptoAddressesModule: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useCryptoAddressesModuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: cryptoAddressesModuleKeys.detail(params.id), + queryFn: () => + getClient() + .cryptoAddressesModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single CryptoAddressesModule without React hooks + * + * @example + * ```ts + * const data = await fetchCryptoAddressesModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchCryptoAddressesModuleQuery< + S extends CryptoAddressesModuleSelect, +>(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, CryptoAddressesModuleSelect>; +}): Promise<{ + cryptoAddressesModule: InferSelectResult | null; +}>; +export async function fetchCryptoAddressesModuleQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .cryptoAddressesModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single CryptoAddressesModule for SSR or cache warming + * + * @example + * ```ts + * await prefetchCryptoAddressesModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchCryptoAddressesModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, CryptoAddressesModuleSelect>; + } +): Promise; +export async function prefetchCryptoAddressesModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: cryptoAddressesModuleKeys.detail(params.id), + queryFn: () => + getClient() + .cryptoAddressesModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useCryptoAddressesModulesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useCryptoAddressesModulesQuery.ts new file mode 100644 index 000000000..7ecdd864e --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useCryptoAddressesModulesQuery.ts @@ -0,0 +1,180 @@ +/** + * List query hook for CryptoAddressesModule + * @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 { cryptoAddressesModuleKeys } from '../query-keys'; +import type { + CryptoAddressesModuleSelect, + CryptoAddressesModuleWithRelations, + CryptoAddressesModuleFilter, + CryptoAddressesModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + CryptoAddressesModuleSelect, + CryptoAddressesModuleWithRelations, + CryptoAddressesModuleFilter, + CryptoAddressesModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const cryptoAddressesModulesQueryKey = cryptoAddressesModuleKeys.list; +/** + * Query hook for fetching CryptoAddressesModule list + * + * @example + * ```tsx + * const { data, isLoading } = useCryptoAddressesModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useCryptoAddressesModulesQuery< + S extends CryptoAddressesModuleSelect, + TData = { + cryptoAddressesModules: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, CryptoAddressesModuleSelect>; + } & Omit< + UseQueryOptions< + { + cryptoAddressesModules: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useCryptoAddressesModulesQuery( + params: { + selection: ListSelectionConfig< + CryptoAddressesModuleSelect, + CryptoAddressesModuleFilter, + CryptoAddressesModuleOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + CryptoAddressesModuleSelect, + CryptoAddressesModuleFilter, + CryptoAddressesModuleOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: cryptoAddressesModuleKeys.list(args), + queryFn: () => getClient().cryptoAddressesModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch CryptoAddressesModule list without React hooks + * + * @example + * ```ts + * const data = await fetchCryptoAddressesModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchCryptoAddressesModulesQuery< + S extends CryptoAddressesModuleSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, CryptoAddressesModuleSelect>; +}): Promise<{ + cryptoAddressesModules: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchCryptoAddressesModulesQuery(params: { + selection: ListSelectionConfig< + CryptoAddressesModuleSelect, + CryptoAddressesModuleFilter, + CryptoAddressesModuleOrderBy + >; +}) { + const args = buildListSelectionArgs< + CryptoAddressesModuleSelect, + CryptoAddressesModuleFilter, + CryptoAddressesModuleOrderBy + >(params.selection); + return getClient().cryptoAddressesModule.findMany(args).unwrap(); +} +/** + * Prefetch CryptoAddressesModule list for SSR or cache warming + * + * @example + * ```ts + * await prefetchCryptoAddressesModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchCryptoAddressesModulesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, CryptoAddressesModuleSelect>; + } +): Promise; +export async function prefetchCryptoAddressesModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + CryptoAddressesModuleSelect, + CryptoAddressesModuleFilter, + CryptoAddressesModuleOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + CryptoAddressesModuleSelect, + CryptoAddressesModuleFilter, + CryptoAddressesModuleOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: cryptoAddressesModuleKeys.list(args), + queryFn: () => getClient().cryptoAddressesModule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useCryptoAddressesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useCryptoAddressesQuery.ts new file mode 100644 index 000000000..33cafeede --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useCryptoAddressesQuery.ts @@ -0,0 +1,151 @@ +/** + * List query hook for CryptoAddress + * @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 { cryptoAddressKeys } from '../query-keys'; +import type { + CryptoAddressSelect, + CryptoAddressWithRelations, + CryptoAddressFilter, + CryptoAddressOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + CryptoAddressSelect, + CryptoAddressWithRelations, + CryptoAddressFilter, + CryptoAddressOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const cryptoAddressesQueryKey = cryptoAddressKeys.list; +/** + * Query hook for fetching CryptoAddress list + * + * @example + * ```tsx + * const { data, isLoading } = useCryptoAddressesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useCryptoAddressesQuery< + S extends CryptoAddressSelect, + TData = { + cryptoAddresses: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, CryptoAddressSelect>; + } & Omit< + UseQueryOptions< + { + cryptoAddresses: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useCryptoAddressesQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + CryptoAddressSelect, + CryptoAddressFilter, + CryptoAddressOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: cryptoAddressKeys.list(args), + queryFn: () => getClient().cryptoAddress.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch CryptoAddress list without React hooks + * + * @example + * ```ts + * const data = await fetchCryptoAddressesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchCryptoAddressesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, CryptoAddressSelect>; +}): Promise<{ + cryptoAddresses: ConnectionResult>; +}>; +export async function fetchCryptoAddressesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + CryptoAddressSelect, + CryptoAddressFilter, + CryptoAddressOrderBy + >(params.selection); + return getClient().cryptoAddress.findMany(args).unwrap(); +} +/** + * Prefetch CryptoAddress list for SSR or cache warming + * + * @example + * ```ts + * await prefetchCryptoAddressesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchCryptoAddressesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, CryptoAddressSelect>; + } +): Promise; +export async function prefetchCryptoAddressesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs< + CryptoAddressSelect, + CryptoAddressFilter, + CryptoAddressOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: cryptoAddressKeys.list(args), + queryFn: () => getClient().cryptoAddress.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useCryptoAuthModuleQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useCryptoAuthModuleQuery.ts new file mode 100644 index 000000000..48e2b561b --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useCryptoAuthModuleQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for CryptoAuthModule + * @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 { cryptoAuthModuleKeys } from '../query-keys'; +import type { CryptoAuthModuleSelect, CryptoAuthModuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { CryptoAuthModuleSelect, CryptoAuthModuleWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const cryptoAuthModuleQueryKey = cryptoAuthModuleKeys.detail; +/** + * Query hook for fetching a single CryptoAuthModule + * + * @example + * ```tsx + * const { data, isLoading } = useCryptoAuthModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useCryptoAuthModuleQuery< + S extends CryptoAuthModuleSelect, + TData = { + cryptoAuthModule: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, CryptoAuthModuleSelect>; + } & Omit< + UseQueryOptions< + { + cryptoAuthModule: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useCryptoAuthModuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: cryptoAuthModuleKeys.detail(params.id), + queryFn: () => + getClient() + .cryptoAuthModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single CryptoAuthModule without React hooks + * + * @example + * ```ts + * const data = await fetchCryptoAuthModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchCryptoAuthModuleQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, CryptoAuthModuleSelect>; +}): Promise<{ + cryptoAuthModule: InferSelectResult | null; +}>; +export async function fetchCryptoAuthModuleQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .cryptoAuthModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single CryptoAuthModule for SSR or cache warming + * + * @example + * ```ts + * await prefetchCryptoAuthModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchCryptoAuthModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, CryptoAuthModuleSelect>; + } +): Promise; +export async function prefetchCryptoAuthModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: cryptoAuthModuleKeys.detail(params.id), + queryFn: () => + getClient() + .cryptoAuthModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useCryptoAuthModulesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useCryptoAuthModulesQuery.ts new file mode 100644 index 000000000..72f8f5da8 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useCryptoAuthModulesQuery.ts @@ -0,0 +1,163 @@ +/** + * List query hook for CryptoAuthModule + * @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 { cryptoAuthModuleKeys } from '../query-keys'; +import type { + CryptoAuthModuleSelect, + CryptoAuthModuleWithRelations, + CryptoAuthModuleFilter, + CryptoAuthModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + CryptoAuthModuleSelect, + CryptoAuthModuleWithRelations, + CryptoAuthModuleFilter, + CryptoAuthModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const cryptoAuthModulesQueryKey = cryptoAuthModuleKeys.list; +/** + * Query hook for fetching CryptoAuthModule list + * + * @example + * ```tsx + * const { data, isLoading } = useCryptoAuthModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useCryptoAuthModulesQuery< + S extends CryptoAuthModuleSelect, + TData = { + cryptoAuthModules: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, CryptoAuthModuleSelect>; + } & Omit< + UseQueryOptions< + { + cryptoAuthModules: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useCryptoAuthModulesQuery( + params: { + selection: ListSelectionConfig< + CryptoAuthModuleSelect, + CryptoAuthModuleFilter, + CryptoAuthModuleOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + CryptoAuthModuleSelect, + CryptoAuthModuleFilter, + CryptoAuthModuleOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: cryptoAuthModuleKeys.list(args), + queryFn: () => getClient().cryptoAuthModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch CryptoAuthModule list without React hooks + * + * @example + * ```ts + * const data = await fetchCryptoAuthModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchCryptoAuthModulesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, CryptoAuthModuleSelect>; +}): Promise<{ + cryptoAuthModules: ConnectionResult>; +}>; +export async function fetchCryptoAuthModulesQuery(params: { + selection: ListSelectionConfig< + CryptoAuthModuleSelect, + CryptoAuthModuleFilter, + CryptoAuthModuleOrderBy + >; +}) { + const args = buildListSelectionArgs< + CryptoAuthModuleSelect, + CryptoAuthModuleFilter, + CryptoAuthModuleOrderBy + >(params.selection); + return getClient().cryptoAuthModule.findMany(args).unwrap(); +} +/** + * Prefetch CryptoAuthModule list for SSR or cache warming + * + * @example + * ```ts + * await prefetchCryptoAuthModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchCryptoAuthModulesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, CryptoAuthModuleSelect>; + } +): Promise; +export async function prefetchCryptoAuthModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + CryptoAuthModuleSelect, + CryptoAuthModuleFilter, + CryptoAuthModuleOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + CryptoAuthModuleSelect, + CryptoAuthModuleFilter, + CryptoAuthModuleOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: cryptoAuthModuleKeys.list(args), + queryFn: () => getClient().cryptoAuthModule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useCurrentIpAddressQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useCurrentIpAddressQuery.ts new file mode 100644 index 000000000..525306e3b --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useCurrentIpAddressQuery.ts @@ -0,0 +1,90 @@ +/** + * Custom query hook for currentIpAddress + * @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'; +/** Query key factory - re-exported from query-keys.ts */ +export const currentIpAddressQueryKey = customQueryKeys.currentIpAddress; +/** + * Query hook for currentIpAddress + * + * @example + * ```tsx + * const { data, isLoading } = useCurrentIpAddressQuery(); + * + * if (data?.currentIpAddress) { + * console.log(data.currentIpAddress); + * } + * ``` + */ +export function useCurrentIpAddressQuery< + TData = { + currentIpAddress: string | null; + }, +>( + params?: Omit< + UseQueryOptions< + { + currentIpAddress: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useCurrentIpAddressQuery< + TData = { + currentIpAddress: string | null; + }, +>( + params?: Omit< + UseQueryOptions< + { + currentIpAddress: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult { + const queryOptions = params ?? {}; + return useQuery({ + queryKey: currentIpAddressQueryKey(), + queryFn: () => getClient().query.currentIpAddress().unwrap(), + ...queryOptions, + }); +} +/** + * Fetch currentIpAddress without React hooks + * + * @example + * ```ts + * const data = await fetchCurrentIpAddressQuery(); + * ``` + */ +export async function fetchCurrentIpAddressQuery() { + return getClient().query.currentIpAddress().unwrap(); +} +/** + * Prefetch currentIpAddress for SSR or cache warming + * + * @example + * ```ts + * await prefetchCurrentIpAddressQuery(queryClient); + * ``` + */ +export async function prefetchCurrentIpAddressQuery(queryClient: QueryClient): Promise { + await queryClient.prefetchQuery({ + queryKey: currentIpAddressQueryKey(), + queryFn: () => getClient().query.currentIpAddress().unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useCurrentUserAgentQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useCurrentUserAgentQuery.ts new file mode 100644 index 000000000..5a9c544d9 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useCurrentUserAgentQuery.ts @@ -0,0 +1,90 @@ +/** + * Custom query hook for currentUserAgent + * @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'; +/** Query key factory - re-exported from query-keys.ts */ +export const currentUserAgentQueryKey = customQueryKeys.currentUserAgent; +/** + * Query hook for currentUserAgent + * + * @example + * ```tsx + * const { data, isLoading } = useCurrentUserAgentQuery(); + * + * if (data?.currentUserAgent) { + * console.log(data.currentUserAgent); + * } + * ``` + */ +export function useCurrentUserAgentQuery< + TData = { + currentUserAgent: string | null; + }, +>( + params?: Omit< + UseQueryOptions< + { + currentUserAgent: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useCurrentUserAgentQuery< + TData = { + currentUserAgent: string | null; + }, +>( + params?: Omit< + UseQueryOptions< + { + currentUserAgent: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult { + const queryOptions = params ?? {}; + return useQuery({ + queryKey: currentUserAgentQueryKey(), + queryFn: () => getClient().query.currentUserAgent().unwrap(), + ...queryOptions, + }); +} +/** + * Fetch currentUserAgent without React hooks + * + * @example + * ```ts + * const data = await fetchCurrentUserAgentQuery(); + * ``` + */ +export async function fetchCurrentUserAgentQuery() { + return getClient().query.currentUserAgent().unwrap(); +} +/** + * Prefetch currentUserAgent for SSR or cache warming + * + * @example + * ```ts + * await prefetchCurrentUserAgentQuery(queryClient); + * ``` + */ +export async function prefetchCurrentUserAgentQuery(queryClient: QueryClient): Promise { + await queryClient.prefetchQuery({ + queryKey: currentUserAgentQueryKey(), + queryFn: () => getClient().query.currentUserAgent().unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useCurrentUserIdQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useCurrentUserIdQuery.ts new file mode 100644 index 000000000..5f65326cc --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useCurrentUserIdQuery.ts @@ -0,0 +1,90 @@ +/** + * Custom query hook for currentUserId + * @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'; +/** Query key factory - re-exported from query-keys.ts */ +export const currentUserIdQueryKey = customQueryKeys.currentUserId; +/** + * Query hook for currentUserId + * + * @example + * ```tsx + * const { data, isLoading } = useCurrentUserIdQuery(); + * + * if (data?.currentUserId) { + * console.log(data.currentUserId); + * } + * ``` + */ +export function useCurrentUserIdQuery< + TData = { + currentUserId: string | null; + }, +>( + params?: Omit< + UseQueryOptions< + { + currentUserId: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useCurrentUserIdQuery< + TData = { + currentUserId: string | null; + }, +>( + params?: Omit< + UseQueryOptions< + { + currentUserId: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult { + const queryOptions = params ?? {}; + return useQuery({ + queryKey: currentUserIdQueryKey(), + queryFn: () => getClient().query.currentUserId().unwrap(), + ...queryOptions, + }); +} +/** + * Fetch currentUserId without React hooks + * + * @example + * ```ts + * const data = await fetchCurrentUserIdQuery(); + * ``` + */ +export async function fetchCurrentUserIdQuery() { + return getClient().query.currentUserId().unwrap(); +} +/** + * Prefetch currentUserId for SSR or cache warming + * + * @example + * ```ts + * await prefetchCurrentUserIdQuery(queryClient); + * ``` + */ +export async function prefetchCurrentUserIdQuery(queryClient: QueryClient): Promise { + await queryClient.prefetchQuery({ + queryKey: currentUserIdQueryKey(), + queryFn: () => getClient().query.currentUserId().unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useCurrentUserQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useCurrentUserQuery.ts new file mode 100644 index 000000000..0bc463f03 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useCurrentUserQuery.ts @@ -0,0 +1,125 @@ +/** + * Custom query hook for currentUser + * @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 { UserSelect, User } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { UserSelect } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const currentUserQueryKey = customQueryKeys.currentUser; +/** + * Query hook for currentUser + * + * @example + * ```tsx + * const { data, isLoading } = useCurrentUserQuery({ selection: { fields: { id: true } } }); + * + * if (data?.currentUser) { + * console.log(data.currentUser); + * } + * ``` + */ +export function useCurrentUserQuery< + S extends UserSelect, + TData = { + currentUser: InferSelectResult | null; + }, +>( + params: { + selection: { + fields: S & UserSelect; + } & HookStrictSelect, UserSelect>; + } & Omit< + UseQueryOptions< + { + currentUser: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useCurrentUserQuery( + params: { + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: currentUserQueryKey(), + queryFn: () => + getClient() + .query.currentUser({ + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch currentUser without React hooks + * + * @example + * ```ts + * const data = await fetchCurrentUserQuery({ selection: { fields: { id: true } } }); + * ``` + */ +export async function fetchCurrentUserQuery(params: { + selection: { + fields: S & UserSelect; + } & HookStrictSelect, UserSelect>; +}): Promise<{ + currentUser: InferSelectResult | null; +}>; +export async function fetchCurrentUserQuery(params: { selection: SelectionConfig }) { + const args = buildSelectionArgs(params.selection); + return getClient() + .query.currentUser({ + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch currentUser for SSR or cache warming + * + * @example + * ```ts + * await prefetchCurrentUserQuery(queryClient, { selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchCurrentUserQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S & UserSelect; + } & HookStrictSelect, UserSelect>; + } +): Promise; +export async function prefetchCurrentUserQuery( + queryClient: QueryClient, + params: { + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: currentUserQueryKey(), + queryFn: () => + getClient() + .query.currentUser({ + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useDatabaseProvisionModuleQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useDatabaseProvisionModuleQuery.ts new file mode 100644 index 000000000..0899cb9b3 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useDatabaseProvisionModuleQuery.ts @@ -0,0 +1,146 @@ +/** + * Single item query hook for DatabaseProvisionModule + * @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 { databaseProvisionModuleKeys } from '../query-keys'; +import type { + DatabaseProvisionModuleSelect, + DatabaseProvisionModuleWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + DatabaseProvisionModuleSelect, + DatabaseProvisionModuleWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const databaseProvisionModuleQueryKey = databaseProvisionModuleKeys.detail; +/** + * Query hook for fetching a single DatabaseProvisionModule + * + * @example + * ```tsx + * const { data, isLoading } = useDatabaseProvisionModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useDatabaseProvisionModuleQuery< + S extends DatabaseProvisionModuleSelect, + TData = { + databaseProvisionModule: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DatabaseProvisionModuleSelect>; + } & Omit< + UseQueryOptions< + { + databaseProvisionModule: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useDatabaseProvisionModuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: databaseProvisionModuleKeys.detail(params.id), + queryFn: () => + getClient() + .databaseProvisionModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single DatabaseProvisionModule without React hooks + * + * @example + * ```ts + * const data = await fetchDatabaseProvisionModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchDatabaseProvisionModuleQuery< + S extends DatabaseProvisionModuleSelect, +>(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DatabaseProvisionModuleSelect>; +}): Promise<{ + databaseProvisionModule: InferSelectResult | null; +}>; +export async function fetchDatabaseProvisionModuleQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .databaseProvisionModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single DatabaseProvisionModule for SSR or cache warming + * + * @example + * ```ts + * await prefetchDatabaseProvisionModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchDatabaseProvisionModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DatabaseProvisionModuleSelect>; + } +): Promise; +export async function prefetchDatabaseProvisionModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: databaseProvisionModuleKeys.detail(params.id), + queryFn: () => + getClient() + .databaseProvisionModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useDatabaseProvisionModulesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useDatabaseProvisionModulesQuery.ts new file mode 100644 index 000000000..7c1c21c87 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useDatabaseProvisionModulesQuery.ts @@ -0,0 +1,182 @@ +/** + * List query hook for DatabaseProvisionModule + * @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 { databaseProvisionModuleKeys } from '../query-keys'; +import type { + DatabaseProvisionModuleSelect, + DatabaseProvisionModuleWithRelations, + DatabaseProvisionModuleFilter, + DatabaseProvisionModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + DatabaseProvisionModuleSelect, + DatabaseProvisionModuleWithRelations, + DatabaseProvisionModuleFilter, + DatabaseProvisionModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const databaseProvisionModulesQueryKey = databaseProvisionModuleKeys.list; +/** + * Query hook for fetching DatabaseProvisionModule list + * + * @example + * ```tsx + * const { data, isLoading } = useDatabaseProvisionModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useDatabaseProvisionModulesQuery< + S extends DatabaseProvisionModuleSelect, + TData = { + databaseProvisionModules: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, DatabaseProvisionModuleSelect>; + } & Omit< + UseQueryOptions< + { + databaseProvisionModules: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useDatabaseProvisionModulesQuery( + params: { + selection: ListSelectionConfig< + DatabaseProvisionModuleSelect, + DatabaseProvisionModuleFilter, + DatabaseProvisionModuleOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + DatabaseProvisionModuleSelect, + DatabaseProvisionModuleFilter, + DatabaseProvisionModuleOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: databaseProvisionModuleKeys.list(args), + queryFn: () => getClient().databaseProvisionModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch DatabaseProvisionModule list without React hooks + * + * @example + * ```ts + * const data = await fetchDatabaseProvisionModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchDatabaseProvisionModulesQuery< + S extends DatabaseProvisionModuleSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, DatabaseProvisionModuleSelect>; +}): Promise<{ + databaseProvisionModules: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchDatabaseProvisionModulesQuery(params: { + selection: ListSelectionConfig< + DatabaseProvisionModuleSelect, + DatabaseProvisionModuleFilter, + DatabaseProvisionModuleOrderBy + >; +}) { + const args = buildListSelectionArgs< + DatabaseProvisionModuleSelect, + DatabaseProvisionModuleFilter, + DatabaseProvisionModuleOrderBy + >(params.selection); + return getClient().databaseProvisionModule.findMany(args).unwrap(); +} +/** + * Prefetch DatabaseProvisionModule list for SSR or cache warming + * + * @example + * ```ts + * await prefetchDatabaseProvisionModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchDatabaseProvisionModulesQuery< + S extends DatabaseProvisionModuleSelect, +>( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, DatabaseProvisionModuleSelect>; + } +): Promise; +export async function prefetchDatabaseProvisionModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + DatabaseProvisionModuleSelect, + DatabaseProvisionModuleFilter, + DatabaseProvisionModuleOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + DatabaseProvisionModuleSelect, + DatabaseProvisionModuleFilter, + DatabaseProvisionModuleOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: databaseProvisionModuleKeys.list(args), + queryFn: () => getClient().databaseProvisionModule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useDatabaseQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useDatabaseQuery.ts new file mode 100644 index 000000000..79fc769b6 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useDatabaseQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for Database + * @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 { databaseKeys } from '../query-keys'; +import type { DatabaseSelect, DatabaseWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { DatabaseSelect, DatabaseWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const databaseQueryKey = databaseKeys.detail; +/** + * Query hook for fetching a single Database + * + * @example + * ```tsx + * const { data, isLoading } = useDatabaseQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useDatabaseQuery< + S extends DatabaseSelect, + TData = { + database: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DatabaseSelect>; + } & Omit< + UseQueryOptions< + { + database: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useDatabaseQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: databaseKeys.detail(params.id), + queryFn: () => + getClient() + .database.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single Database without React hooks + * + * @example + * ```ts + * const data = await fetchDatabaseQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchDatabaseQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DatabaseSelect>; +}): Promise<{ + database: InferSelectResult | null; +}>; +export async function fetchDatabaseQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .database.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single Database for SSR or cache warming + * + * @example + * ```ts + * await prefetchDatabaseQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchDatabaseQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DatabaseSelect>; + } +): Promise; +export async function prefetchDatabaseQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: databaseKeys.detail(params.id), + queryFn: () => + getClient() + .database.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useDatabasesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useDatabasesQuery.ts new file mode 100644 index 000000000..c45a9af99 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useDatabasesQuery.ts @@ -0,0 +1,145 @@ +/** + * List query hook for Database + * @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 { databaseKeys } from '../query-keys'; +import type { + DatabaseSelect, + DatabaseWithRelations, + DatabaseFilter, + DatabaseOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + DatabaseSelect, + DatabaseWithRelations, + DatabaseFilter, + DatabaseOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const databasesQueryKey = databaseKeys.list; +/** + * Query hook for fetching Database list + * + * @example + * ```tsx + * const { data, isLoading } = useDatabasesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useDatabasesQuery< + S extends DatabaseSelect, + TData = { + databases: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, DatabaseSelect>; + } & Omit< + UseQueryOptions< + { + databases: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useDatabasesQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: databaseKeys.list(args), + queryFn: () => getClient().database.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch Database list without React hooks + * + * @example + * ```ts + * const data = await fetchDatabasesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchDatabasesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, DatabaseSelect>; +}): Promise<{ + databases: ConnectionResult>; +}>; +export async function fetchDatabasesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().database.findMany(args).unwrap(); +} +/** + * Prefetch Database list for SSR or cache warming + * + * @example + * ```ts + * await prefetchDatabasesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchDatabasesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, DatabaseSelect>; + } +): Promise; +export async function prefetchDatabasesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: databaseKeys.list(args), + queryFn: () => getClient().database.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useDefaultIdsModuleQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useDefaultIdsModuleQuery.ts new file mode 100644 index 000000000..ef5f72f46 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useDefaultIdsModuleQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for DefaultIdsModule + * @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 { defaultIdsModuleKeys } from '../query-keys'; +import type { DefaultIdsModuleSelect, DefaultIdsModuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { DefaultIdsModuleSelect, DefaultIdsModuleWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const defaultIdsModuleQueryKey = defaultIdsModuleKeys.detail; +/** + * Query hook for fetching a single DefaultIdsModule + * + * @example + * ```tsx + * const { data, isLoading } = useDefaultIdsModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useDefaultIdsModuleQuery< + S extends DefaultIdsModuleSelect, + TData = { + defaultIdsModule: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DefaultIdsModuleSelect>; + } & Omit< + UseQueryOptions< + { + defaultIdsModule: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useDefaultIdsModuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: defaultIdsModuleKeys.detail(params.id), + queryFn: () => + getClient() + .defaultIdsModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single DefaultIdsModule without React hooks + * + * @example + * ```ts + * const data = await fetchDefaultIdsModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchDefaultIdsModuleQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DefaultIdsModuleSelect>; +}): Promise<{ + defaultIdsModule: InferSelectResult | null; +}>; +export async function fetchDefaultIdsModuleQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .defaultIdsModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single DefaultIdsModule for SSR or cache warming + * + * @example + * ```ts + * await prefetchDefaultIdsModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchDefaultIdsModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DefaultIdsModuleSelect>; + } +): Promise; +export async function prefetchDefaultIdsModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: defaultIdsModuleKeys.detail(params.id), + queryFn: () => + getClient() + .defaultIdsModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useDefaultIdsModulesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useDefaultIdsModulesQuery.ts new file mode 100644 index 000000000..f6c5a2598 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useDefaultIdsModulesQuery.ts @@ -0,0 +1,163 @@ +/** + * List query hook for DefaultIdsModule + * @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 { defaultIdsModuleKeys } from '../query-keys'; +import type { + DefaultIdsModuleSelect, + DefaultIdsModuleWithRelations, + DefaultIdsModuleFilter, + DefaultIdsModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + DefaultIdsModuleSelect, + DefaultIdsModuleWithRelations, + DefaultIdsModuleFilter, + DefaultIdsModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const defaultIdsModulesQueryKey = defaultIdsModuleKeys.list; +/** + * Query hook for fetching DefaultIdsModule list + * + * @example + * ```tsx + * const { data, isLoading } = useDefaultIdsModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useDefaultIdsModulesQuery< + S extends DefaultIdsModuleSelect, + TData = { + defaultIdsModules: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, DefaultIdsModuleSelect>; + } & Omit< + UseQueryOptions< + { + defaultIdsModules: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useDefaultIdsModulesQuery( + params: { + selection: ListSelectionConfig< + DefaultIdsModuleSelect, + DefaultIdsModuleFilter, + DefaultIdsModuleOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + DefaultIdsModuleSelect, + DefaultIdsModuleFilter, + DefaultIdsModuleOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: defaultIdsModuleKeys.list(args), + queryFn: () => getClient().defaultIdsModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch DefaultIdsModule list without React hooks + * + * @example + * ```ts + * const data = await fetchDefaultIdsModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchDefaultIdsModulesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, DefaultIdsModuleSelect>; +}): Promise<{ + defaultIdsModules: ConnectionResult>; +}>; +export async function fetchDefaultIdsModulesQuery(params: { + selection: ListSelectionConfig< + DefaultIdsModuleSelect, + DefaultIdsModuleFilter, + DefaultIdsModuleOrderBy + >; +}) { + const args = buildListSelectionArgs< + DefaultIdsModuleSelect, + DefaultIdsModuleFilter, + DefaultIdsModuleOrderBy + >(params.selection); + return getClient().defaultIdsModule.findMany(args).unwrap(); +} +/** + * Prefetch DefaultIdsModule list for SSR or cache warming + * + * @example + * ```ts + * await prefetchDefaultIdsModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchDefaultIdsModulesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, DefaultIdsModuleSelect>; + } +): Promise; +export async function prefetchDefaultIdsModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + DefaultIdsModuleSelect, + DefaultIdsModuleFilter, + DefaultIdsModuleOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + DefaultIdsModuleSelect, + DefaultIdsModuleFilter, + DefaultIdsModuleOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: defaultIdsModuleKeys.list(args), + queryFn: () => getClient().defaultIdsModule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useDenormalizedTableFieldQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useDenormalizedTableFieldQuery.ts new file mode 100644 index 000000000..e5603b4cc --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useDenormalizedTableFieldQuery.ts @@ -0,0 +1,146 @@ +/** + * Single item query hook for DenormalizedTableField + * @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 { denormalizedTableFieldKeys } from '../query-keys'; +import type { + DenormalizedTableFieldSelect, + DenormalizedTableFieldWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + DenormalizedTableFieldSelect, + DenormalizedTableFieldWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const denormalizedTableFieldQueryKey = denormalizedTableFieldKeys.detail; +/** + * Query hook for fetching a single DenormalizedTableField + * + * @example + * ```tsx + * const { data, isLoading } = useDenormalizedTableFieldQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useDenormalizedTableFieldQuery< + S extends DenormalizedTableFieldSelect, + TData = { + denormalizedTableField: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DenormalizedTableFieldSelect>; + } & Omit< + UseQueryOptions< + { + denormalizedTableField: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useDenormalizedTableFieldQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: denormalizedTableFieldKeys.detail(params.id), + queryFn: () => + getClient() + .denormalizedTableField.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single DenormalizedTableField without React hooks + * + * @example + * ```ts + * const data = await fetchDenormalizedTableFieldQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchDenormalizedTableFieldQuery< + S extends DenormalizedTableFieldSelect, +>(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DenormalizedTableFieldSelect>; +}): Promise<{ + denormalizedTableField: InferSelectResult | null; +}>; +export async function fetchDenormalizedTableFieldQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .denormalizedTableField.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single DenormalizedTableField for SSR or cache warming + * + * @example + * ```ts + * await prefetchDenormalizedTableFieldQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchDenormalizedTableFieldQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DenormalizedTableFieldSelect>; + } +): Promise; +export async function prefetchDenormalizedTableFieldQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: denormalizedTableFieldKeys.detail(params.id), + queryFn: () => + getClient() + .denormalizedTableField.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useDenormalizedTableFieldsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useDenormalizedTableFieldsQuery.ts new file mode 100644 index 000000000..d83bc9487 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useDenormalizedTableFieldsQuery.ts @@ -0,0 +1,180 @@ +/** + * List query hook for DenormalizedTableField + * @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 { denormalizedTableFieldKeys } from '../query-keys'; +import type { + DenormalizedTableFieldSelect, + DenormalizedTableFieldWithRelations, + DenormalizedTableFieldFilter, + DenormalizedTableFieldOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + DenormalizedTableFieldSelect, + DenormalizedTableFieldWithRelations, + DenormalizedTableFieldFilter, + DenormalizedTableFieldOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const denormalizedTableFieldsQueryKey = denormalizedTableFieldKeys.list; +/** + * Query hook for fetching DenormalizedTableField list + * + * @example + * ```tsx + * const { data, isLoading } = useDenormalizedTableFieldsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useDenormalizedTableFieldsQuery< + S extends DenormalizedTableFieldSelect, + TData = { + denormalizedTableFields: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, DenormalizedTableFieldSelect>; + } & Omit< + UseQueryOptions< + { + denormalizedTableFields: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useDenormalizedTableFieldsQuery( + params: { + selection: ListSelectionConfig< + DenormalizedTableFieldSelect, + DenormalizedTableFieldFilter, + DenormalizedTableFieldOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + DenormalizedTableFieldSelect, + DenormalizedTableFieldFilter, + DenormalizedTableFieldOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: denormalizedTableFieldKeys.list(args), + queryFn: () => getClient().denormalizedTableField.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch DenormalizedTableField list without React hooks + * + * @example + * ```ts + * const data = await fetchDenormalizedTableFieldsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchDenormalizedTableFieldsQuery< + S extends DenormalizedTableFieldSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, DenormalizedTableFieldSelect>; +}): Promise<{ + denormalizedTableFields: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchDenormalizedTableFieldsQuery(params: { + selection: ListSelectionConfig< + DenormalizedTableFieldSelect, + DenormalizedTableFieldFilter, + DenormalizedTableFieldOrderBy + >; +}) { + const args = buildListSelectionArgs< + DenormalizedTableFieldSelect, + DenormalizedTableFieldFilter, + DenormalizedTableFieldOrderBy + >(params.selection); + return getClient().denormalizedTableField.findMany(args).unwrap(); +} +/** + * Prefetch DenormalizedTableField list for SSR or cache warming + * + * @example + * ```ts + * await prefetchDenormalizedTableFieldsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchDenormalizedTableFieldsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, DenormalizedTableFieldSelect>; + } +): Promise; +export async function prefetchDenormalizedTableFieldsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + DenormalizedTableFieldSelect, + DenormalizedTableFieldFilter, + DenormalizedTableFieldOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + DenormalizedTableFieldSelect, + DenormalizedTableFieldFilter, + DenormalizedTableFieldOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: denormalizedTableFieldKeys.list(args), + queryFn: () => getClient().denormalizedTableField.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 new file mode 100644 index 000000000..ca7e69348 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useDomainQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for Domain + * @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 { domainKeys } from '../query-keys'; +import type { DomainSelect, DomainWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +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 + * + * @example + * ```tsx + * const { data, isLoading } = useDomainQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useDomainQuery< + S extends DomainSelect, + TData = { + domain: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DomainSelect>; + } & Omit< + UseQueryOptions< + { + domain: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useDomainQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: domainKeys.detail(params.id), + queryFn: () => + getClient() + .domain.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single Domain without React hooks + * + * @example + * ```ts + * const data = await fetchDomainQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchDomainQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DomainSelect>; +}): Promise<{ + domain: InferSelectResult | null; +}>; +export async function fetchDomainQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .domain.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single Domain for SSR or cache warming + * + * @example + * ```ts + * await prefetchDomainQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchDomainQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DomainSelect>; + } +): Promise; +export async function prefetchDomainQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: domainKeys.detail(params.id), + queryFn: () => + getClient() + .domain.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useDomainsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useDomainsQuery.ts new file mode 100644 index 000000000..02804c8fb --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useDomainsQuery.ts @@ -0,0 +1,139 @@ +/** + * List query hook for Domain + * @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 { domainKeys } from '../query-keys'; +import type { + DomainSelect, + DomainWithRelations, + DomainFilter, + DomainOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + DomainSelect, + DomainWithRelations, + DomainFilter, + DomainOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const domainsQueryKey = domainKeys.list; +/** + * Query hook for fetching Domain list + * + * @example + * ```tsx + * const { data, isLoading } = useDomainsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useDomainsQuery< + S extends DomainSelect, + TData = { + domains: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, DomainSelect>; + } & Omit< + UseQueryOptions< + { + domains: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useDomainsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: domainKeys.list(args), + queryFn: () => getClient().domain.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch Domain list without React hooks + * + * @example + * ```ts + * const data = await fetchDomainsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchDomainsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, DomainSelect>; +}): Promise<{ + domains: ConnectionResult>; +}>; +export async function fetchDomainsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs(params.selection); + return getClient().domain.findMany(args).unwrap(); +} +/** + * Prefetch Domain list for SSR or cache warming + * + * @example + * ```ts + * await prefetchDomainsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchDomainsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, DomainSelect>; + } +): Promise; +export async function prefetchDomainsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: domainKeys.list(args), + queryFn: () => getClient().domain.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useEmailQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useEmailQuery.ts new file mode 100644 index 000000000..d954e6328 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useEmailQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for Email + * @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 { emailKeys } from '../query-keys'; +import type { EmailSelect, EmailWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +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 + * + * @example + * ```tsx + * const { data, isLoading } = useEmailQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useEmailQuery< + S extends EmailSelect, + TData = { + email: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, EmailSelect>; + } & Omit< + UseQueryOptions< + { + email: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useEmailQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: emailKeys.detail(params.id), + queryFn: () => + getClient() + .email.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single Email without React hooks + * + * @example + * ```ts + * const data = await fetchEmailQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchEmailQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, EmailSelect>; +}): Promise<{ + email: InferSelectResult | null; +}>; +export async function fetchEmailQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .email.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single Email for SSR or cache warming + * + * @example + * ```ts + * await prefetchEmailQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchEmailQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, EmailSelect>; + } +): Promise; +export async function prefetchEmailQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: emailKeys.detail(params.id), + queryFn: () => + getClient() + .email.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useEmailsModuleQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useEmailsModuleQuery.ts new file mode 100644 index 000000000..8a20f5371 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useEmailsModuleQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for EmailsModule + * @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 { emailsModuleKeys } from '../query-keys'; +import type { EmailsModuleSelect, EmailsModuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { EmailsModuleSelect, EmailsModuleWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const emailsModuleQueryKey = emailsModuleKeys.detail; +/** + * Query hook for fetching a single EmailsModule + * + * @example + * ```tsx + * const { data, isLoading } = useEmailsModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useEmailsModuleQuery< + S extends EmailsModuleSelect, + TData = { + emailsModule: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, EmailsModuleSelect>; + } & Omit< + UseQueryOptions< + { + emailsModule: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useEmailsModuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: emailsModuleKeys.detail(params.id), + queryFn: () => + getClient() + .emailsModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single EmailsModule without React hooks + * + * @example + * ```ts + * const data = await fetchEmailsModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchEmailsModuleQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, EmailsModuleSelect>; +}): Promise<{ + emailsModule: InferSelectResult | null; +}>; +export async function fetchEmailsModuleQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .emailsModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single EmailsModule for SSR or cache warming + * + * @example + * ```ts + * await prefetchEmailsModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchEmailsModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, EmailsModuleSelect>; + } +): Promise; +export async function prefetchEmailsModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: emailsModuleKeys.detail(params.id), + queryFn: () => + getClient() + .emailsModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useEmailsModulesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useEmailsModulesQuery.ts new file mode 100644 index 000000000..d14bbb8d6 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useEmailsModulesQuery.ts @@ -0,0 +1,145 @@ +/** + * List query hook for EmailsModule + * @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 { emailsModuleKeys } from '../query-keys'; +import type { + EmailsModuleSelect, + EmailsModuleWithRelations, + EmailsModuleFilter, + EmailsModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + EmailsModuleSelect, + EmailsModuleWithRelations, + EmailsModuleFilter, + EmailsModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const emailsModulesQueryKey = emailsModuleKeys.list; +/** + * Query hook for fetching EmailsModule list + * + * @example + * ```tsx + * const { data, isLoading } = useEmailsModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useEmailsModulesQuery< + S extends EmailsModuleSelect, + TData = { + emailsModules: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, EmailsModuleSelect>; + } & Omit< + UseQueryOptions< + { + emailsModules: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useEmailsModulesQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: emailsModuleKeys.list(args), + queryFn: () => getClient().emailsModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch EmailsModule list without React hooks + * + * @example + * ```ts + * const data = await fetchEmailsModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchEmailsModulesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, EmailsModuleSelect>; +}): Promise<{ + emailsModules: ConnectionResult>; +}>; +export async function fetchEmailsModulesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().emailsModule.findMany(args).unwrap(); +} +/** + * Prefetch EmailsModule list for SSR or cache warming + * + * @example + * ```ts + * await prefetchEmailsModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchEmailsModulesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, EmailsModuleSelect>; + } +): Promise; +export async function prefetchEmailsModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: emailsModuleKeys.list(args), + queryFn: () => getClient().emailsModule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useEmailsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useEmailsQuery.ts new file mode 100644 index 000000000..1dca30b06 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useEmailsQuery.ts @@ -0,0 +1,139 @@ +/** + * List query hook for Email + * @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 { emailKeys } from '../query-keys'; +import type { + EmailSelect, + EmailWithRelations, + EmailFilter, + EmailOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + EmailSelect, + EmailWithRelations, + EmailFilter, + EmailOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const emailsQueryKey = emailKeys.list; +/** + * Query hook for fetching Email list + * + * @example + * ```tsx + * const { data, isLoading } = useEmailsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useEmailsQuery< + S extends EmailSelect, + TData = { + emails: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, EmailSelect>; + } & Omit< + UseQueryOptions< + { + emails: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useEmailsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: emailKeys.list(args), + queryFn: () => getClient().email.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch Email list without React hooks + * + * @example + * ```ts + * const data = await fetchEmailsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchEmailsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, EmailSelect>; +}): Promise<{ + emails: ConnectionResult>; +}>; +export async function fetchEmailsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs(params.selection); + return getClient().email.findMany(args).unwrap(); +} +/** + * Prefetch Email list for SSR or cache warming + * + * @example + * ```ts + * await prefetchEmailsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchEmailsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, EmailSelect>; + } +): Promise; +export async function prefetchEmailsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: emailKeys.list(args), + queryFn: () => getClient().email.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useEncryptedSecretsModuleQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useEncryptedSecretsModuleQuery.ts new file mode 100644 index 000000000..82f923374 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useEncryptedSecretsModuleQuery.ts @@ -0,0 +1,146 @@ +/** + * Single item query hook for EncryptedSecretsModule + * @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 { encryptedSecretsModuleKeys } from '../query-keys'; +import type { + EncryptedSecretsModuleSelect, + EncryptedSecretsModuleWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + EncryptedSecretsModuleSelect, + EncryptedSecretsModuleWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const encryptedSecretsModuleQueryKey = encryptedSecretsModuleKeys.detail; +/** + * Query hook for fetching a single EncryptedSecretsModule + * + * @example + * ```tsx + * const { data, isLoading } = useEncryptedSecretsModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useEncryptedSecretsModuleQuery< + S extends EncryptedSecretsModuleSelect, + TData = { + encryptedSecretsModule: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, EncryptedSecretsModuleSelect>; + } & Omit< + UseQueryOptions< + { + encryptedSecretsModule: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useEncryptedSecretsModuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: encryptedSecretsModuleKeys.detail(params.id), + queryFn: () => + getClient() + .encryptedSecretsModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single EncryptedSecretsModule without React hooks + * + * @example + * ```ts + * const data = await fetchEncryptedSecretsModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchEncryptedSecretsModuleQuery< + S extends EncryptedSecretsModuleSelect, +>(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, EncryptedSecretsModuleSelect>; +}): Promise<{ + encryptedSecretsModule: InferSelectResult | null; +}>; +export async function fetchEncryptedSecretsModuleQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .encryptedSecretsModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single EncryptedSecretsModule for SSR or cache warming + * + * @example + * ```ts + * await prefetchEncryptedSecretsModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchEncryptedSecretsModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, EncryptedSecretsModuleSelect>; + } +): Promise; +export async function prefetchEncryptedSecretsModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: encryptedSecretsModuleKeys.detail(params.id), + queryFn: () => + getClient() + .encryptedSecretsModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useEncryptedSecretsModulesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useEncryptedSecretsModulesQuery.ts new file mode 100644 index 000000000..c1f7bab93 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useEncryptedSecretsModulesQuery.ts @@ -0,0 +1,180 @@ +/** + * List query hook for EncryptedSecretsModule + * @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 { encryptedSecretsModuleKeys } from '../query-keys'; +import type { + EncryptedSecretsModuleSelect, + EncryptedSecretsModuleWithRelations, + EncryptedSecretsModuleFilter, + EncryptedSecretsModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + EncryptedSecretsModuleSelect, + EncryptedSecretsModuleWithRelations, + EncryptedSecretsModuleFilter, + EncryptedSecretsModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const encryptedSecretsModulesQueryKey = encryptedSecretsModuleKeys.list; +/** + * Query hook for fetching EncryptedSecretsModule list + * + * @example + * ```tsx + * const { data, isLoading } = useEncryptedSecretsModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useEncryptedSecretsModulesQuery< + S extends EncryptedSecretsModuleSelect, + TData = { + encryptedSecretsModules: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, EncryptedSecretsModuleSelect>; + } & Omit< + UseQueryOptions< + { + encryptedSecretsModules: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useEncryptedSecretsModulesQuery( + params: { + selection: ListSelectionConfig< + EncryptedSecretsModuleSelect, + EncryptedSecretsModuleFilter, + EncryptedSecretsModuleOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + EncryptedSecretsModuleSelect, + EncryptedSecretsModuleFilter, + EncryptedSecretsModuleOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: encryptedSecretsModuleKeys.list(args), + queryFn: () => getClient().encryptedSecretsModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch EncryptedSecretsModule list without React hooks + * + * @example + * ```ts + * const data = await fetchEncryptedSecretsModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchEncryptedSecretsModulesQuery< + S extends EncryptedSecretsModuleSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, EncryptedSecretsModuleSelect>; +}): Promise<{ + encryptedSecretsModules: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchEncryptedSecretsModulesQuery(params: { + selection: ListSelectionConfig< + EncryptedSecretsModuleSelect, + EncryptedSecretsModuleFilter, + EncryptedSecretsModuleOrderBy + >; +}) { + const args = buildListSelectionArgs< + EncryptedSecretsModuleSelect, + EncryptedSecretsModuleFilter, + EncryptedSecretsModuleOrderBy + >(params.selection); + return getClient().encryptedSecretsModule.findMany(args).unwrap(); +} +/** + * Prefetch EncryptedSecretsModule list for SSR or cache warming + * + * @example + * ```ts + * await prefetchEncryptedSecretsModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchEncryptedSecretsModulesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, EncryptedSecretsModuleSelect>; + } +): Promise; +export async function prefetchEncryptedSecretsModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + EncryptedSecretsModuleSelect, + EncryptedSecretsModuleFilter, + EncryptedSecretsModuleOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + EncryptedSecretsModuleSelect, + EncryptedSecretsModuleFilter, + EncryptedSecretsModuleOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: encryptedSecretsModuleKeys.list(args), + queryFn: () => getClient().encryptedSecretsModule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useFieldModuleQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useFieldModuleQuery.ts new file mode 100644 index 000000000..ed460cca9 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useFieldModuleQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for FieldModule + * @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 { fieldModuleKeys } from '../query-keys'; +import type { FieldModuleSelect, FieldModuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { FieldModuleSelect, FieldModuleWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const fieldModuleQueryKey = fieldModuleKeys.detail; +/** + * Query hook for fetching a single FieldModule + * + * @example + * ```tsx + * const { data, isLoading } = useFieldModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useFieldModuleQuery< + S extends FieldModuleSelect, + TData = { + fieldModule: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, FieldModuleSelect>; + } & Omit< + UseQueryOptions< + { + fieldModule: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useFieldModuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: fieldModuleKeys.detail(params.id), + queryFn: () => + getClient() + .fieldModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single FieldModule without React hooks + * + * @example + * ```ts + * const data = await fetchFieldModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchFieldModuleQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, FieldModuleSelect>; +}): Promise<{ + fieldModule: InferSelectResult | null; +}>; +export async function fetchFieldModuleQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .fieldModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single FieldModule for SSR or cache warming + * + * @example + * ```ts + * await prefetchFieldModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchFieldModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, FieldModuleSelect>; + } +): Promise; +export async function prefetchFieldModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: fieldModuleKeys.detail(params.id), + queryFn: () => + getClient() + .fieldModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useFieldModulesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useFieldModulesQuery.ts new file mode 100644 index 000000000..161146945 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useFieldModulesQuery.ts @@ -0,0 +1,145 @@ +/** + * List query hook for FieldModule + * @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 { fieldModuleKeys } from '../query-keys'; +import type { + FieldModuleSelect, + FieldModuleWithRelations, + FieldModuleFilter, + FieldModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + FieldModuleSelect, + FieldModuleWithRelations, + FieldModuleFilter, + FieldModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const fieldModulesQueryKey = fieldModuleKeys.list; +/** + * Query hook for fetching FieldModule list + * + * @example + * ```tsx + * const { data, isLoading } = useFieldModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useFieldModulesQuery< + S extends FieldModuleSelect, + TData = { + fieldModules: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, FieldModuleSelect>; + } & Omit< + UseQueryOptions< + { + fieldModules: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useFieldModulesQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: fieldModuleKeys.list(args), + queryFn: () => getClient().fieldModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch FieldModule list without React hooks + * + * @example + * ```ts + * const data = await fetchFieldModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchFieldModulesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, FieldModuleSelect>; +}): Promise<{ + fieldModules: ConnectionResult>; +}>; +export async function fetchFieldModulesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().fieldModule.findMany(args).unwrap(); +} +/** + * Prefetch FieldModule list for SSR or cache warming + * + * @example + * ```ts + * await prefetchFieldModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchFieldModulesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, FieldModuleSelect>; + } +): Promise; +export async function prefetchFieldModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: fieldModuleKeys.list(args), + queryFn: () => getClient().fieldModule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useFieldQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useFieldQuery.ts new file mode 100644 index 000000000..3227d14eb --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useFieldQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for Field + * @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 { fieldKeys } from '../query-keys'; +import type { FieldSelect, FieldWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { FieldSelect, FieldWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const fieldQueryKey = fieldKeys.detail; +/** + * Query hook for fetching a single Field + * + * @example + * ```tsx + * const { data, isLoading } = useFieldQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useFieldQuery< + S extends FieldSelect, + TData = { + field: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, FieldSelect>; + } & Omit< + UseQueryOptions< + { + field: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useFieldQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: fieldKeys.detail(params.id), + queryFn: () => + getClient() + .field.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single Field without React hooks + * + * @example + * ```ts + * const data = await fetchFieldQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchFieldQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, FieldSelect>; +}): Promise<{ + field: InferSelectResult | null; +}>; +export async function fetchFieldQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .field.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single Field for SSR or cache warming + * + * @example + * ```ts + * await prefetchFieldQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchFieldQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, FieldSelect>; + } +): Promise; +export async function prefetchFieldQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: fieldKeys.detail(params.id), + queryFn: () => + getClient() + .field.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useFieldsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useFieldsQuery.ts new file mode 100644 index 000000000..045808747 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useFieldsQuery.ts @@ -0,0 +1,139 @@ +/** + * List query hook for Field + * @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 { fieldKeys } from '../query-keys'; +import type { + FieldSelect, + FieldWithRelations, + FieldFilter, + FieldOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + FieldSelect, + FieldWithRelations, + FieldFilter, + FieldOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const fieldsQueryKey = fieldKeys.list; +/** + * Query hook for fetching Field list + * + * @example + * ```tsx + * const { data, isLoading } = useFieldsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useFieldsQuery< + S extends FieldSelect, + TData = { + fields: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, FieldSelect>; + } & Omit< + UseQueryOptions< + { + fields: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useFieldsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: fieldKeys.list(args), + queryFn: () => getClient().field.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch Field list without React hooks + * + * @example + * ```ts + * const data = await fetchFieldsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchFieldsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, FieldSelect>; +}): Promise<{ + fields: ConnectionResult>; +}>; +export async function fetchFieldsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs(params.selection); + return getClient().field.findMany(args).unwrap(); +} +/** + * Prefetch Field list for SSR or cache warming + * + * @example + * ```ts + * await prefetchFieldsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchFieldsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, FieldSelect>; + } +): Promise; +export async function prefetchFieldsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: fieldKeys.list(args), + queryFn: () => getClient().field.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useForeignKeyConstraintQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useForeignKeyConstraintQuery.ts new file mode 100644 index 000000000..54dc67c50 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useForeignKeyConstraintQuery.ts @@ -0,0 +1,144 @@ +/** + * Single item query hook for ForeignKeyConstraint + * @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 { foreignKeyConstraintKeys } from '../query-keys'; +import type { + ForeignKeyConstraintSelect, + ForeignKeyConstraintWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ForeignKeyConstraintSelect, + ForeignKeyConstraintWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const foreignKeyConstraintQueryKey = foreignKeyConstraintKeys.detail; +/** + * Query hook for fetching a single ForeignKeyConstraint + * + * @example + * ```tsx + * const { data, isLoading } = useForeignKeyConstraintQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useForeignKeyConstraintQuery< + S extends ForeignKeyConstraintSelect, + TData = { + foreignKeyConstraint: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ForeignKeyConstraintSelect>; + } & Omit< + UseQueryOptions< + { + foreignKeyConstraint: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useForeignKeyConstraintQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: foreignKeyConstraintKeys.detail(params.id), + queryFn: () => + getClient() + .foreignKeyConstraint.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single ForeignKeyConstraint without React hooks + * + * @example + * ```ts + * const data = await fetchForeignKeyConstraintQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchForeignKeyConstraintQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ForeignKeyConstraintSelect>; +}): Promise<{ + foreignKeyConstraint: InferSelectResult | null; +}>; +export async function fetchForeignKeyConstraintQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .foreignKeyConstraint.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single ForeignKeyConstraint for SSR or cache warming + * + * @example + * ```ts + * await prefetchForeignKeyConstraintQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchForeignKeyConstraintQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ForeignKeyConstraintSelect>; + } +): Promise; +export async function prefetchForeignKeyConstraintQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: foreignKeyConstraintKeys.detail(params.id), + queryFn: () => + getClient() + .foreignKeyConstraint.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useForeignKeyConstraintsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useForeignKeyConstraintsQuery.ts new file mode 100644 index 000000000..65b22f054 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useForeignKeyConstraintsQuery.ts @@ -0,0 +1,178 @@ +/** + * List query hook for ForeignKeyConstraint + * @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 { foreignKeyConstraintKeys } from '../query-keys'; +import type { + ForeignKeyConstraintSelect, + ForeignKeyConstraintWithRelations, + ForeignKeyConstraintFilter, + ForeignKeyConstraintOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + ForeignKeyConstraintSelect, + ForeignKeyConstraintWithRelations, + ForeignKeyConstraintFilter, + ForeignKeyConstraintOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const foreignKeyConstraintsQueryKey = foreignKeyConstraintKeys.list; +/** + * Query hook for fetching ForeignKeyConstraint list + * + * @example + * ```tsx + * const { data, isLoading } = useForeignKeyConstraintsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useForeignKeyConstraintsQuery< + S extends ForeignKeyConstraintSelect, + TData = { + foreignKeyConstraints: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, ForeignKeyConstraintSelect>; + } & Omit< + UseQueryOptions< + { + foreignKeyConstraints: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useForeignKeyConstraintsQuery( + params: { + selection: ListSelectionConfig< + ForeignKeyConstraintSelect, + ForeignKeyConstraintFilter, + ForeignKeyConstraintOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + ForeignKeyConstraintSelect, + ForeignKeyConstraintFilter, + ForeignKeyConstraintOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: foreignKeyConstraintKeys.list(args), + queryFn: () => getClient().foreignKeyConstraint.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch ForeignKeyConstraint list without React hooks + * + * @example + * ```ts + * const data = await fetchForeignKeyConstraintsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchForeignKeyConstraintsQuery< + S extends ForeignKeyConstraintSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, ForeignKeyConstraintSelect>; +}): Promise<{ + foreignKeyConstraints: ConnectionResult>; +}>; +export async function fetchForeignKeyConstraintsQuery(params: { + selection: ListSelectionConfig< + ForeignKeyConstraintSelect, + ForeignKeyConstraintFilter, + ForeignKeyConstraintOrderBy + >; +}) { + const args = buildListSelectionArgs< + ForeignKeyConstraintSelect, + ForeignKeyConstraintFilter, + ForeignKeyConstraintOrderBy + >(params.selection); + return getClient().foreignKeyConstraint.findMany(args).unwrap(); +} +/** + * Prefetch ForeignKeyConstraint list for SSR or cache warming + * + * @example + * ```ts + * await prefetchForeignKeyConstraintsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchForeignKeyConstraintsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, ForeignKeyConstraintSelect>; + } +): Promise; +export async function prefetchForeignKeyConstraintsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + ForeignKeyConstraintSelect, + ForeignKeyConstraintFilter, + ForeignKeyConstraintOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + ForeignKeyConstraintSelect, + ForeignKeyConstraintFilter, + ForeignKeyConstraintOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: foreignKeyConstraintKeys.list(args), + queryFn: () => getClient().foreignKeyConstraint.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useFullTextSearchQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useFullTextSearchQuery.ts new file mode 100644 index 000000000..2f1b7d54d --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useFullTextSearchQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for FullTextSearch + * @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 { fullTextSearchKeys } from '../query-keys'; +import type { FullTextSearchSelect, FullTextSearchWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { FullTextSearchSelect, FullTextSearchWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const fullTextSearchQueryKey = fullTextSearchKeys.detail; +/** + * Query hook for fetching a single FullTextSearch + * + * @example + * ```tsx + * const { data, isLoading } = useFullTextSearchQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useFullTextSearchQuery< + S extends FullTextSearchSelect, + TData = { + fullTextSearch: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, FullTextSearchSelect>; + } & Omit< + UseQueryOptions< + { + fullTextSearch: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useFullTextSearchQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: fullTextSearchKeys.detail(params.id), + queryFn: () => + getClient() + .fullTextSearch.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single FullTextSearch without React hooks + * + * @example + * ```ts + * const data = await fetchFullTextSearchQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchFullTextSearchQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, FullTextSearchSelect>; +}): Promise<{ + fullTextSearch: InferSelectResult | null; +}>; +export async function fetchFullTextSearchQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .fullTextSearch.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single FullTextSearch for SSR or cache warming + * + * @example + * ```ts + * await prefetchFullTextSearchQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchFullTextSearchQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, FullTextSearchSelect>; + } +): Promise; +export async function prefetchFullTextSearchQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: fullTextSearchKeys.detail(params.id), + queryFn: () => + getClient() + .fullTextSearch.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useFullTextSearchesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useFullTextSearchesQuery.ts new file mode 100644 index 000000000..8c0d5db25 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useFullTextSearchesQuery.ts @@ -0,0 +1,159 @@ +/** + * List query hook for FullTextSearch + * @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 { fullTextSearchKeys } from '../query-keys'; +import type { + FullTextSearchSelect, + FullTextSearchWithRelations, + FullTextSearchFilter, + FullTextSearchOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + FullTextSearchSelect, + FullTextSearchWithRelations, + FullTextSearchFilter, + FullTextSearchOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const fullTextSearchesQueryKey = fullTextSearchKeys.list; +/** + * Query hook for fetching FullTextSearch list + * + * @example + * ```tsx + * const { data, isLoading } = useFullTextSearchesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useFullTextSearchesQuery< + S extends FullTextSearchSelect, + TData = { + fullTextSearches: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, FullTextSearchSelect>; + } & Omit< + UseQueryOptions< + { + fullTextSearches: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useFullTextSearchesQuery( + params: { + selection: ListSelectionConfig< + FullTextSearchSelect, + FullTextSearchFilter, + FullTextSearchOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + FullTextSearchSelect, + FullTextSearchFilter, + FullTextSearchOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: fullTextSearchKeys.list(args), + queryFn: () => getClient().fullTextSearch.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch FullTextSearch list without React hooks + * + * @example + * ```ts + * const data = await fetchFullTextSearchesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchFullTextSearchesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, FullTextSearchSelect>; +}): Promise<{ + fullTextSearches: ConnectionResult>; +}>; +export async function fetchFullTextSearchesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + FullTextSearchSelect, + FullTextSearchFilter, + FullTextSearchOrderBy + >(params.selection); + return getClient().fullTextSearch.findMany(args).unwrap(); +} +/** + * Prefetch FullTextSearch list for SSR or cache warming + * + * @example + * ```ts + * await prefetchFullTextSearchesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchFullTextSearchesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, FullTextSearchSelect>; + } +): Promise; +export async function prefetchFullTextSearchesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + FullTextSearchSelect, + FullTextSearchFilter, + FullTextSearchOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + FullTextSearchSelect, + FullTextSearchFilter, + FullTextSearchOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: fullTextSearchKeys.list(args), + queryFn: () => getClient().fullTextSearch.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useGetAllObjectsFromRootQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useGetAllObjectsFromRootQuery.ts new file mode 100644 index 000000000..250ee6c18 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useGetAllObjectsFromRootQuery.ts @@ -0,0 +1,108 @@ +/** + * Custom query hook for getAllObjectsFromRoot + * @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 { GetAllObjectsFromRootVariables } from '../../orm/query'; +import type { ObjectConnection } from '../../orm/input-types'; +export type { GetAllObjectsFromRootVariables } from '../../orm/query'; +/** Query key factory - re-exported from query-keys.ts */ +export const getAllObjectsFromRootQueryKey = customQueryKeys.getAllObjectsFromRoot; +/** + * Reads and enables pagination through a set of `Object`. + * + * @example + * ```tsx + * const { data, isLoading } = useGetAllObjectsFromRootQuery({ variables: { databaseId, id, first, offset, after } }); + * + * if (data?.getAllObjectsFromRoot) { + * console.log(data.getAllObjectsFromRoot); + * } + * ``` + */ +export function useGetAllObjectsFromRootQuery< + TData = { + getAllObjectsFromRoot: ObjectConnection | null; + }, +>( + params?: { + variables?: GetAllObjectsFromRootVariables; + } & Omit< + UseQueryOptions< + { + getAllObjectsFromRoot: ObjectConnection | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useGetAllObjectsFromRootQuery< + TData = { + getAllObjectsFromRoot: ObjectConnection | null; + }, +>( + params?: { + variables?: GetAllObjectsFromRootVariables; + } & Omit< + UseQueryOptions< + { + getAllObjectsFromRoot: ObjectConnection | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult { + const variables = params?.variables ?? {}; + const { variables: _variables, ...queryOptions } = params ?? {}; + void _variables; + return useQuery({ + queryKey: getAllObjectsFromRootQueryKey(variables), + queryFn: () => getClient().query.getAllObjectsFromRoot(variables).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch getAllObjectsFromRoot without React hooks + * + * @example + * ```ts + * const data = await fetchGetAllObjectsFromRootQuery({ variables: { databaseId, id, first, offset, after } }); + * ``` + */ +export async function fetchGetAllObjectsFromRootQuery(params?: { + variables?: GetAllObjectsFromRootVariables; +}) { + const variables = params?.variables ?? {}; + return getClient().query.getAllObjectsFromRoot(variables).unwrap(); +} +/** + * Prefetch getAllObjectsFromRoot for SSR or cache warming + * + * @example + * ```ts + * await prefetchGetAllObjectsFromRootQuery(queryClient, { variables: { databaseId, id, first, offset, after } }); + * ``` + */ +export async function prefetchGetAllObjectsFromRootQuery( + queryClient: QueryClient, + params?: { + variables?: GetAllObjectsFromRootVariables; + } +): Promise { + const variables = params?.variables ?? {}; + await queryClient.prefetchQuery({ + queryKey: getAllObjectsFromRootQueryKey(variables), + queryFn: () => getClient().query.getAllObjectsFromRoot(variables).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useGetAllQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useGetAllQuery.ts new file mode 100644 index 000000000..fa74ed4aa --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useGetAllQuery.ts @@ -0,0 +1,145 @@ +/** + * List query hook for GetAllRecord + * @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 { getAllRecordKeys } from '../query-keys'; +import type { + GetAllRecordSelect, + GetAllRecordWithRelations, + GetAllRecordFilter, + GetAllRecordsOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + GetAllRecordSelect, + GetAllRecordWithRelations, + GetAllRecordFilter, + GetAllRecordsOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const getAllQueryKey = getAllRecordKeys.list; +/** + * Query hook for fetching GetAllRecord list + * + * @example + * ```tsx + * const { data, isLoading } = useGetAllQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useGetAllQuery< + S extends GetAllRecordSelect, + TData = { + getAll: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, GetAllRecordSelect>; + } & Omit< + UseQueryOptions< + { + getAll: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useGetAllQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: getAllRecordKeys.list(args), + queryFn: () => getClient().getAllRecord.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch GetAllRecord list without React hooks + * + * @example + * ```ts + * const data = await fetchGetAllQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchGetAllQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, GetAllRecordSelect>; +}): Promise<{ + getAll: ConnectionResult>; +}>; +export async function fetchGetAllQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().getAllRecord.findMany(args).unwrap(); +} +/** + * Prefetch GetAllRecord list for SSR or cache warming + * + * @example + * ```ts + * await prefetchGetAllQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchGetAllQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, GetAllRecordSelect>; + } +): Promise; +export async function prefetchGetAllQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: getAllRecordKeys.list(args), + queryFn: () => getClient().getAllRecord.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useGetObjectAtPathQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useGetObjectAtPathQuery.ts new file mode 100644 index 000000000..f36831e83 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useGetObjectAtPathQuery.ts @@ -0,0 +1,139 @@ +/** + * Custom query hook for getObjectAtPath + * @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 { GetObjectAtPathVariables } from '../../orm/query'; +import type { ObjectSelect, Object } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { GetObjectAtPathVariables } from '../../orm/query'; +export type { ObjectSelect } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const getObjectAtPathQueryKey = customQueryKeys.getObjectAtPath; +/** + * Query hook for getObjectAtPath + * + * @example + * ```tsx + * const { data, isLoading } = useGetObjectAtPathQuery({ variables: { dbId, storeId, path, refname }, selection: { fields: { id: true } } }); + * + * if (data?.getObjectAtPath) { + * console.log(data.getObjectAtPath); + * } + * ``` + */ +export function useGetObjectAtPathQuery< + S extends ObjectSelect, + TData = { + getObjectAtPath: InferSelectResult | null; + }, +>( + params: { + variables?: GetObjectAtPathVariables; + selection: { + fields: S & ObjectSelect; + } & HookStrictSelect, ObjectSelect>; + } & Omit< + UseQueryOptions< + { + getObjectAtPath: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useGetObjectAtPathQuery( + params: { + variables?: GetObjectAtPathVariables; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const variables = params.variables ?? {}; + const args = buildSelectionArgs(params.selection); + const { variables: _variables, selection: _selection, ...queryOptions } = params ?? {}; + void _variables; + void _selection; + return useQuery({ + queryKey: getObjectAtPathQueryKey(variables), + queryFn: () => + getClient() + .query.getObjectAtPath(variables, { + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch getObjectAtPath without React hooks + * + * @example + * ```ts + * const data = await fetchGetObjectAtPathQuery({ variables: { dbId, storeId, path, refname }, selection: { fields: { id: true } } }); + * ``` + */ +export async function fetchGetObjectAtPathQuery(params: { + variables?: GetObjectAtPathVariables; + selection: { + fields: S & ObjectSelect; + } & HookStrictSelect, ObjectSelect>; +}): Promise<{ + getObjectAtPath: InferSelectResult | null; +}>; +export async function fetchGetObjectAtPathQuery(params: { + variables?: GetObjectAtPathVariables; + selection: SelectionConfig; +}) { + const variables = params.variables ?? {}; + const args = buildSelectionArgs(params.selection); + return getClient() + .query.getObjectAtPath(variables, { + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch getObjectAtPath for SSR or cache warming + * + * @example + * ```ts + * await prefetchGetObjectAtPathQuery(queryClient, { variables: { dbId, storeId, path, refname }, selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchGetObjectAtPathQuery( + queryClient: QueryClient, + params: { + variables?: GetObjectAtPathVariables; + selection: { + fields: S & ObjectSelect; + } & HookStrictSelect, ObjectSelect>; + } +): Promise; +export async function prefetchGetObjectAtPathQuery( + queryClient: QueryClient, + params: { + variables?: GetObjectAtPathVariables; + selection: SelectionConfig; + } +): Promise { + const variables = params.variables ?? {}; + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: getObjectAtPathQueryKey(variables), + queryFn: () => + getClient() + .query.getObjectAtPath(variables, { + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useGetPathObjectsFromRootQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useGetPathObjectsFromRootQuery.ts new file mode 100644 index 000000000..32bb021f8 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useGetPathObjectsFromRootQuery.ts @@ -0,0 +1,108 @@ +/** + * Custom query hook for getPathObjectsFromRoot + * @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 { GetPathObjectsFromRootVariables } from '../../orm/query'; +import type { ObjectConnection } from '../../orm/input-types'; +export type { GetPathObjectsFromRootVariables } from '../../orm/query'; +/** Query key factory - re-exported from query-keys.ts */ +export const getPathObjectsFromRootQueryKey = customQueryKeys.getPathObjectsFromRoot; +/** + * Reads and enables pagination through a set of `Object`. + * + * @example + * ```tsx + * const { data, isLoading } = useGetPathObjectsFromRootQuery({ variables: { databaseId, id, path, first, offset, after } }); + * + * if (data?.getPathObjectsFromRoot) { + * console.log(data.getPathObjectsFromRoot); + * } + * ``` + */ +export function useGetPathObjectsFromRootQuery< + TData = { + getPathObjectsFromRoot: ObjectConnection | null; + }, +>( + params?: { + variables?: GetPathObjectsFromRootVariables; + } & Omit< + UseQueryOptions< + { + getPathObjectsFromRoot: ObjectConnection | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useGetPathObjectsFromRootQuery< + TData = { + getPathObjectsFromRoot: ObjectConnection | null; + }, +>( + params?: { + variables?: GetPathObjectsFromRootVariables; + } & Omit< + UseQueryOptions< + { + getPathObjectsFromRoot: ObjectConnection | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult { + const variables = params?.variables ?? {}; + const { variables: _variables, ...queryOptions } = params ?? {}; + void _variables; + return useQuery({ + queryKey: getPathObjectsFromRootQueryKey(variables), + queryFn: () => getClient().query.getPathObjectsFromRoot(variables).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch getPathObjectsFromRoot without React hooks + * + * @example + * ```ts + * const data = await fetchGetPathObjectsFromRootQuery({ variables: { databaseId, id, path, first, offset, after } }); + * ``` + */ +export async function fetchGetPathObjectsFromRootQuery(params?: { + variables?: GetPathObjectsFromRootVariables; +}) { + const variables = params?.variables ?? {}; + return getClient().query.getPathObjectsFromRoot(variables).unwrap(); +} +/** + * Prefetch getPathObjectsFromRoot for SSR or cache warming + * + * @example + * ```ts + * await prefetchGetPathObjectsFromRootQuery(queryClient, { variables: { databaseId, id, path, first, offset, after } }); + * ``` + */ +export async function prefetchGetPathObjectsFromRootQuery( + queryClient: QueryClient, + params?: { + variables?: GetPathObjectsFromRootVariables; + } +): Promise { + const variables = params?.variables ?? {}; + await queryClient.prefetchQuery({ + queryKey: getPathObjectsFromRootQueryKey(variables), + queryFn: () => getClient().query.getPathObjectsFromRoot(variables).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useHierarchyModuleQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useHierarchyModuleQuery.ts new file mode 100644 index 000000000..f391086c7 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useHierarchyModuleQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for HierarchyModule + * @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 { hierarchyModuleKeys } from '../query-keys'; +import type { HierarchyModuleSelect, HierarchyModuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { HierarchyModuleSelect, HierarchyModuleWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const hierarchyModuleQueryKey = hierarchyModuleKeys.detail; +/** + * Query hook for fetching a single HierarchyModule + * + * @example + * ```tsx + * const { data, isLoading } = useHierarchyModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useHierarchyModuleQuery< + S extends HierarchyModuleSelect, + TData = { + hierarchyModule: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, HierarchyModuleSelect>; + } & Omit< + UseQueryOptions< + { + hierarchyModule: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useHierarchyModuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: hierarchyModuleKeys.detail(params.id), + queryFn: () => + getClient() + .hierarchyModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single HierarchyModule without React hooks + * + * @example + * ```ts + * const data = await fetchHierarchyModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchHierarchyModuleQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, HierarchyModuleSelect>; +}): Promise<{ + hierarchyModule: InferSelectResult | null; +}>; +export async function fetchHierarchyModuleQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .hierarchyModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single HierarchyModule for SSR or cache warming + * + * @example + * ```ts + * await prefetchHierarchyModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchHierarchyModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, HierarchyModuleSelect>; + } +): Promise; +export async function prefetchHierarchyModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: hierarchyModuleKeys.detail(params.id), + queryFn: () => + getClient() + .hierarchyModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useHierarchyModulesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useHierarchyModulesQuery.ts new file mode 100644 index 000000000..48939bd78 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useHierarchyModulesQuery.ts @@ -0,0 +1,163 @@ +/** + * List query hook for HierarchyModule + * @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 { hierarchyModuleKeys } from '../query-keys'; +import type { + HierarchyModuleSelect, + HierarchyModuleWithRelations, + HierarchyModuleFilter, + HierarchyModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + HierarchyModuleSelect, + HierarchyModuleWithRelations, + HierarchyModuleFilter, + HierarchyModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const hierarchyModulesQueryKey = hierarchyModuleKeys.list; +/** + * Query hook for fetching HierarchyModule list + * + * @example + * ```tsx + * const { data, isLoading } = useHierarchyModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useHierarchyModulesQuery< + S extends HierarchyModuleSelect, + TData = { + hierarchyModules: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, HierarchyModuleSelect>; + } & Omit< + UseQueryOptions< + { + hierarchyModules: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useHierarchyModulesQuery( + params: { + selection: ListSelectionConfig< + HierarchyModuleSelect, + HierarchyModuleFilter, + HierarchyModuleOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + HierarchyModuleSelect, + HierarchyModuleFilter, + HierarchyModuleOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: hierarchyModuleKeys.list(args), + queryFn: () => getClient().hierarchyModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch HierarchyModule list without React hooks + * + * @example + * ```ts + * const data = await fetchHierarchyModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchHierarchyModulesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, HierarchyModuleSelect>; +}): Promise<{ + hierarchyModules: ConnectionResult>; +}>; +export async function fetchHierarchyModulesQuery(params: { + selection: ListSelectionConfig< + HierarchyModuleSelect, + HierarchyModuleFilter, + HierarchyModuleOrderBy + >; +}) { + const args = buildListSelectionArgs< + HierarchyModuleSelect, + HierarchyModuleFilter, + HierarchyModuleOrderBy + >(params.selection); + return getClient().hierarchyModule.findMany(args).unwrap(); +} +/** + * Prefetch HierarchyModule list for SSR or cache warming + * + * @example + * ```ts + * await prefetchHierarchyModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchHierarchyModulesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, HierarchyModuleSelect>; + } +): Promise; +export async function prefetchHierarchyModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + HierarchyModuleSelect, + HierarchyModuleFilter, + HierarchyModuleOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + HierarchyModuleSelect, + HierarchyModuleFilter, + HierarchyModuleOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: hierarchyModuleKeys.list(args), + queryFn: () => getClient().hierarchyModule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useIndexQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useIndexQuery.ts new file mode 100644 index 000000000..c0bc193ca --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useIndexQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for Index + * @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 { indexKeys } from '../query-keys'; +import type { IndexSelect, IndexWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { IndexSelect, IndexWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const indexQueryKey = indexKeys.detail; +/** + * Query hook for fetching a single Index + * + * @example + * ```tsx + * const { data, isLoading } = useIndexQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useIndexQuery< + S extends IndexSelect, + TData = { + index: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, IndexSelect>; + } & Omit< + UseQueryOptions< + { + index: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useIndexQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: indexKeys.detail(params.id), + queryFn: () => + getClient() + .index.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single Index without React hooks + * + * @example + * ```ts + * const data = await fetchIndexQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchIndexQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, IndexSelect>; +}): Promise<{ + index: InferSelectResult | null; +}>; +export async function fetchIndexQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .index.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single Index for SSR or cache warming + * + * @example + * ```ts + * await prefetchIndexQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchIndexQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, IndexSelect>; + } +): Promise; +export async function prefetchIndexQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: indexKeys.detail(params.id), + queryFn: () => + getClient() + .index.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useIndicesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useIndicesQuery.ts new file mode 100644 index 000000000..342fc8d52 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useIndicesQuery.ts @@ -0,0 +1,139 @@ +/** + * List query hook for Index + * @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 { indexKeys } from '../query-keys'; +import type { + IndexSelect, + IndexWithRelations, + IndexFilter, + IndexOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + IndexSelect, + IndexWithRelations, + IndexFilter, + IndexOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const indicesQueryKey = indexKeys.list; +/** + * Query hook for fetching Index list + * + * @example + * ```tsx + * const { data, isLoading } = useIndicesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useIndicesQuery< + S extends IndexSelect, + TData = { + indices: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, IndexSelect>; + } & Omit< + UseQueryOptions< + { + indices: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useIndicesQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: indexKeys.list(args), + queryFn: () => getClient().index.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch Index list without React hooks + * + * @example + * ```ts + * const data = await fetchIndicesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchIndicesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, IndexSelect>; +}): Promise<{ + indices: ConnectionResult>; +}>; +export async function fetchIndicesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs(params.selection); + return getClient().index.findMany(args).unwrap(); +} +/** + * Prefetch Index list for SSR or cache warming + * + * @example + * ```ts + * await prefetchIndicesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchIndicesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, IndexSelect>; + } +): Promise; +export async function prefetchIndicesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: indexKeys.list(args), + queryFn: () => getClient().index.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useInviteQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useInviteQuery.ts new file mode 100644 index 000000000..51db01afb --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useInviteQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for Invite + * @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 { inviteKeys } from '../query-keys'; +import type { InviteSelect, InviteWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +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 + * + * @example + * ```tsx + * const { data, isLoading } = useInviteQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useInviteQuery< + S extends InviteSelect, + TData = { + invite: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, InviteSelect>; + } & Omit< + UseQueryOptions< + { + invite: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useInviteQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: inviteKeys.detail(params.id), + queryFn: () => + getClient() + .invite.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single Invite without React hooks + * + * @example + * ```ts + * const data = await fetchInviteQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchInviteQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, InviteSelect>; +}): Promise<{ + invite: InferSelectResult | null; +}>; +export async function fetchInviteQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .invite.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single Invite for SSR or cache warming + * + * @example + * ```ts + * await prefetchInviteQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchInviteQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, InviteSelect>; + } +): Promise; +export async function prefetchInviteQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: inviteKeys.detail(params.id), + queryFn: () => + getClient() + .invite.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useInvitesModuleQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useInvitesModuleQuery.ts new file mode 100644 index 000000000..8fac4ad30 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useInvitesModuleQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for InvitesModule + * @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 { invitesModuleKeys } from '../query-keys'; +import type { InvitesModuleSelect, InvitesModuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { InvitesModuleSelect, InvitesModuleWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const invitesModuleQueryKey = invitesModuleKeys.detail; +/** + * Query hook for fetching a single InvitesModule + * + * @example + * ```tsx + * const { data, isLoading } = useInvitesModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useInvitesModuleQuery< + S extends InvitesModuleSelect, + TData = { + invitesModule: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, InvitesModuleSelect>; + } & Omit< + UseQueryOptions< + { + invitesModule: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useInvitesModuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: invitesModuleKeys.detail(params.id), + queryFn: () => + getClient() + .invitesModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single InvitesModule without React hooks + * + * @example + * ```ts + * const data = await fetchInvitesModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchInvitesModuleQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, InvitesModuleSelect>; +}): Promise<{ + invitesModule: InferSelectResult | null; +}>; +export async function fetchInvitesModuleQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .invitesModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single InvitesModule for SSR or cache warming + * + * @example + * ```ts + * await prefetchInvitesModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchInvitesModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, InvitesModuleSelect>; + } +): Promise; +export async function prefetchInvitesModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: invitesModuleKeys.detail(params.id), + queryFn: () => + getClient() + .invitesModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useInvitesModulesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useInvitesModulesQuery.ts new file mode 100644 index 000000000..ea3a6077f --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useInvitesModulesQuery.ts @@ -0,0 +1,151 @@ +/** + * List query hook for InvitesModule + * @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 { invitesModuleKeys } from '../query-keys'; +import type { + InvitesModuleSelect, + InvitesModuleWithRelations, + InvitesModuleFilter, + InvitesModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + InvitesModuleSelect, + InvitesModuleWithRelations, + InvitesModuleFilter, + InvitesModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const invitesModulesQueryKey = invitesModuleKeys.list; +/** + * Query hook for fetching InvitesModule list + * + * @example + * ```tsx + * const { data, isLoading } = useInvitesModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useInvitesModulesQuery< + S extends InvitesModuleSelect, + TData = { + invitesModules: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, InvitesModuleSelect>; + } & Omit< + UseQueryOptions< + { + invitesModules: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useInvitesModulesQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + InvitesModuleSelect, + InvitesModuleFilter, + InvitesModuleOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: invitesModuleKeys.list(args), + queryFn: () => getClient().invitesModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch InvitesModule list without React hooks + * + * @example + * ```ts + * const data = await fetchInvitesModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchInvitesModulesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, InvitesModuleSelect>; +}): Promise<{ + invitesModules: ConnectionResult>; +}>; +export async function fetchInvitesModulesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + InvitesModuleSelect, + InvitesModuleFilter, + InvitesModuleOrderBy + >(params.selection); + return getClient().invitesModule.findMany(args).unwrap(); +} +/** + * Prefetch InvitesModule list for SSR or cache warming + * + * @example + * ```ts + * await prefetchInvitesModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchInvitesModulesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, InvitesModuleSelect>; + } +): Promise; +export async function prefetchInvitesModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs< + InvitesModuleSelect, + InvitesModuleFilter, + InvitesModuleOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: invitesModuleKeys.list(args), + queryFn: () => getClient().invitesModule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useInvitesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useInvitesQuery.ts new file mode 100644 index 000000000..19a1fd3b1 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useInvitesQuery.ts @@ -0,0 +1,139 @@ +/** + * List query hook for Invite + * @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 { inviteKeys } from '../query-keys'; +import type { + InviteSelect, + InviteWithRelations, + InviteFilter, + InviteOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + InviteSelect, + InviteWithRelations, + InviteFilter, + InviteOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const invitesQueryKey = inviteKeys.list; +/** + * Query hook for fetching Invite list + * + * @example + * ```tsx + * const { data, isLoading } = useInvitesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useInvitesQuery< + S extends InviteSelect, + TData = { + invites: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, InviteSelect>; + } & Omit< + UseQueryOptions< + { + invites: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useInvitesQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: inviteKeys.list(args), + queryFn: () => getClient().invite.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch Invite list without React hooks + * + * @example + * ```ts + * const data = await fetchInvitesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchInvitesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, InviteSelect>; +}): Promise<{ + invites: ConnectionResult>; +}>; +export async function fetchInvitesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs(params.selection); + return getClient().invite.findMany(args).unwrap(); +} +/** + * Prefetch Invite list for SSR or cache warming + * + * @example + * ```ts + * await prefetchInvitesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchInvitesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, InviteSelect>; + } +): Promise; +export async function prefetchInvitesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: inviteKeys.list(args), + queryFn: () => getClient().invite.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useLevelsModuleQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useLevelsModuleQuery.ts new file mode 100644 index 000000000..8088cff8f --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useLevelsModuleQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for LevelsModule + * @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 { levelsModuleKeys } from '../query-keys'; +import type { LevelsModuleSelect, LevelsModuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { LevelsModuleSelect, LevelsModuleWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const levelsModuleQueryKey = levelsModuleKeys.detail; +/** + * Query hook for fetching a single LevelsModule + * + * @example + * ```tsx + * const { data, isLoading } = useLevelsModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useLevelsModuleQuery< + S extends LevelsModuleSelect, + TData = { + levelsModule: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, LevelsModuleSelect>; + } & Omit< + UseQueryOptions< + { + levelsModule: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useLevelsModuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: levelsModuleKeys.detail(params.id), + queryFn: () => + getClient() + .levelsModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single LevelsModule without React hooks + * + * @example + * ```ts + * const data = await fetchLevelsModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchLevelsModuleQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, LevelsModuleSelect>; +}): Promise<{ + levelsModule: InferSelectResult | null; +}>; +export async function fetchLevelsModuleQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .levelsModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single LevelsModule for SSR or cache warming + * + * @example + * ```ts + * await prefetchLevelsModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchLevelsModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, LevelsModuleSelect>; + } +): Promise; +export async function prefetchLevelsModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: levelsModuleKeys.detail(params.id), + queryFn: () => + getClient() + .levelsModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useLevelsModulesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useLevelsModulesQuery.ts new file mode 100644 index 000000000..7b55ec26b --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useLevelsModulesQuery.ts @@ -0,0 +1,145 @@ +/** + * List query hook for LevelsModule + * @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 { levelsModuleKeys } from '../query-keys'; +import type { + LevelsModuleSelect, + LevelsModuleWithRelations, + LevelsModuleFilter, + LevelsModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + LevelsModuleSelect, + LevelsModuleWithRelations, + LevelsModuleFilter, + LevelsModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const levelsModulesQueryKey = levelsModuleKeys.list; +/** + * Query hook for fetching LevelsModule list + * + * @example + * ```tsx + * const { data, isLoading } = useLevelsModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useLevelsModulesQuery< + S extends LevelsModuleSelect, + TData = { + levelsModules: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, LevelsModuleSelect>; + } & Omit< + UseQueryOptions< + { + levelsModules: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useLevelsModulesQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: levelsModuleKeys.list(args), + queryFn: () => getClient().levelsModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch LevelsModule list without React hooks + * + * @example + * ```ts + * const data = await fetchLevelsModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchLevelsModulesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, LevelsModuleSelect>; +}): Promise<{ + levelsModules: ConnectionResult>; +}>; +export async function fetchLevelsModulesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().levelsModule.findMany(args).unwrap(); +} +/** + * Prefetch LevelsModule list for SSR or cache warming + * + * @example + * ```ts + * await prefetchLevelsModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchLevelsModulesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, LevelsModuleSelect>; + } +): Promise; +export async function prefetchLevelsModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: levelsModuleKeys.list(args), + queryFn: () => getClient().levelsModule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useLimitFunctionQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useLimitFunctionQuery.ts new file mode 100644 index 000000000..6d7bed87d --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useLimitFunctionQuery.ts @@ -0,0 +1,138 @@ +/** + * 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 new file mode 100644 index 000000000..a6b16f109 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useLimitFunctionsQuery.ts @@ -0,0 +1,151 @@ +/** + * 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/useLimitsModuleQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useLimitsModuleQuery.ts new file mode 100644 index 000000000..e11b2489e --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useLimitsModuleQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for LimitsModule + * @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 { limitsModuleKeys } from '../query-keys'; +import type { LimitsModuleSelect, LimitsModuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { LimitsModuleSelect, LimitsModuleWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const limitsModuleQueryKey = limitsModuleKeys.detail; +/** + * Query hook for fetching a single LimitsModule + * + * @example + * ```tsx + * const { data, isLoading } = useLimitsModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useLimitsModuleQuery< + S extends LimitsModuleSelect, + TData = { + limitsModule: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, LimitsModuleSelect>; + } & Omit< + UseQueryOptions< + { + limitsModule: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useLimitsModuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: limitsModuleKeys.detail(params.id), + queryFn: () => + getClient() + .limitsModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single LimitsModule without React hooks + * + * @example + * ```ts + * const data = await fetchLimitsModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchLimitsModuleQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, LimitsModuleSelect>; +}): Promise<{ + limitsModule: InferSelectResult | null; +}>; +export async function fetchLimitsModuleQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .limitsModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single LimitsModule for SSR or cache warming + * + * @example + * ```ts + * await prefetchLimitsModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchLimitsModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, LimitsModuleSelect>; + } +): Promise; +export async function prefetchLimitsModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: limitsModuleKeys.detail(params.id), + queryFn: () => + getClient() + .limitsModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useLimitsModulesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useLimitsModulesQuery.ts new file mode 100644 index 000000000..fa325da6f --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useLimitsModulesQuery.ts @@ -0,0 +1,145 @@ +/** + * List query hook for LimitsModule + * @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 { limitsModuleKeys } from '../query-keys'; +import type { + LimitsModuleSelect, + LimitsModuleWithRelations, + LimitsModuleFilter, + LimitsModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + LimitsModuleSelect, + LimitsModuleWithRelations, + LimitsModuleFilter, + LimitsModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const limitsModulesQueryKey = limitsModuleKeys.list; +/** + * Query hook for fetching LimitsModule list + * + * @example + * ```tsx + * const { data, isLoading } = useLimitsModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useLimitsModulesQuery< + S extends LimitsModuleSelect, + TData = { + limitsModules: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, LimitsModuleSelect>; + } & Omit< + UseQueryOptions< + { + limitsModules: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useLimitsModulesQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: limitsModuleKeys.list(args), + queryFn: () => getClient().limitsModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch LimitsModule list without React hooks + * + * @example + * ```ts + * const data = await fetchLimitsModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchLimitsModulesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, LimitsModuleSelect>; +}): Promise<{ + limitsModules: ConnectionResult>; +}>; +export async function fetchLimitsModulesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().limitsModule.findMany(args).unwrap(); +} +/** + * Prefetch LimitsModule list for SSR or cache warming + * + * @example + * ```ts + * await prefetchLimitsModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchLimitsModulesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, LimitsModuleSelect>; + } +): Promise; +export async function prefetchLimitsModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: limitsModuleKeys.list(args), + queryFn: () => getClient().limitsModule.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 new file mode 100644 index 000000000..c8d749048 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useMembershipTypeQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for MembershipType + * @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 { membershipTypeKeys } from '../query-keys'; +import type { MembershipTypeSelect, MembershipTypeWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { MembershipTypeSelect, MembershipTypeWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const membershipTypeQueryKey = membershipTypeKeys.detail; +/** + * Query hook for fetching a single MembershipType + * + * @example + * ```tsx + * const { data, isLoading } = useMembershipTypeQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useMembershipTypeQuery< + S extends MembershipTypeSelect, + TData = { + membershipType: InferSelectResult | null; + }, +>( + params: { + id: number; + selection: { + fields: S; + } & HookStrictSelect, MembershipTypeSelect>; + } & Omit< + UseQueryOptions< + { + membershipType: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useMembershipTypeQuery( + params: { + id: number; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: membershipTypeKeys.detail(params.id), + queryFn: () => + getClient() + .membershipType.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single MembershipType without React hooks + * + * @example + * ```ts + * const data = await fetchMembershipTypeQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchMembershipTypeQuery(params: { + id: number; + selection: { + fields: S; + } & HookStrictSelect, MembershipTypeSelect>; +}): Promise<{ + membershipType: InferSelectResult | null; +}>; +export async function fetchMembershipTypeQuery(params: { + id: number; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .membershipType.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single MembershipType for SSR or cache warming + * + * @example + * ```ts + * await prefetchMembershipTypeQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchMembershipTypeQuery( + queryClient: QueryClient, + params: { + id: number; + selection: { + fields: S; + } & HookStrictSelect, MembershipTypeSelect>; + } +): Promise; +export async function prefetchMembershipTypeQuery( + queryClient: QueryClient, + params: { + id: number; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: membershipTypeKeys.detail(params.id), + queryFn: () => + getClient() + .membershipType.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useMembershipTypesModuleQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useMembershipTypesModuleQuery.ts new file mode 100644 index 000000000..239bb6ee9 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useMembershipTypesModuleQuery.ts @@ -0,0 +1,146 @@ +/** + * Single item query hook for MembershipTypesModule + * @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 { membershipTypesModuleKeys } from '../query-keys'; +import type { + MembershipTypesModuleSelect, + MembershipTypesModuleWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + MembershipTypesModuleSelect, + MembershipTypesModuleWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const membershipTypesModuleQueryKey = membershipTypesModuleKeys.detail; +/** + * Query hook for fetching a single MembershipTypesModule + * + * @example + * ```tsx + * const { data, isLoading } = useMembershipTypesModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useMembershipTypesModuleQuery< + S extends MembershipTypesModuleSelect, + TData = { + membershipTypesModule: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, MembershipTypesModuleSelect>; + } & Omit< + UseQueryOptions< + { + membershipTypesModule: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useMembershipTypesModuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: membershipTypesModuleKeys.detail(params.id), + queryFn: () => + getClient() + .membershipTypesModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single MembershipTypesModule without React hooks + * + * @example + * ```ts + * const data = await fetchMembershipTypesModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchMembershipTypesModuleQuery< + S extends MembershipTypesModuleSelect, +>(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, MembershipTypesModuleSelect>; +}): Promise<{ + membershipTypesModule: InferSelectResult | null; +}>; +export async function fetchMembershipTypesModuleQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .membershipTypesModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single MembershipTypesModule for SSR or cache warming + * + * @example + * ```ts + * await prefetchMembershipTypesModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchMembershipTypesModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, MembershipTypesModuleSelect>; + } +): Promise; +export async function prefetchMembershipTypesModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: membershipTypesModuleKeys.detail(params.id), + queryFn: () => + getClient() + .membershipTypesModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useMembershipTypesModulesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useMembershipTypesModulesQuery.ts new file mode 100644 index 000000000..ed17a6b5d --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useMembershipTypesModulesQuery.ts @@ -0,0 +1,180 @@ +/** + * List query hook for MembershipTypesModule + * @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 { membershipTypesModuleKeys } from '../query-keys'; +import type { + MembershipTypesModuleSelect, + MembershipTypesModuleWithRelations, + MembershipTypesModuleFilter, + MembershipTypesModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + MembershipTypesModuleSelect, + MembershipTypesModuleWithRelations, + MembershipTypesModuleFilter, + MembershipTypesModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const membershipTypesModulesQueryKey = membershipTypesModuleKeys.list; +/** + * Query hook for fetching MembershipTypesModule list + * + * @example + * ```tsx + * const { data, isLoading } = useMembershipTypesModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useMembershipTypesModulesQuery< + S extends MembershipTypesModuleSelect, + TData = { + membershipTypesModules: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, MembershipTypesModuleSelect>; + } & Omit< + UseQueryOptions< + { + membershipTypesModules: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useMembershipTypesModulesQuery( + params: { + selection: ListSelectionConfig< + MembershipTypesModuleSelect, + MembershipTypesModuleFilter, + MembershipTypesModuleOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + MembershipTypesModuleSelect, + MembershipTypesModuleFilter, + MembershipTypesModuleOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: membershipTypesModuleKeys.list(args), + queryFn: () => getClient().membershipTypesModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch MembershipTypesModule list without React hooks + * + * @example + * ```ts + * const data = await fetchMembershipTypesModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchMembershipTypesModulesQuery< + S extends MembershipTypesModuleSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, MembershipTypesModuleSelect>; +}): Promise<{ + membershipTypesModules: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchMembershipTypesModulesQuery(params: { + selection: ListSelectionConfig< + MembershipTypesModuleSelect, + MembershipTypesModuleFilter, + MembershipTypesModuleOrderBy + >; +}) { + const args = buildListSelectionArgs< + MembershipTypesModuleSelect, + MembershipTypesModuleFilter, + MembershipTypesModuleOrderBy + >(params.selection); + return getClient().membershipTypesModule.findMany(args).unwrap(); +} +/** + * Prefetch MembershipTypesModule list for SSR or cache warming + * + * @example + * ```ts + * await prefetchMembershipTypesModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchMembershipTypesModulesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, MembershipTypesModuleSelect>; + } +): Promise; +export async function prefetchMembershipTypesModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + MembershipTypesModuleSelect, + MembershipTypesModuleFilter, + MembershipTypesModuleOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + MembershipTypesModuleSelect, + MembershipTypesModuleFilter, + MembershipTypesModuleOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: membershipTypesModuleKeys.list(args), + queryFn: () => getClient().membershipTypesModule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useMembershipTypesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useMembershipTypesQuery.ts new file mode 100644 index 000000000..c0f5b68c9 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useMembershipTypesQuery.ts @@ -0,0 +1,159 @@ +/** + * List query hook for MembershipType + * @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 { membershipTypeKeys } from '../query-keys'; +import type { + MembershipTypeSelect, + MembershipTypeWithRelations, + MembershipTypeFilter, + MembershipTypeOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + MembershipTypeSelect, + MembershipTypeWithRelations, + MembershipTypeFilter, + MembershipTypeOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const membershipTypesQueryKey = membershipTypeKeys.list; +/** + * Query hook for fetching MembershipType list + * + * @example + * ```tsx + * const { data, isLoading } = useMembershipTypesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useMembershipTypesQuery< + S extends MembershipTypeSelect, + TData = { + membershipTypes: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, MembershipTypeSelect>; + } & Omit< + UseQueryOptions< + { + membershipTypes: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useMembershipTypesQuery( + params: { + selection: ListSelectionConfig< + MembershipTypeSelect, + MembershipTypeFilter, + MembershipTypeOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + MembershipTypeSelect, + MembershipTypeFilter, + MembershipTypeOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: membershipTypeKeys.list(args), + queryFn: () => getClient().membershipType.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch MembershipType list without React hooks + * + * @example + * ```ts + * const data = await fetchMembershipTypesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchMembershipTypesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, MembershipTypeSelect>; +}): Promise<{ + membershipTypes: ConnectionResult>; +}>; +export async function fetchMembershipTypesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + MembershipTypeSelect, + MembershipTypeFilter, + MembershipTypeOrderBy + >(params.selection); + return getClient().membershipType.findMany(args).unwrap(); +} +/** + * Prefetch MembershipType list for SSR or cache warming + * + * @example + * ```ts + * await prefetchMembershipTypesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchMembershipTypesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, MembershipTypeSelect>; + } +): Promise; +export async function prefetchMembershipTypesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + MembershipTypeSelect, + MembershipTypeFilter, + MembershipTypeOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + MembershipTypeSelect, + MembershipTypeFilter, + MembershipTypeOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: membershipTypeKeys.list(args), + queryFn: () => getClient().membershipType.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useMembershipsModuleQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useMembershipsModuleQuery.ts new file mode 100644 index 000000000..dec53546c --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useMembershipsModuleQuery.ts @@ -0,0 +1,144 @@ +/** + * Single item query hook for MembershipsModule + * @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 { membershipsModuleKeys } from '../query-keys'; +import type { + MembershipsModuleSelect, + MembershipsModuleWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + MembershipsModuleSelect, + MembershipsModuleWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const membershipsModuleQueryKey = membershipsModuleKeys.detail; +/** + * Query hook for fetching a single MembershipsModule + * + * @example + * ```tsx + * const { data, isLoading } = useMembershipsModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useMembershipsModuleQuery< + S extends MembershipsModuleSelect, + TData = { + membershipsModule: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, MembershipsModuleSelect>; + } & Omit< + UseQueryOptions< + { + membershipsModule: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useMembershipsModuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: membershipsModuleKeys.detail(params.id), + queryFn: () => + getClient() + .membershipsModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single MembershipsModule without React hooks + * + * @example + * ```ts + * const data = await fetchMembershipsModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchMembershipsModuleQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, MembershipsModuleSelect>; +}): Promise<{ + membershipsModule: InferSelectResult | null; +}>; +export async function fetchMembershipsModuleQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .membershipsModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single MembershipsModule for SSR or cache warming + * + * @example + * ```ts + * await prefetchMembershipsModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchMembershipsModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, MembershipsModuleSelect>; + } +): Promise; +export async function prefetchMembershipsModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: membershipsModuleKeys.detail(params.id), + queryFn: () => + getClient() + .membershipsModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useMembershipsModulesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useMembershipsModulesQuery.ts new file mode 100644 index 000000000..13e9830a5 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useMembershipsModulesQuery.ts @@ -0,0 +1,163 @@ +/** + * List query hook for MembershipsModule + * @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 { membershipsModuleKeys } from '../query-keys'; +import type { + MembershipsModuleSelect, + MembershipsModuleWithRelations, + MembershipsModuleFilter, + MembershipsModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + MembershipsModuleSelect, + MembershipsModuleWithRelations, + MembershipsModuleFilter, + MembershipsModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const membershipsModulesQueryKey = membershipsModuleKeys.list; +/** + * Query hook for fetching MembershipsModule list + * + * @example + * ```tsx + * const { data, isLoading } = useMembershipsModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useMembershipsModulesQuery< + S extends MembershipsModuleSelect, + TData = { + membershipsModules: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, MembershipsModuleSelect>; + } & Omit< + UseQueryOptions< + { + membershipsModules: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useMembershipsModulesQuery( + params: { + selection: ListSelectionConfig< + MembershipsModuleSelect, + MembershipsModuleFilter, + MembershipsModuleOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + MembershipsModuleSelect, + MembershipsModuleFilter, + MembershipsModuleOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: membershipsModuleKeys.list(args), + queryFn: () => getClient().membershipsModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch MembershipsModule list without React hooks + * + * @example + * ```ts + * const data = await fetchMembershipsModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchMembershipsModulesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, MembershipsModuleSelect>; +}): Promise<{ + membershipsModules: ConnectionResult>; +}>; +export async function fetchMembershipsModulesQuery(params: { + selection: ListSelectionConfig< + MembershipsModuleSelect, + MembershipsModuleFilter, + MembershipsModuleOrderBy + >; +}) { + const args = buildListSelectionArgs< + MembershipsModuleSelect, + MembershipsModuleFilter, + MembershipsModuleOrderBy + >(params.selection); + return getClient().membershipsModule.findMany(args).unwrap(); +} +/** + * Prefetch MembershipsModule list for SSR or cache warming + * + * @example + * ```ts + * await prefetchMembershipsModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchMembershipsModulesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, MembershipsModuleSelect>; + } +): Promise; +export async function prefetchMembershipsModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + MembershipsModuleSelect, + MembershipsModuleFilter, + MembershipsModuleOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + MembershipsModuleSelect, + MembershipsModuleFilter, + MembershipsModuleOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: membershipsModuleKeys.list(args), + queryFn: () => getClient().membershipsModule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useNodeTypeRegistriesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useNodeTypeRegistriesQuery.ts new file mode 100644 index 000000000..1a6d70d89 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useNodeTypeRegistriesQuery.ts @@ -0,0 +1,163 @@ +/** + * List query hook for NodeTypeRegistry + * @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 { nodeTypeRegistryKeys } from '../query-keys'; +import type { + NodeTypeRegistrySelect, + NodeTypeRegistryWithRelations, + NodeTypeRegistryFilter, + NodeTypeRegistryOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + NodeTypeRegistrySelect, + NodeTypeRegistryWithRelations, + NodeTypeRegistryFilter, + NodeTypeRegistryOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const nodeTypeRegistriesQueryKey = nodeTypeRegistryKeys.list; +/** + * Query hook for fetching NodeTypeRegistry list + * + * @example + * ```tsx + * const { data, isLoading } = useNodeTypeRegistriesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useNodeTypeRegistriesQuery< + S extends NodeTypeRegistrySelect, + TData = { + nodeTypeRegistries: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, NodeTypeRegistrySelect>; + } & Omit< + UseQueryOptions< + { + nodeTypeRegistries: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useNodeTypeRegistriesQuery( + params: { + selection: ListSelectionConfig< + NodeTypeRegistrySelect, + NodeTypeRegistryFilter, + NodeTypeRegistryOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + NodeTypeRegistrySelect, + NodeTypeRegistryFilter, + NodeTypeRegistryOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: nodeTypeRegistryKeys.list(args), + queryFn: () => getClient().nodeTypeRegistry.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch NodeTypeRegistry list without React hooks + * + * @example + * ```ts + * const data = await fetchNodeTypeRegistriesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchNodeTypeRegistriesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, NodeTypeRegistrySelect>; +}): Promise<{ + nodeTypeRegistries: ConnectionResult>; +}>; +export async function fetchNodeTypeRegistriesQuery(params: { + selection: ListSelectionConfig< + NodeTypeRegistrySelect, + NodeTypeRegistryFilter, + NodeTypeRegistryOrderBy + >; +}) { + const args = buildListSelectionArgs< + NodeTypeRegistrySelect, + NodeTypeRegistryFilter, + NodeTypeRegistryOrderBy + >(params.selection); + return getClient().nodeTypeRegistry.findMany(args).unwrap(); +} +/** + * Prefetch NodeTypeRegistry list for SSR or cache warming + * + * @example + * ```ts + * await prefetchNodeTypeRegistriesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchNodeTypeRegistriesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, NodeTypeRegistrySelect>; + } +): Promise; +export async function prefetchNodeTypeRegistriesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + NodeTypeRegistrySelect, + NodeTypeRegistryFilter, + NodeTypeRegistryOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + NodeTypeRegistrySelect, + NodeTypeRegistryFilter, + NodeTypeRegistryOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: nodeTypeRegistryKeys.list(args), + queryFn: () => getClient().nodeTypeRegistry.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useNodeTypeRegistryQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useNodeTypeRegistryQuery.ts new file mode 100644 index 000000000..ed4f7659b --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useNodeTypeRegistryQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for NodeTypeRegistry + * @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 { nodeTypeRegistryKeys } from '../query-keys'; +import type { NodeTypeRegistrySelect, NodeTypeRegistryWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { NodeTypeRegistrySelect, NodeTypeRegistryWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const nodeTypeRegistryQueryKey = nodeTypeRegistryKeys.detail; +/** + * Query hook for fetching a single NodeTypeRegistry + * + * @example + * ```tsx + * const { data, isLoading } = useNodeTypeRegistryQuery({ + * name: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useNodeTypeRegistryQuery< + S extends NodeTypeRegistrySelect, + TData = { + nodeTypeRegistry: InferSelectResult | null; + }, +>( + params: { + name: string; + selection: { + fields: S; + } & HookStrictSelect, NodeTypeRegistrySelect>; + } & Omit< + UseQueryOptions< + { + nodeTypeRegistry: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useNodeTypeRegistryQuery( + params: { + name: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: nodeTypeRegistryKeys.detail(params.name), + queryFn: () => + getClient() + .nodeTypeRegistry.findOne({ + name: params.name, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single NodeTypeRegistry without React hooks + * + * @example + * ```ts + * const data = await fetchNodeTypeRegistryQuery({ + * name: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchNodeTypeRegistryQuery(params: { + name: string; + selection: { + fields: S; + } & HookStrictSelect, NodeTypeRegistrySelect>; +}): Promise<{ + nodeTypeRegistry: InferSelectResult | null; +}>; +export async function fetchNodeTypeRegistryQuery(params: { + name: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .nodeTypeRegistry.findOne({ + name: params.name, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single NodeTypeRegistry for SSR or cache warming + * + * @example + * ```ts + * await prefetchNodeTypeRegistryQuery(queryClient, { name: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchNodeTypeRegistryQuery( + queryClient: QueryClient, + params: { + name: string; + selection: { + fields: S; + } & HookStrictSelect, NodeTypeRegistrySelect>; + } +): Promise; +export async function prefetchNodeTypeRegistryQuery( + queryClient: QueryClient, + params: { + name: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: nodeTypeRegistryKeys.detail(params.name), + queryFn: () => + getClient() + .nodeTypeRegistry.findOne({ + name: params.name, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useObjectQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useObjectQuery.ts new file mode 100644 index 000000000..a846ce36d --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useObjectQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for Object + * @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 { objectKeys } from '../query-keys'; +import type { ObjectSelect, ObjectWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ObjectSelect, ObjectWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const getNodeAtPathQueryKey = objectKeys.detail; +/** + * Query hook for fetching a single Object + * + * @example + * ```tsx + * const { data, isLoading } = useObjectQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useObjectQuery< + S extends ObjectSelect, + TData = { + getNodeAtPath: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ObjectSelect>; + } & Omit< + UseQueryOptions< + { + getNodeAtPath: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useObjectQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: objectKeys.detail(params.id), + queryFn: () => + getClient() + .object.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single Object without React hooks + * + * @example + * ```ts + * const data = await fetchObjectQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchObjectQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ObjectSelect>; +}): Promise<{ + getNodeAtPath: InferSelectResult | null; +}>; +export async function fetchObjectQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .object.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single Object for SSR or cache warming + * + * @example + * ```ts + * await prefetchObjectQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchObjectQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ObjectSelect>; + } +): Promise; +export async function prefetchObjectQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: objectKeys.detail(params.id), + queryFn: () => + getClient() + .object.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useObjectsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useObjectsQuery.ts new file mode 100644 index 000000000..963b611ad --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useObjectsQuery.ts @@ -0,0 +1,139 @@ +/** + * List query hook for Object + * @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 { objectKeys } from '../query-keys'; +import type { + ObjectSelect, + ObjectWithRelations, + ObjectFilter, + ObjectOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + ObjectSelect, + ObjectWithRelations, + ObjectFilter, + ObjectOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const objectsQueryKey = objectKeys.list; +/** + * Query hook for fetching Object list + * + * @example + * ```tsx + * const { data, isLoading } = useObjectsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useObjectsQuery< + S extends ObjectSelect, + TData = { + objects: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ObjectSelect>; + } & Omit< + UseQueryOptions< + { + objects: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useObjectsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: objectKeys.list(args), + queryFn: () => getClient().object.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch Object list without React hooks + * + * @example + * ```ts + * const data = await fetchObjectsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchObjectsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ObjectSelect>; +}): Promise<{ + objects: ConnectionResult>; +}>; +export async function fetchObjectsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs(params.selection); + return getClient().object.findMany(args).unwrap(); +} +/** + * Prefetch Object list for SSR or cache warming + * + * @example + * ```ts + * await prefetchObjectsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchObjectsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ObjectSelect>; + } +): Promise; +export async function prefetchObjectsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: objectKeys.list(args), + queryFn: () => getClient().object.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgAdminGrantQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgAdminGrantQuery.ts new file mode 100644 index 000000000..a4f507c14 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgAdminGrantQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for OrgAdminGrant + * @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 { orgAdminGrantKeys } from '../query-keys'; +import type { OrgAdminGrantSelect, OrgAdminGrantWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { OrgAdminGrantSelect, OrgAdminGrantWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgAdminGrantQueryKey = orgAdminGrantKeys.detail; +/** + * Query hook for fetching a single OrgAdminGrant + * + * @example + * ```tsx + * const { data, isLoading } = useOrgAdminGrantQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useOrgAdminGrantQuery< + S extends OrgAdminGrantSelect, + TData = { + orgAdminGrant: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgAdminGrantSelect>; + } & Omit< + UseQueryOptions< + { + orgAdminGrant: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgAdminGrantQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgAdminGrantKeys.detail(params.id), + queryFn: () => + getClient() + .orgAdminGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single OrgAdminGrant without React hooks + * + * @example + * ```ts + * const data = await fetchOrgAdminGrantQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchOrgAdminGrantQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgAdminGrantSelect>; +}): Promise<{ + orgAdminGrant: InferSelectResult | null; +}>; +export async function fetchOrgAdminGrantQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .orgAdminGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single OrgAdminGrant for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgAdminGrantQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchOrgAdminGrantQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgAdminGrantSelect>; + } +): Promise; +export async function prefetchOrgAdminGrantQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgAdminGrantKeys.detail(params.id), + queryFn: () => + getClient() + .orgAdminGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgAdminGrantsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgAdminGrantsQuery.ts new file mode 100644 index 000000000..e3ce559b3 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgAdminGrantsQuery.ts @@ -0,0 +1,151 @@ +/** + * List query hook for OrgAdminGrant + * @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 { orgAdminGrantKeys } from '../query-keys'; +import type { + OrgAdminGrantSelect, + OrgAdminGrantWithRelations, + OrgAdminGrantFilter, + OrgAdminGrantOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + OrgAdminGrantSelect, + OrgAdminGrantWithRelations, + OrgAdminGrantFilter, + OrgAdminGrantOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgAdminGrantsQueryKey = orgAdminGrantKeys.list; +/** + * Query hook for fetching OrgAdminGrant list + * + * @example + * ```tsx + * const { data, isLoading } = useOrgAdminGrantsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useOrgAdminGrantsQuery< + S extends OrgAdminGrantSelect, + TData = { + orgAdminGrants: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgAdminGrantSelect>; + } & Omit< + UseQueryOptions< + { + orgAdminGrants: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgAdminGrantsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + OrgAdminGrantSelect, + OrgAdminGrantFilter, + OrgAdminGrantOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgAdminGrantKeys.list(args), + queryFn: () => getClient().orgAdminGrant.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch OrgAdminGrant list without React hooks + * + * @example + * ```ts + * const data = await fetchOrgAdminGrantsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchOrgAdminGrantsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgAdminGrantSelect>; +}): Promise<{ + orgAdminGrants: ConnectionResult>; +}>; +export async function fetchOrgAdminGrantsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + OrgAdminGrantSelect, + OrgAdminGrantFilter, + OrgAdminGrantOrderBy + >(params.selection); + return getClient().orgAdminGrant.findMany(args).unwrap(); +} +/** + * Prefetch OrgAdminGrant list for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgAdminGrantsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchOrgAdminGrantsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgAdminGrantSelect>; + } +): Promise; +export async function prefetchOrgAdminGrantsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs< + OrgAdminGrantSelect, + OrgAdminGrantFilter, + OrgAdminGrantOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgAdminGrantKeys.list(args), + queryFn: () => getClient().orgAdminGrant.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 new file mode 100644 index 000000000..42ac5f45a --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgClaimedInviteQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for OrgClaimedInvite + * @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 { orgClaimedInviteKeys } from '../query-keys'; +import type { OrgClaimedInviteSelect, OrgClaimedInviteWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { OrgClaimedInviteSelect, OrgClaimedInviteWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgClaimedInviteQueryKey = orgClaimedInviteKeys.detail; +/** + * Query hook for fetching a single OrgClaimedInvite + * + * @example + * ```tsx + * const { data, isLoading } = useOrgClaimedInviteQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useOrgClaimedInviteQuery< + S extends OrgClaimedInviteSelect, + TData = { + orgClaimedInvite: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgClaimedInviteSelect>; + } & Omit< + UseQueryOptions< + { + orgClaimedInvite: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgClaimedInviteQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgClaimedInviteKeys.detail(params.id), + queryFn: () => + getClient() + .orgClaimedInvite.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single OrgClaimedInvite without React hooks + * + * @example + * ```ts + * const data = await fetchOrgClaimedInviteQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchOrgClaimedInviteQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgClaimedInviteSelect>; +}): Promise<{ + orgClaimedInvite: InferSelectResult | null; +}>; +export async function fetchOrgClaimedInviteQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .orgClaimedInvite.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single OrgClaimedInvite for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgClaimedInviteQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchOrgClaimedInviteQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgClaimedInviteSelect>; + } +): Promise; +export async function prefetchOrgClaimedInviteQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgClaimedInviteKeys.detail(params.id), + queryFn: () => + getClient() + .orgClaimedInvite.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgClaimedInvitesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgClaimedInvitesQuery.ts new file mode 100644 index 000000000..965828b20 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgClaimedInvitesQuery.ts @@ -0,0 +1,163 @@ +/** + * List query hook for OrgClaimedInvite + * @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 { orgClaimedInviteKeys } from '../query-keys'; +import type { + OrgClaimedInviteSelect, + OrgClaimedInviteWithRelations, + OrgClaimedInviteFilter, + OrgClaimedInviteOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + OrgClaimedInviteSelect, + OrgClaimedInviteWithRelations, + OrgClaimedInviteFilter, + OrgClaimedInviteOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgClaimedInvitesQueryKey = orgClaimedInviteKeys.list; +/** + * Query hook for fetching OrgClaimedInvite list + * + * @example + * ```tsx + * const { data, isLoading } = useOrgClaimedInvitesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useOrgClaimedInvitesQuery< + S extends OrgClaimedInviteSelect, + TData = { + orgClaimedInvites: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgClaimedInviteSelect>; + } & Omit< + UseQueryOptions< + { + orgClaimedInvites: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgClaimedInvitesQuery( + params: { + selection: ListSelectionConfig< + OrgClaimedInviteSelect, + OrgClaimedInviteFilter, + OrgClaimedInviteOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + OrgClaimedInviteSelect, + OrgClaimedInviteFilter, + OrgClaimedInviteOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgClaimedInviteKeys.list(args), + queryFn: () => getClient().orgClaimedInvite.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch OrgClaimedInvite list without React hooks + * + * @example + * ```ts + * const data = await fetchOrgClaimedInvitesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchOrgClaimedInvitesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgClaimedInviteSelect>; +}): Promise<{ + orgClaimedInvites: ConnectionResult>; +}>; +export async function fetchOrgClaimedInvitesQuery(params: { + selection: ListSelectionConfig< + OrgClaimedInviteSelect, + OrgClaimedInviteFilter, + OrgClaimedInviteOrderBy + >; +}) { + const args = buildListSelectionArgs< + OrgClaimedInviteSelect, + OrgClaimedInviteFilter, + OrgClaimedInviteOrderBy + >(params.selection); + return getClient().orgClaimedInvite.findMany(args).unwrap(); +} +/** + * Prefetch OrgClaimedInvite list for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgClaimedInvitesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchOrgClaimedInvitesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgClaimedInviteSelect>; + } +): Promise; +export async function prefetchOrgClaimedInvitesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + OrgClaimedInviteSelect, + OrgClaimedInviteFilter, + OrgClaimedInviteOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + OrgClaimedInviteSelect, + OrgClaimedInviteFilter, + OrgClaimedInviteOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgClaimedInviteKeys.list(args), + queryFn: () => getClient().orgClaimedInvite.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 new file mode 100644 index 000000000..14ccf29ec --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgGrantQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for OrgGrant + * @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 { orgGrantKeys } from '../query-keys'; +import type { OrgGrantSelect, OrgGrantWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { OrgGrantSelect, OrgGrantWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgGrantQueryKey = orgGrantKeys.detail; +/** + * Query hook for fetching a single OrgGrant + * + * @example + * ```tsx + * const { data, isLoading } = useOrgGrantQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useOrgGrantQuery< + S extends OrgGrantSelect, + TData = { + orgGrant: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgGrantSelect>; + } & Omit< + UseQueryOptions< + { + orgGrant: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgGrantQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgGrantKeys.detail(params.id), + queryFn: () => + getClient() + .orgGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single OrgGrant without React hooks + * + * @example + * ```ts + * const data = await fetchOrgGrantQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchOrgGrantQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgGrantSelect>; +}): Promise<{ + orgGrant: InferSelectResult | null; +}>; +export async function fetchOrgGrantQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .orgGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single OrgGrant for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgGrantQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchOrgGrantQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgGrantSelect>; + } +): Promise; +export async function prefetchOrgGrantQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgGrantKeys.detail(params.id), + queryFn: () => + getClient() + .orgGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgGrantsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgGrantsQuery.ts new file mode 100644 index 000000000..8f1ddc2ab --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgGrantsQuery.ts @@ -0,0 +1,145 @@ +/** + * List query hook for OrgGrant + * @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 { orgGrantKeys } from '../query-keys'; +import type { + OrgGrantSelect, + OrgGrantWithRelations, + OrgGrantFilter, + OrgGrantOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + OrgGrantSelect, + OrgGrantWithRelations, + OrgGrantFilter, + OrgGrantOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgGrantsQueryKey = orgGrantKeys.list; +/** + * Query hook for fetching OrgGrant list + * + * @example + * ```tsx + * const { data, isLoading } = useOrgGrantsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useOrgGrantsQuery< + S extends OrgGrantSelect, + TData = { + orgGrants: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgGrantSelect>; + } & Omit< + UseQueryOptions< + { + orgGrants: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgGrantsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgGrantKeys.list(args), + queryFn: () => getClient().orgGrant.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch OrgGrant list without React hooks + * + * @example + * ```ts + * const data = await fetchOrgGrantsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchOrgGrantsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgGrantSelect>; +}): Promise<{ + orgGrants: ConnectionResult>; +}>; +export async function fetchOrgGrantsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().orgGrant.findMany(args).unwrap(); +} +/** + * Prefetch OrgGrant list for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgGrantsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchOrgGrantsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgGrantSelect>; + } +): Promise; +export async function prefetchOrgGrantsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: orgGrantKeys.list(args), + queryFn: () => getClient().orgGrant.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgInviteQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgInviteQuery.ts new file mode 100644 index 000000000..d6c2f623f --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgInviteQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for OrgInvite + * @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 { orgInviteKeys } from '../query-keys'; +import type { OrgInviteSelect, OrgInviteWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { OrgInviteSelect, OrgInviteWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgInviteQueryKey = orgInviteKeys.detail; +/** + * Query hook for fetching a single OrgInvite + * + * @example + * ```tsx + * const { data, isLoading } = useOrgInviteQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useOrgInviteQuery< + S extends OrgInviteSelect, + TData = { + orgInvite: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgInviteSelect>; + } & Omit< + UseQueryOptions< + { + orgInvite: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgInviteQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgInviteKeys.detail(params.id), + queryFn: () => + getClient() + .orgInvite.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single OrgInvite without React hooks + * + * @example + * ```ts + * const data = await fetchOrgInviteQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchOrgInviteQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgInviteSelect>; +}): Promise<{ + orgInvite: InferSelectResult | null; +}>; +export async function fetchOrgInviteQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .orgInvite.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single OrgInvite for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgInviteQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchOrgInviteQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgInviteSelect>; + } +): Promise; +export async function prefetchOrgInviteQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgInviteKeys.detail(params.id), + queryFn: () => + getClient() + .orgInvite.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgInvitesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgInvitesQuery.ts new file mode 100644 index 000000000..baaef3936 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgInvitesQuery.ts @@ -0,0 +1,145 @@ +/** + * List query hook for OrgInvite + * @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 { orgInviteKeys } from '../query-keys'; +import type { + OrgInviteSelect, + OrgInviteWithRelations, + OrgInviteFilter, + OrgInviteOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + OrgInviteSelect, + OrgInviteWithRelations, + OrgInviteFilter, + OrgInviteOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgInvitesQueryKey = orgInviteKeys.list; +/** + * Query hook for fetching OrgInvite list + * + * @example + * ```tsx + * const { data, isLoading } = useOrgInvitesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useOrgInvitesQuery< + S extends OrgInviteSelect, + TData = { + orgInvites: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgInviteSelect>; + } & Omit< + UseQueryOptions< + { + orgInvites: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgInvitesQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgInviteKeys.list(args), + queryFn: () => getClient().orgInvite.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch OrgInvite list without React hooks + * + * @example + * ```ts + * const data = await fetchOrgInvitesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchOrgInvitesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgInviteSelect>; +}): Promise<{ + orgInvites: ConnectionResult>; +}>; +export async function fetchOrgInvitesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().orgInvite.findMany(args).unwrap(); +} +/** + * Prefetch OrgInvite list for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgInvitesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchOrgInvitesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgInviteSelect>; + } +): Promise; +export async function prefetchOrgInvitesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: orgInviteKeys.list(args), + queryFn: () => getClient().orgInvite.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgLimitDefaultQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgLimitDefaultQuery.ts new file mode 100644 index 000000000..695d1eff9 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgLimitDefaultQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for OrgLimitDefault + * @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 { orgLimitDefaultKeys } from '../query-keys'; +import type { OrgLimitDefaultSelect, OrgLimitDefaultWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { OrgLimitDefaultSelect, OrgLimitDefaultWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgLimitDefaultQueryKey = orgLimitDefaultKeys.detail; +/** + * Query hook for fetching a single OrgLimitDefault + * + * @example + * ```tsx + * const { data, isLoading } = useOrgLimitDefaultQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useOrgLimitDefaultQuery< + S extends OrgLimitDefaultSelect, + TData = { + orgLimitDefault: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgLimitDefaultSelect>; + } & Omit< + UseQueryOptions< + { + orgLimitDefault: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgLimitDefaultQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgLimitDefaultKeys.detail(params.id), + queryFn: () => + getClient() + .orgLimitDefault.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single OrgLimitDefault without React hooks + * + * @example + * ```ts + * const data = await fetchOrgLimitDefaultQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchOrgLimitDefaultQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgLimitDefaultSelect>; +}): Promise<{ + orgLimitDefault: InferSelectResult | null; +}>; +export async function fetchOrgLimitDefaultQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .orgLimitDefault.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single OrgLimitDefault for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgLimitDefaultQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchOrgLimitDefaultQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgLimitDefaultSelect>; + } +): Promise; +export async function prefetchOrgLimitDefaultQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgLimitDefaultKeys.detail(params.id), + queryFn: () => + getClient() + .orgLimitDefault.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgLimitDefaultsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgLimitDefaultsQuery.ts new file mode 100644 index 000000000..fae82e41b --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgLimitDefaultsQuery.ts @@ -0,0 +1,163 @@ +/** + * List query hook for OrgLimitDefault + * @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 { orgLimitDefaultKeys } from '../query-keys'; +import type { + OrgLimitDefaultSelect, + OrgLimitDefaultWithRelations, + OrgLimitDefaultFilter, + OrgLimitDefaultOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + OrgLimitDefaultSelect, + OrgLimitDefaultWithRelations, + OrgLimitDefaultFilter, + OrgLimitDefaultOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgLimitDefaultsQueryKey = orgLimitDefaultKeys.list; +/** + * Query hook for fetching OrgLimitDefault list + * + * @example + * ```tsx + * const { data, isLoading } = useOrgLimitDefaultsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useOrgLimitDefaultsQuery< + S extends OrgLimitDefaultSelect, + TData = { + orgLimitDefaults: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgLimitDefaultSelect>; + } & Omit< + UseQueryOptions< + { + orgLimitDefaults: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgLimitDefaultsQuery( + params: { + selection: ListSelectionConfig< + OrgLimitDefaultSelect, + OrgLimitDefaultFilter, + OrgLimitDefaultOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + OrgLimitDefaultSelect, + OrgLimitDefaultFilter, + OrgLimitDefaultOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgLimitDefaultKeys.list(args), + queryFn: () => getClient().orgLimitDefault.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch OrgLimitDefault list without React hooks + * + * @example + * ```ts + * const data = await fetchOrgLimitDefaultsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchOrgLimitDefaultsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgLimitDefaultSelect>; +}): Promise<{ + orgLimitDefaults: ConnectionResult>; +}>; +export async function fetchOrgLimitDefaultsQuery(params: { + selection: ListSelectionConfig< + OrgLimitDefaultSelect, + OrgLimitDefaultFilter, + OrgLimitDefaultOrderBy + >; +}) { + const args = buildListSelectionArgs< + OrgLimitDefaultSelect, + OrgLimitDefaultFilter, + OrgLimitDefaultOrderBy + >(params.selection); + return getClient().orgLimitDefault.findMany(args).unwrap(); +} +/** + * Prefetch OrgLimitDefault list for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgLimitDefaultsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchOrgLimitDefaultsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgLimitDefaultSelect>; + } +): Promise; +export async function prefetchOrgLimitDefaultsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + OrgLimitDefaultSelect, + OrgLimitDefaultFilter, + OrgLimitDefaultOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + OrgLimitDefaultSelect, + OrgLimitDefaultFilter, + OrgLimitDefaultOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgLimitDefaultKeys.list(args), + queryFn: () => getClient().orgLimitDefault.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgLimitQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgLimitQuery.ts new file mode 100644 index 000000000..db061397b --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgLimitQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for OrgLimit + * @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 { orgLimitKeys } from '../query-keys'; +import type { OrgLimitSelect, OrgLimitWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { OrgLimitSelect, OrgLimitWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgLimitQueryKey = orgLimitKeys.detail; +/** + * Query hook for fetching a single OrgLimit + * + * @example + * ```tsx + * const { data, isLoading } = useOrgLimitQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useOrgLimitQuery< + S extends OrgLimitSelect, + TData = { + orgLimit: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgLimitSelect>; + } & Omit< + UseQueryOptions< + { + orgLimit: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgLimitQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgLimitKeys.detail(params.id), + queryFn: () => + getClient() + .orgLimit.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single OrgLimit without React hooks + * + * @example + * ```ts + * const data = await fetchOrgLimitQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchOrgLimitQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgLimitSelect>; +}): Promise<{ + orgLimit: InferSelectResult | null; +}>; +export async function fetchOrgLimitQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .orgLimit.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single OrgLimit for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgLimitQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchOrgLimitQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgLimitSelect>; + } +): Promise; +export async function prefetchOrgLimitQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgLimitKeys.detail(params.id), + queryFn: () => + getClient() + .orgLimit.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgLimitsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgLimitsQuery.ts new file mode 100644 index 000000000..032866dfb --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgLimitsQuery.ts @@ -0,0 +1,145 @@ +/** + * List query hook for OrgLimit + * @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 { orgLimitKeys } from '../query-keys'; +import type { + OrgLimitSelect, + OrgLimitWithRelations, + OrgLimitFilter, + OrgLimitOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + OrgLimitSelect, + OrgLimitWithRelations, + OrgLimitFilter, + OrgLimitOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgLimitsQueryKey = orgLimitKeys.list; +/** + * Query hook for fetching OrgLimit list + * + * @example + * ```tsx + * const { data, isLoading } = useOrgLimitsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useOrgLimitsQuery< + S extends OrgLimitSelect, + TData = { + orgLimits: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgLimitSelect>; + } & Omit< + UseQueryOptions< + { + orgLimits: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgLimitsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgLimitKeys.list(args), + queryFn: () => getClient().orgLimit.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch OrgLimit list without React hooks + * + * @example + * ```ts + * const data = await fetchOrgLimitsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchOrgLimitsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgLimitSelect>; +}): Promise<{ + orgLimits: ConnectionResult>; +}>; +export async function fetchOrgLimitsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().orgLimit.findMany(args).unwrap(); +} +/** + * Prefetch OrgLimit list for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgLimitsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchOrgLimitsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgLimitSelect>; + } +): Promise; +export async function prefetchOrgLimitsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: orgLimitKeys.list(args), + queryFn: () => getClient().orgLimit.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgMemberQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgMemberQuery.ts new file mode 100644 index 000000000..aa4257559 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgMemberQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for OrgMember + * @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 { orgMemberKeys } from '../query-keys'; +import type { OrgMemberSelect, OrgMemberWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { OrgMemberSelect, OrgMemberWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgMemberQueryKey = orgMemberKeys.detail; +/** + * Query hook for fetching a single OrgMember + * + * @example + * ```tsx + * const { data, isLoading } = useOrgMemberQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useOrgMemberQuery< + S extends OrgMemberSelect, + TData = { + orgMember: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgMemberSelect>; + } & Omit< + UseQueryOptions< + { + orgMember: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgMemberQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgMemberKeys.detail(params.id), + queryFn: () => + getClient() + .orgMember.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single OrgMember without React hooks + * + * @example + * ```ts + * const data = await fetchOrgMemberQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchOrgMemberQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgMemberSelect>; +}): Promise<{ + orgMember: InferSelectResult | null; +}>; +export async function fetchOrgMemberQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .orgMember.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single OrgMember for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgMemberQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchOrgMemberQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgMemberSelect>; + } +): Promise; +export async function prefetchOrgMemberQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgMemberKeys.detail(params.id), + queryFn: () => + getClient() + .orgMember.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgMembersQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgMembersQuery.ts new file mode 100644 index 000000000..651d52afb --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgMembersQuery.ts @@ -0,0 +1,145 @@ +/** + * List query hook for OrgMember + * @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 { orgMemberKeys } from '../query-keys'; +import type { + OrgMemberSelect, + OrgMemberWithRelations, + OrgMemberFilter, + OrgMemberOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + OrgMemberSelect, + OrgMemberWithRelations, + OrgMemberFilter, + OrgMemberOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgMembersQueryKey = orgMemberKeys.list; +/** + * Query hook for fetching OrgMember list + * + * @example + * ```tsx + * const { data, isLoading } = useOrgMembersQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useOrgMembersQuery< + S extends OrgMemberSelect, + TData = { + orgMembers: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgMemberSelect>; + } & Omit< + UseQueryOptions< + { + orgMembers: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgMembersQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgMemberKeys.list(args), + queryFn: () => getClient().orgMember.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch OrgMember list without React hooks + * + * @example + * ```ts + * const data = await fetchOrgMembersQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchOrgMembersQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgMemberSelect>; +}): Promise<{ + orgMembers: ConnectionResult>; +}>; +export async function fetchOrgMembersQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().orgMember.findMany(args).unwrap(); +} +/** + * Prefetch OrgMember list for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgMembersQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchOrgMembersQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgMemberSelect>; + } +): Promise; +export async function prefetchOrgMembersQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: orgMemberKeys.list(args), + queryFn: () => getClient().orgMember.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipDefaultQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipDefaultQuery.ts new file mode 100644 index 000000000..47264e0a5 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipDefaultQuery.ts @@ -0,0 +1,144 @@ +/** + * Single item query hook for OrgMembershipDefault + * @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 { orgMembershipDefaultKeys } from '../query-keys'; +import type { + OrgMembershipDefaultSelect, + OrgMembershipDefaultWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgMembershipDefaultSelect, + OrgMembershipDefaultWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgMembershipDefaultQueryKey = orgMembershipDefaultKeys.detail; +/** + * Query hook for fetching a single OrgMembershipDefault + * + * @example + * ```tsx + * const { data, isLoading } = useOrgMembershipDefaultQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useOrgMembershipDefaultQuery< + S extends OrgMembershipDefaultSelect, + TData = { + orgMembershipDefault: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgMembershipDefaultSelect>; + } & Omit< + UseQueryOptions< + { + orgMembershipDefault: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgMembershipDefaultQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgMembershipDefaultKeys.detail(params.id), + queryFn: () => + getClient() + .orgMembershipDefault.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single OrgMembershipDefault without React hooks + * + * @example + * ```ts + * const data = await fetchOrgMembershipDefaultQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchOrgMembershipDefaultQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgMembershipDefaultSelect>; +}): Promise<{ + orgMembershipDefault: InferSelectResult | null; +}>; +export async function fetchOrgMembershipDefaultQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .orgMembershipDefault.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single OrgMembershipDefault for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgMembershipDefaultQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchOrgMembershipDefaultQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgMembershipDefaultSelect>; + } +): Promise; +export async function prefetchOrgMembershipDefaultQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgMembershipDefaultKeys.detail(params.id), + queryFn: () => + getClient() + .orgMembershipDefault.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipDefaultsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipDefaultsQuery.ts new file mode 100644 index 000000000..8cb20caae --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipDefaultsQuery.ts @@ -0,0 +1,178 @@ +/** + * List query hook for OrgMembershipDefault + * @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 { orgMembershipDefaultKeys } from '../query-keys'; +import type { + OrgMembershipDefaultSelect, + OrgMembershipDefaultWithRelations, + OrgMembershipDefaultFilter, + OrgMembershipDefaultOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + OrgMembershipDefaultSelect, + OrgMembershipDefaultWithRelations, + OrgMembershipDefaultFilter, + OrgMembershipDefaultOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgMembershipDefaultsQueryKey = orgMembershipDefaultKeys.list; +/** + * Query hook for fetching OrgMembershipDefault list + * + * @example + * ```tsx + * const { data, isLoading } = useOrgMembershipDefaultsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useOrgMembershipDefaultsQuery< + S extends OrgMembershipDefaultSelect, + TData = { + orgMembershipDefaults: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, OrgMembershipDefaultSelect>; + } & Omit< + UseQueryOptions< + { + orgMembershipDefaults: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgMembershipDefaultsQuery( + params: { + selection: ListSelectionConfig< + OrgMembershipDefaultSelect, + OrgMembershipDefaultFilter, + OrgMembershipDefaultOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + OrgMembershipDefaultSelect, + OrgMembershipDefaultFilter, + OrgMembershipDefaultOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgMembershipDefaultKeys.list(args), + queryFn: () => getClient().orgMembershipDefault.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch OrgMembershipDefault list without React hooks + * + * @example + * ```ts + * const data = await fetchOrgMembershipDefaultsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchOrgMembershipDefaultsQuery< + S extends OrgMembershipDefaultSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, OrgMembershipDefaultSelect>; +}): Promise<{ + orgMembershipDefaults: ConnectionResult>; +}>; +export async function fetchOrgMembershipDefaultsQuery(params: { + selection: ListSelectionConfig< + OrgMembershipDefaultSelect, + OrgMembershipDefaultFilter, + OrgMembershipDefaultOrderBy + >; +}) { + const args = buildListSelectionArgs< + OrgMembershipDefaultSelect, + OrgMembershipDefaultFilter, + OrgMembershipDefaultOrderBy + >(params.selection); + return getClient().orgMembershipDefault.findMany(args).unwrap(); +} +/** + * Prefetch OrgMembershipDefault list for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgMembershipDefaultsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchOrgMembershipDefaultsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, OrgMembershipDefaultSelect>; + } +): Promise; +export async function prefetchOrgMembershipDefaultsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + OrgMembershipDefaultSelect, + OrgMembershipDefaultFilter, + OrgMembershipDefaultOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + OrgMembershipDefaultSelect, + OrgMembershipDefaultFilter, + OrgMembershipDefaultOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgMembershipDefaultKeys.list(args), + queryFn: () => getClient().orgMembershipDefault.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipQuery.ts new file mode 100644 index 000000000..ec1c49d75 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for OrgMembership + * @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 { orgMembershipKeys } from '../query-keys'; +import type { OrgMembershipSelect, OrgMembershipWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { OrgMembershipSelect, OrgMembershipWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgMembershipQueryKey = orgMembershipKeys.detail; +/** + * Query hook for fetching a single OrgMembership + * + * @example + * ```tsx + * const { data, isLoading } = useOrgMembershipQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useOrgMembershipQuery< + S extends OrgMembershipSelect, + TData = { + orgMembership: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgMembershipSelect>; + } & Omit< + UseQueryOptions< + { + orgMembership: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgMembershipQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgMembershipKeys.detail(params.id), + queryFn: () => + getClient() + .orgMembership.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single OrgMembership without React hooks + * + * @example + * ```ts + * const data = await fetchOrgMembershipQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchOrgMembershipQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgMembershipSelect>; +}): Promise<{ + orgMembership: InferSelectResult | null; +}>; +export async function fetchOrgMembershipQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .orgMembership.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single OrgMembership for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgMembershipQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchOrgMembershipQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgMembershipSelect>; + } +): Promise; +export async function prefetchOrgMembershipQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgMembershipKeys.detail(params.id), + queryFn: () => + getClient() + .orgMembership.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipsQuery.ts new file mode 100644 index 000000000..cde182a7b --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgMembershipsQuery.ts @@ -0,0 +1,151 @@ +/** + * List query hook for OrgMembership + * @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 { orgMembershipKeys } from '../query-keys'; +import type { + OrgMembershipSelect, + OrgMembershipWithRelations, + OrgMembershipFilter, + OrgMembershipOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + OrgMembershipSelect, + OrgMembershipWithRelations, + OrgMembershipFilter, + OrgMembershipOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgMembershipsQueryKey = orgMembershipKeys.list; +/** + * Query hook for fetching OrgMembership list + * + * @example + * ```tsx + * const { data, isLoading } = useOrgMembershipsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useOrgMembershipsQuery< + S extends OrgMembershipSelect, + TData = { + orgMemberships: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgMembershipSelect>; + } & Omit< + UseQueryOptions< + { + orgMemberships: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgMembershipsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + OrgMembershipSelect, + OrgMembershipFilter, + OrgMembershipOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgMembershipKeys.list(args), + queryFn: () => getClient().orgMembership.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch OrgMembership list without React hooks + * + * @example + * ```ts + * const data = await fetchOrgMembershipsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchOrgMembershipsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgMembershipSelect>; +}): Promise<{ + orgMemberships: ConnectionResult>; +}>; +export async function fetchOrgMembershipsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + OrgMembershipSelect, + OrgMembershipFilter, + OrgMembershipOrderBy + >(params.selection); + return getClient().orgMembership.findMany(args).unwrap(); +} +/** + * Prefetch OrgMembership list for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgMembershipsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchOrgMembershipsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgMembershipSelect>; + } +): Promise; +export async function prefetchOrgMembershipsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs< + OrgMembershipSelect, + OrgMembershipFilter, + OrgMembershipOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgMembershipKeys.list(args), + queryFn: () => getClient().orgMembership.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgOwnerGrantQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgOwnerGrantQuery.ts new file mode 100644 index 000000000..9a0b0c9df --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgOwnerGrantQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for OrgOwnerGrant + * @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 { orgOwnerGrantKeys } from '../query-keys'; +import type { OrgOwnerGrantSelect, OrgOwnerGrantWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { OrgOwnerGrantSelect, OrgOwnerGrantWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgOwnerGrantQueryKey = orgOwnerGrantKeys.detail; +/** + * Query hook for fetching a single OrgOwnerGrant + * + * @example + * ```tsx + * const { data, isLoading } = useOrgOwnerGrantQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useOrgOwnerGrantQuery< + S extends OrgOwnerGrantSelect, + TData = { + orgOwnerGrant: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgOwnerGrantSelect>; + } & Omit< + UseQueryOptions< + { + orgOwnerGrant: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgOwnerGrantQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgOwnerGrantKeys.detail(params.id), + queryFn: () => + getClient() + .orgOwnerGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single OrgOwnerGrant without React hooks + * + * @example + * ```ts + * const data = await fetchOrgOwnerGrantQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchOrgOwnerGrantQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgOwnerGrantSelect>; +}): Promise<{ + orgOwnerGrant: InferSelectResult | null; +}>; +export async function fetchOrgOwnerGrantQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .orgOwnerGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single OrgOwnerGrant for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgOwnerGrantQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchOrgOwnerGrantQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgOwnerGrantSelect>; + } +): Promise; +export async function prefetchOrgOwnerGrantQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgOwnerGrantKeys.detail(params.id), + queryFn: () => + getClient() + .orgOwnerGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgOwnerGrantsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgOwnerGrantsQuery.ts new file mode 100644 index 000000000..315d1cc57 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgOwnerGrantsQuery.ts @@ -0,0 +1,151 @@ +/** + * List query hook for OrgOwnerGrant + * @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 { orgOwnerGrantKeys } from '../query-keys'; +import type { + OrgOwnerGrantSelect, + OrgOwnerGrantWithRelations, + OrgOwnerGrantFilter, + OrgOwnerGrantOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + OrgOwnerGrantSelect, + OrgOwnerGrantWithRelations, + OrgOwnerGrantFilter, + OrgOwnerGrantOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgOwnerGrantsQueryKey = orgOwnerGrantKeys.list; +/** + * Query hook for fetching OrgOwnerGrant list + * + * @example + * ```tsx + * const { data, isLoading } = useOrgOwnerGrantsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useOrgOwnerGrantsQuery< + S extends OrgOwnerGrantSelect, + TData = { + orgOwnerGrants: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgOwnerGrantSelect>; + } & Omit< + UseQueryOptions< + { + orgOwnerGrants: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgOwnerGrantsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + OrgOwnerGrantSelect, + OrgOwnerGrantFilter, + OrgOwnerGrantOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgOwnerGrantKeys.list(args), + queryFn: () => getClient().orgOwnerGrant.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch OrgOwnerGrant list without React hooks + * + * @example + * ```ts + * const data = await fetchOrgOwnerGrantsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchOrgOwnerGrantsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgOwnerGrantSelect>; +}): Promise<{ + orgOwnerGrants: ConnectionResult>; +}>; +export async function fetchOrgOwnerGrantsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + OrgOwnerGrantSelect, + OrgOwnerGrantFilter, + OrgOwnerGrantOrderBy + >(params.selection); + return getClient().orgOwnerGrant.findMany(args).unwrap(); +} +/** + * Prefetch OrgOwnerGrant list for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgOwnerGrantsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchOrgOwnerGrantsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgOwnerGrantSelect>; + } +): Promise; +export async function prefetchOrgOwnerGrantsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs< + OrgOwnerGrantSelect, + OrgOwnerGrantFilter, + OrgOwnerGrantOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgOwnerGrantKeys.list(args), + queryFn: () => getClient().orgOwnerGrant.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionDefaultQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionDefaultQuery.ts new file mode 100644 index 000000000..3f324b798 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionDefaultQuery.ts @@ -0,0 +1,144 @@ +/** + * Single item query hook for OrgPermissionDefault + * @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 { orgPermissionDefaultKeys } from '../query-keys'; +import type { + OrgPermissionDefaultSelect, + OrgPermissionDefaultWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgPermissionDefaultSelect, + OrgPermissionDefaultWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgPermissionDefaultQueryKey = orgPermissionDefaultKeys.detail; +/** + * Query hook for fetching a single OrgPermissionDefault + * + * @example + * ```tsx + * const { data, isLoading } = useOrgPermissionDefaultQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useOrgPermissionDefaultQuery< + S extends OrgPermissionDefaultSelect, + TData = { + orgPermissionDefault: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgPermissionDefaultSelect>; + } & Omit< + UseQueryOptions< + { + orgPermissionDefault: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgPermissionDefaultQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgPermissionDefaultKeys.detail(params.id), + queryFn: () => + getClient() + .orgPermissionDefault.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single OrgPermissionDefault without React hooks + * + * @example + * ```ts + * const data = await fetchOrgPermissionDefaultQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchOrgPermissionDefaultQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgPermissionDefaultSelect>; +}): Promise<{ + orgPermissionDefault: InferSelectResult | null; +}>; +export async function fetchOrgPermissionDefaultQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .orgPermissionDefault.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single OrgPermissionDefault for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgPermissionDefaultQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchOrgPermissionDefaultQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgPermissionDefaultSelect>; + } +): Promise; +export async function prefetchOrgPermissionDefaultQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgPermissionDefaultKeys.detail(params.id), + queryFn: () => + getClient() + .orgPermissionDefault.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionDefaultsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionDefaultsQuery.ts new file mode 100644 index 000000000..021e73f1c --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionDefaultsQuery.ts @@ -0,0 +1,178 @@ +/** + * List query hook for OrgPermissionDefault + * @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 { orgPermissionDefaultKeys } from '../query-keys'; +import type { + OrgPermissionDefaultSelect, + OrgPermissionDefaultWithRelations, + OrgPermissionDefaultFilter, + OrgPermissionDefaultOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + OrgPermissionDefaultSelect, + OrgPermissionDefaultWithRelations, + OrgPermissionDefaultFilter, + OrgPermissionDefaultOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgPermissionDefaultsQueryKey = orgPermissionDefaultKeys.list; +/** + * Query hook for fetching OrgPermissionDefault list + * + * @example + * ```tsx + * const { data, isLoading } = useOrgPermissionDefaultsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useOrgPermissionDefaultsQuery< + S extends OrgPermissionDefaultSelect, + TData = { + orgPermissionDefaults: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, OrgPermissionDefaultSelect>; + } & Omit< + UseQueryOptions< + { + orgPermissionDefaults: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgPermissionDefaultsQuery( + params: { + selection: ListSelectionConfig< + OrgPermissionDefaultSelect, + OrgPermissionDefaultFilter, + OrgPermissionDefaultOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + OrgPermissionDefaultSelect, + OrgPermissionDefaultFilter, + OrgPermissionDefaultOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgPermissionDefaultKeys.list(args), + queryFn: () => getClient().orgPermissionDefault.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch OrgPermissionDefault list without React hooks + * + * @example + * ```ts + * const data = await fetchOrgPermissionDefaultsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchOrgPermissionDefaultsQuery< + S extends OrgPermissionDefaultSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, OrgPermissionDefaultSelect>; +}): Promise<{ + orgPermissionDefaults: ConnectionResult>; +}>; +export async function fetchOrgPermissionDefaultsQuery(params: { + selection: ListSelectionConfig< + OrgPermissionDefaultSelect, + OrgPermissionDefaultFilter, + OrgPermissionDefaultOrderBy + >; +}) { + const args = buildListSelectionArgs< + OrgPermissionDefaultSelect, + OrgPermissionDefaultFilter, + OrgPermissionDefaultOrderBy + >(params.selection); + return getClient().orgPermissionDefault.findMany(args).unwrap(); +} +/** + * Prefetch OrgPermissionDefault list for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgPermissionDefaultsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchOrgPermissionDefaultsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, OrgPermissionDefaultSelect>; + } +): Promise; +export async function prefetchOrgPermissionDefaultsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + OrgPermissionDefaultSelect, + OrgPermissionDefaultFilter, + OrgPermissionDefaultOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + OrgPermissionDefaultSelect, + OrgPermissionDefaultFilter, + OrgPermissionDefaultOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgPermissionDefaultKeys.list(args), + queryFn: () => getClient().orgPermissionDefault.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionQuery.ts new file mode 100644 index 000000000..3d28f9542 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for OrgPermission + * @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 { orgPermissionKeys } from '../query-keys'; +import type { OrgPermissionSelect, OrgPermissionWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { OrgPermissionSelect, OrgPermissionWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgPermissionQueryKey = orgPermissionKeys.detail; +/** + * Query hook for fetching a single OrgPermission + * + * @example + * ```tsx + * const { data, isLoading } = useOrgPermissionQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useOrgPermissionQuery< + S extends OrgPermissionSelect, + TData = { + orgPermission: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgPermissionSelect>; + } & Omit< + UseQueryOptions< + { + orgPermission: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgPermissionQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgPermissionKeys.detail(params.id), + queryFn: () => + getClient() + .orgPermission.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single OrgPermission without React hooks + * + * @example + * ```ts + * const data = await fetchOrgPermissionQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchOrgPermissionQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgPermissionSelect>; +}): Promise<{ + orgPermission: InferSelectResult | null; +}>; +export async function fetchOrgPermissionQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .orgPermission.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single OrgPermission for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgPermissionQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchOrgPermissionQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgPermissionSelect>; + } +): Promise; +export async function prefetchOrgPermissionQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgPermissionKeys.detail(params.id), + queryFn: () => + getClient() + .orgPermission.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionsGetByMaskQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionsGetByMaskQuery.ts new file mode 100644 index 000000000..7410e3b04 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionsGetByMaskQuery.ts @@ -0,0 +1,108 @@ +/** + * Custom query hook for orgPermissionsGetByMask + * @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 { OrgPermissionsGetByMaskVariables } from '../../orm/query'; +import type { OrgPermissionConnection } from '../../orm/input-types'; +export type { OrgPermissionsGetByMaskVariables } from '../../orm/query'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgPermissionsGetByMaskQueryKey = customQueryKeys.orgPermissionsGetByMask; +/** + * Reads and enables pagination through a set of `OrgPermission`. + * + * @example + * ```tsx + * const { data, isLoading } = useOrgPermissionsGetByMaskQuery({ variables: { mask, first, offset, after } }); + * + * if (data?.orgPermissionsGetByMask) { + * console.log(data.orgPermissionsGetByMask); + * } + * ``` + */ +export function useOrgPermissionsGetByMaskQuery< + TData = { + orgPermissionsGetByMask: OrgPermissionConnection | null; + }, +>( + params?: { + variables?: OrgPermissionsGetByMaskVariables; + } & Omit< + UseQueryOptions< + { + orgPermissionsGetByMask: OrgPermissionConnection | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgPermissionsGetByMaskQuery< + TData = { + orgPermissionsGetByMask: OrgPermissionConnection | null; + }, +>( + params?: { + variables?: OrgPermissionsGetByMaskVariables; + } & Omit< + UseQueryOptions< + { + orgPermissionsGetByMask: OrgPermissionConnection | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult { + const variables = params?.variables ?? {}; + const { variables: _variables, ...queryOptions } = params ?? {}; + void _variables; + return useQuery({ + queryKey: orgPermissionsGetByMaskQueryKey(variables), + queryFn: () => getClient().query.orgPermissionsGetByMask(variables).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch orgPermissionsGetByMask without React hooks + * + * @example + * ```ts + * const data = await fetchOrgPermissionsGetByMaskQuery({ variables: { mask, first, offset, after } }); + * ``` + */ +export async function fetchOrgPermissionsGetByMaskQuery(params?: { + variables?: OrgPermissionsGetByMaskVariables; +}) { + const variables = params?.variables ?? {}; + return getClient().query.orgPermissionsGetByMask(variables).unwrap(); +} +/** + * Prefetch orgPermissionsGetByMask for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgPermissionsGetByMaskQuery(queryClient, { variables: { mask, first, offset, after } }); + * ``` + */ +export async function prefetchOrgPermissionsGetByMaskQuery( + queryClient: QueryClient, + params?: { + variables?: OrgPermissionsGetByMaskVariables; + } +): Promise { + const variables = params?.variables ?? {}; + await queryClient.prefetchQuery({ + queryKey: orgPermissionsGetByMaskQueryKey(variables), + queryFn: () => getClient().query.orgPermissionsGetByMask(variables).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionsGetMaskByNamesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionsGetMaskByNamesQuery.ts new file mode 100644 index 000000000..99199bcee --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionsGetMaskByNamesQuery.ts @@ -0,0 +1,107 @@ +/** + * Custom query hook for orgPermissionsGetMaskByNames + * @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 { OrgPermissionsGetMaskByNamesVariables } from '../../orm/query'; +export type { OrgPermissionsGetMaskByNamesVariables } from '../../orm/query'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgPermissionsGetMaskByNamesQueryKey = customQueryKeys.orgPermissionsGetMaskByNames; +/** + * Query hook for orgPermissionsGetMaskByNames + * + * @example + * ```tsx + * const { data, isLoading } = useOrgPermissionsGetMaskByNamesQuery({ variables: { names } }); + * + * if (data?.orgPermissionsGetMaskByNames) { + * console.log(data.orgPermissionsGetMaskByNames); + * } + * ``` + */ +export function useOrgPermissionsGetMaskByNamesQuery< + TData = { + orgPermissionsGetMaskByNames: string | null; + }, +>( + params?: { + variables?: OrgPermissionsGetMaskByNamesVariables; + } & Omit< + UseQueryOptions< + { + orgPermissionsGetMaskByNames: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgPermissionsGetMaskByNamesQuery< + TData = { + orgPermissionsGetMaskByNames: string | null; + }, +>( + params?: { + variables?: OrgPermissionsGetMaskByNamesVariables; + } & Omit< + UseQueryOptions< + { + orgPermissionsGetMaskByNames: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult { + const variables = params?.variables ?? {}; + const { variables: _variables, ...queryOptions } = params ?? {}; + void _variables; + return useQuery({ + queryKey: orgPermissionsGetMaskByNamesQueryKey(variables), + queryFn: () => getClient().query.orgPermissionsGetMaskByNames(variables).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch orgPermissionsGetMaskByNames without React hooks + * + * @example + * ```ts + * const data = await fetchOrgPermissionsGetMaskByNamesQuery({ variables: { names } }); + * ``` + */ +export async function fetchOrgPermissionsGetMaskByNamesQuery(params?: { + variables?: OrgPermissionsGetMaskByNamesVariables; +}) { + const variables = params?.variables ?? {}; + return getClient().query.orgPermissionsGetMaskByNames(variables).unwrap(); +} +/** + * Prefetch orgPermissionsGetMaskByNames for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgPermissionsGetMaskByNamesQuery(queryClient, { variables: { names } }); + * ``` + */ +export async function prefetchOrgPermissionsGetMaskByNamesQuery( + queryClient: QueryClient, + params?: { + variables?: OrgPermissionsGetMaskByNamesVariables; + } +): Promise { + const variables = params?.variables ?? {}; + await queryClient.prefetchQuery({ + queryKey: orgPermissionsGetMaskByNamesQueryKey(variables), + queryFn: () => getClient().query.orgPermissionsGetMaskByNames(variables).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionsGetMaskQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionsGetMaskQuery.ts new file mode 100644 index 000000000..dad45181b --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionsGetMaskQuery.ts @@ -0,0 +1,107 @@ +/** + * Custom query hook for orgPermissionsGetMask + * @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 { OrgPermissionsGetMaskVariables } from '../../orm/query'; +export type { OrgPermissionsGetMaskVariables } from '../../orm/query'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgPermissionsGetMaskQueryKey = customQueryKeys.orgPermissionsGetMask; +/** + * Query hook for orgPermissionsGetMask + * + * @example + * ```tsx + * const { data, isLoading } = useOrgPermissionsGetMaskQuery({ variables: { ids } }); + * + * if (data?.orgPermissionsGetMask) { + * console.log(data.orgPermissionsGetMask); + * } + * ``` + */ +export function useOrgPermissionsGetMaskQuery< + TData = { + orgPermissionsGetMask: string | null; + }, +>( + params?: { + variables?: OrgPermissionsGetMaskVariables; + } & Omit< + UseQueryOptions< + { + orgPermissionsGetMask: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgPermissionsGetMaskQuery< + TData = { + orgPermissionsGetMask: string | null; + }, +>( + params?: { + variables?: OrgPermissionsGetMaskVariables; + } & Omit< + UseQueryOptions< + { + orgPermissionsGetMask: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult { + const variables = params?.variables ?? {}; + const { variables: _variables, ...queryOptions } = params ?? {}; + void _variables; + return useQuery({ + queryKey: orgPermissionsGetMaskQueryKey(variables), + queryFn: () => getClient().query.orgPermissionsGetMask(variables).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch orgPermissionsGetMask without React hooks + * + * @example + * ```ts + * const data = await fetchOrgPermissionsGetMaskQuery({ variables: { ids } }); + * ``` + */ +export async function fetchOrgPermissionsGetMaskQuery(params?: { + variables?: OrgPermissionsGetMaskVariables; +}) { + const variables = params?.variables ?? {}; + return getClient().query.orgPermissionsGetMask(variables).unwrap(); +} +/** + * Prefetch orgPermissionsGetMask for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgPermissionsGetMaskQuery(queryClient, { variables: { ids } }); + * ``` + */ +export async function prefetchOrgPermissionsGetMaskQuery( + queryClient: QueryClient, + params?: { + variables?: OrgPermissionsGetMaskVariables; + } +): Promise { + const variables = params?.variables ?? {}; + await queryClient.prefetchQuery({ + queryKey: orgPermissionsGetMaskQueryKey(variables), + queryFn: () => getClient().query.orgPermissionsGetMask(variables).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionsGetPaddedMaskQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionsGetPaddedMaskQuery.ts new file mode 100644 index 000000000..4b4f80e72 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionsGetPaddedMaskQuery.ts @@ -0,0 +1,107 @@ +/** + * Custom query hook for orgPermissionsGetPaddedMask + * @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 { OrgPermissionsGetPaddedMaskVariables } from '../../orm/query'; +export type { OrgPermissionsGetPaddedMaskVariables } from '../../orm/query'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgPermissionsGetPaddedMaskQueryKey = customQueryKeys.orgPermissionsGetPaddedMask; +/** + * Query hook for orgPermissionsGetPaddedMask + * + * @example + * ```tsx + * const { data, isLoading } = useOrgPermissionsGetPaddedMaskQuery({ variables: { mask } }); + * + * if (data?.orgPermissionsGetPaddedMask) { + * console.log(data.orgPermissionsGetPaddedMask); + * } + * ``` + */ +export function useOrgPermissionsGetPaddedMaskQuery< + TData = { + orgPermissionsGetPaddedMask: string | null; + }, +>( + params?: { + variables?: OrgPermissionsGetPaddedMaskVariables; + } & Omit< + UseQueryOptions< + { + orgPermissionsGetPaddedMask: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgPermissionsGetPaddedMaskQuery< + TData = { + orgPermissionsGetPaddedMask: string | null; + }, +>( + params?: { + variables?: OrgPermissionsGetPaddedMaskVariables; + } & Omit< + UseQueryOptions< + { + orgPermissionsGetPaddedMask: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult { + const variables = params?.variables ?? {}; + const { variables: _variables, ...queryOptions } = params ?? {}; + void _variables; + return useQuery({ + queryKey: orgPermissionsGetPaddedMaskQueryKey(variables), + queryFn: () => getClient().query.orgPermissionsGetPaddedMask(variables).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch orgPermissionsGetPaddedMask without React hooks + * + * @example + * ```ts + * const data = await fetchOrgPermissionsGetPaddedMaskQuery({ variables: { mask } }); + * ``` + */ +export async function fetchOrgPermissionsGetPaddedMaskQuery(params?: { + variables?: OrgPermissionsGetPaddedMaskVariables; +}) { + const variables = params?.variables ?? {}; + return getClient().query.orgPermissionsGetPaddedMask(variables).unwrap(); +} +/** + * Prefetch orgPermissionsGetPaddedMask for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgPermissionsGetPaddedMaskQuery(queryClient, { variables: { mask } }); + * ``` + */ +export async function prefetchOrgPermissionsGetPaddedMaskQuery( + queryClient: QueryClient, + params?: { + variables?: OrgPermissionsGetPaddedMaskVariables; + } +): Promise { + const variables = params?.variables ?? {}; + await queryClient.prefetchQuery({ + queryKey: orgPermissionsGetPaddedMaskQueryKey(variables), + queryFn: () => getClient().query.orgPermissionsGetPaddedMask(variables).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionsQuery.ts new file mode 100644 index 000000000..3e48264a6 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgPermissionsQuery.ts @@ -0,0 +1,151 @@ +/** + * List query hook for OrgPermission + * @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 { orgPermissionKeys } from '../query-keys'; +import type { + OrgPermissionSelect, + OrgPermissionWithRelations, + OrgPermissionFilter, + OrgPermissionOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + OrgPermissionSelect, + OrgPermissionWithRelations, + OrgPermissionFilter, + OrgPermissionOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgPermissionsQueryKey = orgPermissionKeys.list; +/** + * Query hook for fetching OrgPermission list + * + * @example + * ```tsx + * const { data, isLoading } = useOrgPermissionsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useOrgPermissionsQuery< + S extends OrgPermissionSelect, + TData = { + orgPermissions: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgPermissionSelect>; + } & Omit< + UseQueryOptions< + { + orgPermissions: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgPermissionsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + OrgPermissionSelect, + OrgPermissionFilter, + OrgPermissionOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgPermissionKeys.list(args), + queryFn: () => getClient().orgPermission.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch OrgPermission list without React hooks + * + * @example + * ```ts + * const data = await fetchOrgPermissionsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchOrgPermissionsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgPermissionSelect>; +}): Promise<{ + orgPermissions: ConnectionResult>; +}>; +export async function fetchOrgPermissionsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + OrgPermissionSelect, + OrgPermissionFilter, + OrgPermissionOrderBy + >(params.selection); + return getClient().orgPermission.findMany(args).unwrap(); +} +/** + * Prefetch OrgPermission list for SSR or cache warming + * + * @example + * ```ts + * await prefetchOrgPermissionsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchOrgPermissionsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgPermissionSelect>; + } +): Promise; +export async function prefetchOrgPermissionsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs< + OrgPermissionSelect, + OrgPermissionFilter, + OrgPermissionOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgPermissionKeys.list(args), + queryFn: () => getClient().orgPermission.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/usePermissionsModuleQuery.ts b/sdk/constructive-react/src/public/hooks/queries/usePermissionsModuleQuery.ts new file mode 100644 index 000000000..736736bbe --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/usePermissionsModuleQuery.ts @@ -0,0 +1,144 @@ +/** + * Single item query hook for PermissionsModule + * @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 { permissionsModuleKeys } from '../query-keys'; +import type { + PermissionsModuleSelect, + PermissionsModuleWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PermissionsModuleSelect, + PermissionsModuleWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const permissionsModuleQueryKey = permissionsModuleKeys.detail; +/** + * Query hook for fetching a single PermissionsModule + * + * @example + * ```tsx + * const { data, isLoading } = usePermissionsModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePermissionsModuleQuery< + S extends PermissionsModuleSelect, + TData = { + permissionsModule: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PermissionsModuleSelect>; + } & Omit< + UseQueryOptions< + { + permissionsModule: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePermissionsModuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: permissionsModuleKeys.detail(params.id), + queryFn: () => + getClient() + .permissionsModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single PermissionsModule without React hooks + * + * @example + * ```ts + * const data = await fetchPermissionsModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPermissionsModuleQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PermissionsModuleSelect>; +}): Promise<{ + permissionsModule: InferSelectResult | null; +}>; +export async function fetchPermissionsModuleQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .permissionsModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single PermissionsModule for SSR or cache warming + * + * @example + * ```ts + * await prefetchPermissionsModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPermissionsModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PermissionsModuleSelect>; + } +): Promise; +export async function prefetchPermissionsModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: permissionsModuleKeys.detail(params.id), + queryFn: () => + getClient() + .permissionsModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/usePermissionsModulesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/usePermissionsModulesQuery.ts new file mode 100644 index 000000000..ccfc68c12 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/usePermissionsModulesQuery.ts @@ -0,0 +1,163 @@ +/** + * List query hook for PermissionsModule + * @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 { permissionsModuleKeys } from '../query-keys'; +import type { + PermissionsModuleSelect, + PermissionsModuleWithRelations, + PermissionsModuleFilter, + PermissionsModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PermissionsModuleSelect, + PermissionsModuleWithRelations, + PermissionsModuleFilter, + PermissionsModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const permissionsModulesQueryKey = permissionsModuleKeys.list; +/** + * Query hook for fetching PermissionsModule list + * + * @example + * ```tsx + * const { data, isLoading } = usePermissionsModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePermissionsModulesQuery< + S extends PermissionsModuleSelect, + TData = { + permissionsModules: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, PermissionsModuleSelect>; + } & Omit< + UseQueryOptions< + { + permissionsModules: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePermissionsModulesQuery( + params: { + selection: ListSelectionConfig< + PermissionsModuleSelect, + PermissionsModuleFilter, + PermissionsModuleOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PermissionsModuleSelect, + PermissionsModuleFilter, + PermissionsModuleOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: permissionsModuleKeys.list(args), + queryFn: () => getClient().permissionsModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch PermissionsModule list without React hooks + * + * @example + * ```ts + * const data = await fetchPermissionsModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPermissionsModulesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, PermissionsModuleSelect>; +}): Promise<{ + permissionsModules: ConnectionResult>; +}>; +export async function fetchPermissionsModulesQuery(params: { + selection: ListSelectionConfig< + PermissionsModuleSelect, + PermissionsModuleFilter, + PermissionsModuleOrderBy + >; +}) { + const args = buildListSelectionArgs< + PermissionsModuleSelect, + PermissionsModuleFilter, + PermissionsModuleOrderBy + >(params.selection); + return getClient().permissionsModule.findMany(args).unwrap(); +} +/** + * Prefetch PermissionsModule list for SSR or cache warming + * + * @example + * ```ts + * await prefetchPermissionsModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPermissionsModulesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, PermissionsModuleSelect>; + } +): Promise; +export async function prefetchPermissionsModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + PermissionsModuleSelect, + PermissionsModuleFilter, + PermissionsModuleOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + PermissionsModuleSelect, + PermissionsModuleFilter, + PermissionsModuleOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: permissionsModuleKeys.list(args), + queryFn: () => getClient().permissionsModule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/usePhoneNumberQuery.ts b/sdk/constructive-react/src/public/hooks/queries/usePhoneNumberQuery.ts new file mode 100644 index 000000000..7c7f6a47d --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/usePhoneNumberQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for PhoneNumber + * @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 { phoneNumberKeys } from '../query-keys'; +import type { PhoneNumberSelect, PhoneNumberWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { PhoneNumberSelect, PhoneNumberWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const phoneNumberQueryKey = phoneNumberKeys.detail; +/** + * Query hook for fetching a single PhoneNumber + * + * @example + * ```tsx + * const { data, isLoading } = usePhoneNumberQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePhoneNumberQuery< + S extends PhoneNumberSelect, + TData = { + phoneNumber: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PhoneNumberSelect>; + } & Omit< + UseQueryOptions< + { + phoneNumber: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePhoneNumberQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: phoneNumberKeys.detail(params.id), + queryFn: () => + getClient() + .phoneNumber.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single PhoneNumber without React hooks + * + * @example + * ```ts + * const data = await fetchPhoneNumberQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPhoneNumberQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PhoneNumberSelect>; +}): Promise<{ + phoneNumber: InferSelectResult | null; +}>; +export async function fetchPhoneNumberQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .phoneNumber.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single PhoneNumber for SSR or cache warming + * + * @example + * ```ts + * await prefetchPhoneNumberQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPhoneNumberQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PhoneNumberSelect>; + } +): Promise; +export async function prefetchPhoneNumberQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: phoneNumberKeys.detail(params.id), + queryFn: () => + getClient() + .phoneNumber.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/usePhoneNumbersModuleQuery.ts b/sdk/constructive-react/src/public/hooks/queries/usePhoneNumbersModuleQuery.ts new file mode 100644 index 000000000..e92d5458d --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/usePhoneNumbersModuleQuery.ts @@ -0,0 +1,144 @@ +/** + * Single item query hook for PhoneNumbersModule + * @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 { phoneNumbersModuleKeys } from '../query-keys'; +import type { + PhoneNumbersModuleSelect, + PhoneNumbersModuleWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PhoneNumbersModuleSelect, + PhoneNumbersModuleWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const phoneNumbersModuleQueryKey = phoneNumbersModuleKeys.detail; +/** + * Query hook for fetching a single PhoneNumbersModule + * + * @example + * ```tsx + * const { data, isLoading } = usePhoneNumbersModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePhoneNumbersModuleQuery< + S extends PhoneNumbersModuleSelect, + TData = { + phoneNumbersModule: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PhoneNumbersModuleSelect>; + } & Omit< + UseQueryOptions< + { + phoneNumbersModule: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePhoneNumbersModuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: phoneNumbersModuleKeys.detail(params.id), + queryFn: () => + getClient() + .phoneNumbersModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single PhoneNumbersModule without React hooks + * + * @example + * ```ts + * const data = await fetchPhoneNumbersModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPhoneNumbersModuleQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PhoneNumbersModuleSelect>; +}): Promise<{ + phoneNumbersModule: InferSelectResult | null; +}>; +export async function fetchPhoneNumbersModuleQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .phoneNumbersModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single PhoneNumbersModule for SSR or cache warming + * + * @example + * ```ts + * await prefetchPhoneNumbersModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPhoneNumbersModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PhoneNumbersModuleSelect>; + } +): Promise; +export async function prefetchPhoneNumbersModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: phoneNumbersModuleKeys.detail(params.id), + queryFn: () => + getClient() + .phoneNumbersModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/usePhoneNumbersModulesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/usePhoneNumbersModulesQuery.ts new file mode 100644 index 000000000..76977ab6b --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/usePhoneNumbersModulesQuery.ts @@ -0,0 +1,171 @@ +/** + * List query hook for PhoneNumbersModule + * @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 { phoneNumbersModuleKeys } from '../query-keys'; +import type { + PhoneNumbersModuleSelect, + PhoneNumbersModuleWithRelations, + PhoneNumbersModuleFilter, + PhoneNumbersModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PhoneNumbersModuleSelect, + PhoneNumbersModuleWithRelations, + PhoneNumbersModuleFilter, + PhoneNumbersModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const phoneNumbersModulesQueryKey = phoneNumbersModuleKeys.list; +/** + * Query hook for fetching PhoneNumbersModule list + * + * @example + * ```tsx + * const { data, isLoading } = usePhoneNumbersModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePhoneNumbersModulesQuery< + S extends PhoneNumbersModuleSelect, + TData = { + phoneNumbersModules: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PhoneNumbersModuleSelect>; + } & Omit< + UseQueryOptions< + { + phoneNumbersModules: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePhoneNumbersModulesQuery( + params: { + selection: ListSelectionConfig< + PhoneNumbersModuleSelect, + PhoneNumbersModuleFilter, + PhoneNumbersModuleOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PhoneNumbersModuleSelect, + PhoneNumbersModuleFilter, + PhoneNumbersModuleOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: phoneNumbersModuleKeys.list(args), + queryFn: () => getClient().phoneNumbersModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch PhoneNumbersModule list without React hooks + * + * @example + * ```ts + * const data = await fetchPhoneNumbersModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPhoneNumbersModulesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, PhoneNumbersModuleSelect>; +}): Promise<{ + phoneNumbersModules: ConnectionResult>; +}>; +export async function fetchPhoneNumbersModulesQuery(params: { + selection: ListSelectionConfig< + PhoneNumbersModuleSelect, + PhoneNumbersModuleFilter, + PhoneNumbersModuleOrderBy + >; +}) { + const args = buildListSelectionArgs< + PhoneNumbersModuleSelect, + PhoneNumbersModuleFilter, + PhoneNumbersModuleOrderBy + >(params.selection); + return getClient().phoneNumbersModule.findMany(args).unwrap(); +} +/** + * Prefetch PhoneNumbersModule list for SSR or cache warming + * + * @example + * ```ts + * await prefetchPhoneNumbersModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPhoneNumbersModulesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PhoneNumbersModuleSelect>; + } +): Promise; +export async function prefetchPhoneNumbersModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + PhoneNumbersModuleSelect, + PhoneNumbersModuleFilter, + PhoneNumbersModuleOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + PhoneNumbersModuleSelect, + PhoneNumbersModuleFilter, + PhoneNumbersModuleOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: phoneNumbersModuleKeys.list(args), + queryFn: () => getClient().phoneNumbersModule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/usePhoneNumbersQuery.ts b/sdk/constructive-react/src/public/hooks/queries/usePhoneNumbersQuery.ts new file mode 100644 index 000000000..3282244e1 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/usePhoneNumbersQuery.ts @@ -0,0 +1,145 @@ +/** + * List query hook for PhoneNumber + * @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 { phoneNumberKeys } from '../query-keys'; +import type { + PhoneNumberSelect, + PhoneNumberWithRelations, + PhoneNumberFilter, + PhoneNumberOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PhoneNumberSelect, + PhoneNumberWithRelations, + PhoneNumberFilter, + PhoneNumberOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const phoneNumbersQueryKey = phoneNumberKeys.list; +/** + * Query hook for fetching PhoneNumber list + * + * @example + * ```tsx + * const { data, isLoading } = usePhoneNumbersQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePhoneNumbersQuery< + S extends PhoneNumberSelect, + TData = { + phoneNumbers: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, PhoneNumberSelect>; + } & Omit< + UseQueryOptions< + { + phoneNumbers: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePhoneNumbersQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: phoneNumberKeys.list(args), + queryFn: () => getClient().phoneNumber.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch PhoneNumber list without React hooks + * + * @example + * ```ts + * const data = await fetchPhoneNumbersQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPhoneNumbersQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, PhoneNumberSelect>; +}): Promise<{ + phoneNumbers: ConnectionResult>; +}>; +export async function fetchPhoneNumbersQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().phoneNumber.findMany(args).unwrap(); +} +/** + * Prefetch PhoneNumber list for SSR or cache warming + * + * @example + * ```ts + * await prefetchPhoneNumbersQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPhoneNumbersQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, PhoneNumberSelect>; + } +): Promise; +export async function prefetchPhoneNumbersQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: phoneNumberKeys.list(args), + queryFn: () => getClient().phoneNumber.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/usePoliciesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/usePoliciesQuery.ts new file mode 100644 index 000000000..1fb836810 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/usePoliciesQuery.ts @@ -0,0 +1,139 @@ +/** + * List query hook for Policy + * @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 { policyKeys } from '../query-keys'; +import type { + PolicySelect, + PolicyWithRelations, + PolicyFilter, + PolicyOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PolicySelect, + PolicyWithRelations, + PolicyFilter, + PolicyOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const policiesQueryKey = policyKeys.list; +/** + * Query hook for fetching Policy list + * + * @example + * ```tsx + * const { data, isLoading } = usePoliciesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePoliciesQuery< + S extends PolicySelect, + TData = { + policies: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, PolicySelect>; + } & Omit< + UseQueryOptions< + { + policies: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePoliciesQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: policyKeys.list(args), + queryFn: () => getClient().policy.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch Policy list without React hooks + * + * @example + * ```ts + * const data = await fetchPoliciesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPoliciesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, PolicySelect>; +}): Promise<{ + policies: ConnectionResult>; +}>; +export async function fetchPoliciesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs(params.selection); + return getClient().policy.findMany(args).unwrap(); +} +/** + * Prefetch Policy list for SSR or cache warming + * + * @example + * ```ts + * await prefetchPoliciesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPoliciesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, PolicySelect>; + } +): Promise; +export async function prefetchPoliciesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: policyKeys.list(args), + queryFn: () => getClient().policy.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/usePolicyQuery.ts b/sdk/constructive-react/src/public/hooks/queries/usePolicyQuery.ts new file mode 100644 index 000000000..b2639d62f --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/usePolicyQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for Policy + * @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 { policyKeys } from '../query-keys'; +import type { PolicySelect, PolicyWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { PolicySelect, PolicyWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const policyQueryKey = policyKeys.detail; +/** + * Query hook for fetching a single Policy + * + * @example + * ```tsx + * const { data, isLoading } = usePolicyQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePolicyQuery< + S extends PolicySelect, + TData = { + policy: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PolicySelect>; + } & Omit< + UseQueryOptions< + { + policy: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePolicyQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: policyKeys.detail(params.id), + queryFn: () => + getClient() + .policy.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single Policy without React hooks + * + * @example + * ```ts + * const data = await fetchPolicyQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPolicyQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PolicySelect>; +}): Promise<{ + policy: InferSelectResult | null; +}>; +export async function fetchPolicyQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .policy.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single Policy for SSR or cache warming + * + * @example + * ```ts + * await prefetchPolicyQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPolicyQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PolicySelect>; + } +): Promise; +export async function prefetchPolicyQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: policyKeys.detail(params.id), + queryFn: () => + getClient() + .policy.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/usePrimaryKeyConstraintQuery.ts b/sdk/constructive-react/src/public/hooks/queries/usePrimaryKeyConstraintQuery.ts new file mode 100644 index 000000000..5176f8f9f --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/usePrimaryKeyConstraintQuery.ts @@ -0,0 +1,144 @@ +/** + * Single item query hook for PrimaryKeyConstraint + * @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 { primaryKeyConstraintKeys } from '../query-keys'; +import type { + PrimaryKeyConstraintSelect, + PrimaryKeyConstraintWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PrimaryKeyConstraintSelect, + PrimaryKeyConstraintWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const primaryKeyConstraintQueryKey = primaryKeyConstraintKeys.detail; +/** + * Query hook for fetching a single PrimaryKeyConstraint + * + * @example + * ```tsx + * const { data, isLoading } = usePrimaryKeyConstraintQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePrimaryKeyConstraintQuery< + S extends PrimaryKeyConstraintSelect, + TData = { + primaryKeyConstraint: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PrimaryKeyConstraintSelect>; + } & Omit< + UseQueryOptions< + { + primaryKeyConstraint: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePrimaryKeyConstraintQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: primaryKeyConstraintKeys.detail(params.id), + queryFn: () => + getClient() + .primaryKeyConstraint.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single PrimaryKeyConstraint without React hooks + * + * @example + * ```ts + * const data = await fetchPrimaryKeyConstraintQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPrimaryKeyConstraintQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PrimaryKeyConstraintSelect>; +}): Promise<{ + primaryKeyConstraint: InferSelectResult | null; +}>; +export async function fetchPrimaryKeyConstraintQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .primaryKeyConstraint.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single PrimaryKeyConstraint for SSR or cache warming + * + * @example + * ```ts + * await prefetchPrimaryKeyConstraintQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPrimaryKeyConstraintQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PrimaryKeyConstraintSelect>; + } +): Promise; +export async function prefetchPrimaryKeyConstraintQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: primaryKeyConstraintKeys.detail(params.id), + queryFn: () => + getClient() + .primaryKeyConstraint.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/usePrimaryKeyConstraintsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/usePrimaryKeyConstraintsQuery.ts new file mode 100644 index 000000000..6691abe29 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/usePrimaryKeyConstraintsQuery.ts @@ -0,0 +1,178 @@ +/** + * List query hook for PrimaryKeyConstraint + * @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 { primaryKeyConstraintKeys } from '../query-keys'; +import type { + PrimaryKeyConstraintSelect, + PrimaryKeyConstraintWithRelations, + PrimaryKeyConstraintFilter, + PrimaryKeyConstraintOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PrimaryKeyConstraintSelect, + PrimaryKeyConstraintWithRelations, + PrimaryKeyConstraintFilter, + PrimaryKeyConstraintOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const primaryKeyConstraintsQueryKey = primaryKeyConstraintKeys.list; +/** + * Query hook for fetching PrimaryKeyConstraint list + * + * @example + * ```tsx + * const { data, isLoading } = usePrimaryKeyConstraintsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePrimaryKeyConstraintsQuery< + S extends PrimaryKeyConstraintSelect, + TData = { + primaryKeyConstraints: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PrimaryKeyConstraintSelect>; + } & Omit< + UseQueryOptions< + { + primaryKeyConstraints: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePrimaryKeyConstraintsQuery( + params: { + selection: ListSelectionConfig< + PrimaryKeyConstraintSelect, + PrimaryKeyConstraintFilter, + PrimaryKeyConstraintOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + PrimaryKeyConstraintSelect, + PrimaryKeyConstraintFilter, + PrimaryKeyConstraintOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: primaryKeyConstraintKeys.list(args), + queryFn: () => getClient().primaryKeyConstraint.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch PrimaryKeyConstraint list without React hooks + * + * @example + * ```ts + * const data = await fetchPrimaryKeyConstraintsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPrimaryKeyConstraintsQuery< + S extends PrimaryKeyConstraintSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PrimaryKeyConstraintSelect>; +}): Promise<{ + primaryKeyConstraints: ConnectionResult>; +}>; +export async function fetchPrimaryKeyConstraintsQuery(params: { + selection: ListSelectionConfig< + PrimaryKeyConstraintSelect, + PrimaryKeyConstraintFilter, + PrimaryKeyConstraintOrderBy + >; +}) { + const args = buildListSelectionArgs< + PrimaryKeyConstraintSelect, + PrimaryKeyConstraintFilter, + PrimaryKeyConstraintOrderBy + >(params.selection); + return getClient().primaryKeyConstraint.findMany(args).unwrap(); +} +/** + * Prefetch PrimaryKeyConstraint list for SSR or cache warming + * + * @example + * ```ts + * await prefetchPrimaryKeyConstraintsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPrimaryKeyConstraintsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, PrimaryKeyConstraintSelect>; + } +): Promise; +export async function prefetchPrimaryKeyConstraintsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + PrimaryKeyConstraintSelect, + PrimaryKeyConstraintFilter, + PrimaryKeyConstraintOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + PrimaryKeyConstraintSelect, + PrimaryKeyConstraintFilter, + PrimaryKeyConstraintOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: primaryKeyConstraintKeys.list(args), + queryFn: () => getClient().primaryKeyConstraint.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useProcedureQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useProcedureQuery.ts new file mode 100644 index 000000000..17afb7969 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useProcedureQuery.ts @@ -0,0 +1,138 @@ +/** + * 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 new file mode 100644 index 000000000..fbf5a1659 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useProceduresQuery.ts @@ -0,0 +1,145 @@ +/** + * 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/useProfilesModuleQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useProfilesModuleQuery.ts new file mode 100644 index 000000000..1a19cd9f5 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useProfilesModuleQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for ProfilesModule + * @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 { profilesModuleKeys } from '../query-keys'; +import type { ProfilesModuleSelect, ProfilesModuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ProfilesModuleSelect, ProfilesModuleWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const profilesModuleQueryKey = profilesModuleKeys.detail; +/** + * Query hook for fetching a single ProfilesModule + * + * @example + * ```tsx + * const { data, isLoading } = useProfilesModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useProfilesModuleQuery< + S extends ProfilesModuleSelect, + TData = { + profilesModule: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ProfilesModuleSelect>; + } & Omit< + UseQueryOptions< + { + profilesModule: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useProfilesModuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: profilesModuleKeys.detail(params.id), + queryFn: () => + getClient() + .profilesModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single ProfilesModule without React hooks + * + * @example + * ```ts + * const data = await fetchProfilesModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchProfilesModuleQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ProfilesModuleSelect>; +}): Promise<{ + profilesModule: InferSelectResult | null; +}>; +export async function fetchProfilesModuleQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .profilesModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single ProfilesModule for SSR or cache warming + * + * @example + * ```ts + * await prefetchProfilesModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchProfilesModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ProfilesModuleSelect>; + } +): Promise; +export async function prefetchProfilesModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: profilesModuleKeys.detail(params.id), + queryFn: () => + getClient() + .profilesModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useProfilesModulesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useProfilesModulesQuery.ts new file mode 100644 index 000000000..2d008ec0c --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useProfilesModulesQuery.ts @@ -0,0 +1,159 @@ +/** + * List query hook for ProfilesModule + * @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 { profilesModuleKeys } from '../query-keys'; +import type { + ProfilesModuleSelect, + ProfilesModuleWithRelations, + ProfilesModuleFilter, + ProfilesModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + ProfilesModuleSelect, + ProfilesModuleWithRelations, + ProfilesModuleFilter, + ProfilesModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const profilesModulesQueryKey = profilesModuleKeys.list; +/** + * Query hook for fetching ProfilesModule list + * + * @example + * ```tsx + * const { data, isLoading } = useProfilesModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useProfilesModulesQuery< + S extends ProfilesModuleSelect, + TData = { + profilesModules: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ProfilesModuleSelect>; + } & Omit< + UseQueryOptions< + { + profilesModules: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useProfilesModulesQuery( + params: { + selection: ListSelectionConfig< + ProfilesModuleSelect, + ProfilesModuleFilter, + ProfilesModuleOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + ProfilesModuleSelect, + ProfilesModuleFilter, + ProfilesModuleOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: profilesModuleKeys.list(args), + queryFn: () => getClient().profilesModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch ProfilesModule list without React hooks + * + * @example + * ```ts + * const data = await fetchProfilesModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchProfilesModulesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ProfilesModuleSelect>; +}): Promise<{ + profilesModules: ConnectionResult>; +}>; +export async function fetchProfilesModulesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + ProfilesModuleSelect, + ProfilesModuleFilter, + ProfilesModuleOrderBy + >(params.selection); + return getClient().profilesModule.findMany(args).unwrap(); +} +/** + * Prefetch ProfilesModule list for SSR or cache warming + * + * @example + * ```ts + * await prefetchProfilesModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchProfilesModulesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ProfilesModuleSelect>; + } +): Promise; +export async function prefetchProfilesModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + ProfilesModuleSelect, + ProfilesModuleFilter, + ProfilesModuleOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + ProfilesModuleSelect, + ProfilesModuleFilter, + ProfilesModuleOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: profilesModuleKeys.list(args), + queryFn: () => getClient().profilesModule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useRefQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useRefQuery.ts new file mode 100644 index 000000000..b07bd3470 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useRefQuery.ts @@ -0,0 +1,135 @@ +/** + * Single item query hook for Ref + * @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 { refKeys } from '../query-keys'; +import type { RefSelect, RefWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { RefSelect, RefWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const refQueryKey = refKeys.detail; +/** + * Query hook for fetching a single Ref + * + * @example + * ```tsx + * const { data, isLoading } = useRefQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useRefQuery< + S extends RefSelect, + TData = { + ref: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, RefSelect>; + } & Omit< + UseQueryOptions< + { + ref: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useRefQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: refKeys.detail(params.id), + queryFn: () => + getClient() + .ref.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single Ref without React hooks + * + * @example + * ```ts + * const data = await fetchRefQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchRefQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, RefSelect>; +}): Promise<{ + ref: InferSelectResult | null; +}>; +export async function fetchRefQuery(params: { id: string; selection: SelectionConfig }) { + const args = buildSelectionArgs(params.selection); + return getClient() + .ref.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single Ref for SSR or cache warming + * + * @example + * ```ts + * await prefetchRefQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchRefQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, RefSelect>; + } +): Promise; +export async function prefetchRefQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: refKeys.detail(params.id), + queryFn: () => + getClient() + .ref.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useRefsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useRefsQuery.ts new file mode 100644 index 000000000..fbe141158 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useRefsQuery.ts @@ -0,0 +1,129 @@ +/** + * List query hook for Ref + * @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 { refKeys } from '../query-keys'; +import type { RefSelect, RefWithRelations, RefFilter, RefOrderBy } from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { RefSelect, RefWithRelations, RefFilter, RefOrderBy } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const refsQueryKey = refKeys.list; +/** + * Query hook for fetching Ref list + * + * @example + * ```tsx + * const { data, isLoading } = useRefsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useRefsQuery< + S extends RefSelect, + TData = { + refs: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, RefSelect>; + } & Omit< + UseQueryOptions< + { + refs: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useRefsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: refKeys.list(args), + queryFn: () => getClient().ref.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch Ref list without React hooks + * + * @example + * ```ts + * const data = await fetchRefsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchRefsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, RefSelect>; +}): Promise<{ + refs: ConnectionResult>; +}>; +export async function fetchRefsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs(params.selection); + return getClient().ref.findMany(args).unwrap(); +} +/** + * Prefetch Ref list for SSR or cache warming + * + * @example + * ```ts + * await prefetchRefsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchRefsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, RefSelect>; + } +): Promise; +export async function prefetchRefsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: refKeys.list(args), + queryFn: () => getClient().ref.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useRevParseQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useRevParseQuery.ts new file mode 100644 index 000000000..d8b6226fb --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useRevParseQuery.ts @@ -0,0 +1,105 @@ +/** + * Custom query hook for revParse + * @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 { RevParseVariables } from '../../orm/query'; +export type { RevParseVariables } from '../../orm/query'; +/** Query key factory - re-exported from query-keys.ts */ +export const revParseQueryKey = customQueryKeys.revParse; +/** + * Query hook for revParse + * + * @example + * ```tsx + * const { data, isLoading } = useRevParseQuery({ variables: { dbId, storeId, refname } }); + * + * if (data?.revParse) { + * console.log(data.revParse); + * } + * ``` + */ +export function useRevParseQuery< + TData = { + revParse: string | null; + }, +>( + params?: { + variables?: RevParseVariables; + } & Omit< + UseQueryOptions< + { + revParse: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useRevParseQuery< + TData = { + revParse: string | null; + }, +>( + params?: { + variables?: RevParseVariables; + } & Omit< + UseQueryOptions< + { + revParse: string | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult { + const variables = params?.variables ?? {}; + const { variables: _variables, ...queryOptions } = params ?? {}; + void _variables; + return useQuery({ + queryKey: revParseQueryKey(variables), + queryFn: () => getClient().query.revParse(variables).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch revParse without React hooks + * + * @example + * ```ts + * const data = await fetchRevParseQuery({ variables: { dbId, storeId, refname } }); + * ``` + */ +export async function fetchRevParseQuery(params?: { variables?: RevParseVariables }) { + const variables = params?.variables ?? {}; + return getClient().query.revParse(variables).unwrap(); +} +/** + * Prefetch revParse for SSR or cache warming + * + * @example + * ```ts + * await prefetchRevParseQuery(queryClient, { variables: { dbId, storeId, refname } }); + * ``` + */ +export async function prefetchRevParseQuery( + queryClient: QueryClient, + params?: { + variables?: RevParseVariables; + } +): Promise { + const variables = params?.variables ?? {}; + await queryClient.prefetchQuery({ + queryKey: revParseQueryKey(variables), + queryFn: () => getClient().query.revParse(variables).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useRlsModuleQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useRlsModuleQuery.ts new file mode 100644 index 000000000..de4ac49a2 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useRlsModuleQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for RlsModule + * @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 { rlsModuleKeys } from '../query-keys'; +import type { RlsModuleSelect, RlsModuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { RlsModuleSelect, RlsModuleWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const rlsModuleQueryKey = rlsModuleKeys.detail; +/** + * Query hook for fetching a single RlsModule + * + * @example + * ```tsx + * const { data, isLoading } = useRlsModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useRlsModuleQuery< + S extends RlsModuleSelect, + TData = { + rlsModule: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, RlsModuleSelect>; + } & Omit< + UseQueryOptions< + { + rlsModule: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useRlsModuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: rlsModuleKeys.detail(params.id), + queryFn: () => + getClient() + .rlsModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single RlsModule without React hooks + * + * @example + * ```ts + * const data = await fetchRlsModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchRlsModuleQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, RlsModuleSelect>; +}): Promise<{ + rlsModule: InferSelectResult | null; +}>; +export async function fetchRlsModuleQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .rlsModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single RlsModule for SSR or cache warming + * + * @example + * ```ts + * await prefetchRlsModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchRlsModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, RlsModuleSelect>; + } +): Promise; +export async function prefetchRlsModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: rlsModuleKeys.detail(params.id), + queryFn: () => + getClient() + .rlsModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useRlsModulesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useRlsModulesQuery.ts new file mode 100644 index 000000000..7fb53b5bd --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useRlsModulesQuery.ts @@ -0,0 +1,145 @@ +/** + * List query hook for RlsModule + * @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 { rlsModuleKeys } from '../query-keys'; +import type { + RlsModuleSelect, + RlsModuleWithRelations, + RlsModuleFilter, + RlsModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + RlsModuleSelect, + RlsModuleWithRelations, + RlsModuleFilter, + RlsModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const rlsModulesQueryKey = rlsModuleKeys.list; +/** + * Query hook for fetching RlsModule list + * + * @example + * ```tsx + * const { data, isLoading } = useRlsModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useRlsModulesQuery< + S extends RlsModuleSelect, + TData = { + rlsModules: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, RlsModuleSelect>; + } & Omit< + UseQueryOptions< + { + rlsModules: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useRlsModulesQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: rlsModuleKeys.list(args), + queryFn: () => getClient().rlsModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch RlsModule list without React hooks + * + * @example + * ```ts + * const data = await fetchRlsModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchRlsModulesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, RlsModuleSelect>; +}): Promise<{ + rlsModules: ConnectionResult>; +}>; +export async function fetchRlsModulesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().rlsModule.findMany(args).unwrap(); +} +/** + * Prefetch RlsModule list for SSR or cache warming + * + * @example + * ```ts + * await prefetchRlsModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchRlsModulesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, RlsModuleSelect>; + } +): Promise; +export async function prefetchRlsModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: rlsModuleKeys.list(args), + queryFn: () => getClient().rlsModule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useRoleTypeQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useRoleTypeQuery.ts new file mode 100644 index 000000000..6320e76b4 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useRoleTypeQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for RoleType + * @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 { roleTypeKeys } from '../query-keys'; +import type { RoleTypeSelect, RoleTypeWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { RoleTypeSelect, RoleTypeWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const roleTypeQueryKey = roleTypeKeys.detail; +/** + * Query hook for fetching a single RoleType + * + * @example + * ```tsx + * const { data, isLoading } = useRoleTypeQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useRoleTypeQuery< + S extends RoleTypeSelect, + TData = { + roleType: InferSelectResult | null; + }, +>( + params: { + id: number; + selection: { + fields: S; + } & HookStrictSelect, RoleTypeSelect>; + } & Omit< + UseQueryOptions< + { + roleType: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useRoleTypeQuery( + params: { + id: number; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: roleTypeKeys.detail(params.id), + queryFn: () => + getClient() + .roleType.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single RoleType without React hooks + * + * @example + * ```ts + * const data = await fetchRoleTypeQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchRoleTypeQuery(params: { + id: number; + selection: { + fields: S; + } & HookStrictSelect, RoleTypeSelect>; +}): Promise<{ + roleType: InferSelectResult | null; +}>; +export async function fetchRoleTypeQuery(params: { + id: number; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .roleType.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single RoleType for SSR or cache warming + * + * @example + * ```ts + * await prefetchRoleTypeQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchRoleTypeQuery( + queryClient: QueryClient, + params: { + id: number; + selection: { + fields: S; + } & HookStrictSelect, RoleTypeSelect>; + } +): Promise; +export async function prefetchRoleTypeQuery( + queryClient: QueryClient, + params: { + id: number; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: roleTypeKeys.detail(params.id), + queryFn: () => + getClient() + .roleType.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useRoleTypesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useRoleTypesQuery.ts new file mode 100644 index 000000000..9819ceed5 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useRoleTypesQuery.ts @@ -0,0 +1,145 @@ +/** + * List query hook for RoleType + * @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 { roleTypeKeys } from '../query-keys'; +import type { + RoleTypeSelect, + RoleTypeWithRelations, + RoleTypeFilter, + RoleTypeOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + RoleTypeSelect, + RoleTypeWithRelations, + RoleTypeFilter, + RoleTypeOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const roleTypesQueryKey = roleTypeKeys.list; +/** + * Query hook for fetching RoleType list + * + * @example + * ```tsx + * const { data, isLoading } = useRoleTypesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useRoleTypesQuery< + S extends RoleTypeSelect, + TData = { + roleTypes: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, RoleTypeSelect>; + } & Omit< + UseQueryOptions< + { + roleTypes: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useRoleTypesQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: roleTypeKeys.list(args), + queryFn: () => getClient().roleType.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch RoleType list without React hooks + * + * @example + * ```ts + * const data = await fetchRoleTypesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchRoleTypesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, RoleTypeSelect>; +}): Promise<{ + roleTypes: ConnectionResult>; +}>; +export async function fetchRoleTypesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().roleType.findMany(args).unwrap(); +} +/** + * Prefetch RoleType list for SSR or cache warming + * + * @example + * ```ts + * await prefetchRoleTypesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchRoleTypesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, RoleTypeSelect>; + } +): Promise; +export async function prefetchRoleTypesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: roleTypeKeys.list(args), + queryFn: () => getClient().roleType.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useSchemaGrantQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useSchemaGrantQuery.ts new file mode 100644 index 000000000..864c914a5 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useSchemaGrantQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for SchemaGrant + * @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 { schemaGrantKeys } from '../query-keys'; +import type { SchemaGrantSelect, SchemaGrantWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { SchemaGrantSelect, SchemaGrantWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const schemaGrantQueryKey = schemaGrantKeys.detail; +/** + * Query hook for fetching a single SchemaGrant + * + * @example + * ```tsx + * const { data, isLoading } = useSchemaGrantQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useSchemaGrantQuery< + S extends SchemaGrantSelect, + TData = { + schemaGrant: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, SchemaGrantSelect>; + } & Omit< + UseQueryOptions< + { + schemaGrant: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useSchemaGrantQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: schemaGrantKeys.detail(params.id), + queryFn: () => + getClient() + .schemaGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single SchemaGrant without React hooks + * + * @example + * ```ts + * const data = await fetchSchemaGrantQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchSchemaGrantQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, SchemaGrantSelect>; +}): Promise<{ + schemaGrant: InferSelectResult | null; +}>; +export async function fetchSchemaGrantQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .schemaGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single SchemaGrant for SSR or cache warming + * + * @example + * ```ts + * await prefetchSchemaGrantQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchSchemaGrantQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, SchemaGrantSelect>; + } +): Promise; +export async function prefetchSchemaGrantQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: schemaGrantKeys.detail(params.id), + queryFn: () => + getClient() + .schemaGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useSchemaGrantsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useSchemaGrantsQuery.ts new file mode 100644 index 000000000..2f90e0bc5 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useSchemaGrantsQuery.ts @@ -0,0 +1,145 @@ +/** + * List query hook for SchemaGrant + * @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 { schemaGrantKeys } from '../query-keys'; +import type { + SchemaGrantSelect, + SchemaGrantWithRelations, + SchemaGrantFilter, + SchemaGrantOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + SchemaGrantSelect, + SchemaGrantWithRelations, + SchemaGrantFilter, + SchemaGrantOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const schemaGrantsQueryKey = schemaGrantKeys.list; +/** + * Query hook for fetching SchemaGrant list + * + * @example + * ```tsx + * const { data, isLoading } = useSchemaGrantsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useSchemaGrantsQuery< + S extends SchemaGrantSelect, + TData = { + schemaGrants: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, SchemaGrantSelect>; + } & Omit< + UseQueryOptions< + { + schemaGrants: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useSchemaGrantsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: schemaGrantKeys.list(args), + queryFn: () => getClient().schemaGrant.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch SchemaGrant list without React hooks + * + * @example + * ```ts + * const data = await fetchSchemaGrantsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchSchemaGrantsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, SchemaGrantSelect>; +}): Promise<{ + schemaGrants: ConnectionResult>; +}>; +export async function fetchSchemaGrantsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().schemaGrant.findMany(args).unwrap(); +} +/** + * Prefetch SchemaGrant list for SSR or cache warming + * + * @example + * ```ts + * await prefetchSchemaGrantsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchSchemaGrantsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, SchemaGrantSelect>; + } +): Promise; +export async function prefetchSchemaGrantsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: schemaGrantKeys.list(args), + queryFn: () => getClient().schemaGrant.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useSchemaQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useSchemaQuery.ts new file mode 100644 index 000000000..d49b168e0 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useSchemaQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for Schema + * @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 { schemaKeys } from '../query-keys'; +import type { SchemaSelect, SchemaWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { SchemaSelect, SchemaWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const schemaQueryKey = schemaKeys.detail; +/** + * Query hook for fetching a single Schema + * + * @example + * ```tsx + * const { data, isLoading } = useSchemaQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useSchemaQuery< + S extends SchemaSelect, + TData = { + schema: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, SchemaSelect>; + } & Omit< + UseQueryOptions< + { + schema: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useSchemaQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: schemaKeys.detail(params.id), + queryFn: () => + getClient() + .schema.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single Schema without React hooks + * + * @example + * ```ts + * const data = await fetchSchemaQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchSchemaQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, SchemaSelect>; +}): Promise<{ + schema: InferSelectResult | null; +}>; +export async function fetchSchemaQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .schema.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single Schema for SSR or cache warming + * + * @example + * ```ts + * await prefetchSchemaQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchSchemaQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, SchemaSelect>; + } +): Promise; +export async function prefetchSchemaQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: schemaKeys.detail(params.id), + queryFn: () => + getClient() + .schema.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useSchemasQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useSchemasQuery.ts new file mode 100644 index 000000000..cdb879719 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useSchemasQuery.ts @@ -0,0 +1,139 @@ +/** + * List query hook for Schema + * @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 { schemaKeys } from '../query-keys'; +import type { + SchemaSelect, + SchemaWithRelations, + SchemaFilter, + SchemaOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + SchemaSelect, + SchemaWithRelations, + SchemaFilter, + SchemaOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const schemasQueryKey = schemaKeys.list; +/** + * Query hook for fetching Schema list + * + * @example + * ```tsx + * const { data, isLoading } = useSchemasQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useSchemasQuery< + S extends SchemaSelect, + TData = { + schemas: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, SchemaSelect>; + } & Omit< + UseQueryOptions< + { + schemas: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useSchemasQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: schemaKeys.list(args), + queryFn: () => getClient().schema.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch Schema list without React hooks + * + * @example + * ```ts + * const data = await fetchSchemasQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchSchemasQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, SchemaSelect>; +}): Promise<{ + schemas: ConnectionResult>; +}>; +export async function fetchSchemasQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs(params.selection); + return getClient().schema.findMany(args).unwrap(); +} +/** + * Prefetch Schema list for SSR or cache warming + * + * @example + * ```ts + * await prefetchSchemasQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchSchemasQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, SchemaSelect>; + } +): Promise; +export async function prefetchSchemasQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: schemaKeys.list(args), + queryFn: () => getClient().schema.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useSecretsModuleQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useSecretsModuleQuery.ts new file mode 100644 index 000000000..7c5e20f5e --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useSecretsModuleQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for SecretsModule + * @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 { secretsModuleKeys } from '../query-keys'; +import type { SecretsModuleSelect, SecretsModuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { SecretsModuleSelect, SecretsModuleWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const secretsModuleQueryKey = secretsModuleKeys.detail; +/** + * Query hook for fetching a single SecretsModule + * + * @example + * ```tsx + * const { data, isLoading } = useSecretsModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useSecretsModuleQuery< + S extends SecretsModuleSelect, + TData = { + secretsModule: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, SecretsModuleSelect>; + } & Omit< + UseQueryOptions< + { + secretsModule: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useSecretsModuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: secretsModuleKeys.detail(params.id), + queryFn: () => + getClient() + .secretsModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single SecretsModule without React hooks + * + * @example + * ```ts + * const data = await fetchSecretsModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchSecretsModuleQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, SecretsModuleSelect>; +}): Promise<{ + secretsModule: InferSelectResult | null; +}>; +export async function fetchSecretsModuleQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .secretsModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single SecretsModule for SSR or cache warming + * + * @example + * ```ts + * await prefetchSecretsModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchSecretsModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, SecretsModuleSelect>; + } +): Promise; +export async function prefetchSecretsModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: secretsModuleKeys.detail(params.id), + queryFn: () => + getClient() + .secretsModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useSecretsModulesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useSecretsModulesQuery.ts new file mode 100644 index 000000000..3cc607fb7 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useSecretsModulesQuery.ts @@ -0,0 +1,151 @@ +/** + * List query hook for SecretsModule + * @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 { secretsModuleKeys } from '../query-keys'; +import type { + SecretsModuleSelect, + SecretsModuleWithRelations, + SecretsModuleFilter, + SecretsModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + SecretsModuleSelect, + SecretsModuleWithRelations, + SecretsModuleFilter, + SecretsModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const secretsModulesQueryKey = secretsModuleKeys.list; +/** + * Query hook for fetching SecretsModule list + * + * @example + * ```tsx + * const { data, isLoading } = useSecretsModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useSecretsModulesQuery< + S extends SecretsModuleSelect, + TData = { + secretsModules: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, SecretsModuleSelect>; + } & Omit< + UseQueryOptions< + { + secretsModules: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useSecretsModulesQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + SecretsModuleSelect, + SecretsModuleFilter, + SecretsModuleOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: secretsModuleKeys.list(args), + queryFn: () => getClient().secretsModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch SecretsModule list without React hooks + * + * @example + * ```ts + * const data = await fetchSecretsModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchSecretsModulesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, SecretsModuleSelect>; +}): Promise<{ + secretsModules: ConnectionResult>; +}>; +export async function fetchSecretsModulesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + SecretsModuleSelect, + SecretsModuleFilter, + SecretsModuleOrderBy + >(params.selection); + return getClient().secretsModule.findMany(args).unwrap(); +} +/** + * Prefetch SecretsModule list for SSR or cache warming + * + * @example + * ```ts + * await prefetchSecretsModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchSecretsModulesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, SecretsModuleSelect>; + } +): Promise; +export async function prefetchSecretsModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs< + SecretsModuleSelect, + SecretsModuleFilter, + SecretsModuleOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: secretsModuleKeys.list(args), + queryFn: () => getClient().secretsModule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useSessionsModuleQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useSessionsModuleQuery.ts new file mode 100644 index 000000000..db794bac8 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useSessionsModuleQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for SessionsModule + * @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 { sessionsModuleKeys } from '../query-keys'; +import type { SessionsModuleSelect, SessionsModuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { SessionsModuleSelect, SessionsModuleWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const sessionsModuleQueryKey = sessionsModuleKeys.detail; +/** + * Query hook for fetching a single SessionsModule + * + * @example + * ```tsx + * const { data, isLoading } = useSessionsModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useSessionsModuleQuery< + S extends SessionsModuleSelect, + TData = { + sessionsModule: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, SessionsModuleSelect>; + } & Omit< + UseQueryOptions< + { + sessionsModule: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useSessionsModuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: sessionsModuleKeys.detail(params.id), + queryFn: () => + getClient() + .sessionsModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single SessionsModule without React hooks + * + * @example + * ```ts + * const data = await fetchSessionsModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchSessionsModuleQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, SessionsModuleSelect>; +}): Promise<{ + sessionsModule: InferSelectResult | null; +}>; +export async function fetchSessionsModuleQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .sessionsModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single SessionsModule for SSR or cache warming + * + * @example + * ```ts + * await prefetchSessionsModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchSessionsModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, SessionsModuleSelect>; + } +): Promise; +export async function prefetchSessionsModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: sessionsModuleKeys.detail(params.id), + queryFn: () => + getClient() + .sessionsModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useSessionsModulesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useSessionsModulesQuery.ts new file mode 100644 index 000000000..ec1ee6c40 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useSessionsModulesQuery.ts @@ -0,0 +1,159 @@ +/** + * List query hook for SessionsModule + * @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 { sessionsModuleKeys } from '../query-keys'; +import type { + SessionsModuleSelect, + SessionsModuleWithRelations, + SessionsModuleFilter, + SessionsModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + SessionsModuleSelect, + SessionsModuleWithRelations, + SessionsModuleFilter, + SessionsModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const sessionsModulesQueryKey = sessionsModuleKeys.list; +/** + * Query hook for fetching SessionsModule list + * + * @example + * ```tsx + * const { data, isLoading } = useSessionsModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useSessionsModulesQuery< + S extends SessionsModuleSelect, + TData = { + sessionsModules: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, SessionsModuleSelect>; + } & Omit< + UseQueryOptions< + { + sessionsModules: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useSessionsModulesQuery( + params: { + selection: ListSelectionConfig< + SessionsModuleSelect, + SessionsModuleFilter, + SessionsModuleOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + SessionsModuleSelect, + SessionsModuleFilter, + SessionsModuleOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: sessionsModuleKeys.list(args), + queryFn: () => getClient().sessionsModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch SessionsModule list without React hooks + * + * @example + * ```ts + * const data = await fetchSessionsModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchSessionsModulesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, SessionsModuleSelect>; +}): Promise<{ + sessionsModules: ConnectionResult>; +}>; +export async function fetchSessionsModulesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + SessionsModuleSelect, + SessionsModuleFilter, + SessionsModuleOrderBy + >(params.selection); + return getClient().sessionsModule.findMany(args).unwrap(); +} +/** + * Prefetch SessionsModule list for SSR or cache warming + * + * @example + * ```ts + * await prefetchSessionsModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchSessionsModulesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, SessionsModuleSelect>; + } +): Promise; +export async function prefetchSessionsModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + SessionsModuleSelect, + SessionsModuleFilter, + SessionsModuleOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + SessionsModuleSelect, + SessionsModuleFilter, + SessionsModuleOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: sessionsModuleKeys.list(args), + queryFn: () => getClient().sessionsModule.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 new file mode 100644 index 000000000..7912d0be4 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useSiteMetadataQuery.ts @@ -0,0 +1,151 @@ +/** + * List query hook for SiteMetadatum + * @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 { siteMetadatumKeys } from '../query-keys'; +import type { + SiteMetadatumSelect, + SiteMetadatumWithRelations, + SiteMetadatumFilter, + SiteMetadatumOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + SiteMetadatumSelect, + SiteMetadatumWithRelations, + SiteMetadatumFilter, + SiteMetadatumOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const siteMetadataQueryKey = siteMetadatumKeys.list; +/** + * Query hook for fetching SiteMetadatum list + * + * @example + * ```tsx + * const { data, isLoading } = useSiteMetadataQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useSiteMetadataQuery< + S extends SiteMetadatumSelect, + TData = { + siteMetadata: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, SiteMetadatumSelect>; + } & Omit< + UseQueryOptions< + { + siteMetadata: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useSiteMetadataQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + SiteMetadatumSelect, + SiteMetadatumFilter, + SiteMetadatumOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: siteMetadatumKeys.list(args), + queryFn: () => getClient().siteMetadatum.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch SiteMetadatum list without React hooks + * + * @example + * ```ts + * const data = await fetchSiteMetadataQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchSiteMetadataQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, SiteMetadatumSelect>; +}): Promise<{ + siteMetadata: ConnectionResult>; +}>; +export async function fetchSiteMetadataQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + SiteMetadatumSelect, + SiteMetadatumFilter, + SiteMetadatumOrderBy + >(params.selection); + return getClient().siteMetadatum.findMany(args).unwrap(); +} +/** + * Prefetch SiteMetadatum list for SSR or cache warming + * + * @example + * ```ts + * await prefetchSiteMetadataQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchSiteMetadataQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, SiteMetadatumSelect>; + } +): Promise; +export async function prefetchSiteMetadataQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs< + SiteMetadatumSelect, + SiteMetadatumFilter, + SiteMetadatumOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: siteMetadatumKeys.list(args), + queryFn: () => getClient().siteMetadatum.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useSiteMetadatumQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useSiteMetadatumQuery.ts new file mode 100644 index 000000000..979351686 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useSiteMetadatumQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for SiteMetadatum + * @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 { siteMetadatumKeys } from '../query-keys'; +import type { SiteMetadatumSelect, SiteMetadatumWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { SiteMetadatumSelect, SiteMetadatumWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const siteMetadatumQueryKey = siteMetadatumKeys.detail; +/** + * Query hook for fetching a single SiteMetadatum + * + * @example + * ```tsx + * const { data, isLoading } = useSiteMetadatumQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useSiteMetadatumQuery< + S extends SiteMetadatumSelect, + TData = { + siteMetadatum: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, SiteMetadatumSelect>; + } & Omit< + UseQueryOptions< + { + siteMetadatum: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useSiteMetadatumQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: siteMetadatumKeys.detail(params.id), + queryFn: () => + getClient() + .siteMetadatum.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single SiteMetadatum without React hooks + * + * @example + * ```ts + * const data = await fetchSiteMetadatumQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchSiteMetadatumQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, SiteMetadatumSelect>; +}): Promise<{ + siteMetadatum: InferSelectResult | null; +}>; +export async function fetchSiteMetadatumQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .siteMetadatum.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single SiteMetadatum for SSR or cache warming + * + * @example + * ```ts + * await prefetchSiteMetadatumQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchSiteMetadatumQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, SiteMetadatumSelect>; + } +): Promise; +export async function prefetchSiteMetadatumQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: siteMetadatumKeys.detail(params.id), + queryFn: () => + getClient() + .siteMetadatum.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useSiteModuleQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useSiteModuleQuery.ts new file mode 100644 index 000000000..5d0a71507 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useSiteModuleQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for SiteModule + * @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 { siteModuleKeys } from '../query-keys'; +import type { SiteModuleSelect, SiteModuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { SiteModuleSelect, SiteModuleWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const siteModuleQueryKey = siteModuleKeys.detail; +/** + * Query hook for fetching a single SiteModule + * + * @example + * ```tsx + * const { data, isLoading } = useSiteModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useSiteModuleQuery< + S extends SiteModuleSelect, + TData = { + siteModule: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, SiteModuleSelect>; + } & Omit< + UseQueryOptions< + { + siteModule: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useSiteModuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: siteModuleKeys.detail(params.id), + queryFn: () => + getClient() + .siteModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single SiteModule without React hooks + * + * @example + * ```ts + * const data = await fetchSiteModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchSiteModuleQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, SiteModuleSelect>; +}): Promise<{ + siteModule: InferSelectResult | null; +}>; +export async function fetchSiteModuleQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .siteModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single SiteModule for SSR or cache warming + * + * @example + * ```ts + * await prefetchSiteModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchSiteModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, SiteModuleSelect>; + } +): Promise; +export async function prefetchSiteModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: siteModuleKeys.detail(params.id), + queryFn: () => + getClient() + .siteModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useSiteModulesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useSiteModulesQuery.ts new file mode 100644 index 000000000..8101108d7 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useSiteModulesQuery.ts @@ -0,0 +1,145 @@ +/** + * List query hook for SiteModule + * @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 { siteModuleKeys } from '../query-keys'; +import type { + SiteModuleSelect, + SiteModuleWithRelations, + SiteModuleFilter, + SiteModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + SiteModuleSelect, + SiteModuleWithRelations, + SiteModuleFilter, + SiteModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const siteModulesQueryKey = siteModuleKeys.list; +/** + * Query hook for fetching SiteModule list + * + * @example + * ```tsx + * const { data, isLoading } = useSiteModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useSiteModulesQuery< + S extends SiteModuleSelect, + TData = { + siteModules: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, SiteModuleSelect>; + } & Omit< + UseQueryOptions< + { + siteModules: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useSiteModulesQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: siteModuleKeys.list(args), + queryFn: () => getClient().siteModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch SiteModule list without React hooks + * + * @example + * ```ts + * const data = await fetchSiteModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchSiteModulesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, SiteModuleSelect>; +}): Promise<{ + siteModules: ConnectionResult>; +}>; +export async function fetchSiteModulesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().siteModule.findMany(args).unwrap(); +} +/** + * Prefetch SiteModule list for SSR or cache warming + * + * @example + * ```ts + * await prefetchSiteModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchSiteModulesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, SiteModuleSelect>; + } +): Promise; +export async function prefetchSiteModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: siteModuleKeys.list(args), + queryFn: () => getClient().siteModule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useSiteQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useSiteQuery.ts new file mode 100644 index 000000000..6dfecd120 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useSiteQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for Site + * @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 { siteKeys } from '../query-keys'; +import type { SiteSelect, SiteWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +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 + * + * @example + * ```tsx + * const { data, isLoading } = useSiteQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useSiteQuery< + S extends SiteSelect, + TData = { + site: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, SiteSelect>; + } & Omit< + UseQueryOptions< + { + site: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useSiteQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: siteKeys.detail(params.id), + queryFn: () => + getClient() + .site.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single Site without React hooks + * + * @example + * ```ts + * const data = await fetchSiteQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchSiteQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, SiteSelect>; +}): Promise<{ + site: InferSelectResult | null; +}>; +export async function fetchSiteQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .site.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single Site for SSR or cache warming + * + * @example + * ```ts + * await prefetchSiteQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchSiteQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, SiteSelect>; + } +): Promise; +export async function prefetchSiteQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: siteKeys.detail(params.id), + queryFn: () => + getClient() + .site.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useSiteThemeQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useSiteThemeQuery.ts new file mode 100644 index 000000000..19ea2251f --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useSiteThemeQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for SiteTheme + * @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 { siteThemeKeys } from '../query-keys'; +import type { SiteThemeSelect, SiteThemeWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { SiteThemeSelect, SiteThemeWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const siteThemeQueryKey = siteThemeKeys.detail; +/** + * Query hook for fetching a single SiteTheme + * + * @example + * ```tsx + * const { data, isLoading } = useSiteThemeQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useSiteThemeQuery< + S extends SiteThemeSelect, + TData = { + siteTheme: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, SiteThemeSelect>; + } & Omit< + UseQueryOptions< + { + siteTheme: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useSiteThemeQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: siteThemeKeys.detail(params.id), + queryFn: () => + getClient() + .siteTheme.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single SiteTheme without React hooks + * + * @example + * ```ts + * const data = await fetchSiteThemeQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchSiteThemeQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, SiteThemeSelect>; +}): Promise<{ + siteTheme: InferSelectResult | null; +}>; +export async function fetchSiteThemeQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .siteTheme.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single SiteTheme for SSR or cache warming + * + * @example + * ```ts + * await prefetchSiteThemeQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchSiteThemeQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, SiteThemeSelect>; + } +): Promise; +export async function prefetchSiteThemeQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: siteThemeKeys.detail(params.id), + queryFn: () => + getClient() + .siteTheme.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useSiteThemesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useSiteThemesQuery.ts new file mode 100644 index 000000000..eec19b9e2 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useSiteThemesQuery.ts @@ -0,0 +1,145 @@ +/** + * List query hook for SiteTheme + * @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 { siteThemeKeys } from '../query-keys'; +import type { + SiteThemeSelect, + SiteThemeWithRelations, + SiteThemeFilter, + SiteThemeOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + SiteThemeSelect, + SiteThemeWithRelations, + SiteThemeFilter, + SiteThemeOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const siteThemesQueryKey = siteThemeKeys.list; +/** + * Query hook for fetching SiteTheme list + * + * @example + * ```tsx + * const { data, isLoading } = useSiteThemesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useSiteThemesQuery< + S extends SiteThemeSelect, + TData = { + siteThemes: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, SiteThemeSelect>; + } & Omit< + UseQueryOptions< + { + siteThemes: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useSiteThemesQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: siteThemeKeys.list(args), + queryFn: () => getClient().siteTheme.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch SiteTheme list without React hooks + * + * @example + * ```ts + * const data = await fetchSiteThemesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchSiteThemesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, SiteThemeSelect>; +}): Promise<{ + siteThemes: ConnectionResult>; +}>; +export async function fetchSiteThemesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().siteTheme.findMany(args).unwrap(); +} +/** + * Prefetch SiteTheme list for SSR or cache warming + * + * @example + * ```ts + * await prefetchSiteThemesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchSiteThemesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, SiteThemeSelect>; + } +): Promise; +export async function prefetchSiteThemesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: siteThemeKeys.list(args), + queryFn: () => getClient().siteTheme.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useSitesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useSitesQuery.ts new file mode 100644 index 000000000..f159801f4 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useSitesQuery.ts @@ -0,0 +1,129 @@ +/** + * List query hook for Site + * @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 { siteKeys } from '../query-keys'; +import type { SiteSelect, SiteWithRelations, SiteFilter, SiteOrderBy } from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { SiteSelect, SiteWithRelations, SiteFilter, SiteOrderBy } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const sitesQueryKey = siteKeys.list; +/** + * Query hook for fetching Site list + * + * @example + * ```tsx + * const { data, isLoading } = useSitesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useSitesQuery< + S extends SiteSelect, + TData = { + sites: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, SiteSelect>; + } & Omit< + UseQueryOptions< + { + sites: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useSitesQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: siteKeys.list(args), + queryFn: () => getClient().site.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch Site list without React hooks + * + * @example + * ```ts + * const data = await fetchSitesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchSitesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, SiteSelect>; +}): Promise<{ + sites: ConnectionResult>; +}>; +export async function fetchSitesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs(params.selection); + return getClient().site.findMany(args).unwrap(); +} +/** + * Prefetch Site list for SSR or cache warming + * + * @example + * ```ts + * await prefetchSitesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchSitesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, SiteSelect>; + } +): Promise; +export async function prefetchSitesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: siteKeys.list(args), + queryFn: () => getClient().site.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useSqlMigrationQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useSqlMigrationQuery.ts new file mode 100644 index 000000000..9d46640a9 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useSqlMigrationQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for SqlMigration + * @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 { sqlMigrationKeys } from '../query-keys'; +import type { SqlMigrationSelect, SqlMigrationWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { SqlMigrationSelect, SqlMigrationWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const sqlMigrationQueryKey = sqlMigrationKeys.detail; +/** + * Query hook for fetching a single SqlMigration + * + * @example + * ```tsx + * const { data, isLoading } = useSqlMigrationQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useSqlMigrationQuery< + S extends SqlMigrationSelect, + TData = { + sqlMigration: InferSelectResult | null; + }, +>( + params: { + id: number; + selection: { + fields: S; + } & HookStrictSelect, SqlMigrationSelect>; + } & Omit< + UseQueryOptions< + { + sqlMigration: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useSqlMigrationQuery( + params: { + id: number; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: sqlMigrationKeys.detail(params.id), + queryFn: () => + getClient() + .sqlMigration.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single SqlMigration without React hooks + * + * @example + * ```ts + * const data = await fetchSqlMigrationQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchSqlMigrationQuery(params: { + id: number; + selection: { + fields: S; + } & HookStrictSelect, SqlMigrationSelect>; +}): Promise<{ + sqlMigration: InferSelectResult | null; +}>; +export async function fetchSqlMigrationQuery(params: { + id: number; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .sqlMigration.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single SqlMigration for SSR or cache warming + * + * @example + * ```ts + * await prefetchSqlMigrationQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchSqlMigrationQuery( + queryClient: QueryClient, + params: { + id: number; + selection: { + fields: S; + } & HookStrictSelect, SqlMigrationSelect>; + } +): Promise; +export async function prefetchSqlMigrationQuery( + queryClient: QueryClient, + params: { + id: number; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: sqlMigrationKeys.detail(params.id), + queryFn: () => + getClient() + .sqlMigration.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useSqlMigrationsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useSqlMigrationsQuery.ts new file mode 100644 index 000000000..6a1181d9b --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useSqlMigrationsQuery.ts @@ -0,0 +1,145 @@ +/** + * List query hook for SqlMigration + * @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 { sqlMigrationKeys } from '../query-keys'; +import type { + SqlMigrationSelect, + SqlMigrationWithRelations, + SqlMigrationFilter, + SqlMigrationOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + SqlMigrationSelect, + SqlMigrationWithRelations, + SqlMigrationFilter, + SqlMigrationOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const sqlMigrationsQueryKey = sqlMigrationKeys.list; +/** + * Query hook for fetching SqlMigration list + * + * @example + * ```tsx + * const { data, isLoading } = useSqlMigrationsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useSqlMigrationsQuery< + S extends SqlMigrationSelect, + TData = { + sqlMigrations: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, SqlMigrationSelect>; + } & Omit< + UseQueryOptions< + { + sqlMigrations: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useSqlMigrationsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: sqlMigrationKeys.list(args), + queryFn: () => getClient().sqlMigration.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch SqlMigration list without React hooks + * + * @example + * ```ts + * const data = await fetchSqlMigrationsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchSqlMigrationsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, SqlMigrationSelect>; +}): Promise<{ + sqlMigrations: ConnectionResult>; +}>; +export async function fetchSqlMigrationsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().sqlMigration.findMany(args).unwrap(); +} +/** + * Prefetch SqlMigration list for SSR or cache warming + * + * @example + * ```ts + * await prefetchSqlMigrationsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchSqlMigrationsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, SqlMigrationSelect>; + } +): Promise; +export async function prefetchSqlMigrationsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: sqlMigrationKeys.list(args), + queryFn: () => getClient().sqlMigration.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useStepsAchievedQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useStepsAchievedQuery.ts new file mode 100644 index 000000000..e5c8bd35b --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useStepsAchievedQuery.ts @@ -0,0 +1,105 @@ +/** + * Custom query hook for stepsAchieved + * @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 { StepsAchievedVariables } from '../../orm/query'; +export type { StepsAchievedVariables } from '../../orm/query'; +/** Query key factory - re-exported from query-keys.ts */ +export const stepsAchievedQueryKey = customQueryKeys.stepsAchieved; +/** + * Query hook for stepsAchieved + * + * @example + * ```tsx + * const { data, isLoading } = useStepsAchievedQuery({ variables: { vlevel, vroleId } }); + * + * if (data?.stepsAchieved) { + * console.log(data.stepsAchieved); + * } + * ``` + */ +export function useStepsAchievedQuery< + TData = { + stepsAchieved: boolean | null; + }, +>( + params?: { + variables?: StepsAchievedVariables; + } & Omit< + UseQueryOptions< + { + stepsAchieved: boolean | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useStepsAchievedQuery< + TData = { + stepsAchieved: boolean | null; + }, +>( + params?: { + variables?: StepsAchievedVariables; + } & Omit< + UseQueryOptions< + { + stepsAchieved: boolean | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult { + const variables = params?.variables ?? {}; + const { variables: _variables, ...queryOptions } = params ?? {}; + void _variables; + return useQuery({ + queryKey: stepsAchievedQueryKey(variables), + queryFn: () => getClient().query.stepsAchieved(variables).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch stepsAchieved without React hooks + * + * @example + * ```ts + * const data = await fetchStepsAchievedQuery({ variables: { vlevel, vroleId } }); + * ``` + */ +export async function fetchStepsAchievedQuery(params?: { variables?: StepsAchievedVariables }) { + const variables = params?.variables ?? {}; + return getClient().query.stepsAchieved(variables).unwrap(); +} +/** + * Prefetch stepsAchieved for SSR or cache warming + * + * @example + * ```ts + * await prefetchStepsAchievedQuery(queryClient, { variables: { vlevel, vroleId } }); + * ``` + */ +export async function prefetchStepsAchievedQuery( + queryClient: QueryClient, + params?: { + variables?: StepsAchievedVariables; + } +): Promise { + const variables = params?.variables ?? {}; + await queryClient.prefetchQuery({ + queryKey: stepsAchievedQueryKey(variables), + queryFn: () => getClient().query.stepsAchieved(variables).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useStepsRequiredQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useStepsRequiredQuery.ts new file mode 100644 index 000000000..196567b45 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useStepsRequiredQuery.ts @@ -0,0 +1,106 @@ +/** + * Custom query hook for stepsRequired + * @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 { StepsRequiredVariables } from '../../orm/query'; +import type { AppLevelRequirementConnection } from '../../orm/input-types'; +export type { StepsRequiredVariables } from '../../orm/query'; +/** Query key factory - re-exported from query-keys.ts */ +export const stepsRequiredQueryKey = customQueryKeys.stepsRequired; +/** + * Reads and enables pagination through a set of `AppLevelRequirement`. + * + * @example + * ```tsx + * const { data, isLoading } = useStepsRequiredQuery({ variables: { vlevel, vroleId, first, offset, after } }); + * + * if (data?.stepsRequired) { + * console.log(data.stepsRequired); + * } + * ``` + */ +export function useStepsRequiredQuery< + TData = { + stepsRequired: AppLevelRequirementConnection | null; + }, +>( + params?: { + variables?: StepsRequiredVariables; + } & Omit< + UseQueryOptions< + { + stepsRequired: AppLevelRequirementConnection | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useStepsRequiredQuery< + TData = { + stepsRequired: AppLevelRequirementConnection | null; + }, +>( + params?: { + variables?: StepsRequiredVariables; + } & Omit< + UseQueryOptions< + { + stepsRequired: AppLevelRequirementConnection | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult { + const variables = params?.variables ?? {}; + const { variables: _variables, ...queryOptions } = params ?? {}; + void _variables; + return useQuery({ + queryKey: stepsRequiredQueryKey(variables), + queryFn: () => getClient().query.stepsRequired(variables).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch stepsRequired without React hooks + * + * @example + * ```ts + * const data = await fetchStepsRequiredQuery({ variables: { vlevel, vroleId, first, offset, after } }); + * ``` + */ +export async function fetchStepsRequiredQuery(params?: { variables?: StepsRequiredVariables }) { + const variables = params?.variables ?? {}; + return getClient().query.stepsRequired(variables).unwrap(); +} +/** + * Prefetch stepsRequired for SSR or cache warming + * + * @example + * ```ts + * await prefetchStepsRequiredQuery(queryClient, { variables: { vlevel, vroleId, first, offset, after } }); + * ``` + */ +export async function prefetchStepsRequiredQuery( + queryClient: QueryClient, + params?: { + variables?: StepsRequiredVariables; + } +): Promise { + const variables = params?.variables ?? {}; + await queryClient.prefetchQuery({ + queryKey: stepsRequiredQueryKey(variables), + queryFn: () => getClient().query.stepsRequired(variables).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useStoreQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useStoreQuery.ts new file mode 100644 index 000000000..984f8bf06 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useStoreQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for Store + * @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 { storeKeys } from '../query-keys'; +import type { StoreSelect, StoreWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { StoreSelect, StoreWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const storeQueryKey = storeKeys.detail; +/** + * Query hook for fetching a single Store + * + * @example + * ```tsx + * const { data, isLoading } = useStoreQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useStoreQuery< + S extends StoreSelect, + TData = { + store: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, StoreSelect>; + } & Omit< + UseQueryOptions< + { + store: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useStoreQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: storeKeys.detail(params.id), + queryFn: () => + getClient() + .store.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single Store without React hooks + * + * @example + * ```ts + * const data = await fetchStoreQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchStoreQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, StoreSelect>; +}): Promise<{ + store: InferSelectResult | null; +}>; +export async function fetchStoreQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .store.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single Store for SSR or cache warming + * + * @example + * ```ts + * await prefetchStoreQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchStoreQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, StoreSelect>; + } +): Promise; +export async function prefetchStoreQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: storeKeys.detail(params.id), + queryFn: () => + getClient() + .store.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useStoresQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useStoresQuery.ts new file mode 100644 index 000000000..07374bd06 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useStoresQuery.ts @@ -0,0 +1,139 @@ +/** + * List query hook for Store + * @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 { storeKeys } from '../query-keys'; +import type { + StoreSelect, + StoreWithRelations, + StoreFilter, + StoreOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + StoreSelect, + StoreWithRelations, + StoreFilter, + StoreOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const storesQueryKey = storeKeys.list; +/** + * Query hook for fetching Store list + * + * @example + * ```tsx + * const { data, isLoading } = useStoresQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useStoresQuery< + S extends StoreSelect, + TData = { + stores: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, StoreSelect>; + } & Omit< + UseQueryOptions< + { + stores: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useStoresQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: storeKeys.list(args), + queryFn: () => getClient().store.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch Store list without React hooks + * + * @example + * ```ts + * const data = await fetchStoresQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchStoresQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, StoreSelect>; +}): Promise<{ + stores: ConnectionResult>; +}>; +export async function fetchStoresQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs(params.selection); + return getClient().store.findMany(args).unwrap(); +} +/** + * Prefetch Store list for SSR or cache warming + * + * @example + * ```ts + * await prefetchStoresQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchStoresQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, StoreSelect>; + } +): Promise; +export async function prefetchStoresQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: storeKeys.list(args), + queryFn: () => getClient().store.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useTableGrantQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useTableGrantQuery.ts new file mode 100644 index 000000000..0940428e0 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useTableGrantQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for TableGrant + * @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 { tableGrantKeys } from '../query-keys'; +import type { TableGrantSelect, TableGrantWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { TableGrantSelect, TableGrantWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const tableGrantQueryKey = tableGrantKeys.detail; +/** + * Query hook for fetching a single TableGrant + * + * @example + * ```tsx + * const { data, isLoading } = useTableGrantQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useTableGrantQuery< + S extends TableGrantSelect, + TData = { + tableGrant: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, TableGrantSelect>; + } & Omit< + UseQueryOptions< + { + tableGrant: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useTableGrantQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: tableGrantKeys.detail(params.id), + queryFn: () => + getClient() + .tableGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single TableGrant without React hooks + * + * @example + * ```ts + * const data = await fetchTableGrantQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchTableGrantQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, TableGrantSelect>; +}): Promise<{ + tableGrant: InferSelectResult | null; +}>; +export async function fetchTableGrantQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .tableGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single TableGrant for SSR or cache warming + * + * @example + * ```ts + * await prefetchTableGrantQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchTableGrantQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, TableGrantSelect>; + } +): Promise; +export async function prefetchTableGrantQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: tableGrantKeys.detail(params.id), + queryFn: () => + getClient() + .tableGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useTableGrantsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useTableGrantsQuery.ts new file mode 100644 index 000000000..19f3f58c9 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useTableGrantsQuery.ts @@ -0,0 +1,145 @@ +/** + * List query hook for TableGrant + * @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 { tableGrantKeys } from '../query-keys'; +import type { + TableGrantSelect, + TableGrantWithRelations, + TableGrantFilter, + TableGrantOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + TableGrantSelect, + TableGrantWithRelations, + TableGrantFilter, + TableGrantOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const tableGrantsQueryKey = tableGrantKeys.list; +/** + * Query hook for fetching TableGrant list + * + * @example + * ```tsx + * const { data, isLoading } = useTableGrantsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useTableGrantsQuery< + S extends TableGrantSelect, + TData = { + tableGrants: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, TableGrantSelect>; + } & Omit< + UseQueryOptions< + { + tableGrants: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useTableGrantsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: tableGrantKeys.list(args), + queryFn: () => getClient().tableGrant.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch TableGrant list without React hooks + * + * @example + * ```ts + * const data = await fetchTableGrantsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchTableGrantsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, TableGrantSelect>; +}): Promise<{ + tableGrants: ConnectionResult>; +}>; +export async function fetchTableGrantsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().tableGrant.findMany(args).unwrap(); +} +/** + * Prefetch TableGrant list for SSR or cache warming + * + * @example + * ```ts + * await prefetchTableGrantsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchTableGrantsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, TableGrantSelect>; + } +): Promise; +export async function prefetchTableGrantsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: tableGrantKeys.list(args), + queryFn: () => getClient().tableGrant.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useTableModuleQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useTableModuleQuery.ts new file mode 100644 index 000000000..72fd3c380 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useTableModuleQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for TableModule + * @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 { tableModuleKeys } from '../query-keys'; +import type { TableModuleSelect, TableModuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { TableModuleSelect, TableModuleWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const tableModuleQueryKey = tableModuleKeys.detail; +/** + * Query hook for fetching a single TableModule + * + * @example + * ```tsx + * const { data, isLoading } = useTableModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useTableModuleQuery< + S extends TableModuleSelect, + TData = { + tableModule: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, TableModuleSelect>; + } & Omit< + UseQueryOptions< + { + tableModule: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useTableModuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: tableModuleKeys.detail(params.id), + queryFn: () => + getClient() + .tableModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single TableModule without React hooks + * + * @example + * ```ts + * const data = await fetchTableModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchTableModuleQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, TableModuleSelect>; +}): Promise<{ + tableModule: InferSelectResult | null; +}>; +export async function fetchTableModuleQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .tableModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single TableModule for SSR or cache warming + * + * @example + * ```ts + * await prefetchTableModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchTableModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, TableModuleSelect>; + } +): Promise; +export async function prefetchTableModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: tableModuleKeys.detail(params.id), + queryFn: () => + getClient() + .tableModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useTableModulesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useTableModulesQuery.ts new file mode 100644 index 000000000..199cd38be --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useTableModulesQuery.ts @@ -0,0 +1,145 @@ +/** + * List query hook for TableModule + * @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 { tableModuleKeys } from '../query-keys'; +import type { + TableModuleSelect, + TableModuleWithRelations, + TableModuleFilter, + TableModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + TableModuleSelect, + TableModuleWithRelations, + TableModuleFilter, + TableModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const tableModulesQueryKey = tableModuleKeys.list; +/** + * Query hook for fetching TableModule list + * + * @example + * ```tsx + * const { data, isLoading } = useTableModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useTableModulesQuery< + S extends TableModuleSelect, + TData = { + tableModules: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, TableModuleSelect>; + } & Omit< + UseQueryOptions< + { + tableModules: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useTableModulesQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: tableModuleKeys.list(args), + queryFn: () => getClient().tableModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch TableModule list without React hooks + * + * @example + * ```ts + * const data = await fetchTableModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchTableModulesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, TableModuleSelect>; +}): Promise<{ + tableModules: ConnectionResult>; +}>; +export async function fetchTableModulesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().tableModule.findMany(args).unwrap(); +} +/** + * Prefetch TableModule list for SSR or cache warming + * + * @example + * ```ts + * await prefetchTableModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchTableModulesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, TableModuleSelect>; + } +): Promise; +export async function prefetchTableModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: tableModuleKeys.list(args), + queryFn: () => getClient().tableModule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useTableQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useTableQuery.ts new file mode 100644 index 000000000..b75a69c2e --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useTableQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for 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 { tableKeys } from '../query-keys'; +import type { TableSelect, TableWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { TableSelect, TableWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const tableQueryKey = tableKeys.detail; +/** + * Query hook for fetching a single Table + * + * @example + * ```tsx + * const { data, isLoading } = useTableQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useTableQuery< + S extends TableSelect, + TData = { + table: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, TableSelect>; + } & Omit< + UseQueryOptions< + { + table: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useTableQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: tableKeys.detail(params.id), + queryFn: () => + getClient() + .table.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single Table without React hooks + * + * @example + * ```ts + * const data = await fetchTableQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchTableQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, TableSelect>; +}): Promise<{ + table: InferSelectResult | null; +}>; +export async function fetchTableQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .table.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single Table for SSR or cache warming + * + * @example + * ```ts + * await prefetchTableQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchTableQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, TableSelect>; + } +): Promise; +export async function prefetchTableQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: tableKeys.detail(params.id), + queryFn: () => + getClient() + .table.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useTableTemplateModuleQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useTableTemplateModuleQuery.ts new file mode 100644 index 000000000..7a60a5902 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useTableTemplateModuleQuery.ts @@ -0,0 +1,144 @@ +/** + * Single item query hook for TableTemplateModule + * @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 { tableTemplateModuleKeys } from '../query-keys'; +import type { + TableTemplateModuleSelect, + TableTemplateModuleWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + TableTemplateModuleSelect, + TableTemplateModuleWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const tableTemplateModuleQueryKey = tableTemplateModuleKeys.detail; +/** + * Query hook for fetching a single TableTemplateModule + * + * @example + * ```tsx + * const { data, isLoading } = useTableTemplateModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useTableTemplateModuleQuery< + S extends TableTemplateModuleSelect, + TData = { + tableTemplateModule: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, TableTemplateModuleSelect>; + } & Omit< + UseQueryOptions< + { + tableTemplateModule: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useTableTemplateModuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: tableTemplateModuleKeys.detail(params.id), + queryFn: () => + getClient() + .tableTemplateModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single TableTemplateModule without React hooks + * + * @example + * ```ts + * const data = await fetchTableTemplateModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchTableTemplateModuleQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, TableTemplateModuleSelect>; +}): Promise<{ + tableTemplateModule: InferSelectResult | null; +}>; +export async function fetchTableTemplateModuleQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .tableTemplateModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single TableTemplateModule for SSR or cache warming + * + * @example + * ```ts + * await prefetchTableTemplateModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchTableTemplateModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, TableTemplateModuleSelect>; + } +): Promise; +export async function prefetchTableTemplateModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: tableTemplateModuleKeys.detail(params.id), + queryFn: () => + getClient() + .tableTemplateModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useTableTemplateModulesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useTableTemplateModulesQuery.ts new file mode 100644 index 000000000..c0db523db --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useTableTemplateModulesQuery.ts @@ -0,0 +1,174 @@ +/** + * List query hook for TableTemplateModule + * @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 { tableTemplateModuleKeys } from '../query-keys'; +import type { + TableTemplateModuleSelect, + TableTemplateModuleWithRelations, + TableTemplateModuleFilter, + TableTemplateModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + TableTemplateModuleSelect, + TableTemplateModuleWithRelations, + TableTemplateModuleFilter, + TableTemplateModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const tableTemplateModulesQueryKey = tableTemplateModuleKeys.list; +/** + * Query hook for fetching TableTemplateModule list + * + * @example + * ```tsx + * const { data, isLoading } = useTableTemplateModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useTableTemplateModulesQuery< + S extends TableTemplateModuleSelect, + TData = { + tableTemplateModules: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, TableTemplateModuleSelect>; + } & Omit< + UseQueryOptions< + { + tableTemplateModules: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useTableTemplateModulesQuery( + params: { + selection: ListSelectionConfig< + TableTemplateModuleSelect, + TableTemplateModuleFilter, + TableTemplateModuleOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + TableTemplateModuleSelect, + TableTemplateModuleFilter, + TableTemplateModuleOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: tableTemplateModuleKeys.list(args), + queryFn: () => getClient().tableTemplateModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch TableTemplateModule list without React hooks + * + * @example + * ```ts + * const data = await fetchTableTemplateModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchTableTemplateModulesQuery(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, TableTemplateModuleSelect>; +}): Promise<{ + tableTemplateModules: ConnectionResult>; +}>; +export async function fetchTableTemplateModulesQuery(params: { + selection: ListSelectionConfig< + TableTemplateModuleSelect, + TableTemplateModuleFilter, + TableTemplateModuleOrderBy + >; +}) { + const args = buildListSelectionArgs< + TableTemplateModuleSelect, + TableTemplateModuleFilter, + TableTemplateModuleOrderBy + >(params.selection); + return getClient().tableTemplateModule.findMany(args).unwrap(); +} +/** + * Prefetch TableTemplateModule list for SSR or cache warming + * + * @example + * ```ts + * await prefetchTableTemplateModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchTableTemplateModulesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, TableTemplateModuleSelect>; + } +): Promise; +export async function prefetchTableTemplateModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + TableTemplateModuleSelect, + TableTemplateModuleFilter, + TableTemplateModuleOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + TableTemplateModuleSelect, + TableTemplateModuleFilter, + TableTemplateModuleOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: tableTemplateModuleKeys.list(args), + queryFn: () => getClient().tableTemplateModule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useTablesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useTablesQuery.ts new file mode 100644 index 000000000..ded2092d6 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useTablesQuery.ts @@ -0,0 +1,139 @@ +/** + * List query hook for 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 { tableKeys } from '../query-keys'; +import type { + TableSelect, + TableWithRelations, + TableFilter, + TableOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + TableSelect, + TableWithRelations, + TableFilter, + TableOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const tablesQueryKey = tableKeys.list; +/** + * Query hook for fetching Table list + * + * @example + * ```tsx + * const { data, isLoading } = useTablesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useTablesQuery< + S extends TableSelect, + TData = { + tables: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, TableSelect>; + } & Omit< + UseQueryOptions< + { + tables: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useTablesQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: tableKeys.list(args), + queryFn: () => getClient().table.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch Table list without React hooks + * + * @example + * ```ts + * const data = await fetchTablesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchTablesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, TableSelect>; +}): Promise<{ + tables: ConnectionResult>; +}>; +export async function fetchTablesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs(params.selection); + return getClient().table.findMany(args).unwrap(); +} +/** + * Prefetch Table list for SSR or cache warming + * + * @example + * ```ts + * await prefetchTablesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchTablesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, TableSelect>; + } +): Promise; +export async function prefetchTablesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: tableKeys.list(args), + queryFn: () => getClient().table.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useTriggerFunctionQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useTriggerFunctionQuery.ts new file mode 100644 index 000000000..ba894e2c5 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useTriggerFunctionQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for TriggerFunction + * @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 { triggerFunctionKeys } from '../query-keys'; +import type { TriggerFunctionSelect, TriggerFunctionWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { TriggerFunctionSelect, TriggerFunctionWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const triggerFunctionQueryKey = triggerFunctionKeys.detail; +/** + * Query hook for fetching a single TriggerFunction + * + * @example + * ```tsx + * const { data, isLoading } = useTriggerFunctionQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useTriggerFunctionQuery< + S extends TriggerFunctionSelect, + TData = { + triggerFunction: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, TriggerFunctionSelect>; + } & Omit< + UseQueryOptions< + { + triggerFunction: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useTriggerFunctionQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: triggerFunctionKeys.detail(params.id), + queryFn: () => + getClient() + .triggerFunction.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single TriggerFunction without React hooks + * + * @example + * ```ts + * const data = await fetchTriggerFunctionQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchTriggerFunctionQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, TriggerFunctionSelect>; +}): Promise<{ + triggerFunction: InferSelectResult | null; +}>; +export async function fetchTriggerFunctionQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .triggerFunction.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single TriggerFunction for SSR or cache warming + * + * @example + * ```ts + * await prefetchTriggerFunctionQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchTriggerFunctionQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, TriggerFunctionSelect>; + } +): Promise; +export async function prefetchTriggerFunctionQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: triggerFunctionKeys.detail(params.id), + queryFn: () => + getClient() + .triggerFunction.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useTriggerFunctionsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useTriggerFunctionsQuery.ts new file mode 100644 index 000000000..d69ece4b6 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useTriggerFunctionsQuery.ts @@ -0,0 +1,163 @@ +/** + * List query hook for TriggerFunction + * @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 { triggerFunctionKeys } from '../query-keys'; +import type { + TriggerFunctionSelect, + TriggerFunctionWithRelations, + TriggerFunctionFilter, + TriggerFunctionOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + TriggerFunctionSelect, + TriggerFunctionWithRelations, + TriggerFunctionFilter, + TriggerFunctionOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const triggerFunctionsQueryKey = triggerFunctionKeys.list; +/** + * Query hook for fetching TriggerFunction list + * + * @example + * ```tsx + * const { data, isLoading } = useTriggerFunctionsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useTriggerFunctionsQuery< + S extends TriggerFunctionSelect, + TData = { + triggerFunctions: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, TriggerFunctionSelect>; + } & Omit< + UseQueryOptions< + { + triggerFunctions: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useTriggerFunctionsQuery( + params: { + selection: ListSelectionConfig< + TriggerFunctionSelect, + TriggerFunctionFilter, + TriggerFunctionOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + TriggerFunctionSelect, + TriggerFunctionFilter, + TriggerFunctionOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: triggerFunctionKeys.list(args), + queryFn: () => getClient().triggerFunction.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch TriggerFunction list without React hooks + * + * @example + * ```ts + * const data = await fetchTriggerFunctionsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchTriggerFunctionsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, TriggerFunctionSelect>; +}): Promise<{ + triggerFunctions: ConnectionResult>; +}>; +export async function fetchTriggerFunctionsQuery(params: { + selection: ListSelectionConfig< + TriggerFunctionSelect, + TriggerFunctionFilter, + TriggerFunctionOrderBy + >; +}) { + const args = buildListSelectionArgs< + TriggerFunctionSelect, + TriggerFunctionFilter, + TriggerFunctionOrderBy + >(params.selection); + return getClient().triggerFunction.findMany(args).unwrap(); +} +/** + * Prefetch TriggerFunction list for SSR or cache warming + * + * @example + * ```ts + * await prefetchTriggerFunctionsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchTriggerFunctionsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, TriggerFunctionSelect>; + } +): Promise; +export async function prefetchTriggerFunctionsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + TriggerFunctionSelect, + TriggerFunctionFilter, + TriggerFunctionOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + TriggerFunctionSelect, + TriggerFunctionFilter, + TriggerFunctionOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: triggerFunctionKeys.list(args), + queryFn: () => getClient().triggerFunction.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useTriggerQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useTriggerQuery.ts new file mode 100644 index 000000000..82cf9049c --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useTriggerQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for Trigger + * @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 { triggerKeys } from '../query-keys'; +import type { TriggerSelect, TriggerWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { TriggerSelect, TriggerWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const triggerQueryKey = triggerKeys.detail; +/** + * Query hook for fetching a single Trigger + * + * @example + * ```tsx + * const { data, isLoading } = useTriggerQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useTriggerQuery< + S extends TriggerSelect, + TData = { + trigger: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, TriggerSelect>; + } & Omit< + UseQueryOptions< + { + trigger: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useTriggerQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: triggerKeys.detail(params.id), + queryFn: () => + getClient() + .trigger.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single Trigger without React hooks + * + * @example + * ```ts + * const data = await fetchTriggerQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchTriggerQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, TriggerSelect>; +}): Promise<{ + trigger: InferSelectResult | null; +}>; +export async function fetchTriggerQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .trigger.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single Trigger for SSR or cache warming + * + * @example + * ```ts + * await prefetchTriggerQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchTriggerQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, TriggerSelect>; + } +): Promise; +export async function prefetchTriggerQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: triggerKeys.detail(params.id), + queryFn: () => + getClient() + .trigger.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useTriggersQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useTriggersQuery.ts new file mode 100644 index 000000000..cc111ea08 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useTriggersQuery.ts @@ -0,0 +1,145 @@ +/** + * List query hook for Trigger + * @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 { triggerKeys } from '../query-keys'; +import type { + TriggerSelect, + TriggerWithRelations, + TriggerFilter, + TriggerOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + TriggerSelect, + TriggerWithRelations, + TriggerFilter, + TriggerOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const triggersQueryKey = triggerKeys.list; +/** + * Query hook for fetching Trigger list + * + * @example + * ```tsx + * const { data, isLoading } = useTriggersQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useTriggersQuery< + S extends TriggerSelect, + TData = { + triggers: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, TriggerSelect>; + } & Omit< + UseQueryOptions< + { + triggers: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useTriggersQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: triggerKeys.list(args), + queryFn: () => getClient().trigger.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch Trigger list without React hooks + * + * @example + * ```ts + * const data = await fetchTriggersQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchTriggersQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, TriggerSelect>; +}): Promise<{ + triggers: ConnectionResult>; +}>; +export async function fetchTriggersQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().trigger.findMany(args).unwrap(); +} +/** + * Prefetch Trigger list for SSR or cache warming + * + * @example + * ```ts + * await prefetchTriggersQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchTriggersQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, TriggerSelect>; + } +): Promise; +export async function prefetchTriggersQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: triggerKeys.list(args), + queryFn: () => getClient().trigger.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useUniqueConstraintQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useUniqueConstraintQuery.ts new file mode 100644 index 000000000..314e83cd9 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useUniqueConstraintQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for UniqueConstraint + * @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 { uniqueConstraintKeys } from '../query-keys'; +import type { UniqueConstraintSelect, UniqueConstraintWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { UniqueConstraintSelect, UniqueConstraintWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const uniqueConstraintQueryKey = uniqueConstraintKeys.detail; +/** + * Query hook for fetching a single UniqueConstraint + * + * @example + * ```tsx + * const { data, isLoading } = useUniqueConstraintQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useUniqueConstraintQuery< + S extends UniqueConstraintSelect, + TData = { + uniqueConstraint: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, UniqueConstraintSelect>; + } & Omit< + UseQueryOptions< + { + uniqueConstraint: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useUniqueConstraintQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: uniqueConstraintKeys.detail(params.id), + queryFn: () => + getClient() + .uniqueConstraint.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single UniqueConstraint without React hooks + * + * @example + * ```ts + * const data = await fetchUniqueConstraintQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchUniqueConstraintQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, UniqueConstraintSelect>; +}): Promise<{ + uniqueConstraint: InferSelectResult | null; +}>; +export async function fetchUniqueConstraintQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .uniqueConstraint.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single UniqueConstraint for SSR or cache warming + * + * @example + * ```ts + * await prefetchUniqueConstraintQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchUniqueConstraintQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, UniqueConstraintSelect>; + } +): Promise; +export async function prefetchUniqueConstraintQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: uniqueConstraintKeys.detail(params.id), + queryFn: () => + getClient() + .uniqueConstraint.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useUniqueConstraintsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useUniqueConstraintsQuery.ts new file mode 100644 index 000000000..b68770cf9 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useUniqueConstraintsQuery.ts @@ -0,0 +1,163 @@ +/** + * List query hook for UniqueConstraint + * @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 { uniqueConstraintKeys } from '../query-keys'; +import type { + UniqueConstraintSelect, + UniqueConstraintWithRelations, + UniqueConstraintFilter, + UniqueConstraintOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + UniqueConstraintSelect, + UniqueConstraintWithRelations, + UniqueConstraintFilter, + UniqueConstraintOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const uniqueConstraintsQueryKey = uniqueConstraintKeys.list; +/** + * Query hook for fetching UniqueConstraint list + * + * @example + * ```tsx + * const { data, isLoading } = useUniqueConstraintsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useUniqueConstraintsQuery< + S extends UniqueConstraintSelect, + TData = { + uniqueConstraints: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, UniqueConstraintSelect>; + } & Omit< + UseQueryOptions< + { + uniqueConstraints: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useUniqueConstraintsQuery( + params: { + selection: ListSelectionConfig< + UniqueConstraintSelect, + UniqueConstraintFilter, + UniqueConstraintOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + UniqueConstraintSelect, + UniqueConstraintFilter, + UniqueConstraintOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: uniqueConstraintKeys.list(args), + queryFn: () => getClient().uniqueConstraint.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch UniqueConstraint list without React hooks + * + * @example + * ```ts + * const data = await fetchUniqueConstraintsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchUniqueConstraintsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, UniqueConstraintSelect>; +}): Promise<{ + uniqueConstraints: ConnectionResult>; +}>; +export async function fetchUniqueConstraintsQuery(params: { + selection: ListSelectionConfig< + UniqueConstraintSelect, + UniqueConstraintFilter, + UniqueConstraintOrderBy + >; +}) { + const args = buildListSelectionArgs< + UniqueConstraintSelect, + UniqueConstraintFilter, + UniqueConstraintOrderBy + >(params.selection); + return getClient().uniqueConstraint.findMany(args).unwrap(); +} +/** + * Prefetch UniqueConstraint list for SSR or cache warming + * + * @example + * ```ts + * await prefetchUniqueConstraintsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchUniqueConstraintsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, UniqueConstraintSelect>; + } +): Promise; +export async function prefetchUniqueConstraintsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + UniqueConstraintSelect, + UniqueConstraintFilter, + UniqueConstraintOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + UniqueConstraintSelect, + UniqueConstraintFilter, + UniqueConstraintOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: uniqueConstraintKeys.list(args), + queryFn: () => getClient().uniqueConstraint.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useUserAuthModuleQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useUserAuthModuleQuery.ts new file mode 100644 index 000000000..1424b66da --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useUserAuthModuleQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for UserAuthModule + * @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 { userAuthModuleKeys } from '../query-keys'; +import type { UserAuthModuleSelect, UserAuthModuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { UserAuthModuleSelect, UserAuthModuleWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const userAuthModuleQueryKey = userAuthModuleKeys.detail; +/** + * Query hook for fetching a single UserAuthModule + * + * @example + * ```tsx + * const { data, isLoading } = useUserAuthModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useUserAuthModuleQuery< + S extends UserAuthModuleSelect, + TData = { + userAuthModule: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, UserAuthModuleSelect>; + } & Omit< + UseQueryOptions< + { + userAuthModule: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useUserAuthModuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: userAuthModuleKeys.detail(params.id), + queryFn: () => + getClient() + .userAuthModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single UserAuthModule without React hooks + * + * @example + * ```ts + * const data = await fetchUserAuthModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchUserAuthModuleQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, UserAuthModuleSelect>; +}): Promise<{ + userAuthModule: InferSelectResult | null; +}>; +export async function fetchUserAuthModuleQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .userAuthModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single UserAuthModule for SSR or cache warming + * + * @example + * ```ts + * await prefetchUserAuthModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchUserAuthModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, UserAuthModuleSelect>; + } +): Promise; +export async function prefetchUserAuthModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: userAuthModuleKeys.detail(params.id), + queryFn: () => + getClient() + .userAuthModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useUserAuthModulesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useUserAuthModulesQuery.ts new file mode 100644 index 000000000..f223af012 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useUserAuthModulesQuery.ts @@ -0,0 +1,159 @@ +/** + * List query hook for UserAuthModule + * @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 { userAuthModuleKeys } from '../query-keys'; +import type { + UserAuthModuleSelect, + UserAuthModuleWithRelations, + UserAuthModuleFilter, + UserAuthModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + UserAuthModuleSelect, + UserAuthModuleWithRelations, + UserAuthModuleFilter, + UserAuthModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const userAuthModulesQueryKey = userAuthModuleKeys.list; +/** + * Query hook for fetching UserAuthModule list + * + * @example + * ```tsx + * const { data, isLoading } = useUserAuthModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useUserAuthModulesQuery< + S extends UserAuthModuleSelect, + TData = { + userAuthModules: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, UserAuthModuleSelect>; + } & Omit< + UseQueryOptions< + { + userAuthModules: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useUserAuthModulesQuery( + params: { + selection: ListSelectionConfig< + UserAuthModuleSelect, + UserAuthModuleFilter, + UserAuthModuleOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + UserAuthModuleSelect, + UserAuthModuleFilter, + UserAuthModuleOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: userAuthModuleKeys.list(args), + queryFn: () => getClient().userAuthModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch UserAuthModule list without React hooks + * + * @example + * ```ts + * const data = await fetchUserAuthModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchUserAuthModulesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, UserAuthModuleSelect>; +}): Promise<{ + userAuthModules: ConnectionResult>; +}>; +export async function fetchUserAuthModulesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + UserAuthModuleSelect, + UserAuthModuleFilter, + UserAuthModuleOrderBy + >(params.selection); + return getClient().userAuthModule.findMany(args).unwrap(); +} +/** + * Prefetch UserAuthModule list for SSR or cache warming + * + * @example + * ```ts + * await prefetchUserAuthModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchUserAuthModulesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, UserAuthModuleSelect>; + } +): Promise; +export async function prefetchUserAuthModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + UserAuthModuleSelect, + UserAuthModuleFilter, + UserAuthModuleOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + UserAuthModuleSelect, + UserAuthModuleFilter, + UserAuthModuleOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: userAuthModuleKeys.list(args), + queryFn: () => getClient().userAuthModule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useUserQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useUserQuery.ts new file mode 100644 index 000000000..c6ca9d01b --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useUserQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for User + * @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 { userKeys } from '../query-keys'; +import type { UserSelect, UserWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { UserSelect, UserWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const userQueryKey = userKeys.detail; +/** + * Query hook for fetching a single User + * + * @example + * ```tsx + * const { data, isLoading } = useUserQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useUserQuery< + S extends UserSelect, + TData = { + user: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, UserSelect>; + } & Omit< + UseQueryOptions< + { + user: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useUserQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: userKeys.detail(params.id), + queryFn: () => + getClient() + .user.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single User without React hooks + * + * @example + * ```ts + * const data = await fetchUserQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchUserQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, UserSelect>; +}): Promise<{ + user: InferSelectResult | null; +}>; +export async function fetchUserQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .user.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single User for SSR or cache warming + * + * @example + * ```ts + * await prefetchUserQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchUserQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, UserSelect>; + } +): Promise; +export async function prefetchUserQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: userKeys.detail(params.id), + queryFn: () => + getClient() + .user.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useUsersModuleQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useUsersModuleQuery.ts new file mode 100644 index 000000000..4bd5bc0f0 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useUsersModuleQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for UsersModule + * @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 { usersModuleKeys } from '../query-keys'; +import type { UsersModuleSelect, UsersModuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { UsersModuleSelect, UsersModuleWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const usersModuleQueryKey = usersModuleKeys.detail; +/** + * Query hook for fetching a single UsersModule + * + * @example + * ```tsx + * const { data, isLoading } = useUsersModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useUsersModuleQuery< + S extends UsersModuleSelect, + TData = { + usersModule: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, UsersModuleSelect>; + } & Omit< + UseQueryOptions< + { + usersModule: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useUsersModuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: usersModuleKeys.detail(params.id), + queryFn: () => + getClient() + .usersModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single UsersModule without React hooks + * + * @example + * ```ts + * const data = await fetchUsersModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchUsersModuleQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, UsersModuleSelect>; +}): Promise<{ + usersModule: InferSelectResult | null; +}>; +export async function fetchUsersModuleQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .usersModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single UsersModule for SSR or cache warming + * + * @example + * ```ts + * await prefetchUsersModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchUsersModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, UsersModuleSelect>; + } +): Promise; +export async function prefetchUsersModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: usersModuleKeys.detail(params.id), + queryFn: () => + getClient() + .usersModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useUsersModulesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useUsersModulesQuery.ts new file mode 100644 index 000000000..a19074b3c --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useUsersModulesQuery.ts @@ -0,0 +1,145 @@ +/** + * List query hook for UsersModule + * @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 { usersModuleKeys } from '../query-keys'; +import type { + UsersModuleSelect, + UsersModuleWithRelations, + UsersModuleFilter, + UsersModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + UsersModuleSelect, + UsersModuleWithRelations, + UsersModuleFilter, + UsersModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const usersModulesQueryKey = usersModuleKeys.list; +/** + * Query hook for fetching UsersModule list + * + * @example + * ```tsx + * const { data, isLoading } = useUsersModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useUsersModulesQuery< + S extends UsersModuleSelect, + TData = { + usersModules: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, UsersModuleSelect>; + } & Omit< + UseQueryOptions< + { + usersModules: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useUsersModulesQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: usersModuleKeys.list(args), + queryFn: () => getClient().usersModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch UsersModule list without React hooks + * + * @example + * ```ts + * const data = await fetchUsersModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchUsersModulesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, UsersModuleSelect>; +}): Promise<{ + usersModules: ConnectionResult>; +}>; +export async function fetchUsersModulesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().usersModule.findMany(args).unwrap(); +} +/** + * Prefetch UsersModule list for SSR or cache warming + * + * @example + * ```ts + * await prefetchUsersModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchUsersModulesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, UsersModuleSelect>; + } +): Promise; +export async function prefetchUsersModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: usersModuleKeys.list(args), + queryFn: () => getClient().usersModule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useUsersQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useUsersQuery.ts new file mode 100644 index 000000000..478d3eab4 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useUsersQuery.ts @@ -0,0 +1,129 @@ +/** + * List query hook for User + * @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 { userKeys } from '../query-keys'; +import type { UserSelect, UserWithRelations, UserFilter, UserOrderBy } from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { UserSelect, UserWithRelations, UserFilter, UserOrderBy } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const usersQueryKey = userKeys.list; +/** + * Query hook for fetching User list + * + * @example + * ```tsx + * const { data, isLoading } = useUsersQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useUsersQuery< + S extends UserSelect, + TData = { + users: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, UserSelect>; + } & Omit< + UseQueryOptions< + { + users: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useUsersQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: userKeys.list(args), + queryFn: () => getClient().user.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch User list without React hooks + * + * @example + * ```ts + * const data = await fetchUsersQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchUsersQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, UserSelect>; +}): Promise<{ + users: ConnectionResult>; +}>; +export async function fetchUsersQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs(params.selection); + return getClient().user.findMany(args).unwrap(); +} +/** + * Prefetch User list for SSR or cache warming + * + * @example + * ```ts + * await prefetchUsersQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchUsersQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, UserSelect>; + } +): Promise; +export async function prefetchUsersQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: userKeys.list(args), + queryFn: () => getClient().user.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useUuidModuleQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useUuidModuleQuery.ts new file mode 100644 index 000000000..0a42306d3 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useUuidModuleQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for UuidModule + * @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 { uuidModuleKeys } from '../query-keys'; +import type { UuidModuleSelect, UuidModuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { UuidModuleSelect, UuidModuleWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const uuidModuleQueryKey = uuidModuleKeys.detail; +/** + * Query hook for fetching a single UuidModule + * + * @example + * ```tsx + * const { data, isLoading } = useUuidModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useUuidModuleQuery< + S extends UuidModuleSelect, + TData = { + uuidModule: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, UuidModuleSelect>; + } & Omit< + UseQueryOptions< + { + uuidModule: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useUuidModuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: uuidModuleKeys.detail(params.id), + queryFn: () => + getClient() + .uuidModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single UuidModule without React hooks + * + * @example + * ```ts + * const data = await fetchUuidModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchUuidModuleQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, UuidModuleSelect>; +}): Promise<{ + uuidModule: InferSelectResult | null; +}>; +export async function fetchUuidModuleQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .uuidModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single UuidModule for SSR or cache warming + * + * @example + * ```ts + * await prefetchUuidModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchUuidModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, UuidModuleSelect>; + } +): Promise; +export async function prefetchUuidModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: uuidModuleKeys.detail(params.id), + queryFn: () => + getClient() + .uuidModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useUuidModulesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useUuidModulesQuery.ts new file mode 100644 index 000000000..b3a26771f --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useUuidModulesQuery.ts @@ -0,0 +1,145 @@ +/** + * List query hook for UuidModule + * @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 { uuidModuleKeys } from '../query-keys'; +import type { + UuidModuleSelect, + UuidModuleWithRelations, + UuidModuleFilter, + UuidModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + UuidModuleSelect, + UuidModuleWithRelations, + UuidModuleFilter, + UuidModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const uuidModulesQueryKey = uuidModuleKeys.list; +/** + * Query hook for fetching UuidModule list + * + * @example + * ```tsx + * const { data, isLoading } = useUuidModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useUuidModulesQuery< + S extends UuidModuleSelect, + TData = { + uuidModules: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, UuidModuleSelect>; + } & Omit< + UseQueryOptions< + { + uuidModules: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useUuidModulesQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: uuidModuleKeys.list(args), + queryFn: () => getClient().uuidModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch UuidModule list without React hooks + * + * @example + * ```ts + * const data = await fetchUuidModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchUuidModulesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, UuidModuleSelect>; +}): Promise<{ + uuidModules: ConnectionResult>; +}>; +export async function fetchUuidModulesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().uuidModule.findMany(args).unwrap(); +} +/** + * Prefetch UuidModule list for SSR or cache warming + * + * @example + * ```ts + * await prefetchUuidModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchUuidModulesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, UuidModuleSelect>; + } +): Promise; +export async function prefetchUuidModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: uuidModuleKeys.list(args), + queryFn: () => getClient().uuidModule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useViewGrantQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useViewGrantQuery.ts new file mode 100644 index 000000000..bc65e83c2 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useViewGrantQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for ViewGrant + * @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 { viewGrantKeys } from '../query-keys'; +import type { ViewGrantSelect, ViewGrantWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ViewGrantSelect, ViewGrantWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const viewGrantQueryKey = viewGrantKeys.detail; +/** + * Query hook for fetching a single ViewGrant + * + * @example + * ```tsx + * const { data, isLoading } = useViewGrantQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useViewGrantQuery< + S extends ViewGrantSelect, + TData = { + viewGrant: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ViewGrantSelect>; + } & Omit< + UseQueryOptions< + { + viewGrant: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useViewGrantQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: viewGrantKeys.detail(params.id), + queryFn: () => + getClient() + .viewGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single ViewGrant without React hooks + * + * @example + * ```ts + * const data = await fetchViewGrantQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchViewGrantQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ViewGrantSelect>; +}): Promise<{ + viewGrant: InferSelectResult | null; +}>; +export async function fetchViewGrantQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .viewGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single ViewGrant for SSR or cache warming + * + * @example + * ```ts + * await prefetchViewGrantQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchViewGrantQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ViewGrantSelect>; + } +): Promise; +export async function prefetchViewGrantQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: viewGrantKeys.detail(params.id), + queryFn: () => + getClient() + .viewGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useViewGrantsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useViewGrantsQuery.ts new file mode 100644 index 000000000..6cef5c67d --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useViewGrantsQuery.ts @@ -0,0 +1,145 @@ +/** + * List query hook for ViewGrant + * @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 { viewGrantKeys } from '../query-keys'; +import type { + ViewGrantSelect, + ViewGrantWithRelations, + ViewGrantFilter, + ViewGrantOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + ViewGrantSelect, + ViewGrantWithRelations, + ViewGrantFilter, + ViewGrantOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const viewGrantsQueryKey = viewGrantKeys.list; +/** + * Query hook for fetching ViewGrant list + * + * @example + * ```tsx + * const { data, isLoading } = useViewGrantsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useViewGrantsQuery< + S extends ViewGrantSelect, + TData = { + viewGrants: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ViewGrantSelect>; + } & Omit< + UseQueryOptions< + { + viewGrants: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useViewGrantsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: viewGrantKeys.list(args), + queryFn: () => getClient().viewGrant.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch ViewGrant list without React hooks + * + * @example + * ```ts + * const data = await fetchViewGrantsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchViewGrantsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ViewGrantSelect>; +}): Promise<{ + viewGrants: ConnectionResult>; +}>; +export async function fetchViewGrantsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().viewGrant.findMany(args).unwrap(); +} +/** + * Prefetch ViewGrant list for SSR or cache warming + * + * @example + * ```ts + * await prefetchViewGrantsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchViewGrantsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ViewGrantSelect>; + } +): Promise; +export async function prefetchViewGrantsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: viewGrantKeys.list(args), + queryFn: () => getClient().viewGrant.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useViewQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useViewQuery.ts new file mode 100644 index 000000000..359c5bc55 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useViewQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for View + * @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 { viewKeys } from '../query-keys'; +import type { ViewSelect, ViewWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ViewSelect, ViewWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const viewQueryKey = viewKeys.detail; +/** + * Query hook for fetching a single View + * + * @example + * ```tsx + * const { data, isLoading } = useViewQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useViewQuery< + S extends ViewSelect, + TData = { + view: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ViewSelect>; + } & Omit< + UseQueryOptions< + { + view: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useViewQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: viewKeys.detail(params.id), + queryFn: () => + getClient() + .view.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single View without React hooks + * + * @example + * ```ts + * const data = await fetchViewQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchViewQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ViewSelect>; +}): Promise<{ + view: InferSelectResult | null; +}>; +export async function fetchViewQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .view.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single View for SSR or cache warming + * + * @example + * ```ts + * await prefetchViewQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchViewQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ViewSelect>; + } +): Promise; +export async function prefetchViewQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: viewKeys.detail(params.id), + queryFn: () => + getClient() + .view.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useViewRuleQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useViewRuleQuery.ts new file mode 100644 index 000000000..3a33a3fa6 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useViewRuleQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for ViewRule + * @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 { viewRuleKeys } from '../query-keys'; +import type { ViewRuleSelect, ViewRuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ViewRuleSelect, ViewRuleWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const viewRuleQueryKey = viewRuleKeys.detail; +/** + * Query hook for fetching a single ViewRule + * + * @example + * ```tsx + * const { data, isLoading } = useViewRuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useViewRuleQuery< + S extends ViewRuleSelect, + TData = { + viewRule: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ViewRuleSelect>; + } & Omit< + UseQueryOptions< + { + viewRule: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useViewRuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: viewRuleKeys.detail(params.id), + queryFn: () => + getClient() + .viewRule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single ViewRule without React hooks + * + * @example + * ```ts + * const data = await fetchViewRuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchViewRuleQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ViewRuleSelect>; +}): Promise<{ + viewRule: InferSelectResult | null; +}>; +export async function fetchViewRuleQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .viewRule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single ViewRule for SSR or cache warming + * + * @example + * ```ts + * await prefetchViewRuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchViewRuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ViewRuleSelect>; + } +): Promise; +export async function prefetchViewRuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: viewRuleKeys.detail(params.id), + queryFn: () => + getClient() + .viewRule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useViewRulesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useViewRulesQuery.ts new file mode 100644 index 000000000..63994b707 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useViewRulesQuery.ts @@ -0,0 +1,145 @@ +/** + * List query hook for ViewRule + * @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 { viewRuleKeys } from '../query-keys'; +import type { + ViewRuleSelect, + ViewRuleWithRelations, + ViewRuleFilter, + ViewRuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + ViewRuleSelect, + ViewRuleWithRelations, + ViewRuleFilter, + ViewRuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const viewRulesQueryKey = viewRuleKeys.list; +/** + * Query hook for fetching ViewRule list + * + * @example + * ```tsx + * const { data, isLoading } = useViewRulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useViewRulesQuery< + S extends ViewRuleSelect, + TData = { + viewRules: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ViewRuleSelect>; + } & Omit< + UseQueryOptions< + { + viewRules: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useViewRulesQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: viewRuleKeys.list(args), + queryFn: () => getClient().viewRule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch ViewRule list without React hooks + * + * @example + * ```ts + * const data = await fetchViewRulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchViewRulesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ViewRuleSelect>; +}): Promise<{ + viewRules: ConnectionResult>; +}>; +export async function fetchViewRulesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().viewRule.findMany(args).unwrap(); +} +/** + * Prefetch ViewRule list for SSR or cache warming + * + * @example + * ```ts + * await prefetchViewRulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchViewRulesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ViewRuleSelect>; + } +): Promise; +export async function prefetchViewRulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: viewRuleKeys.list(args), + queryFn: () => getClient().viewRule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useViewTableQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useViewTableQuery.ts new file mode 100644 index 000000000..f49d71f68 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useViewTableQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for ViewTable + * @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 { viewTableKeys } from '../query-keys'; +import type { ViewTableSelect, ViewTableWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ViewTableSelect, ViewTableWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const viewTableQueryKey = viewTableKeys.detail; +/** + * Query hook for fetching a single ViewTable + * + * @example + * ```tsx + * const { data, isLoading } = useViewTableQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useViewTableQuery< + S extends ViewTableSelect, + TData = { + viewTable: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ViewTableSelect>; + } & Omit< + UseQueryOptions< + { + viewTable: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useViewTableQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: viewTableKeys.detail(params.id), + queryFn: () => + getClient() + .viewTable.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single ViewTable without React hooks + * + * @example + * ```ts + * const data = await fetchViewTableQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchViewTableQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ViewTableSelect>; +}): Promise<{ + viewTable: InferSelectResult | null; +}>; +export async function fetchViewTableQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .viewTable.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single ViewTable for SSR or cache warming + * + * @example + * ```ts + * await prefetchViewTableQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchViewTableQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ViewTableSelect>; + } +): Promise; +export async function prefetchViewTableQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: viewTableKeys.detail(params.id), + queryFn: () => + getClient() + .viewTable.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useViewTablesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useViewTablesQuery.ts new file mode 100644 index 000000000..341746862 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useViewTablesQuery.ts @@ -0,0 +1,145 @@ +/** + * List query hook for ViewTable + * @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 { viewTableKeys } from '../query-keys'; +import type { + ViewTableSelect, + ViewTableWithRelations, + ViewTableFilter, + ViewTableOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + ViewTableSelect, + ViewTableWithRelations, + ViewTableFilter, + ViewTableOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const viewTablesQueryKey = viewTableKeys.list; +/** + * Query hook for fetching ViewTable list + * + * @example + * ```tsx + * const { data, isLoading } = useViewTablesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useViewTablesQuery< + S extends ViewTableSelect, + TData = { + viewTables: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ViewTableSelect>; + } & Omit< + UseQueryOptions< + { + viewTables: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useViewTablesQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: viewTableKeys.list(args), + queryFn: () => getClient().viewTable.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch ViewTable list without React hooks + * + * @example + * ```ts + * const data = await fetchViewTablesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchViewTablesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ViewTableSelect>; +}): Promise<{ + viewTables: ConnectionResult>; +}>; +export async function fetchViewTablesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().viewTable.findMany(args).unwrap(); +} +/** + * Prefetch ViewTable list for SSR or cache warming + * + * @example + * ```ts + * await prefetchViewTablesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchViewTablesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ViewTableSelect>; + } +): Promise; +export async function prefetchViewTablesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: viewTableKeys.list(args), + queryFn: () => getClient().viewTable.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useViewsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useViewsQuery.ts new file mode 100644 index 000000000..4b62bbe5a --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useViewsQuery.ts @@ -0,0 +1,129 @@ +/** + * List query hook for View + * @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 { viewKeys } from '../query-keys'; +import type { ViewSelect, ViewWithRelations, ViewFilter, ViewOrderBy } from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { ViewSelect, ViewWithRelations, ViewFilter, ViewOrderBy } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const viewsQueryKey = viewKeys.list; +/** + * Query hook for fetching View list + * + * @example + * ```tsx + * const { data, isLoading } = useViewsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useViewsQuery< + S extends ViewSelect, + TData = { + views: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ViewSelect>; + } & Omit< + UseQueryOptions< + { + views: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useViewsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: viewKeys.list(args), + queryFn: () => getClient().view.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch View list without React hooks + * + * @example + * ```ts + * const data = await fetchViewsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchViewsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ViewSelect>; +}): Promise<{ + views: ConnectionResult>; +}>; +export async function fetchViewsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs(params.selection); + return getClient().view.findMany(args).unwrap(); +} +/** + * Prefetch View list for SSR or cache warming + * + * @example + * ```ts + * await prefetchViewsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchViewsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ViewSelect>; + } +): Promise; +export async function prefetchViewsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: viewKeys.list(args), + queryFn: () => getClient().view.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/query-keys.ts b/sdk/constructive-react/src/public/hooks/query-keys.ts new file mode 100644 index 000000000..8037ac67b --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/query-keys.ts @@ -0,0 +1,1080 @@ +/** + * Centralized query key factory + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +// ============================================================================ +// This file provides a centralized, type-safe query key factory following +// the lukemorales query-key-factory pattern for React Query. +// +// Benefits: +// - Single source of truth for all query keys +// - Type-safe key access with autocomplete +// - Hierarchical invalidation (invalidate all 'user.*' queries) +// - Scoped keys for parent-child relationships +// ============================================================================ + +// ============================================================================ +// Entity Query Keys +// ============================================================================ + +export const getAllRecordKeys = { + /** All getAllRecord queries */ all: ['getallrecord'] as const, + /** List query keys */ lists: () => [...getAllRecordKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...getAllRecordKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...getAllRecordKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...getAllRecordKeys.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, + /** List query key with variables */ list: (variables?: object) => + [...appPermissionKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appPermissionKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...appPermissionKeys.details(), id] as const, +} as const; +export const orgPermissionKeys = { + /** All orgPermission queries */ all: ['orgpermission'] as const, + /** List query keys */ lists: () => [...orgPermissionKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgPermissionKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgPermissionKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgPermissionKeys.details(), id] as const, +} as const; +export const objectKeys = { + /** All object queries */ all: ['object'] as const, + /** List query keys */ lists: () => [...objectKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...objectKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...objectKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...objectKeys.details(), id] as const, +} as const; +export const appLevelRequirementKeys = { + /** All appLevelRequirement queries */ all: ['applevelrequirement'] as const, + /** List query keys */ lists: () => [...appLevelRequirementKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...appLevelRequirementKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appLevelRequirementKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...appLevelRequirementKeys.details(), id] as const, +} as const; +export const databaseKeys = { + /** All database queries */ all: ['database'] as const, + /** List query keys */ lists: () => [...databaseKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...databaseKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...databaseKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...databaseKeys.details(), id] as const, +} as const; +export const schemaKeys = { + /** All schema queries */ all: ['schema'] as const, + /** List query keys */ lists: () => [...schemaKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...schemaKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...schemaKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...schemaKeys.details(), id] as const, +} as const; +export const tableKeys = { + /** All table queries */ all: ['table'] as const, + /** List query keys */ lists: () => [...tableKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...tableKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...tableKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...tableKeys.details(), id] as const, +} as const; +export const checkConstraintKeys = { + /** All checkConstraint queries */ all: ['checkconstraint'] as const, + /** List query keys */ lists: () => [...checkConstraintKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...checkConstraintKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...checkConstraintKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...checkConstraintKeys.details(), id] as const, +} as const; +export const fieldKeys = { + /** All field queries */ all: ['field'] as const, + /** List query keys */ lists: () => [...fieldKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...fieldKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...fieldKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...fieldKeys.details(), id] as const, +} as const; +export const foreignKeyConstraintKeys = { + /** All foreignKeyConstraint queries */ all: ['foreignkeyconstraint'] as const, + /** List query keys */ lists: () => [...foreignKeyConstraintKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...foreignKeyConstraintKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...foreignKeyConstraintKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...foreignKeyConstraintKeys.details(), id] as const, +} as const; +export const fullTextSearchKeys = { + /** All fullTextSearch queries */ all: ['fulltextsearch'] as const, + /** List query keys */ lists: () => [...fullTextSearchKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...fullTextSearchKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...fullTextSearchKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...fullTextSearchKeys.details(), id] as const, +} as const; +export const indexKeys = { + /** All index queries */ all: ['index'] as const, + /** List query keys */ lists: () => [...indexKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...indexKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...indexKeys.all, 'detail'] as const, + /** 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, + /** List query key with variables */ list: (variables?: object) => + [...policyKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...policyKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...policyKeys.details(), id] as const, +} as const; +export const primaryKeyConstraintKeys = { + /** All primaryKeyConstraint queries */ all: ['primarykeyconstraint'] as const, + /** List query keys */ lists: () => [...primaryKeyConstraintKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...primaryKeyConstraintKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...primaryKeyConstraintKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...primaryKeyConstraintKeys.details(), id] as const, +} as const; +export const tableGrantKeys = { + /** All tableGrant queries */ all: ['tablegrant'] as const, + /** List query keys */ lists: () => [...tableGrantKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...tableGrantKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...tableGrantKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...tableGrantKeys.details(), id] as const, +} as const; +export const triggerKeys = { + /** All trigger queries */ all: ['trigger'] as const, + /** List query keys */ lists: () => [...triggerKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...triggerKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...triggerKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...triggerKeys.details(), id] as const, +} as const; +export const uniqueConstraintKeys = { + /** All uniqueConstraint queries */ all: ['uniqueconstraint'] as const, + /** List query keys */ lists: () => [...uniqueConstraintKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...uniqueConstraintKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...uniqueConstraintKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...uniqueConstraintKeys.details(), id] as const, +} as const; +export const viewKeys = { + /** All view queries */ all: ['view'] as const, + /** List query keys */ lists: () => [...viewKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...viewKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...viewKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...viewKeys.details(), id] as const, +} as const; +export const viewTableKeys = { + /** All viewTable queries */ all: ['viewtable'] as const, + /** List query keys */ lists: () => [...viewTableKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...viewTableKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...viewTableKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...viewTableKeys.details(), id] as const, +} as const; +export const viewGrantKeys = { + /** All viewGrant queries */ all: ['viewgrant'] as const, + /** List query keys */ lists: () => [...viewGrantKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...viewGrantKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...viewGrantKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...viewGrantKeys.details(), id] as const, +} as const; +export const viewRuleKeys = { + /** All viewRule queries */ all: ['viewrule'] as const, + /** List query keys */ lists: () => [...viewRuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...viewRuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...viewRuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...viewRuleKeys.details(), id] as const, +} as const; +export const tableModuleKeys = { + /** All tableModule queries */ all: ['tablemodule'] as const, + /** List query keys */ lists: () => [...tableModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...tableModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...tableModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...tableModuleKeys.details(), id] as const, +} as const; +export const tableTemplateModuleKeys = { + /** All tableTemplateModule queries */ all: ['tabletemplatemodule'] as const, + /** List query keys */ lists: () => [...tableTemplateModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...tableTemplateModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...tableTemplateModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...tableTemplateModuleKeys.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, + /** List query key with variables */ list: (variables?: object) => + [...schemaGrantKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...schemaGrantKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...schemaGrantKeys.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, + /** List query key with variables */ list: (variables?: object) => + [...apiSchemaKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...apiSchemaKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...apiSchemaKeys.details(), id] as const, +} as const; +export const apiModuleKeys = { + /** All apiModule queries */ all: ['apimodule'] as const, + /** List query keys */ lists: () => [...apiModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...apiModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...apiModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...apiModuleKeys.details(), id] as const, +} as const; +export const domainKeys = { + /** All domain queries */ all: ['domain'] as const, + /** List query keys */ lists: () => [...domainKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...domainKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...domainKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...domainKeys.details(), id] as const, +} as const; +export const siteMetadatumKeys = { + /** All siteMetadatum queries */ all: ['sitemetadatum'] as const, + /** List query keys */ lists: () => [...siteMetadatumKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...siteMetadatumKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...siteMetadatumKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...siteMetadatumKeys.details(), id] as const, +} as const; +export const siteModuleKeys = { + /** All siteModule queries */ all: ['sitemodule'] as const, + /** List query keys */ lists: () => [...siteModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...siteModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...siteModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...siteModuleKeys.details(), id] as const, +} as const; +export const siteThemeKeys = { + /** All siteTheme queries */ all: ['sitetheme'] as const, + /** List query keys */ lists: () => [...siteThemeKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...siteThemeKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...siteThemeKeys.all, 'detail'] as const, + /** 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, + /** List query key with variables */ list: (variables?: object) => + [...triggerFunctionKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...triggerFunctionKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...triggerFunctionKeys.details(), id] as const, +} as const; +export const apiKeys = { + /** All api queries */ all: ['api'] as const, + /** List query keys */ lists: () => [...apiKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...apiKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...apiKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...apiKeys.details(), id] as const, +} as const; +export const siteKeys = { + /** All site queries */ all: ['site'] as const, + /** List query keys */ lists: () => [...siteKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...siteKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...siteKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...siteKeys.details(), id] as const, +} as const; +export const appKeys = { + /** All app queries */ all: ['app'] as const, + /** List query keys */ lists: () => [...appKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...appKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...appKeys.details(), id] as const, +} as const; +export const connectedAccountsModuleKeys = { + /** All connectedAccountsModule queries */ all: ['connectedaccountsmodule'] as const, + /** List query keys */ lists: () => [...connectedAccountsModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...connectedAccountsModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...connectedAccountsModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...connectedAccountsModuleKeys.details(), id] as const, +} as const; +export const cryptoAddressesModuleKeys = { + /** All cryptoAddressesModule queries */ all: ['cryptoaddressesmodule'] as const, + /** List query keys */ lists: () => [...cryptoAddressesModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...cryptoAddressesModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...cryptoAddressesModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...cryptoAddressesModuleKeys.details(), id] as const, +} as const; +export const cryptoAuthModuleKeys = { + /** All cryptoAuthModule queries */ all: ['cryptoauthmodule'] as const, + /** List query keys */ lists: () => [...cryptoAuthModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...cryptoAuthModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...cryptoAuthModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...cryptoAuthModuleKeys.details(), id] as const, +} as const; +export const defaultIdsModuleKeys = { + /** All defaultIdsModule queries */ all: ['defaultidsmodule'] as const, + /** List query keys */ lists: () => [...defaultIdsModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...defaultIdsModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...defaultIdsModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...defaultIdsModuleKeys.details(), id] as const, +} as const; +export const denormalizedTableFieldKeys = { + /** All denormalizedTableField queries */ all: ['denormalizedtablefield'] as const, + /** List query keys */ lists: () => [...denormalizedTableFieldKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...denormalizedTableFieldKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...denormalizedTableFieldKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...denormalizedTableFieldKeys.details(), id] as const, +} as const; +export const emailsModuleKeys = { + /** All emailsModule queries */ all: ['emailsmodule'] as const, + /** List query keys */ lists: () => [...emailsModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...emailsModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...emailsModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...emailsModuleKeys.details(), id] as const, +} as const; +export const encryptedSecretsModuleKeys = { + /** All encryptedSecretsModule queries */ all: ['encryptedsecretsmodule'] as const, + /** List query keys */ lists: () => [...encryptedSecretsModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...encryptedSecretsModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...encryptedSecretsModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...encryptedSecretsModuleKeys.details(), id] as const, +} as const; +export const fieldModuleKeys = { + /** All fieldModule queries */ all: ['fieldmodule'] as const, + /** List query keys */ lists: () => [...fieldModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...fieldModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...fieldModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...fieldModuleKeys.details(), id] as const, +} as const; +export const invitesModuleKeys = { + /** All invitesModule queries */ all: ['invitesmodule'] as const, + /** List query keys */ lists: () => [...invitesModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...invitesModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...invitesModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...invitesModuleKeys.details(), id] as const, +} as const; +export const levelsModuleKeys = { + /** All levelsModule queries */ all: ['levelsmodule'] as const, + /** List query keys */ lists: () => [...levelsModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...levelsModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...levelsModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...levelsModuleKeys.details(), id] as const, +} as const; +export const limitsModuleKeys = { + /** All limitsModule queries */ all: ['limitsmodule'] as const, + /** List query keys */ lists: () => [...limitsModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...limitsModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...limitsModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...limitsModuleKeys.details(), id] as const, +} as const; +export const membershipTypesModuleKeys = { + /** All membershipTypesModule queries */ all: ['membershiptypesmodule'] as const, + /** List query keys */ lists: () => [...membershipTypesModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...membershipTypesModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...membershipTypesModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...membershipTypesModuleKeys.details(), id] as const, +} as const; +export const membershipsModuleKeys = { + /** All membershipsModule queries */ all: ['membershipsmodule'] as const, + /** List query keys */ lists: () => [...membershipsModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...membershipsModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...membershipsModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...membershipsModuleKeys.details(), id] as const, +} as const; +export const permissionsModuleKeys = { + /** All permissionsModule queries */ all: ['permissionsmodule'] as const, + /** List query keys */ lists: () => [...permissionsModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...permissionsModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...permissionsModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...permissionsModuleKeys.details(), id] as const, +} as const; +export const phoneNumbersModuleKeys = { + /** All phoneNumbersModule queries */ all: ['phonenumbersmodule'] as const, + /** List query keys */ lists: () => [...phoneNumbersModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...phoneNumbersModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...phoneNumbersModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...phoneNumbersModuleKeys.details(), id] as const, +} as const; +export const profilesModuleKeys = { + /** All profilesModule queries */ all: ['profilesmodule'] as const, + /** List query keys */ lists: () => [...profilesModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...profilesModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...profilesModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...profilesModuleKeys.details(), id] as const, +} as const; +export const rlsModuleKeys = { + /** All rlsModule queries */ all: ['rlsmodule'] as const, + /** List query keys */ lists: () => [...rlsModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...rlsModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...rlsModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...rlsModuleKeys.details(), id] as const, +} as const; +export const secretsModuleKeys = { + /** All secretsModule queries */ all: ['secretsmodule'] as const, + /** List query keys */ lists: () => [...secretsModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...secretsModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...secretsModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...secretsModuleKeys.details(), id] as const, +} as const; +export const sessionsModuleKeys = { + /** All sessionsModule queries */ all: ['sessionsmodule'] as const, + /** List query keys */ lists: () => [...sessionsModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...sessionsModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...sessionsModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...sessionsModuleKeys.details(), id] as const, +} as const; +export const userAuthModuleKeys = { + /** All userAuthModule queries */ all: ['userauthmodule'] as const, + /** List query keys */ lists: () => [...userAuthModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...userAuthModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...userAuthModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...userAuthModuleKeys.details(), id] as const, +} as const; +export const usersModuleKeys = { + /** All usersModule queries */ all: ['usersmodule'] as const, + /** List query keys */ lists: () => [...usersModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...usersModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...usersModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...usersModuleKeys.details(), id] as const, +} as const; +export const uuidModuleKeys = { + /** All uuidModule queries */ all: ['uuidmodule'] as const, + /** List query keys */ lists: () => [...uuidModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...uuidModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...uuidModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...uuidModuleKeys.details(), id] as const, +} as const; +export const databaseProvisionModuleKeys = { + /** All databaseProvisionModule queries */ all: ['databaseprovisionmodule'] as const, + /** List query keys */ lists: () => [...databaseProvisionModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...databaseProvisionModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...databaseProvisionModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...databaseProvisionModuleKeys.details(), id] as const, +} as const; +export const appAdminGrantKeys = { + /** All appAdminGrant queries */ all: ['appadmingrant'] as const, + /** List query keys */ lists: () => [...appAdminGrantKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...appAdminGrantKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appAdminGrantKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...appAdminGrantKeys.details(), id] as const, +} as const; +export const appOwnerGrantKeys = { + /** All appOwnerGrant queries */ all: ['appownergrant'] as const, + /** List query keys */ lists: () => [...appOwnerGrantKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...appOwnerGrantKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appOwnerGrantKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...appOwnerGrantKeys.details(), id] as const, +} as const; +export const appGrantKeys = { + /** All appGrant queries */ all: ['appgrant'] as const, + /** List query keys */ lists: () => [...appGrantKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...appGrantKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appGrantKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...appGrantKeys.details(), id] as const, +} as const; +export const orgMembershipKeys = { + /** All orgMembership queries */ all: ['orgmembership'] as const, + /** List query keys */ lists: () => [...orgMembershipKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgMembershipKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgMembershipKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgMembershipKeys.details(), id] as const, +} as const; +export const orgMemberKeys = { + /** All orgMember queries */ all: ['orgmember'] as const, + /** List query keys */ lists: () => [...orgMemberKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgMemberKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgMemberKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgMemberKeys.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, + /** List query key with variables */ list: (variables?: object) => + [...orgAdminGrantKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgAdminGrantKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgAdminGrantKeys.details(), id] as const, +} as const; +export const orgOwnerGrantKeys = { + /** All orgOwnerGrant queries */ all: ['orgownergrant'] as const, + /** List query keys */ lists: () => [...orgOwnerGrantKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgOwnerGrantKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgOwnerGrantKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgOwnerGrantKeys.details(), id] as const, +} as const; +export const orgGrantKeys = { + /** All orgGrant queries */ all: ['orggrant'] as const, + /** List query keys */ lists: () => [...orgGrantKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgGrantKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgGrantKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgGrantKeys.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, + /** List query key with variables */ list: (variables?: object) => + [...appLimitKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appLimitKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...appLimitKeys.details(), id] as const, +} as const; +export const orgLimitKeys = { + /** All orgLimit queries */ all: ['orglimit'] as const, + /** List query keys */ lists: () => [...orgLimitKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgLimitKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgLimitKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgLimitKeys.details(), id] as const, +} as const; +export const appStepKeys = { + /** All appStep queries */ all: ['appstep'] as const, + /** List query keys */ lists: () => [...appStepKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...appStepKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appStepKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...appStepKeys.details(), id] as const, +} as const; +export const appAchievementKeys = { + /** All appAchievement queries */ all: ['appachievement'] as const, + /** List query keys */ lists: () => [...appAchievementKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...appAchievementKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appAchievementKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...appAchievementKeys.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, + /** List query key with variables */ list: (variables?: object) => + [...inviteKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...inviteKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...inviteKeys.details(), id] as const, +} as const; +export const claimedInviteKeys = { + /** All claimedInvite queries */ all: ['claimedinvite'] as const, + /** List query keys */ lists: () => [...claimedInviteKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...claimedInviteKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...claimedInviteKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...claimedInviteKeys.details(), id] as const, +} as const; +export const orgInviteKeys = { + /** All orgInvite queries */ all: ['orginvite'] as const, + /** List query keys */ lists: () => [...orgInviteKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgInviteKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgInviteKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgInviteKeys.details(), id] as const, +} as const; +export const orgClaimedInviteKeys = { + /** All orgClaimedInvite queries */ all: ['orgclaimedinvite'] as const, + /** List query keys */ lists: () => [...orgClaimedInviteKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgClaimedInviteKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgClaimedInviteKeys.all, 'detail'] as const, + /** 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, + /** List query key with variables */ list: (variables?: object) => + [...refKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...refKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...refKeys.details(), id] as const, +} as const; +export const storeKeys = { + /** All store queries */ all: ['store'] as const, + /** List query keys */ lists: () => [...storeKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...storeKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...storeKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...storeKeys.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, + /** List query key with variables */ list: (variables?: object) => + [...roleTypeKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...roleTypeKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...roleTypeKeys.details(), id] as const, +} as const; +export const orgPermissionDefaultKeys = { + /** All orgPermissionDefault queries */ all: ['orgpermissiondefault'] as const, + /** List query keys */ lists: () => [...orgPermissionDefaultKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgPermissionDefaultKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgPermissionDefaultKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgPermissionDefaultKeys.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 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, + /** List query key with variables */ list: (variables?: object) => + [...connectedAccountKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...connectedAccountKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...connectedAccountKeys.details(), id] as const, +} as const; +export const phoneNumberKeys = { + /** All phoneNumber queries */ all: ['phonenumber'] as const, + /** List query keys */ lists: () => [...phoneNumberKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...phoneNumberKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...phoneNumberKeys.all, 'detail'] as const, + /** 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, + /** 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 nodeTypeRegistryKeys = { + /** All nodeTypeRegistry queries */ all: ['nodetyperegistry'] as const, + /** List query keys */ lists: () => [...nodeTypeRegistryKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...nodeTypeRegistryKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...nodeTypeRegistryKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...nodeTypeRegistryKeys.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, + /** List query key with variables */ list: (variables?: object) => + [...commitKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...commitKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...commitKeys.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, + /** List query key with variables */ list: (variables?: object) => + [...orgMembershipDefaultKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgMembershipDefaultKeys.all, 'detail'] as const, + /** 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, + /** List query key with variables */ list: (variables?: object) => + [...auditLogKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...auditLogKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...auditLogKeys.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 sqlMigrationKeys = { + /** All sqlMigration queries */ all: ['sqlmigration'] as const, + /** List query keys */ lists: () => [...sqlMigrationKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...sqlMigrationKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...sqlMigrationKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...sqlMigrationKeys.details(), id] as const, +} as const; +export const astMigrationKeys = { + /** All astMigration queries */ all: ['astmigration'] as const, + /** List query keys */ lists: () => [...astMigrationKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...astMigrationKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...astMigrationKeys.all, 'detail'] as const, + /** 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, + /** List query key with variables */ list: (variables?: object) => + [...userKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...userKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...userKeys.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, + /** List query key with variables */ list: (variables?: object) => + [...hierarchyModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...hierarchyModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...hierarchyModuleKeys.details(), id] as const, +} as const; + +// ============================================================================ +// Custom Query Keys +// ============================================================================ + +export const customQueryKeys = { + /** Query key for currentUserId */ currentUserId: () => ['currentUserId'] as const, + /** Query key for currentIpAddress */ currentIpAddress: () => ['currentIpAddress'] as const, + /** Query key for currentUserAgent */ currentUserAgent: () => ['currentUserAgent'] as const, + /** Query key for appPermissionsGetPaddedMask */ appPermissionsGetPaddedMask: ( + variables?: object + ) => ['appPermissionsGetPaddedMask', variables] as const, + /** Query key for orgPermissionsGetPaddedMask */ orgPermissionsGetPaddedMask: ( + variables?: object + ) => ['orgPermissionsGetPaddedMask', variables] as const, + /** 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 appPermissionsGetMask */ appPermissionsGetMask: (variables?: object) => + ['appPermissionsGetMask', variables] as const, + /** Query key for orgPermissionsGetMask */ orgPermissionsGetMask: (variables?: object) => + ['orgPermissionsGetMask', variables] as const, + /** Query key for appPermissionsGetMaskByNames */ appPermissionsGetMaskByNames: ( + variables?: object + ) => ['appPermissionsGetMaskByNames', variables] as const, + /** Query key for orgPermissionsGetMaskByNames */ orgPermissionsGetMaskByNames: ( + variables?: object + ) => ['orgPermissionsGetMaskByNames', variables] as const, + /** Query key for appPermissionsGetByMask */ appPermissionsGetByMask: (variables?: object) => + ['appPermissionsGetByMask', variables] as const, + /** Query key for orgPermissionsGetByMask */ orgPermissionsGetByMask: (variables?: object) => + ['orgPermissionsGetByMask', variables] as const, + /** Query key for getAllObjectsFromRoot */ getAllObjectsFromRoot: (variables?: object) => + ['getAllObjectsFromRoot', variables] as const, + /** Query key for getPathObjectsFromRoot */ getPathObjectsFromRoot: (variables?: object) => + ['getPathObjectsFromRoot', variables] as const, + /** Query key for getObjectAtPath */ getObjectAtPath: (variables?: object) => + ['getObjectAtPath', variables] as const, + /** Query key for stepsRequired */ stepsRequired: (variables?: object) => + ['stepsRequired', variables] as const, + /** Query key for currentUser */ currentUser: () => ['currentUser'] as const, +} as const; +/** + +// ============================================================================ +// Unified Query Key Store +// ============================================================================ + + * Unified query key store + * + * Use this for type-safe query key access across your application. + * + * @example + * ```ts + * // Invalidate all user queries + * queryClient.invalidateQueries({ queryKey: queryKeys.user.all }); + * + * // Invalidate user list queries + * queryClient.invalidateQueries({ queryKey: queryKeys.user.lists() }); + * + * // Invalidate specific user + * queryClient.invalidateQueries({ queryKey: queryKeys.user.detail(userId) }); + * ``` + */ +export const queryKeys = { + getAllRecord: getAllRecordKeys, + appPermission: appPermissionKeys, + orgPermission: orgPermissionKeys, + object: objectKeys, + appLevelRequirement: appLevelRequirementKeys, + database: databaseKeys, + schema: schemaKeys, + table: tableKeys, + checkConstraint: checkConstraintKeys, + field: fieldKeys, + foreignKeyConstraint: foreignKeyConstraintKeys, + fullTextSearch: fullTextSearchKeys, + index: indexKeys, + limitFunction: limitFunctionKeys, + policy: policyKeys, + primaryKeyConstraint: primaryKeyConstraintKeys, + tableGrant: tableGrantKeys, + trigger: triggerKeys, + uniqueConstraint: uniqueConstraintKeys, + view: viewKeys, + viewTable: viewTableKeys, + viewGrant: viewGrantKeys, + viewRule: viewRuleKeys, + tableModule: tableModuleKeys, + tableTemplateModule: tableTemplateModuleKeys, + schemaGrant: schemaGrantKeys, + apiSchema: apiSchemaKeys, + apiModule: apiModuleKeys, + domain: domainKeys, + siteMetadatum: siteMetadatumKeys, + siteModule: siteModuleKeys, + siteTheme: siteThemeKeys, + procedure: procedureKeys, + triggerFunction: triggerFunctionKeys, + api: apiKeys, + site: siteKeys, + app: appKeys, + connectedAccountsModule: connectedAccountsModuleKeys, + cryptoAddressesModule: cryptoAddressesModuleKeys, + cryptoAuthModule: cryptoAuthModuleKeys, + defaultIdsModule: defaultIdsModuleKeys, + denormalizedTableField: denormalizedTableFieldKeys, + emailsModule: emailsModuleKeys, + encryptedSecretsModule: encryptedSecretsModuleKeys, + fieldModule: fieldModuleKeys, + invitesModule: invitesModuleKeys, + levelsModule: levelsModuleKeys, + limitsModule: limitsModuleKeys, + membershipTypesModule: membershipTypesModuleKeys, + membershipsModule: membershipsModuleKeys, + permissionsModule: permissionsModuleKeys, + phoneNumbersModule: phoneNumbersModuleKeys, + profilesModule: profilesModuleKeys, + rlsModule: rlsModuleKeys, + secretsModule: secretsModuleKeys, + sessionsModule: sessionsModuleKeys, + userAuthModule: userAuthModuleKeys, + usersModule: usersModuleKeys, + uuidModule: uuidModuleKeys, + databaseProvisionModule: databaseProvisionModuleKeys, + appAdminGrant: appAdminGrantKeys, + appOwnerGrant: appOwnerGrantKeys, + appGrant: appGrantKeys, + orgMembership: orgMembershipKeys, + orgMember: orgMemberKeys, + orgAdminGrant: orgAdminGrantKeys, + orgOwnerGrant: orgOwnerGrantKeys, + orgGrant: orgGrantKeys, + appLimit: appLimitKeys, + orgLimit: orgLimitKeys, + appStep: appStepKeys, + appAchievement: appAchievementKeys, + invite: inviteKeys, + claimedInvite: claimedInviteKeys, + orgInvite: orgInviteKeys, + orgClaimedInvite: orgClaimedInviteKeys, + appPermissionDefault: appPermissionDefaultKeys, + ref: refKeys, + store: storeKeys, + roleType: roleTypeKeys, + orgPermissionDefault: orgPermissionDefaultKeys, + appLimitDefault: appLimitDefaultKeys, + orgLimitDefault: orgLimitDefaultKeys, + cryptoAddress: cryptoAddressKeys, + membershipType: membershipTypeKeys, + connectedAccount: connectedAccountKeys, + phoneNumber: phoneNumberKeys, + appMembershipDefault: appMembershipDefaultKeys, + nodeTypeRegistry: nodeTypeRegistryKeys, + commit: commitKeys, + orgMembershipDefault: orgMembershipDefaultKeys, + email: emailKeys, + auditLog: auditLogKeys, + appLevel: appLevelKeys, + sqlMigration: sqlMigrationKeys, + astMigration: astMigrationKeys, + appMembership: appMembershipKeys, + user: userKeys, + hierarchyModule: hierarchyModuleKeys, + custom: customQueryKeys, +} as const; +/** Type representing all available query key scopes */ +export type QueryKeyScope = keyof typeof queryKeys; diff --git a/sdk/constructive-react/src/public/hooks/selection.ts b/sdk/constructive-react/src/public/hooks/selection.ts new file mode 100644 index 000000000..2952aab64 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/selection.ts @@ -0,0 +1,60 @@ +/** + * Selection helpers for React Query hooks + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export interface SelectionConfig { + fields: TFields; +} + +export interface ListSelectionConfig extends SelectionConfig { + where?: TWhere; + orderBy?: TOrderBy[]; + first?: number; + last?: number; + after?: string; + before?: string; + offset?: number; +} + +function ensureSelectionFields( + selection: SelectionConfig | undefined +): asserts selection is SelectionConfig { + if (!selection || typeof selection !== 'object' || !('fields' in selection)) { + throw new Error( + 'Invalid hook params: `selection.fields` is required. Example: { selection: { fields: { id: true } } }' + ); + } +} + +export function buildSelectionArgs(selection: SelectionConfig): { + select: TFields; +} { + ensureSelectionFields(selection); + return { select: selection.fields }; +} + +export function buildListSelectionArgs( + selection: ListSelectionConfig +): { + select: TFields; + where?: TWhere; + orderBy?: TOrderBy[]; + first?: number; + last?: number; + after?: string; + before?: string; + offset?: number; +} { + ensureSelectionFields(selection); + return { + select: selection.fields, + where: selection.where, + orderBy: selection.orderBy, + first: selection.first, + last: selection.last, + after: selection.after, + before: selection.before, + offset: selection.offset, + }; +} diff --git a/sdk/constructive-react/src/public/hooks/skills/api.md b/sdk/constructive-react/src/public/hooks/skills/api.md new file mode 100644 index 000000000..90998c07c --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/api.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..adc541569 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/apiModule.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..d61de7ed1 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/apiSchema.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..e548e24dd --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/app.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..f791c42cf --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/appAchievement.md @@ -0,0 +1,34 @@ +# hooks-appAchievement + + + +React Query hooks for AppAchievement data operations + +## 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 new file mode 100644 index 000000000..6bfebeb38 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/appAdminGrant.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..be596bddb --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/appGrant.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..b40b3516f --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/appLevel.md @@ -0,0 +1,34 @@ +# hooks-appLevel + + + +React Query hooks for AppLevel data operations + +## 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 new file mode 100644 index 000000000..b57886891 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/appLevelRequirement.md @@ -0,0 +1,34 @@ +# hooks-appLevelRequirement + + + +React Query hooks for AppLevelRequirement data operations + +## 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 new file mode 100644 index 000000000..ea8cb8cc6 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/appLimit.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..9997fe7ae --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/appLimitDefault.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..ba73841d6 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/appMembership.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..7536d11fb --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/appMembershipDefault.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..3b6971d85 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/appOwnerGrant.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..1c7b49ffa --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/appPermission.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..d0ab1ab74 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/appPermissionDefault.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..567bab5a3 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/appPermissionsGetByMask.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..ec4bfe8b1 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/appPermissionsGetMask.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..9fbcc74d9 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/appPermissionsGetMaskByNames.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..73d5aa1d2 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/appPermissionsGetPaddedMask.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..d14d1b243 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/appStep.md @@ -0,0 +1,34 @@ +# hooks-appStep + + + +React Query hooks for AppStep data operations + +## 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 new file mode 100644 index 000000000..3a45d7c53 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/applyRls.md @@ -0,0 +1,20 @@ +# 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 new file mode 100644 index 000000000..91bf7e40b --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/astMigration.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..0ca36458e --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/auditLog.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..58fc3b185 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/bootstrapUser.md @@ -0,0 +1,20 @@ +# 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 new file mode 100644 index 000000000..c8942b6d7 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/checkConstraint.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..1e3a05a56 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/checkPassword.md @@ -0,0 +1,20 @@ +# 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 new file mode 100644 index 000000000..262dff555 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/claimedInvite.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..9e7270ced --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/commit.md @@ -0,0 +1,34 @@ +# hooks-commit + + + +React Query hooks for Commit data operations + +## 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 new file mode 100644 index 000000000..a3804e870 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/confirmDeleteAccount.md @@ -0,0 +1,20 @@ +# 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 new file mode 100644 index 000000000..b086ecbdf --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/connectedAccount.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..f0b27549e --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/connectedAccountsModule.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..4f5bf1557 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/createUserDatabase.md @@ -0,0 +1,36 @@ +# 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 new file mode 100644 index 000000000..c7f4682ce --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/cryptoAddress.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..5463bee09 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/cryptoAddressesModule.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..2da2b54cc --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/cryptoAuthModule.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..e972130f5 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/currentIpAddress.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..4467284e4 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/currentUser.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..2df182c94 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/currentUserAgent.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..076feac70 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/currentUserId.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..de7fabbbe --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/database.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..7ad445f5e --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/databaseProvisionModule.md @@ -0,0 +1,34 @@ +# hooks-databaseProvisionModule + + + +React Query hooks for DatabaseProvisionModule data operations + +## 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 new file mode 100644 index 000000000..a305f6b4e --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/defaultIdsModule.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..0a2ec280f --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/denormalizedTableField.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..4e7a784c0 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/domain.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..f89e18fa5 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/email.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..97b32ce51 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/emailsModule.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..3230872c5 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/encryptedSecretsModule.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..54ce19f07 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/extendTokenExpires.md @@ -0,0 +1,20 @@ +# 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 new file mode 100644 index 000000000..672e19527 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/field.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..367d9da0e --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/fieldModule.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..95fb8fb09 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/foreignKeyConstraint.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..fba9ffcb2 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/forgotPassword.md @@ -0,0 +1,20 @@ +# 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 new file mode 100644 index 000000000..af9fd90c4 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/freezeObjects.md @@ -0,0 +1,20 @@ +# 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 new file mode 100644 index 000000000..4966f5511 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/fullTextSearch.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..018c673b7 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/getAllObjectsFromRoot.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..9b7f82198 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/getAllRecord.md @@ -0,0 +1,31 @@ +# 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 new file mode 100644 index 000000000..c3b9f60f0 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/getObjectAtPath.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..dd7cdcd86 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/getPathObjectsFromRoot.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..6ef22671e --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/hierarchyModule.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..ec09c1408 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/index.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..abd88134d --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/initEmptyRepo.md @@ -0,0 +1,20 @@ +# 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 new file mode 100644 index 000000000..7ca72d1cc --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/insertNodeAtPath.md @@ -0,0 +1,20 @@ +# 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 new file mode 100644 index 000000000..3be140ad1 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/invite.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..4200c5300 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/invitesModule.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..2a4689db9 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/levelsModule.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..948c7bfcb --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/limitFunction.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..8f3c2b545 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/limitsModule.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..51dd3584b --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/membershipType.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..6fbac3048 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/membershipTypesModule.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..985a2747d --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/membershipsModule.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..36217d85c --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/nodeTypeRegistry.md @@ -0,0 +1,34 @@ +# hooks-nodeTypeRegistry + + + +React Query hooks for NodeTypeRegistry data operations + +## 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 new file mode 100644 index 000000000..869f55493 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/object.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..cfe0d893f --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/oneTimeToken.md @@ -0,0 +1,20 @@ +# 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 new file mode 100644 index 000000000..aac7029bb --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/orgAdminGrant.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..cb033587c --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/orgClaimedInvite.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..f70a2a0f2 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/orgGrant.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..d4eefbee2 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/orgInvite.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..95dfb47a3 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/orgLimit.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..e2e1703ab --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/orgLimitDefault.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..a95727212 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/orgMember.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..ded9a40c5 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/orgMembership.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..21bdb9eb7 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/orgMembershipDefault.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..b26688557 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/orgOwnerGrant.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..babce4b02 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/orgPermission.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..31e59c0dc --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/orgPermissionDefault.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..d21ac66dd --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/orgPermissionsGetByMask.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..cfa5b4302 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/orgPermissionsGetMask.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..7f0f4452d --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/orgPermissionsGetMaskByNames.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..9ff601b07 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/orgPermissionsGetPaddedMask.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..cef0e3246 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/permissionsModule.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..643a1e6f9 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/phoneNumber.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..aea5dbd98 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/phoneNumbersModule.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..278106a05 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/policy.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..41cb7c4f2 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/primaryKeyConstraint.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..08b22d9e5 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/procedure.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..8e506fc3b --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/profilesModule.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..f5ed6431e --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/provisionDatabaseWithUser.md @@ -0,0 +1,20 @@ +# 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 new file mode 100644 index 000000000..47cb13511 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/ref.md @@ -0,0 +1,34 @@ +# hooks-ref + + + +React Query hooks for Ref data operations + +## 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 new file mode 100644 index 000000000..55126cbd9 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/removeNodeAtPath.md @@ -0,0 +1,20 @@ +# 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 new file mode 100644 index 000000000..f4d93698a --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/resetPassword.md @@ -0,0 +1,20 @@ +# 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 new file mode 100644 index 000000000..da24b1094 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/revParse.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..192ca4cdc --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/rlsModule.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..b1716f353 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/roleType.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..d9b6f5a24 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/schema.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..bbb552a6f --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/schemaGrant.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..82b6c3885 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/secretsModule.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..f6b77609e --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/sendAccountDeletionEmail.md @@ -0,0 +1,20 @@ +# 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 new file mode 100644 index 000000000..0b2dd7d1f --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/sendVerificationEmail.md @@ -0,0 +1,20 @@ +# 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 new file mode 100644 index 000000000..187263444 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/sessionsModule.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..fe8ee1048 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/setAndCommit.md @@ -0,0 +1,20 @@ +# 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 new file mode 100644 index 000000000..1e407b642 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/setDataAtPath.md @@ -0,0 +1,20 @@ +# 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 new file mode 100644 index 000000000..c31c56727 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/setFieldOrder.md @@ -0,0 +1,20 @@ +# 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 new file mode 100644 index 000000000..d0c5dd0f7 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/setPassword.md @@ -0,0 +1,20 @@ +# 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 new file mode 100644 index 000000000..1767c4d4a --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/setPropsAndCommit.md @@ -0,0 +1,20 @@ +# 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 new file mode 100644 index 000000000..f55de032e --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/signIn.md @@ -0,0 +1,20 @@ +# 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 new file mode 100644 index 000000000..9326b4fca --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/signInOneTimeToken.md @@ -0,0 +1,20 @@ +# 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 new file mode 100644 index 000000000..1be81c9ef --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/signOut.md @@ -0,0 +1,20 @@ +# 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 new file mode 100644 index 000000000..ab7ff4422 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/signUp.md @@ -0,0 +1,20 @@ +# 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 new file mode 100644 index 000000000..07b8f891c --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/site.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..f4b3b74f2 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/siteMetadatum.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..520233f49 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/siteModule.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..0500e4cdd --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/siteTheme.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..debe2b7b6 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/sqlMigration.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..c5e1f6bda --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/stepsAchieved.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..6862ec2dd --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/stepsRequired.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..7ab006f5c --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/store.md @@ -0,0 +1,34 @@ +# hooks-store + + + +React Query hooks for Store data operations + +## 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 new file mode 100644 index 000000000..54388f821 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/submitInviteCode.md @@ -0,0 +1,20 @@ +# 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 new file mode 100644 index 000000000..c61b24f83 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/submitOrgInviteCode.md @@ -0,0 +1,20 @@ +# 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 new file mode 100644 index 000000000..708c47501 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/table.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..928aaaa71 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/tableGrant.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..1e3ded3a0 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/tableModule.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..affb60da5 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/tableTemplateModule.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..f9578ea2c --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/trigger.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..691122e95 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/triggerFunction.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..c93048587 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/uniqueConstraint.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..0b608afea --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/updateNodeAtPath.md @@ -0,0 +1,20 @@ +# 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 new file mode 100644 index 000000000..d9044e83c --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/user.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..856a31249 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/userAuthModule.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..c5ddcc724 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/usersModule.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..c26d42f65 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/uuidModule.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..67e42fb87 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/verifyEmail.md @@ -0,0 +1,20 @@ +# 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 new file mode 100644 index 000000000..a1e5074c6 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/verifyPassword.md @@ -0,0 +1,20 @@ +# 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 new file mode 100644 index 000000000..d2b9ad825 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/verifyTotp.md @@ -0,0 +1,20 @@ +# 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 new file mode 100644 index 000000000..a5170adf2 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/view.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..cdd0b78e0 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/viewGrant.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..1df6eb4b1 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/viewRule.md @@ -0,0 +1,34 @@ +# hooks-viewRule + + + +React Query hooks for ViewRule data operations + +## 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 new file mode 100644 index 000000000..d7ff5d68d --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/skills/viewTable.md @@ -0,0 +1,34 @@ +# hooks-viewTable + + + +React Query hooks for ViewTable data operations + +## 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/index.ts b/sdk/constructive-react/src/public/index.ts new file mode 100644 index 000000000..2b8402539 --- /dev/null +++ b/sdk/constructive-react/src/public/index.ts @@ -0,0 +1,7 @@ +/** + * GraphQL SDK - auto-generated, do not edit + * @generated by @constructive-io/graphql-codegen + */ +export * from './types'; +export * from './hooks'; +export * from './orm'; diff --git a/sdk/constructive-react/src/public/orm/README.md b/sdk/constructive-react/src/public/orm/README.md new file mode 100644 index 000000000..e7b901054 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/README.md @@ -0,0 +1,4601 @@ +# ORM Client + +

+ +

+ + + +## Setup + +```typescript +import { createClient } from './orm'; + +const db = createClient({ + endpoint: 'https://api.example.com/graphql', + headers: { Authorization: 'Bearer ' }, +}); +``` + +## Models + +| Model | Operations | +|-------|------------| +| `getAllRecord` | findMany, findOne, create, update, delete | +| `appPermission` | findMany, findOne, create, update, delete | +| `orgPermission` | findMany, findOne, create, update, delete | +| `object` | findMany, findOne, create, update, delete | +| `appLevelRequirement` | findMany, findOne, create, update, delete | +| `database` | findMany, findOne, create, update, delete | +| `schema` | findMany, findOne, create, update, delete | +| `table` | findMany, findOne, create, update, delete | +| `checkConstraint` | findMany, findOne, create, update, delete | +| `field` | findMany, findOne, create, update, delete | +| `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 | +| `trigger` | findMany, findOne, create, update, delete | +| `uniqueConstraint` | findMany, findOne, create, update, delete | +| `view` | findMany, findOne, create, update, delete | +| `viewTable` | findMany, findOne, create, update, delete | +| `viewGrant` | findMany, findOne, create, update, delete | +| `viewRule` | findMany, findOne, create, update, delete | +| `tableModule` | findMany, findOne, create, update, delete | +| `tableTemplateModule` | findMany, findOne, create, update, delete | +| `schemaGrant` | 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 | +| `app` | findMany, findOne, create, update, delete | +| `connectedAccountsModule` | findMany, findOne, create, update, delete | +| `cryptoAddressesModule` | findMany, findOne, create, update, delete | +| `cryptoAuthModule` | findMany, findOne, create, update, delete | +| `defaultIdsModule` | findMany, findOne, create, update, delete | +| `denormalizedTableField` | findMany, findOne, create, update, delete | +| `emailsModule` | findMany, findOne, create, update, delete | +| `encryptedSecretsModule` | findMany, findOne, create, update, delete | +| `fieldModule` | findMany, findOne, create, update, delete | +| `invitesModule` | findMany, findOne, create, update, delete | +| `levelsModule` | findMany, findOne, create, update, delete | +| `limitsModule` | findMany, findOne, create, update, delete | +| `membershipTypesModule` | findMany, findOne, create, update, delete | +| `membershipsModule` | findMany, findOne, create, update, delete | +| `permissionsModule` | findMany, findOne, create, update, delete | +| `phoneNumbersModule` | findMany, findOne, create, update, delete | +| `profilesModule` | findMany, findOne, create, update, delete | +| `rlsModule` | findMany, findOne, create, update, delete | +| `secretsModule` | findMany, findOne, create, update, delete | +| `sessionsModule` | findMany, findOne, create, update, delete | +| `userAuthModule` | findMany, findOne, create, update, delete | +| `usersModule` | findMany, findOne, create, update, delete | +| `uuidModule` | findMany, findOne, create, update, delete | +| `databaseProvisionModule` | findMany, findOne, create, update, delete | +| `appAdminGrant` | findMany, findOne, create, update, delete | +| `appOwnerGrant` | findMany, findOne, create, update, delete | +| `appGrant` | findMany, findOne, create, update, delete | +| `orgMembership` | findMany, findOne, create, update, delete | +| `orgMember` | findMany, findOne, create, update, delete | +| `orgAdminGrant` | findMany, findOne, create, update, delete | +| `orgOwnerGrant` | findMany, findOne, create, update, delete | +| `orgGrant` | findMany, findOne, create, update, delete | +| `appLimit` | findMany, findOne, create, update, delete | +| `orgLimit` | findMany, findOne, create, update, delete | +| `appStep` | findMany, findOne, create, update, delete | +| `appAchievement` | findMany, findOne, create, update, delete | +| `invite` | findMany, findOne, create, update, delete | +| `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 | +| `roleType` | findMany, findOne, create, update, delete | +| `orgPermissionDefault` | 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 | +| `nodeTypeRegistry` | 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 | +| `sqlMigration` | findMany, findOne, create, update, delete | +| `astMigration` | findMany, findOne, create, update, delete | +| `appMembership` | findMany, findOne, create, update, delete | +| `user` | findMany, findOne, create, update, delete | +| `hierarchyModule` | findMany, findOne, create, update, delete | + +## Table Operations + +### `db.getAllRecord` + +CRUD operations for GetAllRecord records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `path` | String | Yes | +| `data` | JSON | Yes | + +**Operations:** + +```typescript +// List all getAllRecord records +const items = await db.getAllRecord.findMany({ select: { path: true, data: true } }).execute(); + +// Get one by id +const item = await db.getAllRecord.findOne({ id: '', select: { path: true, data: true } }).execute(); + +// Create +const created = await db.getAllRecord.create({ data: { path: '', data: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.getAllRecord.update({ where: { id: '' }, data: { path: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.getAllRecord.delete({ where: { id: '' } }).execute(); +``` + +### `db.appPermission` + +CRUD operations for AppPermission records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `bitnum` | Int | Yes | +| `bitstr` | BitString | Yes | +| `description` | String | Yes | + +**Operations:** + +```typescript +// List all appPermission records +const items = await db.appPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); + +// Get one by id +const item = await db.appPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); + +// Create +const created = await db.appPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appPermission.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgPermission` + +CRUD operations for OrgPermission records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `bitnum` | Int | Yes | +| `bitstr` | BitString | Yes | +| `description` | String | Yes | + +**Operations:** + +```typescript +// List all orgPermission records +const items = await db.orgPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); + +// Get one by id +const item = await db.orgPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); + +// Create +const created = await db.orgPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgPermission.delete({ where: { id: '' } }).execute(); +``` + +### `db.object` + +CRUD operations for Object records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `hashUuid` | UUID | Yes | +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `kids` | UUID | Yes | +| `ktree` | String | Yes | +| `data` | JSON | Yes | +| `frzn` | Boolean | Yes | +| `createdAt` | Datetime | No | + +**Operations:** + +```typescript +// List all object records +const items = await db.object.findMany({ select: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); + +// Get one by id +const item = await db.object.findOne({ id: '', select: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); + +// Create +const created = await db.object.create({ data: { hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.object.update({ where: { id: '' }, data: { hashUuid: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.object.delete({ where: { id: '' } }).execute(); +``` + +### `db.appLevelRequirement` + +CRUD operations for AppLevelRequirement records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `level` | String | Yes | +| `description` | String | Yes | +| `requiredCount` | Int | Yes | +| `priority` | Int | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all appLevelRequirement records +const items = await db.appLevelRequirement.findMany({ select: { id: true, name: true, level: true, description: true, requiredCount: true, priority: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.appLevelRequirement.findOne({ id: '', select: { id: true, name: true, level: true, description: true, requiredCount: true, priority: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.appLevelRequirement.create({ data: { name: '', level: '', description: '', requiredCount: '', priority: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appLevelRequirement.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appLevelRequirement.delete({ where: { id: '' } }).execute(); +``` + +### `db.database` + +CRUD operations for Database records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `ownerId` | UUID | Yes | +| `schemaHash` | String | Yes | +| `name` | String | Yes | +| `label` | String | Yes | +| `hash` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all database records +const items = await db.database.findMany({ select: { id: true, ownerId: true, schemaHash: true, name: true, label: true, hash: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.database.findOne({ id: '', select: { id: true, ownerId: true, schemaHash: true, name: true, label: true, hash: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.database.create({ data: { ownerId: '', schemaHash: '', name: '', label: '', hash: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.database.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.database.delete({ where: { id: '' } }).execute(); +``` + +### `db.schema` + +CRUD operations for Schema records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `name` | String | Yes | +| `schemaName` | String | Yes | +| `label` | String | Yes | +| `description` | String | Yes | +| `smartTags` | JSON | Yes | +| `category` | ObjectCategory | Yes | +| `module` | String | Yes | +| `scope` | Int | Yes | +| `tags` | String | Yes | +| `isPublic` | Boolean | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all schema records +const items = await db.schema.findMany({ select: { 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 } }).execute(); + +// Get one by id +const item = await db.schema.findOne({ id: '', select: { 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 } }).execute(); + +// Create +const created = await db.schema.create({ data: { databaseId: '', name: '', schemaName: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', tags: '', isPublic: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.schema.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.schema.delete({ where: { id: '' } }).execute(); +``` + +### `db.table` + +CRUD operations for Table records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `name` | String | Yes | +| `label` | String | Yes | +| `description` | String | Yes | +| `smartTags` | JSON | Yes | +| `category` | ObjectCategory | Yes | +| `module` | String | Yes | +| `scope` | Int | Yes | +| `useRls` | Boolean | Yes | +| `timestamps` | Boolean | Yes | +| `peoplestamps` | Boolean | Yes | +| `pluralName` | String | Yes | +| `singularName` | String | Yes | +| `tags` | String | Yes | +| `inheritsId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all table records +const items = await db.table.findMany({ select: { 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 } }).execute(); + +// Get one by id +const item = await db.table.findOne({ id: '', select: { 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 } }).execute(); + +// Create +const created = await db.table.create({ data: { databaseId: '', schemaId: '', name: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', useRls: '', timestamps: '', peoplestamps: '', pluralName: '', singularName: '', tags: '', inheritsId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.table.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.table.delete({ where: { id: '' } }).execute(); +``` + +### `db.checkConstraint` + +CRUD operations for CheckConstraint records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `name` | String | Yes | +| `type` | String | Yes | +| `fieldIds` | UUID | Yes | +| `expr` | JSON | 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 checkConstraint records +const items = await db.checkConstraint.findMany({ select: { 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 } }).execute(); + +// Get one by id +const item = await db.checkConstraint.findOne({ id: '', select: { 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 } }).execute(); + +// Create +const created = await db.checkConstraint.create({ data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', expr: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.checkConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.checkConstraint.delete({ where: { id: '' } }).execute(); +``` + +### `db.field` + +CRUD operations for Field records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `name` | String | Yes | +| `label` | String | Yes | +| `description` | String | Yes | +| `smartTags` | JSON | Yes | +| `isRequired` | Boolean | Yes | +| `defaultValue` | String | Yes | +| `defaultValueAst` | JSON | Yes | +| `isHidden` | Boolean | Yes | +| `type` | String | Yes | +| `fieldOrder` | Int | Yes | +| `regexp` | String | Yes | +| `chk` | JSON | Yes | +| `chkExpr` | JSON | Yes | +| `min` | Float | Yes | +| `max` | Float | Yes | +| `tags` | String | Yes | +| `category` | ObjectCategory | Yes | +| `module` | String | Yes | +| `scope` | Int | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all field records +const items = await db.field.findMany({ select: { 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 } }).execute(); + +// Get one by id +const item = await db.field.findOne({ id: '', select: { 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 } }).execute(); + +// Create +const created = await 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(); + +// Update +const updated = await db.field.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.field.delete({ where: { id: '' } }).execute(); +``` + +### `db.foreignKeyConstraint` + +CRUD operations for ForeignKeyConstraint records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `name` | String | Yes | +| `description` | String | Yes | +| `smartTags` | JSON | Yes | +| `type` | String | Yes | +| `fieldIds` | UUID | Yes | +| `refTableId` | UUID | Yes | +| `refFieldIds` | UUID | Yes | +| `deleteAction` | String | Yes | +| `updateAction` | String | Yes | +| `category` | ObjectCategory | Yes | +| `module` | String | Yes | +| `scope` | Int | Yes | +| `tags` | String | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all foreignKeyConstraint records +const items = await db.foreignKeyConstraint.findMany({ select: { 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 } }).execute(); + +// Get one by id +const item = await db.foreignKeyConstraint.findOne({ id: '', select: { 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 } }).execute(); + +// Create +const created = await db.foreignKeyConstraint.create({ data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', refTableId: '', refFieldIds: '', deleteAction: '', updateAction: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.foreignKeyConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.foreignKeyConstraint.delete({ where: { id: '' } }).execute(); +``` + +### `db.fullTextSearch` + +CRUD operations for FullTextSearch records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `fieldId` | UUID | Yes | +| `fieldIds` | UUID | Yes | +| `weights` | String | Yes | +| `langs` | String | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all fullTextSearch records +const items = await db.fullTextSearch.findMany({ select: { id: true, databaseId: true, tableId: true, fieldId: true, fieldIds: true, weights: true, langs: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.fullTextSearch.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, fieldId: true, fieldIds: true, weights: true, langs: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.fullTextSearch.create({ data: { databaseId: '', tableId: '', fieldId: '', fieldIds: '', weights: '', langs: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.fullTextSearch.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.fullTextSearch.delete({ where: { id: '' } }).execute(); +``` + +### `db.index` + +CRUD operations for Index records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `name` | String | Yes | +| `fieldIds` | UUID | Yes | +| `includeFieldIds` | UUID | Yes | +| `accessMethod` | String | Yes | +| `indexParams` | JSON | Yes | +| `whereClause` | JSON | Yes | +| `isUnique` | Boolean | 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 index records +const items = await db.index.findMany({ select: { 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 } }).execute(); + +// Get one by id +const item = await db.index.findOne({ id: '', select: { 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 } }).execute(); + +// Create +const created = await db.index.create({ data: { databaseId: '', tableId: '', name: '', fieldIds: '', includeFieldIds: '', accessMethod: '', indexParams: '', whereClause: '', isUnique: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.index.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +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. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `name` | String | Yes | +| `roleName` | String | Yes | +| `privilege` | String | Yes | +| `permissive` | Boolean | Yes | +| `disabled` | Boolean | Yes | +| `policyType` | String | Yes | +| `data` | JSON | 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 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(); + +// 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(); + +// 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(); + +// Update +const updated = await db.policy.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.policy.delete({ where: { id: '' } }).execute(); +``` + +### `db.primaryKeyConstraint` + +CRUD operations for PrimaryKeyConstraint records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `name` | String | Yes | +| `type` | String | Yes | +| `fieldIds` | UUID | 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 primaryKeyConstraint records +const items = await db.primaryKeyConstraint.findMany({ select: { 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 } }).execute(); + +// Get one by id +const item = await db.primaryKeyConstraint.findOne({ id: '', select: { 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 } }).execute(); + +// Create +const created = await db.primaryKeyConstraint.create({ data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.primaryKeyConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.primaryKeyConstraint.delete({ where: { id: '' } }).execute(); +``` + +### `db.tableGrant` + +CRUD operations for TableGrant records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `privilege` | String | Yes | +| `roleName` | String | Yes | +| `fieldIds` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```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(); + +// 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(); + +// Create +const created = await db.tableGrant.create({ data: { databaseId: '', tableId: '', privilege: '', roleName: '', fieldIds: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.tableGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.tableGrant.delete({ where: { id: '' } }).execute(); +``` + +### `db.trigger` + +CRUD operations for Trigger records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `name` | String | Yes | +| `event` | String | Yes | +| `functionName` | 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 trigger records +const items = await db.trigger.findMany({ select: { 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 } }).execute(); + +// Get one by id +const item = await db.trigger.findOne({ id: '', select: { 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 } }).execute(); + +// Create +const created = await db.trigger.create({ data: { databaseId: '', tableId: '', name: '', event: '', functionName: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.trigger.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.trigger.delete({ where: { id: '' } }).execute(); +``` + +### `db.uniqueConstraint` + +CRUD operations for UniqueConstraint records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `name` | String | Yes | +| `description` | String | Yes | +| `smartTags` | JSON | Yes | +| `type` | String | Yes | +| `fieldIds` | UUID | Yes | +| `category` | ObjectCategory | Yes | +| `module` | String | Yes | +| `scope` | Int | Yes | +| `tags` | String | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all uniqueConstraint records +const items = await db.uniqueConstraint.findMany({ select: { 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 } }).execute(); + +// Get one by id +const item = await db.uniqueConstraint.findOne({ id: '', select: { 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 } }).execute(); + +// Create +const created = await db.uniqueConstraint.create({ data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.uniqueConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.uniqueConstraint.delete({ where: { id: '' } }).execute(); +``` + +### `db.view` + +CRUD operations for View records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `name` | String | Yes | +| `tableId` | UUID | Yes | +| `viewType` | String | Yes | +| `data` | JSON | Yes | +| `filterType` | String | Yes | +| `filterData` | JSON | Yes | +| `securityInvoker` | Boolean | Yes | +| `isReadOnly` | Boolean | Yes | +| `smartTags` | JSON | Yes | +| `category` | ObjectCategory | Yes | +| `module` | String | Yes | +| `scope` | Int | Yes | +| `tags` | String | Yes | + +**Operations:** + +```typescript +// List all view records +const items = await db.view.findMany({ select: { 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 } }).execute(); + +// Get one by id +const item = await db.view.findOne({ id: '', select: { 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 } }).execute(); + +// Create +const created = await db.view.create({ data: { databaseId: '', schemaId: '', name: '', tableId: '', viewType: '', data: '', filterType: '', filterData: '', securityInvoker: '', isReadOnly: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.view.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.view.delete({ where: { id: '' } }).execute(); +``` + +### `db.viewTable` + +CRUD operations for ViewTable records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `viewId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `joinOrder` | Int | Yes | + +**Operations:** + +```typescript +// List all viewTable records +const items = await db.viewTable.findMany({ select: { id: true, viewId: true, tableId: true, joinOrder: true } }).execute(); + +// Get one by id +const item = await db.viewTable.findOne({ id: '', select: { id: true, viewId: true, tableId: true, joinOrder: true } }).execute(); + +// Create +const created = await db.viewTable.create({ data: { viewId: '', tableId: '', joinOrder: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.viewTable.update({ where: { id: '' }, data: { viewId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.viewTable.delete({ where: { id: '' } }).execute(); +``` + +### `db.viewGrant` + +CRUD operations for ViewGrant records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `viewId` | UUID | Yes | +| `roleName` | String | Yes | +| `privilege` | String | Yes | +| `withGrantOption` | 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(); + +// 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(); + +// Create +const created = await db.viewGrant.create({ data: { databaseId: '', viewId: '', roleName: '', privilege: '', withGrantOption: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.viewGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.viewGrant.delete({ where: { id: '' } }).execute(); +``` + +### `db.viewRule` + +CRUD operations for ViewRule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `viewId` | UUID | Yes | +| `name` | String | Yes | +| `event` | String | Yes | +| `action` | String | Yes | + +**Operations:** + +```typescript +// List all viewRule records +const items = await db.viewRule.findMany({ select: { id: true, databaseId: true, viewId: true, name: true, event: true, action: true } }).execute(); + +// Get one by id +const item = await db.viewRule.findOne({ id: '', select: { id: true, databaseId: true, viewId: true, name: true, event: true, action: true } }).execute(); + +// Create +const created = await db.viewRule.create({ data: { databaseId: '', viewId: '', name: '', event: '', action: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.viewRule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.viewRule.delete({ where: { id: '' } }).execute(); +``` + +### `db.tableModule` + +CRUD operations for TableModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `nodeType` | String | Yes | +| `data` | JSON | Yes | +| `fields` | UUID | Yes | + +**Operations:** + +```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(); + +// 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(); + +// Create +const created = await db.tableModule.create({ data: { databaseId: '', privateSchemaId: '', tableId: '', nodeType: '', data: '', fields: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.tableModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.tableModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.tableTemplateModule` + +CRUD operations for TableTemplateModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `ownerTableId` | UUID | Yes | +| `tableName` | String | Yes | +| `nodeType` | String | Yes | +| `data` | JSON | Yes | + +**Operations:** + +```typescript +// List all tableTemplateModule records +const items = await db.tableTemplateModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, nodeType: true, data: true } }).execute(); + +// Get one by id +const item = await db.tableTemplateModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, nodeType: true, data: true } }).execute(); + +// Create +const created = await db.tableTemplateModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', nodeType: '', data: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.tableTemplateModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.tableTemplateModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.schemaGrant` + +CRUD operations for SchemaGrant records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `granteeName` | String | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all schemaGrant records +const items = await db.schemaGrant.findMany({ select: { id: true, databaseId: true, schemaId: true, granteeName: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.schemaGrant.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, granteeName: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.schemaGrant.create({ data: { databaseId: '', schemaId: '', granteeName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.schemaGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.schemaGrant.delete({ where: { id: '' } }).execute(); +``` + +### `db.apiSchema` + +CRUD operations for ApiSchema records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `apiId` | UUID | Yes | + +**Operations:** + +```typescript +// List all apiSchema records +const items = await db.apiSchema.findMany({ select: { id: true, databaseId: true, schemaId: true, apiId: true } }).execute(); + +// Get one by id +const item = await db.apiSchema.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, apiId: true } }).execute(); + +// Create +const created = await db.apiSchema.create({ data: { databaseId: '', schemaId: '', apiId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.apiSchema.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.apiSchema.delete({ where: { id: '' } }).execute(); +``` + +### `db.apiModule` + +CRUD operations for ApiModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `apiId` | UUID | Yes | +| `name` | String | Yes | +| `data` | JSON | Yes | + +**Operations:** + +```typescript +// List all apiModule records +const items = await db.apiModule.findMany({ select: { id: true, databaseId: true, apiId: true, name: true, data: true } }).execute(); + +// Get one by id +const item = await db.apiModule.findOne({ id: '', select: { id: true, databaseId: true, apiId: true, name: true, data: true } }).execute(); + +// Create +const created = await db.apiModule.create({ data: { databaseId: '', apiId: '', name: '', data: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.apiModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.apiModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.domain` + +CRUD operations for Domain records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `apiId` | UUID | Yes | +| `siteId` | UUID | Yes | +| `subdomain` | ConstructiveInternalTypeHostname | Yes | +| `domain` | ConstructiveInternalTypeHostname | Yes | + +**Operations:** + +```typescript +// List all domain records +const items = await db.domain.findMany({ select: { id: true, databaseId: true, apiId: true, siteId: true, subdomain: true, domain: true } }).execute(); + +// Get one by id +const item = await db.domain.findOne({ id: '', select: { id: true, databaseId: true, apiId: true, siteId: true, subdomain: true, domain: true } }).execute(); + +// Create +const created = await db.domain.create({ data: { databaseId: '', apiId: '', siteId: '', subdomain: '', domain: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.domain.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.domain.delete({ where: { id: '' } }).execute(); +``` + +### `db.siteMetadatum` + +CRUD operations for SiteMetadatum records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `siteId` | UUID | Yes | +| `title` | String | Yes | +| `description` | String | Yes | +| `ogImage` | ConstructiveInternalTypeImage | Yes | + +**Operations:** + +```typescript +// List all siteMetadatum records +const items = await db.siteMetadatum.findMany({ select: { id: true, databaseId: true, siteId: true, title: true, description: true, ogImage: true } }).execute(); + +// Get one by id +const item = await db.siteMetadatum.findOne({ id: '', select: { id: true, databaseId: true, siteId: true, title: true, description: true, ogImage: true } }).execute(); + +// Create +const created = await db.siteMetadatum.create({ data: { databaseId: '', siteId: '', title: '', description: '', ogImage: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.siteMetadatum.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.siteMetadatum.delete({ where: { id: '' } }).execute(); +``` + +### `db.siteModule` + +CRUD operations for SiteModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `siteId` | UUID | Yes | +| `name` | String | Yes | +| `data` | JSON | Yes | + +**Operations:** + +```typescript +// List all siteModule records +const items = await db.siteModule.findMany({ select: { id: true, databaseId: true, siteId: true, name: true, data: true } }).execute(); + +// Get one by id +const item = await db.siteModule.findOne({ id: '', select: { id: true, databaseId: true, siteId: true, name: true, data: true } }).execute(); + +// Create +const created = await db.siteModule.create({ data: { databaseId: '', siteId: '', name: '', data: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.siteModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.siteModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.siteTheme` + +CRUD operations for SiteTheme records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `siteId` | UUID | Yes | +| `theme` | JSON | Yes | + +**Operations:** + +```typescript +// List all siteTheme records +const items = await db.siteTheme.findMany({ select: { id: true, databaseId: true, siteId: true, theme: true } }).execute(); + +// Get one by id +const item = await db.siteTheme.findOne({ id: '', select: { id: true, databaseId: true, siteId: true, theme: true } }).execute(); + +// Create +const created = await db.siteTheme.create({ data: { databaseId: '', siteId: '', theme: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.siteTheme.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +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. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `name` | String | Yes | +| `code` | String | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all triggerFunction records +const items = await db.triggerFunction.findMany({ select: { id: true, databaseId: true, name: true, code: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.triggerFunction.findOne({ id: '', select: { id: true, databaseId: true, name: true, code: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.triggerFunction.create({ data: { databaseId: '', name: '', code: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.triggerFunction.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.triggerFunction.delete({ where: { id: '' } }).execute(); +``` + +### `db.api` + +CRUD operations for Api records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `name` | String | Yes | +| `dbname` | String | Yes | +| `roleName` | String | Yes | +| `anonRole` | String | Yes | +| `isPublic` | Boolean | Yes | + +**Operations:** + +```typescript +// List all api records +const items = await db.api.findMany({ select: { id: true, databaseId: true, name: true, dbname: true, roleName: true, anonRole: true, isPublic: true } }).execute(); + +// Get one by id +const item = await db.api.findOne({ id: '', select: { id: true, databaseId: true, name: true, dbname: true, roleName: true, anonRole: true, isPublic: true } }).execute(); + +// Create +const created = await db.api.create({ data: { databaseId: '', name: '', dbname: '', roleName: '', anonRole: '', isPublic: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.api.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.api.delete({ where: { id: '' } }).execute(); +``` + +### `db.site` + +CRUD operations for Site records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `title` | String | Yes | +| `description` | String | Yes | +| `ogImage` | ConstructiveInternalTypeImage | Yes | +| `favicon` | ConstructiveInternalTypeAttachment | Yes | +| `appleTouchIcon` | ConstructiveInternalTypeImage | Yes | +| `logo` | ConstructiveInternalTypeImage | Yes | +| `dbname` | String | Yes | + +**Operations:** + +```typescript +// List all site records +const items = await db.site.findMany({ select: { id: true, databaseId: true, title: true, description: true, ogImage: true, favicon: true, appleTouchIcon: true, logo: true, dbname: true } }).execute(); + +// Get one by id +const item = await db.site.findOne({ id: '', select: { id: true, databaseId: true, title: true, description: true, ogImage: true, favicon: true, appleTouchIcon: true, logo: true, dbname: true } }).execute(); + +// Create +const created = await db.site.create({ data: { databaseId: '', title: '', description: '', ogImage: '', favicon: '', appleTouchIcon: '', logo: '', dbname: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.site.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.site.delete({ where: { id: '' } }).execute(); +``` + +### `db.app` + +CRUD operations for App records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `siteId` | UUID | Yes | +| `name` | String | Yes | +| `appImage` | ConstructiveInternalTypeImage | Yes | +| `appStoreLink` | ConstructiveInternalTypeUrl | Yes | +| `appStoreId` | String | Yes | +| `appIdPrefix` | String | Yes | +| `playStoreLink` | ConstructiveInternalTypeUrl | Yes | + +**Operations:** + +```typescript +// List all app records +const items = await db.app.findMany({ select: { id: true, databaseId: true, siteId: true, name: true, appImage: true, appStoreLink: true, appStoreId: true, appIdPrefix: true, playStoreLink: true } }).execute(); + +// Get one by id +const item = await db.app.findOne({ id: '', select: { id: true, databaseId: true, siteId: true, name: true, appImage: true, appStoreLink: true, appStoreId: true, appIdPrefix: true, playStoreLink: true } }).execute(); + +// Create +const created = await db.app.create({ data: { databaseId: '', siteId: '', name: '', appImage: '', appStoreLink: '', appStoreId: '', appIdPrefix: '', playStoreLink: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.app.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.app.delete({ where: { id: '' } }).execute(); +``` + +### `db.connectedAccountsModule` + +CRUD operations for ConnectedAccountsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `ownerTableId` | UUID | Yes | +| `tableName` | String | Yes | + +**Operations:** + +```typescript +// List all connectedAccountsModule records +const items = await db.connectedAccountsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }).execute(); + +// Get one by id +const item = await db.connectedAccountsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }).execute(); + +// Create +const created = await db.connectedAccountsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.connectedAccountsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.connectedAccountsModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.cryptoAddressesModule` + +CRUD operations for CryptoAddressesModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `ownerTableId` | UUID | Yes | +| `tableName` | String | Yes | +| `cryptoNetwork` | String | Yes | + +**Operations:** + +```typescript +// List all cryptoAddressesModule records +const items = await db.cryptoAddressesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, cryptoNetwork: true } }).execute(); + +// Get one by id +const item = await db.cryptoAddressesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, cryptoNetwork: true } }).execute(); + +// Create +const created = await db.cryptoAddressesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', cryptoNetwork: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.cryptoAddressesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.cryptoAddressesModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.cryptoAuthModule` + +CRUD operations for CryptoAuthModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `usersTableId` | UUID | Yes | +| `secretsTableId` | UUID | Yes | +| `sessionsTableId` | UUID | Yes | +| `sessionCredentialsTableId` | UUID | Yes | +| `addressesTableId` | UUID | Yes | +| `userField` | String | Yes | +| `cryptoNetwork` | String | Yes | +| `signInRequestChallenge` | String | Yes | +| `signInRecordFailure` | String | Yes | +| `signUpWithKey` | String | Yes | +| `signInWithChallenge` | String | Yes | + +**Operations:** + +```typescript +// List all cryptoAuthModule records +const items = await db.cryptoAuthModule.findMany({ select: { 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 } }).execute(); + +// Get one by id +const item = await db.cryptoAuthModule.findOne({ id: '', select: { 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 } }).execute(); + +// Create +const created = await db.cryptoAuthModule.create({ data: { databaseId: '', schemaId: '', usersTableId: '', secretsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', addressesTableId: '', userField: '', cryptoNetwork: '', signInRequestChallenge: '', signInRecordFailure: '', signUpWithKey: '', signInWithChallenge: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.cryptoAuthModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.cryptoAuthModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.defaultIdsModule` + +CRUD operations for DefaultIdsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | + +**Operations:** + +```typescript +// List all defaultIdsModule records +const items = await db.defaultIdsModule.findMany({ select: { id: true, databaseId: true } }).execute(); + +// Get one by id +const item = await db.defaultIdsModule.findOne({ id: '', select: { id: true, databaseId: true } }).execute(); + +// Create +const created = await db.defaultIdsModule.create({ data: { databaseId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.defaultIdsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.defaultIdsModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.denormalizedTableField` + +CRUD operations for DenormalizedTableField records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `fieldId` | UUID | Yes | +| `setIds` | UUID | Yes | +| `refTableId` | UUID | Yes | +| `refFieldId` | UUID | Yes | +| `refIds` | UUID | Yes | +| `useUpdates` | Boolean | Yes | +| `updateDefaults` | Boolean | Yes | +| `funcName` | String | Yes | +| `funcOrder` | Int | Yes | + +**Operations:** + +```typescript +// List all denormalizedTableField records +const items = await db.denormalizedTableField.findMany({ select: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true } }).execute(); + +// Get one by id +const item = await db.denormalizedTableField.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true } }).execute(); + +// Create +const created = await db.denormalizedTableField.create({ data: { databaseId: '', tableId: '', fieldId: '', setIds: '', refTableId: '', refFieldId: '', refIds: '', useUpdates: '', updateDefaults: '', funcName: '', funcOrder: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.denormalizedTableField.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.denormalizedTableField.delete({ where: { id: '' } }).execute(); +``` + +### `db.emailsModule` + +CRUD operations for EmailsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `ownerTableId` | UUID | Yes | +| `tableName` | String | Yes | + +**Operations:** + +```typescript +// List all emailsModule records +const items = await db.emailsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }).execute(); + +// Get one by id +const item = await db.emailsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }).execute(); + +// Create +const created = await db.emailsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.emailsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.emailsModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.encryptedSecretsModule` + +CRUD operations for EncryptedSecretsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `tableName` | String | Yes | + +**Operations:** + +```typescript +// List all encryptedSecretsModule records +const items = await db.encryptedSecretsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); + +// Get one by id +const item = await db.encryptedSecretsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); + +// Create +const created = await db.encryptedSecretsModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.encryptedSecretsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.encryptedSecretsModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.fieldModule` + +CRUD operations for FieldModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `fieldId` | UUID | Yes | +| `nodeType` | String | Yes | +| `data` | JSON | Yes | +| `triggers` | String | Yes | +| `functions` | String | Yes | + +**Operations:** + +```typescript +// List all fieldModule records +const items = await db.fieldModule.findMany({ select: { id: true, databaseId: true, privateSchemaId: true, tableId: true, fieldId: true, nodeType: true, data: true, triggers: true, functions: true } }).execute(); + +// Get one by id +const item = await db.fieldModule.findOne({ id: '', select: { id: true, databaseId: true, privateSchemaId: true, tableId: true, fieldId: true, nodeType: true, data: true, triggers: true, functions: true } }).execute(); + +// Create +const created = await db.fieldModule.create({ data: { databaseId: '', privateSchemaId: '', tableId: '', fieldId: '', nodeType: '', data: '', triggers: '', functions: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.fieldModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.fieldModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.invitesModule` + +CRUD operations for InvitesModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `emailsTableId` | UUID | Yes | +| `usersTableId` | UUID | Yes | +| `invitesTableId` | UUID | Yes | +| `claimedInvitesTableId` | UUID | Yes | +| `invitesTableName` | String | Yes | +| `claimedInvitesTableName` | String | Yes | +| `submitInviteCodeFunction` | String | Yes | +| `prefix` | String | Yes | +| `membershipType` | Int | Yes | +| `entityTableId` | UUID | Yes | + +**Operations:** + +```typescript +// List all invitesModule records +const items = await db.invitesModule.findMany({ select: { 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 } }).execute(); + +// Get one by id +const item = await db.invitesModule.findOne({ id: '', select: { 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 } }).execute(); + +// Create +const created = await db.invitesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', emailsTableId: '', usersTableId: '', invitesTableId: '', claimedInvitesTableId: '', invitesTableName: '', claimedInvitesTableName: '', submitInviteCodeFunction: '', prefix: '', membershipType: '', entityTableId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.invitesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.invitesModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.levelsModule` + +CRUD operations for LevelsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `stepsTableId` | UUID | Yes | +| `stepsTableName` | String | Yes | +| `achievementsTableId` | UUID | Yes | +| `achievementsTableName` | String | Yes | +| `levelsTableId` | UUID | Yes | +| `levelsTableName` | String | Yes | +| `levelRequirementsTableId` | UUID | Yes | +| `levelRequirementsTableName` | String | Yes | +| `completedStep` | String | Yes | +| `incompletedStep` | String | Yes | +| `tgAchievement` | String | Yes | +| `tgAchievementToggle` | String | Yes | +| `tgAchievementToggleBoolean` | String | Yes | +| `tgAchievementBoolean` | String | Yes | +| `upsertAchievement` | String | Yes | +| `tgUpdateAchievements` | String | Yes | +| `stepsRequired` | String | Yes | +| `levelAchieved` | String | Yes | +| `prefix` | String | Yes | +| `membershipType` | Int | Yes | +| `entityTableId` | UUID | Yes | +| `actorTableId` | UUID | Yes | + +**Operations:** + +```typescript +// List all levelsModule records +const items = await db.levelsModule.findMany({ select: { 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 } }).execute(); + +// Get one by id +const item = await db.levelsModule.findOne({ id: '', select: { 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 } }).execute(); + +// Create +const created = await 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(); + +// Update +const updated = await db.levelsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.levelsModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.limitsModule` + +CRUD operations for LimitsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `tableName` | String | Yes | +| `defaultTableId` | UUID | Yes | +| `defaultTableName` | String | Yes | +| `limitIncrementFunction` | String | Yes | +| `limitDecrementFunction` | String | Yes | +| `limitIncrementTrigger` | String | Yes | +| `limitDecrementTrigger` | String | Yes | +| `limitUpdateTrigger` | String | Yes | +| `limitCheckFunction` | String | Yes | +| `prefix` | String | Yes | +| `membershipType` | Int | Yes | +| `entityTableId` | UUID | Yes | +| `actorTableId` | UUID | Yes | + +**Operations:** + +```typescript +// List all limitsModule records +const items = await db.limitsModule.findMany({ select: { 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 } }).execute(); + +// Get one by id +const item = await db.limitsModule.findOne({ id: '', select: { 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 } }).execute(); + +// Create +const created = await 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(); + +// Update +const updated = await db.limitsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.limitsModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.membershipTypesModule` + +CRUD operations for MembershipTypesModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `tableName` | String | Yes | + +**Operations:** + +```typescript +// List all membershipTypesModule records +const items = await db.membershipTypesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); + +// Get one by id +const item = await db.membershipTypesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); + +// Create +const created = await db.membershipTypesModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.membershipTypesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.membershipTypesModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.membershipsModule` + +CRUD operations for MembershipsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `membershipsTableId` | UUID | Yes | +| `membershipsTableName` | String | Yes | +| `membersTableId` | UUID | Yes | +| `membersTableName` | String | Yes | +| `membershipDefaultsTableId` | UUID | Yes | +| `membershipDefaultsTableName` | String | Yes | +| `grantsTableId` | UUID | Yes | +| `grantsTableName` | String | Yes | +| `actorTableId` | UUID | Yes | +| `limitsTableId` | UUID | Yes | +| `defaultLimitsTableId` | UUID | Yes | +| `permissionsTableId` | UUID | Yes | +| `defaultPermissionsTableId` | UUID | Yes | +| `sprtTableId` | UUID | Yes | +| `adminGrantsTableId` | UUID | Yes | +| `adminGrantsTableName` | String | Yes | +| `ownerGrantsTableId` | UUID | Yes | +| `ownerGrantsTableName` | String | Yes | +| `membershipType` | Int | Yes | +| `entityTableId` | UUID | Yes | +| `entityTableOwnerId` | UUID | Yes | +| `prefix` | String | Yes | +| `actorMaskCheck` | String | Yes | +| `actorPermCheck` | String | Yes | +| `entityIdsByMask` | String | Yes | +| `entityIdsByPerm` | String | Yes | +| `entityIdsFunction` | String | Yes | + +**Operations:** + +```typescript +// List all membershipsModule records +const items = await db.membershipsModule.findMany({ select: { 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 } }).execute(); + +// Get one by id +const item = await db.membershipsModule.findOne({ id: '', select: { 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 } }).execute(); + +// Create +const created = await 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(); + +// Update +const updated = await db.membershipsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.membershipsModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.permissionsModule` + +CRUD operations for PermissionsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `tableName` | String | Yes | +| `defaultTableId` | UUID | Yes | +| `defaultTableName` | String | Yes | +| `bitlen` | Int | Yes | +| `membershipType` | Int | Yes | +| `entityTableId` | UUID | Yes | +| `actorTableId` | UUID | Yes | +| `prefix` | String | Yes | +| `getPaddedMask` | String | Yes | +| `getMask` | String | Yes | +| `getByMask` | String | Yes | +| `getMaskByName` | String | Yes | + +**Operations:** + +```typescript +// List all permissionsModule records +const items = await db.permissionsModule.findMany({ select: { 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 } }).execute(); + +// Get one by id +const item = await db.permissionsModule.findOne({ id: '', select: { 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 } }).execute(); + +// Create +const created = await db.permissionsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', bitlen: '', membershipType: '', entityTableId: '', actorTableId: '', prefix: '', getPaddedMask: '', getMask: '', getByMask: '', getMaskByName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.permissionsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.permissionsModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.phoneNumbersModule` + +CRUD operations for PhoneNumbersModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `ownerTableId` | UUID | Yes | +| `tableName` | String | Yes | + +**Operations:** + +```typescript +// List all phoneNumbersModule records +const items = await db.phoneNumbersModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }).execute(); + +// Get one by id +const item = await db.phoneNumbersModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }).execute(); + +// Create +const created = await db.phoneNumbersModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.phoneNumbersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.phoneNumbersModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.profilesModule` + +CRUD operations for ProfilesModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `tableName` | String | Yes | +| `profilePermissionsTableId` | UUID | Yes | +| `profilePermissionsTableName` | String | Yes | +| `profileGrantsTableId` | UUID | Yes | +| `profileGrantsTableName` | String | Yes | +| `profileDefinitionGrantsTableId` | UUID | Yes | +| `profileDefinitionGrantsTableName` | String | Yes | +| `bitlen` | Int | Yes | +| `membershipType` | Int | Yes | +| `entityTableId` | UUID | Yes | +| `actorTableId` | UUID | Yes | +| `permissionsTableId` | UUID | Yes | +| `membershipsTableId` | UUID | Yes | +| `prefix` | String | Yes | + +**Operations:** + +```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(); + +// 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(); + +// 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(); + +// Update +const updated = await db.profilesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.profilesModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.rlsModule` + +CRUD operations for RlsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `apiId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `sessionCredentialsTableId` | UUID | Yes | +| `sessionsTableId` | UUID | Yes | +| `usersTableId` | UUID | Yes | +| `authenticate` | String | Yes | +| `authenticateStrict` | String | Yes | +| `currentRole` | String | Yes | +| `currentRoleId` | String | Yes | + +**Operations:** + +```typescript +// List all rlsModule records +const items = await db.rlsModule.findMany({ select: { id: true, databaseId: true, apiId: true, schemaId: true, privateSchemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true, authenticate: true, authenticateStrict: true, currentRole: true, currentRoleId: true } }).execute(); + +// Get one by id +const item = await db.rlsModule.findOne({ id: '', select: { id: true, databaseId: true, apiId: true, schemaId: true, privateSchemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true, authenticate: true, authenticateStrict: true, currentRole: true, currentRoleId: true } }).execute(); + +// Create +const created = await db.rlsModule.create({ data: { databaseId: '', apiId: '', schemaId: '', privateSchemaId: '', sessionCredentialsTableId: '', sessionsTableId: '', usersTableId: '', authenticate: '', authenticateStrict: '', currentRole: '', currentRoleId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.rlsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.rlsModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.secretsModule` + +CRUD operations for SecretsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `tableName` | String | Yes | + +**Operations:** + +```typescript +// List all secretsModule records +const items = await db.secretsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); + +// Get one by id +const item = await db.secretsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); + +// Create +const created = await db.secretsModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.secretsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.secretsModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.sessionsModule` + +CRUD operations for SessionsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `sessionsTableId` | UUID | Yes | +| `sessionCredentialsTableId` | UUID | Yes | +| `authSettingsTableId` | UUID | Yes | +| `usersTableId` | UUID | Yes | +| `sessionsDefaultExpiration` | Interval | Yes | +| `sessionsTable` | String | Yes | +| `sessionCredentialsTable` | String | Yes | +| `authSettingsTable` | String | Yes | + +**Operations:** + +```typescript +// List all sessionsModule records +const items = await db.sessionsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, sessionsTableId: true, sessionCredentialsTableId: true, authSettingsTableId: true, usersTableId: true, sessionsDefaultExpiration: true, sessionsTable: true, sessionCredentialsTable: true, authSettingsTable: true } }).execute(); + +// Get one by id +const item = await db.sessionsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, sessionsTableId: true, sessionCredentialsTableId: true, authSettingsTableId: true, usersTableId: true, sessionsDefaultExpiration: true, sessionsTable: true, sessionCredentialsTable: true, authSettingsTable: true } }).execute(); + +// Create +const created = await db.sessionsModule.create({ data: { databaseId: '', schemaId: '', sessionsTableId: '', sessionCredentialsTableId: '', authSettingsTableId: '', usersTableId: '', sessionsDefaultExpiration: '', sessionsTable: '', sessionCredentialsTable: '', authSettingsTable: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.sessionsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.sessionsModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.userAuthModule` + +CRUD operations for UserAuthModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `emailsTableId` | UUID | Yes | +| `usersTableId` | UUID | Yes | +| `secretsTableId` | UUID | Yes | +| `encryptedTableId` | UUID | Yes | +| `sessionsTableId` | UUID | Yes | +| `sessionCredentialsTableId` | UUID | Yes | +| `auditsTableId` | UUID | Yes | +| `auditsTableName` | String | Yes | +| `signInFunction` | String | Yes | +| `signUpFunction` | String | Yes | +| `signOutFunction` | String | Yes | +| `setPasswordFunction` | String | Yes | +| `resetPasswordFunction` | String | Yes | +| `forgotPasswordFunction` | String | Yes | +| `sendVerificationEmailFunction` | String | Yes | +| `verifyEmailFunction` | String | Yes | +| `verifyPasswordFunction` | String | Yes | +| `checkPasswordFunction` | String | Yes | +| `sendAccountDeletionEmailFunction` | String | Yes | +| `deleteAccountFunction` | String | Yes | +| `signInOneTimeTokenFunction` | String | Yes | +| `oneTimeTokenFunction` | String | Yes | +| `extendTokenExpires` | String | Yes | + +**Operations:** + +```typescript +// List all userAuthModule records +const items = await db.userAuthModule.findMany({ select: { 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 } }).execute(); + +// Get one by id +const item = await db.userAuthModule.findOne({ id: '', select: { 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 } }).execute(); + +// Create +const created = await 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(); + +// Update +const updated = await db.userAuthModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.userAuthModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.usersModule` + +CRUD operations for UsersModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `tableName` | String | Yes | +| `typeTableId` | UUID | Yes | +| `typeTableName` | String | Yes | + +**Operations:** + +```typescript +// List all usersModule records +const items = await db.usersModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, typeTableId: true, typeTableName: true } }).execute(); + +// Get one by id +const item = await db.usersModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, typeTableId: true, typeTableName: true } }).execute(); + +// Create +const created = await db.usersModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', typeTableId: '', typeTableName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.usersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.usersModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.uuidModule` + +CRUD operations for UuidModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `uuidFunction` | String | Yes | +| `uuidSeed` | String | Yes | + +**Operations:** + +```typescript +// List all uuidModule records +const items = await db.uuidModule.findMany({ select: { id: true, databaseId: true, schemaId: true, uuidFunction: true, uuidSeed: true } }).execute(); + +// Get one by id +const item = await db.uuidModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, uuidFunction: true, uuidSeed: true } }).execute(); + +// Create +const created = await db.uuidModule.create({ data: { databaseId: '', schemaId: '', uuidFunction: '', uuidSeed: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.uuidModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.uuidModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.databaseProvisionModule` + +CRUD operations for DatabaseProvisionModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseName` | String | Yes | +| `ownerId` | UUID | Yes | +| `subdomain` | String | Yes | +| `domain` | String | Yes | +| `modules` | String | Yes | +| `options` | JSON | Yes | +| `bootstrapUser` | Boolean | Yes | +| `status` | String | Yes | +| `errorMessage` | String | Yes | +| `databaseId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `completedAt` | Datetime | Yes | + +**Operations:** + +```typescript +// List all databaseProvisionModule records +const items = await db.databaseProvisionModule.findMany({ select: { 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 } }).execute(); + +// Get one by id +const item = await db.databaseProvisionModule.findOne({ id: '', select: { 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 } }).execute(); + +// Create +const created = await db.databaseProvisionModule.create({ data: { databaseName: '', ownerId: '', subdomain: '', domain: '', modules: '', options: '', bootstrapUser: '', status: '', errorMessage: '', databaseId: '', completedAt: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.databaseProvisionModule.update({ where: { id: '' }, data: { databaseName: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.databaseProvisionModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.appAdminGrant` + +CRUD operations for AppAdminGrant records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `isGrant` | Boolean | Yes | +| `actorId` | UUID | Yes | +| `grantorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all appAdminGrant records +const items = await db.appAdminGrant.findMany({ select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.appAdminGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.appAdminGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appAdminGrant.delete({ where: { id: '' } }).execute(); +``` + +### `db.appOwnerGrant` + +CRUD operations for AppOwnerGrant records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `isGrant` | Boolean | Yes | +| `actorId` | UUID | Yes | +| `grantorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all appOwnerGrant records +const items = await db.appOwnerGrant.findMany({ select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.appOwnerGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.appOwnerGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appOwnerGrant.delete({ where: { id: '' } }).execute(); +``` + +### `db.appGrant` + +CRUD operations for AppGrant records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `permissions` | BitString | Yes | +| `isGrant` | Boolean | Yes | +| `actorId` | UUID | Yes | +| `grantorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all appGrant records +const items = await db.appGrant.findMany({ select: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.appGrant.findOne({ id: '', select: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.appGrant.create({ data: { permissions: '', isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appGrant.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgMembership` + +CRUD operations for OrgMembership records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `isBanned` | Boolean | Yes | +| `isDisabled` | Boolean | Yes | +| `isActive` | Boolean | Yes | +| `isOwner` | Boolean | Yes | +| `isAdmin` | Boolean | Yes | +| `permissions` | BitString | Yes | +| `granted` | BitString | Yes | +| `actorId` | UUID | Yes | +| `entityId` | 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(); + +// 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(); + +// Create +const created = await db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgMembership.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgMember` + +CRUD operations for OrgMember records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `isAdmin` | Boolean | Yes | +| `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | + +**Operations:** + +```typescript +// List all orgMember records +const items = await db.orgMember.findMany({ select: { id: true, isAdmin: true, actorId: true, entityId: true } }).execute(); + +// Get one by id +const item = await db.orgMember.findOne({ id: '', select: { id: true, isAdmin: true, actorId: true, entityId: true } }).execute(); + +// Create +const created = await db.orgMember.create({ data: { isAdmin: '', actorId: '', entityId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgMember.update({ where: { id: '' }, data: { isAdmin: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgMember.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgAdminGrant` + +CRUD operations for OrgAdminGrant 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 | + +**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(); + +// 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(); + +// Create +const created = await db.orgAdminGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgAdminGrant.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgOwnerGrant` + +CRUD operations for OrgOwnerGrant 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 | + +**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(); + +// 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(); + +// Create +const created = await db.orgOwnerGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgOwnerGrant.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgGrant` + +CRUD operations for OrgGrant records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `permissions` | BitString | Yes | +| `isGrant` | Boolean | Yes | +| `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `grantorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all orgGrant records +const items = await db.orgGrant.findMany({ select: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.orgGrant.findOne({ id: '', select: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.orgGrant.create({ data: { permissions: '', isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgGrant.delete({ where: { id: '' } }).execute(); +``` + +### `db.appLimit` + +CRUD operations for AppLimit records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `actorId` | UUID | Yes | +| `num` | Int | Yes | +| `max` | Int | Yes | + +**Operations:** + +```typescript +// List all appLimit records +const items = await db.appLimit.findMany({ select: { id: true, name: true, actorId: true, num: true, max: true } }).execute(); + +// Get one by id +const item = await db.appLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true } }).execute(); + +// Create +const created = await db.appLimit.create({ data: { name: '', actorId: '', num: '', max: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appLimit.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgLimit` + +CRUD operations for OrgLimit records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `actorId` | UUID | Yes | +| `num` | Int | Yes | +| `max` | Int | Yes | +| `entityId` | UUID | Yes | + +**Operations:** + +```typescript +// List all orgLimit records +const items = await db.orgLimit.findMany({ select: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } }).execute(); + +// Get one by id +const item = await db.orgLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } }).execute(); + +// Create +const created = await db.orgLimit.create({ data: { name: '', actorId: '', num: '', max: '', entityId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgLimit.delete({ where: { id: '' } }).execute(); +``` + +### `db.appStep` + +CRUD operations for AppStep records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `actorId` | UUID | Yes | +| `name` | String | Yes | +| `count` | Int | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all appStep records +const items = await db.appStep.findMany({ select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.appStep.findOne({ id: '', select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.appStep.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appStep.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appStep.delete({ where: { id: '' } }).execute(); +``` + +### `db.appAchievement` + +CRUD operations for AppAchievement records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `actorId` | UUID | Yes | +| `name` | String | Yes | +| `count` | Int | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all appAchievement records +const items = await db.appAchievement.findMany({ select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.appAchievement.findOne({ id: '', select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.appAchievement.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appAchievement.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appAchievement.delete({ where: { id: '' } }).execute(); +``` + +### `db.invite` + +CRUD operations for Invite records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `email` | ConstructiveInternalTypeEmail | Yes | +| `senderId` | UUID | Yes | +| `inviteToken` | String | Yes | +| `inviteValid` | Boolean | Yes | +| `inviteLimit` | Int | Yes | +| `inviteCount` | Int | Yes | +| `multiple` | Boolean | Yes | +| `data` | JSON | Yes | +| `expiresAt` | Datetime | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all invite records +const items = await db.invite.findMany({ select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.invite.findOne({ id: '', select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.invite.create({ data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.invite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.invite.delete({ where: { id: '' } }).execute(); +``` + +### `db.claimedInvite` + +CRUD operations for ClaimedInvite records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `data` | JSON | Yes | +| `senderId` | UUID | Yes | +| `receiverId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all claimedInvite records +const items = await db.claimedInvite.findMany({ select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.claimedInvite.findOne({ id: '', select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.claimedInvite.create({ data: { data: '', senderId: '', receiverId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.claimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.claimedInvite.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgInvite` + +CRUD operations for OrgInvite records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `email` | ConstructiveInternalTypeEmail | Yes | +| `senderId` | UUID | Yes | +| `receiverId` | UUID | Yes | +| `inviteToken` | String | Yes | +| `inviteValid` | Boolean | Yes | +| `inviteLimit` | Int | Yes | +| `inviteCount` | Int | Yes | +| `multiple` | Boolean | Yes | +| `data` | JSON | Yes | +| `expiresAt` | Datetime | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `entityId` | UUID | Yes | + +**Operations:** + +```typescript +// List all orgInvite records +const items = await db.orgInvite.findMany({ select: { 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 } }).execute(); + +// Get one by id +const item = await db.orgInvite.findOne({ id: '', select: { 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 } }).execute(); + +// Create +const created = await db.orgInvite.create({ data: { email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '', entityId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgInvite.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgClaimedInvite` + +CRUD operations for OrgClaimedInvite records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `data` | JSON | Yes | +| `senderId` | UUID | Yes | +| `receiverId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `entityId` | UUID | Yes | + +**Operations:** + +```typescript +// List all orgClaimedInvite records +const items = await db.orgClaimedInvite.findMany({ select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); + +// Get one by id +const item = await db.orgClaimedInvite.findOne({ id: '', select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); + +// Create +const created = await db.orgClaimedInvite.create({ data: { data: '', senderId: '', receiverId: '', entityId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgClaimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgClaimedInvite.delete({ where: { id: '' } }).execute(); +``` + +### `db.appPermissionDefault` + +CRUD operations for AppPermissionDefault records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `permissions` | BitString | Yes | + +**Operations:** + +```typescript +// List all appPermissionDefault records +const items = await db.appPermissionDefault.findMany({ select: { id: true, permissions: true } }).execute(); + +// Get one by id +const item = await db.appPermissionDefault.findOne({ id: '', select: { id: true, permissions: true } }).execute(); + +// Create +const created = await db.appPermissionDefault.create({ data: { permissions: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appPermissionDefault.delete({ where: { id: '' } }).execute(); +``` + +### `db.ref` + +CRUD operations for Ref records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `databaseId` | UUID | Yes | +| `storeId` | UUID | Yes | +| `commitId` | UUID | Yes | + +**Operations:** + +```typescript +// 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.ref.findOne({ id: '', select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); + +// Create +const created = await db.ref.create({ data: { name: '', databaseId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.ref.delete({ where: { id: '' } }).execute(); +``` + +### `db.store` + +CRUD operations for Store records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `databaseId` | UUID | Yes | +| `hash` | UUID | Yes | +| `createdAt` | Datetime | No | + +**Operations:** + +```typescript +// 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.store.findOne({ id: '', select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); + +// Create +const created = await db.store.create({ data: { name: '', databaseId: '', hash: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.store.delete({ where: { id: '' } }).execute(); +``` + +### `db.roleType` + +CRUD operations for RoleType records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | Int | No | +| `name` | String | Yes | + +**Operations:** + +```typescript +// List all roleType records +const items = await db.roleType.findMany({ select: { id: true, name: true } }).execute(); + +// Get one by id +const item = await db.roleType.findOne({ id: '', select: { id: true, name: true } }).execute(); + +// Create +const created = await db.roleType.create({ data: { name: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.roleType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.roleType.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgPermissionDefault` + +CRUD operations for OrgPermissionDefault records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `permissions` | BitString | Yes | +| `entityId` | UUID | Yes | + +**Operations:** + +```typescript +// List all orgPermissionDefault records +const items = await db.orgPermissionDefault.findMany({ select: { id: true, permissions: true, entityId: true } }).execute(); + +// Get one by id +const item = await db.orgPermissionDefault.findOne({ id: '', select: { id: true, permissions: true, entityId: true } }).execute(); + +// Create +const created = await db.orgPermissionDefault.create({ data: { permissions: '', entityId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgPermissionDefault.delete({ where: { id: '' } }).execute(); +``` + +### `db.appLimitDefault` + +CRUD operations for AppLimitDefault records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `max` | Int | Yes | + +**Operations:** + +```typescript +// 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.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); + +// Create +const created = await db.appLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgLimitDefault` + +CRUD operations for OrgLimitDefault records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `max` | Int | Yes | + +**Operations:** + +```typescript +// 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.orgLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); + +// Create +const created = await db.orgLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgLimitDefault.delete({ where: { id: '' } }).execute(); +``` + +### `db.cryptoAddress` + +CRUD operations for CryptoAddress 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 | + +**Operations:** + +```typescript +// 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.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true } }).execute(); + +// Create +const created = await db.membershipType.create({ data: { name: '', description: '', prefix: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); +``` + +### `db.connectedAccount` + +CRUD operations for ConnectedAccount records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `ownerId` | UUID | Yes | +| `service` | String | Yes | +| `identifier` | String | Yes | +| `details` | JSON | Yes | +| `isVerified` | Boolean | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all connectedAccount records +const items = await db.connectedAccount.findMany({ select: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.connectedAccount.findOne({ id: '', select: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.connectedAccount.create({ data: { ownerId: '', service: '', identifier: '', details: '', isVerified: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.connectedAccount.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.connectedAccount.delete({ where: { id: '' } }).execute(); +``` + +### `db.phoneNumber` + +CRUD operations for PhoneNumber records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `ownerId` | UUID | Yes | +| `cc` | String | Yes | +| `number` | String | Yes | +| `isVerified` | Boolean | Yes | +| `isPrimary` | Boolean | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all phoneNumber records +const items = await db.phoneNumber.findMany({ select: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.phoneNumber.findOne({ id: '', select: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.phoneNumber.create({ data: { ownerId: '', cc: '', number: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.phoneNumber.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.phoneNumber.delete({ where: { id: '' } }).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.nodeTypeRegistry` + +CRUD operations for NodeTypeRegistry records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `name` | String | No | +| `slug` | String | Yes | +| `category` | String | Yes | +| `displayName` | String | Yes | +| `description` | String | Yes | +| `parameterSchema` | JSON | Yes | +| `tags` | String | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all nodeTypeRegistry records +const items = await db.nodeTypeRegistry.findMany({ select: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by name +const item = await db.nodeTypeRegistry.findOne({ name: '', select: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.nodeTypeRegistry.create({ data: { slug: '', category: '', displayName: '', description: '', parameterSchema: '', tags: '' }, select: { name: true } }).execute(); + +// Update +const updated = await db.nodeTypeRegistry.update({ where: { name: '' }, data: { slug: '' }, select: { name: true } }).execute(); + +// Delete +const deleted = await db.nodeTypeRegistry.delete({ where: { name: '' } }).execute(); +``` + +### `db.commit` + +CRUD operations for Commit records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `message` | String | Yes | +| `databaseId` | UUID | Yes | +| `storeId` | UUID | Yes | +| `parentIds` | UUID | Yes | +| `authorId` | UUID | Yes | +| `committerId` | UUID | Yes | +| `treeId` | UUID | Yes | +| `date` | Datetime | Yes | + +**Operations:** + +```typescript +// List all commit records +const items = await db.commit.findMany({ select: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); + +// Get one by id +const item = await db.commit.findOne({ id: '', select: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); + +// Create +const created = await db.commit.create({ data: { message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.commit.update({ where: { id: '' }, data: { message: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.commit.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgMembershipDefault` + +CRUD operations for OrgMembershipDefault records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `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 | + +**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(); + +// 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(); + +// Create +const created = await db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '', deleteMemberCascadeGroups: '', createGroupsCascadeMembers: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); + +// Delete +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. + +**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 | +| `createdAt` | 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(); + +// 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(); + +// Create +const created = await db.auditLog.create({ data: { event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.auditLog.update({ where: { id: '' }, data: { event: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.auditLog.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.sqlMigration` + +CRUD operations for SqlMigration records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | Int | No | +| `name` | String | Yes | +| `databaseId` | UUID | Yes | +| `deploy` | String | Yes | +| `deps` | String | Yes | +| `payload` | JSON | Yes | +| `content` | String | Yes | +| `revert` | String | Yes | +| `verify` | String | Yes | +| `createdAt` | Datetime | No | +| `action` | String | Yes | +| `actionId` | UUID | Yes | +| `actorId` | UUID | Yes | + +**Operations:** + +```typescript +// List all sqlMigration records +const items = await db.sqlMigration.findMany({ select: { 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 } }).execute(); + +// Get one by id +const item = await db.sqlMigration.findOne({ id: '', select: { 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 } }).execute(); + +// Create +const created = await db.sqlMigration.create({ data: { name: '', databaseId: '', deploy: '', deps: '', payload: '', content: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.sqlMigration.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.sqlMigration.delete({ where: { id: '' } }).execute(); +``` + +### `db.astMigration` + +CRUD operations for AstMigration records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | Int | No | +| `databaseId` | UUID | Yes | +| `name` | String | Yes | +| `requires` | String | Yes | +| `payload` | JSON | Yes | +| `deploys` | String | Yes | +| `deploy` | JSON | Yes | +| `revert` | JSON | Yes | +| `verify` | JSON | Yes | +| `createdAt` | Datetime | No | +| `action` | String | Yes | +| `actionId` | UUID | Yes | +| `actorId` | UUID | Yes | + +**Operations:** + +```typescript +// List all astMigration records +const items = await db.astMigration.findMany({ select: { 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 } }).execute(); + +// Get one by id +const item = await db.astMigration.findOne({ id: '', select: { 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 } }).execute(); + +// Create +const created = await db.astMigration.create({ data: { databaseId: '', name: '', requires: '', payload: '', deploys: '', deploy: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.astMigration.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.astMigration.delete({ where: { id: '' } }).execute(); +``` + +### `db.appMembership` + +CRUD operations for AppMembership records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `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 | + +**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(); + +// 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(); + +// Create +const created = await db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appMembership.delete({ where: { id: '' } }).execute(); +``` + +### `db.user` + +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 | +| `searchTsvRank` | Float | 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(); + +// 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(); + +// Create +const created = await db.user.create({ data: { username: '', displayName: '', profilePicture: '', searchTsv: '', type: '', searchTsvRank: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.user.update({ where: { id: '' }, data: { username: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.user.delete({ where: { id: '' } }).execute(); +``` + +### `db.hierarchyModule` + +CRUD operations for HierarchyModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `chartEdgesTableId` | UUID | Yes | +| `chartEdgesTableName` | String | Yes | +| `hierarchySprtTableId` | UUID | Yes | +| `hierarchySprtTableName` | String | Yes | +| `chartEdgeGrantsTableId` | UUID | Yes | +| `chartEdgeGrantsTableName` | String | Yes | +| `entityTableId` | UUID | Yes | +| `usersTableId` | UUID | Yes | +| `prefix` | String | Yes | +| `privateSchemaName` | String | Yes | +| `sprtTableName` | String | Yes | +| `rebuildHierarchyFunction` | String | Yes | +| `getSubordinatesFunction` | String | Yes | +| `getManagersFunction` | String | Yes | +| `isManagerOfFunction` | String | Yes | +| `createdAt` | Datetime | No | + +**Operations:** + +```typescript +// List all hierarchyModule records +const items = await db.hierarchyModule.findMany({ select: { 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 } }).execute(); + +// Get one by id +const item = await db.hierarchyModule.findOne({ id: '', select: { 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 } }).execute(); + +// Create +const created = await 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(); + +// Update +const updated = await db.hierarchyModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.hierarchyModule.delete({ where: { id: '' } }).execute(); +``` + +## Custom Operations + +### `db.query.currentUserId` + +currentUserId + +- **Type:** query +- **Arguments:** none + +```typescript +const result = await db.query.currentUserId().execute(); +``` + +### `db.query.currentIpAddress` + +currentIpAddress + +- **Type:** query +- **Arguments:** none + +```typescript +const result = await db.query.currentIpAddress().execute(); +``` + +### `db.query.currentUserAgent` + +currentUserAgent + +- **Type:** query +- **Arguments:** none + +```typescript +const result = await db.query.currentUserAgent().execute(); +``` + +### `db.query.appPermissionsGetPaddedMask` + +appPermissionsGetPaddedMask + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `mask` | BitString | + +```typescript +const result = await db.query.appPermissionsGetPaddedMask({ mask: '' }).execute(); +``` + +### `db.query.orgPermissionsGetPaddedMask` + +orgPermissionsGetPaddedMask + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `mask` | BitString | + +```typescript +const result = await db.query.orgPermissionsGetPaddedMask({ mask: '' }).execute(); +``` + +### `db.query.stepsAchieved` + +stepsAchieved + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `vlevel` | String | + | `vroleId` | UUID | + +```typescript +const result = await db.query.stepsAchieved({ vlevel: '', vroleId: '' }).execute(); +``` + +### `db.query.revParse` + +revParse + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `dbId` | UUID | + | `storeId` | UUID | + | `refname` | String | + +```typescript +const result = await db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute(); +``` + +### `db.query.appPermissionsGetMask` + +appPermissionsGetMask + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `ids` | [UUID] | + +```typescript +const result = await db.query.appPermissionsGetMask({ ids: '' }).execute(); +``` + +### `db.query.orgPermissionsGetMask` + +orgPermissionsGetMask + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `ids` | [UUID] | + +```typescript +const result = await db.query.orgPermissionsGetMask({ ids: '' }).execute(); +``` + +### `db.query.appPermissionsGetMaskByNames` + +appPermissionsGetMaskByNames + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `names` | [String] | + +```typescript +const result = await db.query.appPermissionsGetMaskByNames({ names: '' }).execute(); +``` + +### `db.query.orgPermissionsGetMaskByNames` + +orgPermissionsGetMaskByNames + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `names` | [String] | + +```typescript +const result = await db.query.orgPermissionsGetMaskByNames({ names: '' }).execute(); +``` + +### `db.query.appPermissionsGetByMask` + +Reads and enables pagination through a set of `AppPermission`. + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `mask` | BitString | + | `first` | Int | + | `offset` | Int | + | `after` | Cursor | + +```typescript +const result = await db.query.appPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); +``` + +### `db.query.orgPermissionsGetByMask` + +Reads and enables pagination through a set of `OrgPermission`. + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `mask` | BitString | + | `first` | Int | + | `offset` | Int | + | `after` | Cursor | + +```typescript +const result = await db.query.orgPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); +``` + +### `db.query.getAllObjectsFromRoot` + +Reads and enables pagination through a set of `Object`. + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `databaseId` | UUID | + | `id` | UUID | + | `first` | Int | + | `offset` | Int | + | `after` | Cursor | + +```typescript +const result = await db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute(); +``` + +### `db.query.getPathObjectsFromRoot` + +Reads and enables pagination through a set of `Object`. + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `databaseId` | UUID | + | `id` | UUID | + | `path` | [String] | + | `first` | Int | + | `offset` | Int | + | `after` | Cursor | + +```typescript +const result = await db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); +``` + +### `db.query.getObjectAtPath` + +getObjectAtPath + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `dbId` | UUID | + | `storeId` | UUID | + | `path` | [String] | + | `refname` | String | + +```typescript +const result = await db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute(); +``` + +### `db.query.stepsRequired` + +Reads and enables pagination through a set of `AppLevelRequirement`. + +- **Type:** query +- **Arguments:** + + | Argument | Type | + |----------|------| + | `vlevel` | String | + | `vroleId` | UUID | + | `first` | Int | + | `offset` | Int | + | `after` | Cursor | + +```typescript +const result = await db.query.stepsRequired({ vlevel: '', vroleId: '', first: '', offset: '', after: '' }).execute(); +``` + +### `db.query.currentUser` + +currentUser + +- **Type:** query +- **Arguments:** none + +```typescript +const result = await db.query.currentUser().execute(); +``` + +### `db.mutation.signOut` + +signOut + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SignOutInput (required) | + +```typescript +const result = await db.mutation.signOut({ input: '' }).execute(); +``` + +### `db.mutation.sendAccountDeletionEmail` + +sendAccountDeletionEmail + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SendAccountDeletionEmailInput (required) | + +```typescript +const result = await db.mutation.sendAccountDeletionEmail({ input: '' }).execute(); +``` + +### `db.mutation.checkPassword` + +checkPassword + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | CheckPasswordInput (required) | + +```typescript +const result = await db.mutation.checkPassword({ input: '' }).execute(); +``` + +### `db.mutation.submitInviteCode` + +submitInviteCode + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SubmitInviteCodeInput (required) | + +```typescript +const result = await db.mutation.submitInviteCode({ input: '' }).execute(); +``` + +### `db.mutation.submitOrgInviteCode` + +submitOrgInviteCode + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SubmitOrgInviteCodeInput (required) | + +```typescript +const result = await db.mutation.submitOrgInviteCode({ input: '' }).execute(); +``` + +### `db.mutation.freezeObjects` + +freezeObjects + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | FreezeObjectsInput (required) | + +```typescript +const result = await db.mutation.freezeObjects({ input: '' }).execute(); +``` + +### `db.mutation.initEmptyRepo` + +initEmptyRepo + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | InitEmptyRepoInput (required) | + +```typescript +const result = await db.mutation.initEmptyRepo({ input: '' }).execute(); +``` + +### `db.mutation.confirmDeleteAccount` + +confirmDeleteAccount + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ConfirmDeleteAccountInput (required) | + +```typescript +const result = await db.mutation.confirmDeleteAccount({ input: '' }).execute(); +``` + +### `db.mutation.setPassword` + +setPassword + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SetPasswordInput (required) | + +```typescript +const result = await db.mutation.setPassword({ input: '' }).execute(); +``` + +### `db.mutation.verifyEmail` + +verifyEmail + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | VerifyEmailInput (required) | + +```typescript +const result = await db.mutation.verifyEmail({ input: '' }).execute(); +``` + +### `db.mutation.resetPassword` + +resetPassword + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ResetPasswordInput (required) | + +```typescript +const result = await db.mutation.resetPassword({ input: '' }).execute(); +``` + +### `db.mutation.removeNodeAtPath` + +removeNodeAtPath + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | RemoveNodeAtPathInput (required) | + +```typescript +const result = await db.mutation.removeNodeAtPath({ input: '' }).execute(); +``` + +### `db.mutation.bootstrapUser` + +bootstrapUser + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | BootstrapUserInput (required) | + +```typescript +const result = await db.mutation.bootstrapUser({ input: '' }).execute(); +``` + +### `db.mutation.setDataAtPath` + +setDataAtPath + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SetDataAtPathInput (required) | + +```typescript +const result = await db.mutation.setDataAtPath({ input: '' }).execute(); +``` + +### `db.mutation.setPropsAndCommit` + +setPropsAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SetPropsAndCommitInput (required) | + +```typescript +const result = await db.mutation.setPropsAndCommit({ input: '' }).execute(); +``` + +### `db.mutation.provisionDatabaseWithUser` + +provisionDatabaseWithUser + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ProvisionDatabaseWithUserInput (required) | + +```typescript +const result = await db.mutation.provisionDatabaseWithUser({ input: '' }).execute(); +``` + +### `db.mutation.signInOneTimeToken` + +signInOneTimeToken + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SignInOneTimeTokenInput (required) | + +```typescript +const result = await db.mutation.signInOneTimeToken({ input: '' }).execute(); +``` + +### `db.mutation.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 + + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | CreateUserDatabaseInput (required) | + +```typescript +const result = await db.mutation.createUserDatabase({ input: '' }).execute(); +``` + +### `db.mutation.extendTokenExpires` + +extendTokenExpires + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ExtendTokenExpiresInput (required) | + +```typescript +const result = await db.mutation.extendTokenExpires({ input: '' }).execute(); +``` + +### `db.mutation.signIn` + +signIn + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SignInInput (required) | + +```typescript +const result = await db.mutation.signIn({ input: '' }).execute(); +``` + +### `db.mutation.signUp` + +signUp + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SignUpInput (required) | + +```typescript +const result = await db.mutation.signUp({ input: '' }).execute(); +``` + +### `db.mutation.setFieldOrder` + +setFieldOrder + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SetFieldOrderInput (required) | + +```typescript +const result = await db.mutation.setFieldOrder({ input: '' }).execute(); +``` + +### `db.mutation.oneTimeToken` + +oneTimeToken + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | OneTimeTokenInput (required) | + +```typescript +const result = await db.mutation.oneTimeToken({ input: '' }).execute(); +``` + +### `db.mutation.insertNodeAtPath` + +insertNodeAtPath + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | InsertNodeAtPathInput (required) | + +```typescript +const result = await db.mutation.insertNodeAtPath({ input: '' }).execute(); +``` + +### `db.mutation.updateNodeAtPath` + +updateNodeAtPath + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | UpdateNodeAtPathInput (required) | + +```typescript +const result = await db.mutation.updateNodeAtPath({ input: '' }).execute(); +``` + +### `db.mutation.setAndCommit` + +setAndCommit + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SetAndCommitInput (required) | + +```typescript +const result = await db.mutation.setAndCommit({ input: '' }).execute(); +``` + +### `db.mutation.applyRls` + +applyRls + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ApplyRlsInput (required) | + +```typescript +const result = await db.mutation.applyRls({ input: '' }).execute(); +``` + +### `db.mutation.forgotPassword` + +forgotPassword + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | ForgotPasswordInput (required) | + +```typescript +const result = await db.mutation.forgotPassword({ input: '' }).execute(); +``` + +### `db.mutation.sendVerificationEmail` + +sendVerificationEmail + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SendVerificationEmailInput (required) | + +```typescript +const result = await db.mutation.sendVerificationEmail({ input: '' }).execute(); +``` + +### `db.mutation.verifyPassword` + +verifyPassword + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | VerifyPasswordInput (required) | + +```typescript +const result = await db.mutation.verifyPassword({ input: '' }).execute(); +``` + +### `db.mutation.verifyTotp` + +verifyTotp + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | VerifyTotpInput (required) | + +```typescript +const result = await db.mutation.verifyTotp({ input: '' }).execute(); +``` + +--- + +Built by the [Constructive](https://constructive.io) team. + +## Disclaimer + +AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED "AS IS", AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND. + +No developer or entity involved in creating this software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the code, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value. diff --git a/sdk/constructive-react/src/public/orm/client.ts b/sdk/constructive-react/src/public/orm/client.ts new file mode 100644 index 000000000..c0f12c466 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/client.ts @@ -0,0 +1,137 @@ +/** + * ORM Client - Runtime GraphQL executor + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-types'; + +export type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-types'; + +/** + * Default adapter that uses fetch for HTTP requests. + * This is used when no custom adapter is provided. + */ +export class FetchAdapter implements GraphQLAdapter { + private headers: Record; + + constructor( + private endpoint: string, + headers?: Record + ) { + this.headers = headers ?? {}; + } + + async execute(document: string, variables?: Record): Promise> { + const response = await fetch(this.endpoint, { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + Accept: 'application/json', + ...this.headers, + }, + body: JSON.stringify({ + query: document, + variables: variables ?? {}, + }), + }); + + if (!response.ok) { + return { + ok: false, + data: null, + errors: [{ message: `HTTP ${response.status}: ${response.statusText}` }], + }; + } + + const json = (await response.json()) as { + data?: T; + errors?: GraphQLError[]; + }; + + if (json.errors && json.errors.length > 0) { + return { + ok: false, + data: null, + errors: json.errors, + }; + } + + return { + ok: true, + data: json.data as T, + errors: undefined, + }; + } + + setHeaders(headers: Record): void { + this.headers = { ...this.headers, ...headers }; + } + + getEndpoint(): string { + return this.endpoint; + } +} + +/** + * Configuration for creating an ORM client. + * Either provide endpoint (and optional headers) for HTTP requests, + * or provide a custom adapter for alternative execution strategies. + */ +export interface OrmClientConfig { + /** GraphQL endpoint URL (required if adapter not provided) */ + endpoint?: string; + /** Default headers for HTTP requests (only used with endpoint) */ + headers?: Record; + /** Custom adapter for GraphQL execution (overrides endpoint/headers) */ + adapter?: GraphQLAdapter; +} + +/** + * Error thrown when GraphQL request fails + */ +export class GraphQLRequestError extends Error { + constructor( + public readonly errors: GraphQLError[], + public readonly data: unknown = null + ) { + const messages = errors.map((e) => e.message).join('; '); + super(`GraphQL Error: ${messages}`); + this.name = 'GraphQLRequestError'; + } +} + +export class OrmClient { + private adapter: GraphQLAdapter; + + constructor(config: OrmClientConfig) { + if (config.adapter) { + this.adapter = config.adapter; + } else if (config.endpoint) { + this.adapter = new FetchAdapter(config.endpoint, config.headers); + } else { + throw new Error('OrmClientConfig requires either an endpoint or a custom adapter'); + } + } + + async execute(document: string, variables?: Record): Promise> { + return this.adapter.execute(document, variables); + } + + /** + * Set headers for requests. + * Only works if the adapter supports headers. + */ + setHeaders(headers: Record): void { + if (this.adapter.setHeaders) { + this.adapter.setHeaders(headers); + } + } + + /** + * Get the endpoint URL. + * Returns empty string if the adapter doesn't have an endpoint. + */ + getEndpoint(): string { + return this.adapter.getEndpoint?.() ?? ''; + } +} diff --git a/sdk/constructive-react/src/public/orm/index.ts b/sdk/constructive-react/src/public/orm/index.ts new file mode 100644 index 000000000..5bdb26031 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/index.ts @@ -0,0 +1,244 @@ +/** + * ORM Client - createClient factory + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from './client'; +import type { OrmClientConfig } from './client'; +import { GetAllRecordModel } from './models/getAllRecord'; +import { AppPermissionModel } from './models/appPermission'; +import { OrgPermissionModel } from './models/orgPermission'; +import { ObjectModel } from './models/object'; +import { AppLevelRequirementModel } from './models/appLevelRequirement'; +import { DatabaseModel } from './models/database'; +import { SchemaModel } from './models/schema'; +import { TableModel } from './models/table'; +import { CheckConstraintModel } from './models/checkConstraint'; +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'; +import { TriggerModel } from './models/trigger'; +import { UniqueConstraintModel } from './models/uniqueConstraint'; +import { ViewModel } from './models/view'; +import { ViewTableModel } from './models/viewTable'; +import { ViewGrantModel } from './models/viewGrant'; +import { ViewRuleModel } from './models/viewRule'; +import { TableModuleModel } from './models/tableModule'; +import { TableTemplateModuleModel } from './models/tableTemplateModule'; +import { SchemaGrantModel } from './models/schemaGrant'; +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'; +import { AppModel } from './models/app'; +import { ConnectedAccountsModuleModel } from './models/connectedAccountsModule'; +import { CryptoAddressesModuleModel } from './models/cryptoAddressesModule'; +import { CryptoAuthModuleModel } from './models/cryptoAuthModule'; +import { DefaultIdsModuleModel } from './models/defaultIdsModule'; +import { DenormalizedTableFieldModel } from './models/denormalizedTableField'; +import { EmailsModuleModel } from './models/emailsModule'; +import { EncryptedSecretsModuleModel } from './models/encryptedSecretsModule'; +import { FieldModuleModel } from './models/fieldModule'; +import { InvitesModuleModel } from './models/invitesModule'; +import { LevelsModuleModel } from './models/levelsModule'; +import { LimitsModuleModel } from './models/limitsModule'; +import { MembershipTypesModuleModel } from './models/membershipTypesModule'; +import { MembershipsModuleModel } from './models/membershipsModule'; +import { PermissionsModuleModel } from './models/permissionsModule'; +import { PhoneNumbersModuleModel } from './models/phoneNumbersModule'; +import { ProfilesModuleModel } from './models/profilesModule'; +import { RlsModuleModel } from './models/rlsModule'; +import { SecretsModuleModel } from './models/secretsModule'; +import { SessionsModuleModel } from './models/sessionsModule'; +import { UserAuthModuleModel } from './models/userAuthModule'; +import { UsersModuleModel } from './models/usersModule'; +import { UuidModuleModel } from './models/uuidModule'; +import { DatabaseProvisionModuleModel } from './models/databaseProvisionModule'; +import { AppAdminGrantModel } from './models/appAdminGrant'; +import { AppOwnerGrantModel } from './models/appOwnerGrant'; +import { AppGrantModel } from './models/appGrant'; +import { OrgMembershipModel } from './models/orgMembership'; +import { OrgMemberModel } from './models/orgMember'; +import { OrgAdminGrantModel } from './models/orgAdminGrant'; +import { OrgOwnerGrantModel } from './models/orgOwnerGrant'; +import { OrgGrantModel } from './models/orgGrant'; +import { AppLimitModel } from './models/appLimit'; +import { OrgLimitModel } from './models/orgLimit'; +import { AppStepModel } from './models/appStep'; +import { AppAchievementModel } from './models/appAchievement'; +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 { RoleTypeModel } from './models/roleType'; +import { OrgPermissionDefaultModel } from './models/orgPermissionDefault'; +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 { NodeTypeRegistryModel } from './models/nodeTypeRegistry'; +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 { SqlMigrationModel } from './models/sqlMigration'; +import { AstMigrationModel } from './models/astMigration'; +import { AppMembershipModel } from './models/appMembership'; +import { UserModel } from './models/user'; +import { HierarchyModuleModel } from './models/hierarchyModule'; +import { createQueryOperations } from './query'; +import { createMutationOperations } from './mutation'; +export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; +export { GraphQLRequestError } from './client'; +export { QueryBuilder } from './query-builder'; +export * from './select-types'; +export * from './models'; +export { createQueryOperations } from './query'; +export { createMutationOperations } from './mutation'; +/** + * Create an ORM client instance + * + * @example + * ```typescript + * const db = createClient({ + * endpoint: 'https://api.example.com/graphql', + * headers: { Authorization: 'Bearer token' }, + * }); + * + * // Query users + * const users = await db.user.findMany({ + * select: { id: true, name: true }, + * first: 10, + * }).execute(); + * + * // Create a user + * const newUser = await db.user.create({ + * data: { name: 'John', email: 'john@example.com' }, + * select: { id: true }, + * }).execute(); + * ``` + */ +export function createClient(config: OrmClientConfig) { + const client = new OrmClient(config); + return { + getAllRecord: new GetAllRecordModel(client), + appPermission: new AppPermissionModel(client), + orgPermission: new OrgPermissionModel(client), + object: new ObjectModel(client), + appLevelRequirement: new AppLevelRequirementModel(client), + database: new DatabaseModel(client), + schema: new SchemaModel(client), + table: new TableModel(client), + checkConstraint: new CheckConstraintModel(client), + field: new FieldModel(client), + 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), + trigger: new TriggerModel(client), + uniqueConstraint: new UniqueConstraintModel(client), + view: new ViewModel(client), + viewTable: new ViewTableModel(client), + viewGrant: new ViewGrantModel(client), + viewRule: new ViewRuleModel(client), + tableModule: new TableModuleModel(client), + tableTemplateModule: new TableTemplateModuleModel(client), + schemaGrant: new SchemaGrantModel(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), + app: new AppModel(client), + connectedAccountsModule: new ConnectedAccountsModuleModel(client), + cryptoAddressesModule: new CryptoAddressesModuleModel(client), + cryptoAuthModule: new CryptoAuthModuleModel(client), + defaultIdsModule: new DefaultIdsModuleModel(client), + denormalizedTableField: new DenormalizedTableFieldModel(client), + emailsModule: new EmailsModuleModel(client), + encryptedSecretsModule: new EncryptedSecretsModuleModel(client), + fieldModule: new FieldModuleModel(client), + invitesModule: new InvitesModuleModel(client), + levelsModule: new LevelsModuleModel(client), + limitsModule: new LimitsModuleModel(client), + membershipTypesModule: new MembershipTypesModuleModel(client), + membershipsModule: new MembershipsModuleModel(client), + permissionsModule: new PermissionsModuleModel(client), + phoneNumbersModule: new PhoneNumbersModuleModel(client), + profilesModule: new ProfilesModuleModel(client), + rlsModule: new RlsModuleModel(client), + secretsModule: new SecretsModuleModel(client), + sessionsModule: new SessionsModuleModel(client), + userAuthModule: new UserAuthModuleModel(client), + usersModule: new UsersModuleModel(client), + uuidModule: new UuidModuleModel(client), + databaseProvisionModule: new DatabaseProvisionModuleModel(client), + appAdminGrant: new AppAdminGrantModel(client), + appOwnerGrant: new AppOwnerGrantModel(client), + appGrant: new AppGrantModel(client), + orgMembership: new OrgMembershipModel(client), + orgMember: new OrgMemberModel(client), + orgAdminGrant: new OrgAdminGrantModel(client), + orgOwnerGrant: new OrgOwnerGrantModel(client), + orgGrant: new OrgGrantModel(client), + appLimit: new AppLimitModel(client), + orgLimit: new OrgLimitModel(client), + appStep: new AppStepModel(client), + appAchievement: new AppAchievementModel(client), + invite: new InviteModel(client), + claimedInvite: new ClaimedInviteModel(client), + orgInvite: new OrgInviteModel(client), + orgClaimedInvite: new OrgClaimedInviteModel(client), + appPermissionDefault: new AppPermissionDefaultModel(client), + ref: new RefModel(client), + store: new StoreModel(client), + roleType: new RoleTypeModel(client), + orgPermissionDefault: new OrgPermissionDefaultModel(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), + nodeTypeRegistry: new NodeTypeRegistryModel(client), + commit: new CommitModel(client), + orgMembershipDefault: new OrgMembershipDefaultModel(client), + email: new EmailModel(client), + auditLog: new AuditLogModel(client), + appLevel: new AppLevelModel(client), + sqlMigration: new SqlMigrationModel(client), + astMigration: new AstMigrationModel(client), + appMembership: new AppMembershipModel(client), + user: new UserModel(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 new file mode 100644 index 000000000..392f8060e --- /dev/null +++ b/sdk/constructive-react/src/public/orm/input-types.ts @@ -0,0 +1,18834 @@ +/** + * GraphQL types for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +// ============ Scalar Filter Types ============ +export interface StringFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; + includes?: string; + notIncludes?: string; + includesInsensitive?: string; + notIncludesInsensitive?: string; + startsWith?: string; + notStartsWith?: string; + startsWithInsensitive?: string; + notStartsWithInsensitive?: string; + endsWith?: string; + notEndsWith?: string; + endsWithInsensitive?: string; + notEndsWithInsensitive?: string; + like?: string; + notLike?: string; + likeInsensitive?: string; + notLikeInsensitive?: string; +} +export interface IntFilter { + isNull?: boolean; + equalTo?: number; + notEqualTo?: number; + distinctFrom?: number; + notDistinctFrom?: number; + in?: number[]; + notIn?: number[]; + lessThan?: number; + lessThanOrEqualTo?: number; + greaterThan?: number; + greaterThanOrEqualTo?: number; +} +export interface FloatFilter { + isNull?: boolean; + equalTo?: number; + notEqualTo?: number; + distinctFrom?: number; + notDistinctFrom?: number; + in?: number[]; + notIn?: number[]; + lessThan?: number; + lessThanOrEqualTo?: number; + greaterThan?: number; + greaterThanOrEqualTo?: number; +} +export interface BooleanFilter { + isNull?: boolean; + equalTo?: boolean; + notEqualTo?: boolean; +} +export interface UUIDFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; +} +export interface DatetimeFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface DateFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface JSONFilter { + isNull?: boolean; + equalTo?: Record; + notEqualTo?: Record; + distinctFrom?: Record; + notDistinctFrom?: Record; + contains?: Record; + containedBy?: Record; + containsKey?: string; + containsAllKeys?: string[]; + containsAnyKeys?: string[]; +} +export interface BigIntFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface BigFloatFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface BitStringFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; +} +export interface InternetAddressFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; + contains?: string; + containsOrEqualTo?: string; + containedBy?: string; + containedByOrEqualTo?: string; + containsOrContainedBy?: string; +} +export interface FullTextFilter { + matches?: string; +} +export interface StringListFilter { + isNull?: boolean; + equalTo?: string[]; + notEqualTo?: string[]; + distinctFrom?: string[]; + notDistinctFrom?: string[]; + lessThan?: string[]; + lessThanOrEqualTo?: string[]; + greaterThan?: string[]; + greaterThanOrEqualTo?: string[]; + contains?: string[]; + containedBy?: string[]; + overlaps?: string[]; + anyEqualTo?: string; + anyNotEqualTo?: string; + anyLessThan?: string; + anyLessThanOrEqualTo?: string; + anyGreaterThan?: string; + anyGreaterThanOrEqualTo?: string; +} +export interface IntListFilter { + isNull?: boolean; + equalTo?: number[]; + notEqualTo?: number[]; + distinctFrom?: number[]; + notDistinctFrom?: number[]; + lessThan?: number[]; + lessThanOrEqualTo?: number[]; + greaterThan?: number[]; + greaterThanOrEqualTo?: number[]; + contains?: number[]; + containedBy?: number[]; + overlaps?: number[]; + anyEqualTo?: number; + anyNotEqualTo?: number; + anyLessThan?: number; + anyLessThanOrEqualTo?: number; + anyGreaterThan?: number; + anyGreaterThanOrEqualTo?: number; +} +export interface UUIDListFilter { + isNull?: boolean; + equalTo?: string[]; + notEqualTo?: string[]; + distinctFrom?: string[]; + notDistinctFrom?: string[]; + lessThan?: string[]; + lessThanOrEqualTo?: string[]; + greaterThan?: string[]; + greaterThanOrEqualTo?: string[]; + contains?: string[]; + containedBy?: string[]; + overlaps?: string[]; + anyEqualTo?: string; + anyNotEqualTo?: string; + anyLessThan?: string; + anyLessThanOrEqualTo?: string; + anyGreaterThan?: string; + anyGreaterThanOrEqualTo?: string; +} +// ============ Enum Types ============ +export type ObjectCategory = 'CORE' | 'MODULE' | 'APP'; +// ============ Custom Scalar Types ============ +export type ConstructiveInternalTypeAttachment = unknown; +export type ConstructiveInternalTypeEmail = unknown; +export type ConstructiveInternalTypeHostname = unknown; +export type ConstructiveInternalTypeImage = unknown; +export type ConstructiveInternalTypeOrigin = unknown; +export type ConstructiveInternalTypeUrl = unknown; +// ============ Entity Types ============ +export interface GetAllRecord { + path?: string | null; + data?: Record | null; +} +export interface AppPermission { + id: string; + name?: string | null; + bitnum?: number | null; + bitstr?: string | null; + description?: string | null; +} +export interface OrgPermission { + id: string; + name?: string | null; + bitnum?: number | null; + bitstr?: string | null; + description?: string | null; +} +export interface Object { + hashUuid?: string | null; + id: string; + databaseId?: string | null; + kids?: string | null; + ktree?: string | null; + data?: Record | null; + frzn?: boolean | null; + createdAt?: string | null; +} +/** Requirements to achieve a level */ +export interface AppLevelRequirement { + id: string; + name?: string | null; + level?: string | null; + description?: string | null; + requiredCount?: number | null; + priority?: number | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface Database { + id: string; + ownerId?: string | null; + schemaHash?: string | null; + name?: string | null; + label?: string | null; + hash?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface Schema { + id: string; + databaseId?: string | null; + name?: string | null; + schemaName?: string | null; + label?: string | null; + description?: string | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string | null; + isPublic?: boolean | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface Table { + id: string; + databaseId?: string | null; + schemaId?: string | null; + name?: string | null; + label?: string | null; + description?: string | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + useRls?: boolean | null; + timestamps?: boolean | null; + peoplestamps?: boolean | null; + pluralName?: string | null; + singularName?: string | null; + tags?: string | null; + inheritsId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface CheckConstraint { + id: string; + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + type?: string | null; + fieldIds?: string | null; + expr?: Record | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface Field { + id: string; + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + label?: string | null; + description?: string | null; + smartTags?: Record | null; + isRequired?: boolean | null; + defaultValue?: string | null; + defaultValueAst?: Record | null; + isHidden?: boolean | null; + type?: string | null; + fieldOrder?: number | null; + regexp?: string | null; + chk?: Record | null; + chkExpr?: Record | null; + min?: number | null; + max?: number | null; + tags?: string | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface ForeignKeyConstraint { + id: string; + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + description?: string | null; + smartTags?: Record | null; + type?: string | null; + fieldIds?: string | null; + refTableId?: string | null; + refFieldIds?: string | null; + deleteAction?: string | null; + updateAction?: string | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface FullTextSearch { + id: string; + databaseId?: string | null; + tableId?: string | null; + fieldId?: string | null; + fieldIds?: string | null; + weights?: string | null; + langs?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface Index { + id: string; + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + fieldIds?: string | null; + includeFieldIds?: string | null; + accessMethod?: string | null; + indexParams?: Record | null; + whereClause?: Record | null; + isUnique?: boolean | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string | null; + 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; + privilege?: string | null; + permissive?: boolean | null; + disabled?: boolean | null; + policyType?: string | null; + data?: Record | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface PrimaryKeyConstraint { + id: string; + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + type?: string | null; + fieldIds?: 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 TableGrant { + id: string; + databaseId?: string | null; + tableId?: string | null; + privilege?: string | null; + roleName?: string | null; + fieldIds?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface Trigger { + id: string; + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + event?: string | null; + functionName?: 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 UniqueConstraint { + id: string; + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + description?: string | null; + smartTags?: Record | null; + type?: string | null; + fieldIds?: string | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface View { + id: string; + databaseId?: string | null; + schemaId?: string | null; + name?: string | null; + tableId?: string | null; + viewType?: string | null; + data?: Record | null; + filterType?: string | null; + filterData?: Record | null; + securityInvoker?: boolean | null; + isReadOnly?: boolean | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string | null; +} +/** Junction table linking views to their joined tables for referential integrity */ +export interface ViewTable { + id: string; + viewId?: string | null; + tableId?: string | null; + joinOrder?: number | null; +} +export interface ViewGrant { + id: string; + databaseId?: string | null; + viewId?: string | null; + roleName?: string | null; + privilege?: string | null; + withGrantOption?: boolean | null; +} +/** DO INSTEAD rules for views (e.g., read-only enforcement) */ +export interface ViewRule { + id: string; + databaseId?: string | null; + viewId?: string | null; + name?: string | null; + /** INSERT, UPDATE, or DELETE */ + event?: string | null; + /** NOTHING (for read-only) or custom action */ + action?: string | null; +} +export interface TableModule { + id: string; + databaseId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + nodeType?: string | null; + data?: Record | null; + fields?: string | null; +} +export interface TableTemplateModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + ownerTableId?: string | null; + tableName?: string | null; + nodeType?: string | null; + data?: Record | null; +} +export interface SchemaGrant { + id: string; + databaseId?: string | null; + schemaId?: string | null; + granteeName?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface ApiSchema { + id: string; + databaseId?: string | null; + schemaId?: string | null; + apiId?: string | null; +} +export interface ApiModule { + id: string; + databaseId?: string | null; + apiId?: string | null; + name?: string | null; + data?: Record | null; +} +export interface Domain { + id: string; + databaseId?: string | null; + apiId?: string | null; + siteId?: string | null; + subdomain?: ConstructiveInternalTypeHostname | null; + domain?: ConstructiveInternalTypeHostname | null; +} +export interface SiteMetadatum { + id: string; + databaseId?: string | null; + siteId?: string | null; + title?: string | null; + description?: string | null; + ogImage?: ConstructiveInternalTypeImage | null; +} +export interface SiteModule { + id: string; + databaseId?: string | null; + siteId?: string | null; + name?: string | null; + data?: Record | null; +} +export interface SiteTheme { + id: string; + databaseId?: string | null; + siteId?: string | null; + 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; + name?: string | null; + code?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface Api { + id: string; + databaseId?: string | null; + name?: string | null; + dbname?: string | null; + roleName?: string | null; + anonRole?: string | null; + isPublic?: boolean | null; +} +export interface Site { + id: string; + databaseId?: string | null; + title?: string | null; + description?: string | null; + ogImage?: ConstructiveInternalTypeImage | null; + favicon?: ConstructiveInternalTypeAttachment | null; + appleTouchIcon?: ConstructiveInternalTypeImage | null; + logo?: ConstructiveInternalTypeImage | null; + dbname?: string | null; +} +export interface App { + id: string; + databaseId?: string | null; + siteId?: string | null; + name?: string | null; + appImage?: ConstructiveInternalTypeImage | null; + appStoreLink?: ConstructiveInternalTypeUrl | null; + appStoreId?: string | null; + appIdPrefix?: string | null; + playStoreLink?: ConstructiveInternalTypeUrl | null; +} +export interface ConnectedAccountsModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + ownerTableId?: string | null; + tableName?: string | null; +} +export interface CryptoAddressesModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + ownerTableId?: string | null; + tableName?: string | null; + cryptoNetwork?: string | null; +} +export interface CryptoAuthModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + usersTableId?: string | null; + secretsTableId?: string | null; + sessionsTableId?: string | null; + sessionCredentialsTableId?: string | null; + addressesTableId?: string | null; + userField?: string | null; + cryptoNetwork?: string | null; + signInRequestChallenge?: string | null; + signInRecordFailure?: string | null; + signUpWithKey?: string | null; + signInWithChallenge?: string | null; +} +export interface DefaultIdsModule { + id: string; + databaseId?: string | null; +} +export interface DenormalizedTableField { + id: string; + databaseId?: string | null; + tableId?: string | null; + fieldId?: string | null; + setIds?: string | null; + refTableId?: string | null; + refFieldId?: string | null; + refIds?: string | null; + useUpdates?: boolean | null; + updateDefaults?: boolean | null; + funcName?: string | null; + funcOrder?: number | null; +} +export interface EmailsModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + ownerTableId?: string | null; + tableName?: string | null; +} +export interface EncryptedSecretsModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; +} +export interface FieldModule { + id: string; + databaseId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + fieldId?: string | null; + nodeType?: string | null; + data?: Record | null; + triggers?: string | null; + functions?: string | null; +} +export interface InvitesModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + emailsTableId?: string | null; + usersTableId?: string | null; + invitesTableId?: string | null; + claimedInvitesTableId?: string | null; + invitesTableName?: string | null; + claimedInvitesTableName?: string | null; + submitInviteCodeFunction?: string | null; + prefix?: string | null; + membershipType?: number | null; + entityTableId?: string | null; +} +export interface LevelsModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + stepsTableId?: string | null; + stepsTableName?: string | null; + achievementsTableId?: string | null; + achievementsTableName?: string | null; + levelsTableId?: string | null; + levelsTableName?: string | null; + levelRequirementsTableId?: string | null; + levelRequirementsTableName?: string | null; + completedStep?: string | null; + incompletedStep?: string | null; + tgAchievement?: string | null; + tgAchievementToggle?: string | null; + tgAchievementToggleBoolean?: string | null; + tgAchievementBoolean?: string | null; + upsertAchievement?: string | null; + tgUpdateAchievements?: string | null; + stepsRequired?: string | null; + levelAchieved?: string | null; + prefix?: string | null; + membershipType?: number | null; + entityTableId?: string | null; + actorTableId?: string | null; +} +export interface LimitsModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + tableName?: string | null; + defaultTableId?: string | null; + defaultTableName?: string | null; + limitIncrementFunction?: string | null; + limitDecrementFunction?: string | null; + limitIncrementTrigger?: string | null; + limitDecrementTrigger?: string | null; + limitUpdateTrigger?: string | null; + limitCheckFunction?: string | null; + prefix?: string | null; + membershipType?: number | null; + entityTableId?: string | null; + actorTableId?: string | null; +} +export interface MembershipTypesModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; +} +export interface MembershipsModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + membershipsTableId?: string | null; + membershipsTableName?: string | null; + membersTableId?: string | null; + membersTableName?: string | null; + membershipDefaultsTableId?: string | null; + membershipDefaultsTableName?: string | null; + grantsTableId?: string | null; + grantsTableName?: string | null; + actorTableId?: string | null; + limitsTableId?: string | null; + defaultLimitsTableId?: string | null; + permissionsTableId?: string | null; + defaultPermissionsTableId?: string | null; + sprtTableId?: string | null; + adminGrantsTableId?: string | null; + adminGrantsTableName?: string | null; + ownerGrantsTableId?: string | null; + ownerGrantsTableName?: string | null; + membershipType?: number | null; + entityTableId?: string | null; + entityTableOwnerId?: string | null; + prefix?: string | null; + actorMaskCheck?: string | null; + actorPermCheck?: string | null; + entityIdsByMask?: string | null; + entityIdsByPerm?: string | null; + entityIdsFunction?: string | null; +} +export interface PermissionsModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + tableName?: string | null; + defaultTableId?: string | null; + defaultTableName?: string | null; + bitlen?: number | null; + membershipType?: number | null; + entityTableId?: string | null; + actorTableId?: string | null; + prefix?: string | null; + getPaddedMask?: string | null; + getMask?: string | null; + getByMask?: string | null; + getMaskByName?: string | null; +} +export interface PhoneNumbersModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + ownerTableId?: string | null; + tableName?: string | null; +} +export interface ProfilesModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + tableName?: string | null; + profilePermissionsTableId?: string | null; + profilePermissionsTableName?: string | null; + profileGrantsTableId?: string | null; + profileGrantsTableName?: string | null; + profileDefinitionGrantsTableId?: string | null; + profileDefinitionGrantsTableName?: string | null; + bitlen?: number | null; + membershipType?: number | null; + entityTableId?: string | null; + actorTableId?: string | null; + permissionsTableId?: string | null; + membershipsTableId?: string | null; + prefix?: string | null; +} +export interface RlsModule { + id: string; + databaseId?: string | null; + apiId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + sessionCredentialsTableId?: string | null; + sessionsTableId?: string | null; + usersTableId?: string | null; + authenticate?: string | null; + authenticateStrict?: string | null; + currentRole?: string | null; + currentRoleId?: string | null; +} +export interface SecretsModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; +} +export interface SessionsModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + sessionsTableId?: string | null; + sessionCredentialsTableId?: string | null; + authSettingsTableId?: string | null; + usersTableId?: string | null; + sessionsDefaultExpiration?: string | null; + sessionsTable?: string | null; + sessionCredentialsTable?: string | null; + authSettingsTable?: string | null; +} +export interface UserAuthModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + emailsTableId?: string | null; + usersTableId?: string | null; + secretsTableId?: string | null; + encryptedTableId?: string | null; + sessionsTableId?: string | null; + sessionCredentialsTableId?: string | null; + auditsTableId?: string | null; + auditsTableName?: string | null; + signInFunction?: string | null; + signUpFunction?: string | null; + signOutFunction?: string | null; + setPasswordFunction?: string | null; + resetPasswordFunction?: string | null; + forgotPasswordFunction?: string | null; + sendVerificationEmailFunction?: string | null; + verifyEmailFunction?: string | null; + verifyPasswordFunction?: string | null; + checkPasswordFunction?: string | null; + sendAccountDeletionEmailFunction?: string | null; + deleteAccountFunction?: string | null; + signInOneTimeTokenFunction?: string | null; + oneTimeTokenFunction?: string | null; + extendTokenExpires?: string | null; +} +export interface UsersModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; + typeTableId?: string | null; + typeTableName?: string | null; +} +export interface UuidModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + uuidFunction?: string | null; + uuidSeed?: string | null; +} +/** Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. */ +export interface DatabaseProvisionModule { + id: string; + /** The name for the new database */ + databaseName?: string | null; + /** UUID of the user who owns this database */ + ownerId?: string | null; + /** Subdomain prefix for the database. If null, auto-generated using unique_names + random chars */ + subdomain?: string | null; + /** Base domain for the database (e.g., example.com) */ + domain?: string | null; + /** Array of module IDs to install, or ["all"] for all modules */ + modules?: string | null; + /** Additional configuration options for provisioning */ + options?: Record | null; + /** When true, copies the owner user and password hash from source database to the newly provisioned database */ + bootstrapUser?: boolean | null; + /** Current status: pending, in_progress, completed, or failed */ + status?: string | null; + errorMessage?: string | null; + /** The ID of the provisioned database (set by trigger before RLS check) */ + databaseId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; + completedAt?: string | null; +} +export interface AppAdminGrant { + id: string; + isGrant?: boolean | null; + actorId?: string | null; + grantorId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface AppOwnerGrant { + id: string; + isGrant?: boolean | null; + actorId?: string | null; + grantorId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface AppGrant { + id: string; + permissions?: string | null; + isGrant?: boolean | null; + actorId?: string | null; + grantorId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface OrgMembership { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + isBanned?: boolean | null; + isDisabled?: boolean | null; + isActive?: boolean | null; + isOwner?: boolean | null; + isAdmin?: boolean | null; + permissions?: string | null; + granted?: string | null; + actorId?: string | null; + entityId?: string | null; +} +export interface OrgMember { + id: string; + isAdmin?: boolean | null; + actorId?: string | null; + entityId?: string | null; +} +export interface OrgAdminGrant { + id: string; + isGrant?: boolean | null; + actorId?: string | null; + entityId?: string | null; + grantorId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface OrgOwnerGrant { + id: string; + isGrant?: boolean | null; + actorId?: string | null; + entityId?: string | null; + grantorId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface OrgGrant { + id: string; + permissions?: string | null; + isGrant?: boolean | null; + actorId?: string | null; + entityId?: string | null; + grantorId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface AppLimit { + id: string; + name?: string | null; + actorId?: string | null; + num?: number | null; + max?: number | null; +} +export interface OrgLimit { + id: string; + name?: string | null; + actorId?: string | null; + num?: number | null; + max?: number | null; + entityId?: string | null; +} +/** The user achieving a requirement for a level. Log table that has every single step ever taken. */ +export interface AppStep { + id: string; + actorId?: string | null; + name?: string | null; + 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. */ +export interface AppAchievement { + id: string; + actorId?: string | null; + name?: string | null; + count?: number | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface Invite { + id: string; + email?: ConstructiveInternalTypeEmail | null; + senderId?: string | null; + inviteToken?: string | null; + inviteValid?: boolean | null; + inviteLimit?: number | null; + inviteCount?: number | null; + multiple?: boolean | null; + data?: Record | null; + expiresAt?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface ClaimedInvite { + id: string; + data?: Record | null; + senderId?: string | null; + receiverId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface OrgInvite { + id: string; + email?: ConstructiveInternalTypeEmail | null; + senderId?: string | null; + receiverId?: string | null; + inviteToken?: string | null; + inviteValid?: boolean | null; + inviteLimit?: number | null; + inviteCount?: number | null; + multiple?: boolean | null; + data?: Record | null; + expiresAt?: string | null; + createdAt?: string | null; + updatedAt?: string | null; + entityId?: string | null; +} +export interface OrgClaimedInvite { + id: string; + data?: Record | null; + senderId?: string | null; + 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. */ + id: string; + /** The name of the ref or branch */ + name?: string | null; + databaseId?: string | null; + storeId?: string | null; + commitId?: string | null; +} +/** A store represents an isolated object repository within a database. */ +export interface Store { + /** The primary unique identifier for the store. */ + id: string; + /** The name of the store (e.g., metaschema, migrations). */ + name?: string | null; + /** The database this store belongs to. */ + databaseId?: string | null; + /** The current head tree_id for this store. */ + hash?: string | null; + createdAt?: string | null; +} +export interface RoleType { + id: number; + name?: string | null; +} +export interface OrgPermissionDefault { + id: string; + permissions?: string | null; + 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; +} +export interface CryptoAddress { + id: string; + ownerId?: string | null; + address?: string | null; + isVerified?: boolean | null; + isPrimary?: boolean | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface MembershipType { + id: number; + name?: string | null; + description?: string | null; + prefix?: string | null; +} +export interface ConnectedAccount { + id: string; + ownerId?: string | null; + /** The service used, e.g. `twitter` or `github`. */ + service?: string | null; + /** A unique identifier for the user within the service */ + identifier?: string | null; + /** Additional profile details extracted from this login method */ + details?: Record | null; + isVerified?: boolean | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface PhoneNumber { + id: string; + ownerId?: string | null; + cc?: string | null; + number?: string | null; + isVerified?: boolean | null; + 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; +} +/** 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 { + /** PascalCase domain-prefixed node type name (e.g., AuthzDirectOwner, DataTimestamps, FieldImmutable) */ + 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) */ + category?: string | null; + /** Human-readable display name for UI */ + displayName?: string | null; + /** Description of what this node type does */ + description?: string | null; + /** JSON Schema defining valid parameters for this node type */ + parameterSchema?: Record | null; + /** Tags for categorization and filtering (e.g., ownership, membership, temporal, rls) */ + tags?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +/** A commit records changes to the repository. */ +export interface Commit { + /** The primary unique identifier for the commit. */ + id: string; + /** The commit message */ + message?: string | null; + /** The repository identifier */ + databaseId?: string | null; + storeId?: string | null; + /** Parent commits */ + parentIds?: string | null; + /** The author of the commit */ + authorId?: string | null; + /** The committer of the commit */ + committerId?: string | null; + /** The root of the tree */ + treeId?: string | null; + date?: string | null; +} +export interface OrgMembershipDefault { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + entityId?: string | null; + deleteMemberCascadeGroups?: boolean | null; + 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; +} +export interface AuditLog { + id: string; + event?: string | null; + actorId?: string | null; + origin?: ConstructiveInternalTypeOrigin | null; + userAgent?: string | null; + ipAddress?: string | null; + success?: boolean | null; + createdAt?: string | 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; +} +export interface SqlMigration { + id: number; + name?: string | null; + databaseId?: string | null; + deploy?: string | null; + deps?: string | null; + payload?: Record | null; + content?: string | null; + revert?: string | null; + verify?: string | null; + createdAt?: string | null; + action?: string | null; + actionId?: string | null; + actorId?: string | null; +} +export interface AstMigration { + id: number; + databaseId?: string | null; + name?: string | null; + requires?: string | null; + payload?: Record | null; + deploys?: string | null; + deploy?: Record | null; + revert?: Record | null; + verify?: Record | null; + createdAt?: string | null; + action?: string | null; + actionId?: string | null; + actorId?: string | null; +} +export interface AppMembership { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + isBanned?: boolean | null; + isDisabled?: boolean | null; + isVerified?: boolean | null; + isActive?: boolean | null; + isOwner?: boolean | null; + isAdmin?: boolean | null; + permissions?: string | null; + granted?: 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; +} +export interface HierarchyModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + chartEdgesTableId?: string | null; + chartEdgesTableName?: string | null; + hierarchySprtTableId?: string | null; + hierarchySprtTableName?: string | null; + chartEdgeGrantsTableId?: string | null; + chartEdgeGrantsTableName?: string | null; + entityTableId?: string | null; + usersTableId?: string | null; + prefix?: string | null; + privateSchemaName?: string | null; + sprtTableName?: string | null; + rebuildHierarchyFunction?: string | null; + getSubordinatesFunction?: string | null; + getManagersFunction?: string | null; + isManagerOfFunction?: string | null; + createdAt?: string | null; +} +// ============ Relation Helper Types ============ +export interface ConnectionResult { + nodes: T[]; + totalCount: number; + pageInfo: PageInfo; +} +export interface PageInfo { + hasNextPage: boolean; + hasPreviousPage: boolean; + startCursor?: string | null; + endCursor?: string | null; +} +// ============ Entity Relation Types ============ +export interface GetAllRecordRelations {} +export interface AppPermissionRelations {} +export interface OrgPermissionRelations {} +export interface ObjectRelations {} +export interface AppLevelRequirementRelations {} +export interface DatabaseRelations { + owner?: User | null; + hierarchyModule?: HierarchyModule | null; + schemas?: ConnectionResult; + tables?: ConnectionResult; + checkConstraints?: ConnectionResult; + fields?: ConnectionResult; + foreignKeyConstraints?: ConnectionResult; + fullTextSearches?: ConnectionResult; + indices?: ConnectionResult; + limitFunctions?: ConnectionResult; + policies?: ConnectionResult; + primaryKeyConstraints?: ConnectionResult; + procedures?: ConnectionResult; + schemaGrants?: ConnectionResult; + tableGrants?: ConnectionResult; + triggerFunctions?: ConnectionResult; + triggers?: ConnectionResult; + uniqueConstraints?: ConnectionResult; + views?: ConnectionResult; + viewGrants?: ConnectionResult; + viewRules?: ConnectionResult; + apis?: ConnectionResult; + apiModules?: ConnectionResult; + apiSchemas?: ConnectionResult; + sites?: ConnectionResult; + apps?: ConnectionResult; + domains?: ConnectionResult; + siteMetadata?: ConnectionResult; + siteModules?: ConnectionResult; + siteThemes?: ConnectionResult; + connectedAccountsModules?: ConnectionResult; + cryptoAddressesModules?: ConnectionResult; + cryptoAuthModules?: ConnectionResult; + defaultIdsModules?: ConnectionResult; + denormalizedTableFields?: ConnectionResult; + emailsModules?: ConnectionResult; + encryptedSecretsModules?: ConnectionResult; + fieldModules?: ConnectionResult; + tableModules?: ConnectionResult; + invitesModules?: ConnectionResult; + levelsModules?: ConnectionResult; + limitsModules?: ConnectionResult; + membershipTypesModules?: ConnectionResult; + membershipsModules?: ConnectionResult; + permissionsModules?: ConnectionResult; + phoneNumbersModules?: ConnectionResult; + profilesModules?: ConnectionResult; + rlsModules?: ConnectionResult; + secretsModules?: ConnectionResult; + sessionsModules?: ConnectionResult; + userAuthModules?: ConnectionResult; + usersModules?: ConnectionResult; + uuidModules?: ConnectionResult; + tableTemplateModules?: ConnectionResult; + databaseProvisionModules?: ConnectionResult; +} +export interface SchemaRelations { + database?: Database | null; + tables?: ConnectionResult
; + schemaGrants?: ConnectionResult; + views?: ConnectionResult; + apiSchemas?: ConnectionResult; + tableTemplateModulesByPrivateSchemaId?: ConnectionResult; + tableTemplateModules?: ConnectionResult; +} +export interface TableRelations { + database?: Database | null; + schema?: Schema | null; + inherits?: Table | null; + checkConstraints?: ConnectionResult; + fields?: ConnectionResult; + foreignKeyConstraints?: ConnectionResult; + fullTextSearches?: ConnectionResult; + indices?: ConnectionResult; + limitFunctions?: ConnectionResult; + policies?: ConnectionResult; + primaryKeyConstraints?: ConnectionResult; + tableGrants?: ConnectionResult; + triggers?: ConnectionResult; + uniqueConstraints?: ConnectionResult; + views?: ConnectionResult; + viewTables?: ConnectionResult; + tableModules?: ConnectionResult; + tableTemplateModulesByOwnerTableId?: ConnectionResult; + tableTemplateModules?: ConnectionResult; +} +export interface CheckConstraintRelations { + database?: Database | null; + table?: Table | null; +} +export interface FieldRelations { + database?: Database | null; + table?: Table | null; +} +export interface ForeignKeyConstraintRelations { + database?: Database | null; + refTable?: Table | null; + table?: Table | null; +} +export interface FullTextSearchRelations { + database?: Database | null; + table?: Table | null; +} +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; +} +export interface PrimaryKeyConstraintRelations { + database?: Database | null; + table?: Table | null; +} +export interface TableGrantRelations { + database?: Database | null; + table?: Table | null; +} +export interface TriggerRelations { + database?: Database | null; + table?: Table | null; +} +export interface UniqueConstraintRelations { + database?: Database | null; + table?: Table | null; +} +export interface ViewRelations { + database?: Database | null; + schema?: Schema | null; + table?: Table | null; + viewTables?: ConnectionResult; + viewGrants?: ConnectionResult; + viewRules?: ConnectionResult; +} +export interface ViewTableRelations { + table?: Table | null; + view?: View | null; +} +export interface ViewGrantRelations { + database?: Database | null; + view?: View | null; +} +export interface ViewRuleRelations { + database?: Database | null; + view?: View | null; +} +export interface TableModuleRelations { + database?: Database | null; + privateSchema?: Schema | null; + table?: Table | null; +} +export interface TableTemplateModuleRelations { + database?: Database | null; + ownerTable?: Table | null; + privateSchema?: Schema | null; + schema?: Schema | null; + table?: Table | null; +} +export interface SchemaGrantRelations { + database?: Database | null; + schema?: Schema | null; +} +export interface ApiSchemaRelations { + api?: Api | null; + database?: Database | null; + schema?: Schema | null; +} +export interface ApiModuleRelations { + api?: Api | null; + database?: Database | null; +} +export interface DomainRelations { + api?: Api | null; + database?: Database | null; + site?: Site | null; +} +export interface SiteMetadatumRelations { + database?: Database | null; + site?: Site | null; +} +export interface SiteModuleRelations { + database?: Database | null; + site?: Site | null; +} +export interface SiteThemeRelations { + database?: Database | null; + site?: Site | null; +} +export interface ProcedureRelations { + database?: Database | null; +} +export interface TriggerFunctionRelations { + database?: Database | null; +} +export interface ApiRelations { + database?: Database | null; + rlsModule?: RlsModule | null; + apiModules?: ConnectionResult; + apiSchemas?: ConnectionResult; + domains?: ConnectionResult; +} +export interface SiteRelations { + database?: Database | null; + app?: App | null; + domains?: ConnectionResult; + siteMetadata?: ConnectionResult; + siteModules?: ConnectionResult; + siteThemes?: ConnectionResult; +} +export interface AppRelations { + site?: Site | null; + database?: Database | null; +} +export interface ConnectedAccountsModuleRelations { + database?: Database | null; + ownerTable?: Table | null; + privateSchema?: Schema | null; + schema?: Schema | null; + table?: Table | null; +} +export interface CryptoAddressesModuleRelations { + database?: Database | null; + ownerTable?: Table | null; + privateSchema?: Schema | null; + schema?: Schema | null; + table?: Table | null; +} +export interface CryptoAuthModuleRelations { + database?: Database | null; + schema?: Schema | null; + secretsTable?: Table | null; + sessionCredentialsTable?: Table | null; + sessionsTable?: Table | null; + usersTable?: Table | null; +} +export interface DefaultIdsModuleRelations { + database?: Database | null; +} +export interface DenormalizedTableFieldRelations { + database?: Database | null; + field?: Field | null; + refField?: Field | null; + refTable?: Table | null; + table?: Table | null; +} +export interface EmailsModuleRelations { + database?: Database | null; + ownerTable?: Table | null; + privateSchema?: Schema | null; + schema?: Schema | null; + table?: Table | null; +} +export interface EncryptedSecretsModuleRelations { + database?: Database | null; + schema?: Schema | null; + table?: Table | null; +} +export interface FieldModuleRelations { + database?: Database | null; + field?: Field | null; + privateSchema?: Schema | null; + table?: Table | null; +} +export interface InvitesModuleRelations { + claimedInvitesTable?: Table | null; + database?: Database | null; + emailsTable?: Table | null; + entityTable?: Table | null; + invitesTable?: Table | null; + privateSchema?: Schema | null; + schema?: Schema | null; + usersTable?: Table | null; +} +export interface LevelsModuleRelations { + achievementsTable?: Table | null; + actorTable?: Table | null; + database?: Database | null; + entityTable?: Table | null; + levelRequirementsTable?: Table | null; + levelsTable?: Table | null; + privateSchema?: Schema | null; + schema?: Schema | null; + stepsTable?: Table | null; +} +export interface LimitsModuleRelations { + actorTable?: Table | null; + database?: Database | null; + defaultTable?: Table | null; + entityTable?: Table | null; + privateSchema?: Schema | null; + schema?: Schema | null; + table?: Table | null; +} +export interface MembershipTypesModuleRelations { + database?: Database | null; + schema?: Schema | null; + table?: Table | null; +} +export interface MembershipsModuleRelations { + actorTable?: Table | null; + database?: Database | null; + defaultLimitsTable?: Table | null; + defaultPermissionsTable?: Table | null; + entityTable?: Table | null; + entityTableOwner?: Field | null; + grantsTable?: Table | null; + limitsTable?: Table | null; + membersTable?: Table | null; + membershipDefaultsTable?: Table | null; + membershipsTable?: Table | null; + permissionsTable?: Table | null; + privateSchema?: Schema | null; + schema?: Schema | null; + sprtTable?: Table | null; +} +export interface PermissionsModuleRelations { + actorTable?: Table | null; + database?: Database | null; + defaultTable?: Table | null; + entityTable?: Table | null; + privateSchema?: Schema | null; + schema?: Schema | null; + table?: Table | null; +} +export interface PhoneNumbersModuleRelations { + database?: Database | null; + ownerTable?: Table | null; + privateSchema?: Schema | null; + schema?: Schema | null; + table?: Table | null; +} +export interface ProfilesModuleRelations { + actorTable?: Table | null; + database?: Database | null; + entityTable?: Table | null; + membershipsTable?: Table | null; + permissionsTable?: Table | null; + privateSchema?: Schema | null; + profileDefinitionGrantsTable?: Table | null; + profileGrantsTable?: Table | null; + profilePermissionsTable?: Table | null; + schema?: Schema | null; + table?: Table | null; +} +export interface RlsModuleRelations { + api?: Api | null; + database?: Database | null; + privateSchema?: Schema | null; + schema?: Schema | null; + sessionCredentialsTable?: Table | null; + sessionsTable?: Table | null; + usersTable?: Table | null; +} +export interface SecretsModuleRelations { + database?: Database | null; + schema?: Schema | null; + table?: Table | null; +} +export interface SessionsModuleRelations { + authSettingsTableByAuthSettingsTableId?: Table | null; + database?: Database | null; + schema?: Schema | null; + sessionCredentialsTableBySessionCredentialsTableId?: Table | null; + sessionsTableBySessionsTableId?: Table | null; + usersTable?: Table | null; +} +export interface UserAuthModuleRelations { + database?: Database | null; + emailsTable?: Table | null; + encryptedTable?: Table | null; + schema?: Schema | null; + secretsTable?: Table | null; + sessionCredentialsTable?: Table | null; + sessionsTable?: Table | null; + usersTable?: Table | null; +} +export interface UsersModuleRelations { + database?: Database | null; + schema?: Schema | null; + table?: Table | null; + typeTable?: Table | null; +} +export interface UuidModuleRelations { + database?: Database | null; + schema?: Schema | null; +} +export interface DatabaseProvisionModuleRelations { + database?: Database | null; +} +export interface AppAdminGrantRelations { + actor?: User | null; + grantor?: User | null; +} +export interface AppOwnerGrantRelations { + actor?: User | null; + grantor?: User | null; +} +export interface AppGrantRelations { + actor?: User | null; + grantor?: User | null; +} +export interface OrgMembershipRelations { + actor?: User | null; + entity?: User | null; +} +export interface OrgMemberRelations { + actor?: User | null; + entity?: User | null; +} +export interface OrgAdminGrantRelations { + actor?: User | null; + entity?: User | null; + grantor?: User | null; +} +export interface OrgOwnerGrantRelations { + actor?: User | null; + entity?: User | null; + grantor?: User | null; +} +export interface OrgGrantRelations { + actor?: User | null; + entity?: User | null; + grantor?: User | null; +} +export interface AppLimitRelations { + actor?: User | null; +} +export interface OrgLimitRelations { + actor?: User | null; + entity?: User | null; +} +export interface AppStepRelations { + actor?: User | null; +} +export interface AppAchievementRelations { + actor?: User | null; +} +export interface InviteRelations { + sender?: User | null; +} +export interface ClaimedInviteRelations { + receiver?: User | null; + sender?: User | null; +} +export interface OrgInviteRelations { + entity?: User | null; + receiver?: User | null; + sender?: User | null; +} +export interface OrgClaimedInviteRelations { + entity?: User | null; + receiver?: User | null; + sender?: User | null; +} +export interface AppPermissionDefaultRelations {} +export interface RefRelations {} +export interface StoreRelations {} +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 ConnectedAccountRelations { + owner?: User | null; +} +export interface PhoneNumberRelations { + owner?: User | null; +} +export interface AppMembershipDefaultRelations {} +export interface NodeTypeRegistryRelations {} +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 SqlMigrationRelations {} +export interface AstMigrationRelations {} +export interface AppMembershipRelations { + actor?: User | null; +} +export interface UserRelations { + roleType?: RoleType | null; + appMembershipByActorId?: AppMembership | null; + orgMembershipDefaultByEntityId?: OrgMembershipDefault | null; + ownedDatabases?: ConnectionResult; + appAdminGrantsByGrantorId?: ConnectionResult; + appOwnerGrantsByGrantorId?: ConnectionResult; + appGrantsByGrantorId?: ConnectionResult; + orgMembershipsByActorId?: ConnectionResult; + orgMembershipsByEntityId?: ConnectionResult; + orgMembersByActorId?: ConnectionResult; + orgMembersByEntityId?: ConnectionResult; + orgAdminGrantsByEntityId?: ConnectionResult; + orgAdminGrantsByGrantorId?: ConnectionResult; + orgOwnerGrantsByEntityId?: ConnectionResult; + orgOwnerGrantsByGrantorId?: ConnectionResult; + orgGrantsByEntityId?: ConnectionResult; + orgGrantsByGrantorId?: ConnectionResult; + appLimitsByActorId?: ConnectionResult; + orgLimitsByActorId?: ConnectionResult; + orgLimitsByEntityId?: ConnectionResult; + appStepsByActorId?: ConnectionResult; + appAchievementsByActorId?: ConnectionResult; + invitesBySenderId?: ConnectionResult; + claimedInvitesByReceiverId?: ConnectionResult; + claimedInvitesBySenderId?: ConnectionResult; + orgInvitesByEntityId?: ConnectionResult; + orgInvitesBySenderId?: ConnectionResult; + orgClaimedInvitesByReceiverId?: ConnectionResult; + orgClaimedInvitesBySenderId?: ConnectionResult; +} +export interface HierarchyModuleRelations { + chartEdgeGrantsTable?: Table | null; + chartEdgesTable?: Table | null; + database?: Database | null; + entityTable?: Table | null; + hierarchySprtTable?: Table | null; + privateSchema?: Schema | null; + schema?: Schema | null; + usersTable?: Table | null; +} +// ============ Entity Types With Relations ============ +export type GetAllRecordWithRelations = GetAllRecord & GetAllRecordRelations; +export type AppPermissionWithRelations = AppPermission & AppPermissionRelations; +export type OrgPermissionWithRelations = OrgPermission & OrgPermissionRelations; +export type ObjectWithRelations = Object & ObjectRelations; +export type AppLevelRequirementWithRelations = AppLevelRequirement & AppLevelRequirementRelations; +export type DatabaseWithRelations = Database & DatabaseRelations; +export type SchemaWithRelations = Schema & SchemaRelations; +export type TableWithRelations = Table & TableRelations; +export type CheckConstraintWithRelations = CheckConstraint & CheckConstraintRelations; +export type FieldWithRelations = Field & FieldRelations; +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; +export type TableGrantWithRelations = TableGrant & TableGrantRelations; +export type TriggerWithRelations = Trigger & TriggerRelations; +export type UniqueConstraintWithRelations = UniqueConstraint & UniqueConstraintRelations; +export type ViewWithRelations = View & ViewRelations; +export type ViewTableWithRelations = ViewTable & ViewTableRelations; +export type ViewGrantWithRelations = ViewGrant & ViewGrantRelations; +export type ViewRuleWithRelations = ViewRule & ViewRuleRelations; +export type TableModuleWithRelations = TableModule & TableModuleRelations; +export type TableTemplateModuleWithRelations = TableTemplateModule & TableTemplateModuleRelations; +export type SchemaGrantWithRelations = SchemaGrant & SchemaGrantRelations; +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; +export type AppWithRelations = App & AppRelations; +export type ConnectedAccountsModuleWithRelations = ConnectedAccountsModule & + ConnectedAccountsModuleRelations; +export type CryptoAddressesModuleWithRelations = CryptoAddressesModule & + CryptoAddressesModuleRelations; +export type CryptoAuthModuleWithRelations = CryptoAuthModule & CryptoAuthModuleRelations; +export type DefaultIdsModuleWithRelations = DefaultIdsModule & DefaultIdsModuleRelations; +export type DenormalizedTableFieldWithRelations = DenormalizedTableField & + DenormalizedTableFieldRelations; +export type EmailsModuleWithRelations = EmailsModule & EmailsModuleRelations; +export type EncryptedSecretsModuleWithRelations = EncryptedSecretsModule & + EncryptedSecretsModuleRelations; +export type FieldModuleWithRelations = FieldModule & FieldModuleRelations; +export type InvitesModuleWithRelations = InvitesModule & InvitesModuleRelations; +export type LevelsModuleWithRelations = LevelsModule & LevelsModuleRelations; +export type LimitsModuleWithRelations = LimitsModule & LimitsModuleRelations; +export type MembershipTypesModuleWithRelations = MembershipTypesModule & + MembershipTypesModuleRelations; +export type MembershipsModuleWithRelations = MembershipsModule & MembershipsModuleRelations; +export type PermissionsModuleWithRelations = PermissionsModule & PermissionsModuleRelations; +export type PhoneNumbersModuleWithRelations = PhoneNumbersModule & PhoneNumbersModuleRelations; +export type ProfilesModuleWithRelations = ProfilesModule & ProfilesModuleRelations; +export type RlsModuleWithRelations = RlsModule & RlsModuleRelations; +export type SecretsModuleWithRelations = SecretsModule & SecretsModuleRelations; +export type SessionsModuleWithRelations = SessionsModule & SessionsModuleRelations; +export type UserAuthModuleWithRelations = UserAuthModule & UserAuthModuleRelations; +export type UsersModuleWithRelations = UsersModule & UsersModuleRelations; +export type UuidModuleWithRelations = UuidModule & UuidModuleRelations; +export type DatabaseProvisionModuleWithRelations = DatabaseProvisionModule & + DatabaseProvisionModuleRelations; +export type AppAdminGrantWithRelations = AppAdminGrant & AppAdminGrantRelations; +export type AppOwnerGrantWithRelations = AppOwnerGrant & AppOwnerGrantRelations; +export type AppGrantWithRelations = AppGrant & AppGrantRelations; +export type OrgMembershipWithRelations = OrgMembership & OrgMembershipRelations; +export type OrgMemberWithRelations = OrgMember & OrgMemberRelations; +export type OrgAdminGrantWithRelations = OrgAdminGrant & OrgAdminGrantRelations; +export type OrgOwnerGrantWithRelations = OrgOwnerGrant & OrgOwnerGrantRelations; +export type OrgGrantWithRelations = OrgGrant & OrgGrantRelations; +export type AppLimitWithRelations = AppLimit & AppLimitRelations; +export type OrgLimitWithRelations = OrgLimit & OrgLimitRelations; +export type AppStepWithRelations = AppStep & AppStepRelations; +export type AppAchievementWithRelations = AppAchievement & AppAchievementRelations; +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 RoleTypeWithRelations = RoleType & RoleTypeRelations; +export type OrgPermissionDefaultWithRelations = OrgPermissionDefault & + OrgPermissionDefaultRelations; +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 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 SqlMigrationWithRelations = SqlMigration & SqlMigrationRelations; +export type AstMigrationWithRelations = AstMigration & AstMigrationRelations; +export type AppMembershipWithRelations = AppMembership & AppMembershipRelations; +export type UserWithRelations = User & UserRelations; +export type HierarchyModuleWithRelations = HierarchyModule & HierarchyModuleRelations; +// ============ Entity Select Types ============ +export type GetAllRecordSelect = { + path?: boolean; + data?: boolean; +}; +export type AppPermissionSelect = { + id?: boolean; + name?: boolean; + bitnum?: boolean; + bitstr?: boolean; + description?: boolean; +}; +export type OrgPermissionSelect = { + id?: boolean; + name?: boolean; + bitnum?: boolean; + bitstr?: boolean; + description?: boolean; +}; +export type ObjectSelect = { + hashUuid?: boolean; + id?: boolean; + databaseId?: boolean; + kids?: boolean; + ktree?: boolean; + data?: boolean; + frzn?: boolean; + createdAt?: boolean; +}; +export type AppLevelRequirementSelect = { + id?: boolean; + name?: boolean; + level?: boolean; + description?: boolean; + requiredCount?: boolean; + priority?: boolean; + createdAt?: boolean; + updatedAt?: boolean; +}; +export type DatabaseSelect = { + id?: boolean; + ownerId?: boolean; + schemaHash?: boolean; + name?: boolean; + label?: boolean; + hash?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + owner?: { + select: UserSelect; + }; + hierarchyModule?: { + select: HierarchyModuleSelect; + }; + schemas?: { + select: SchemaSelect; + first?: number; + filter?: SchemaFilter; + orderBy?: SchemaOrderBy[]; + }; + tables?: { + select: TableSelect; + first?: number; + filter?: TableFilter; + orderBy?: TableOrderBy[]; + }; + checkConstraints?: { + select: CheckConstraintSelect; + first?: number; + filter?: CheckConstraintFilter; + orderBy?: CheckConstraintOrderBy[]; + }; + fields?: { + select: FieldSelect; + first?: number; + filter?: FieldFilter; + orderBy?: FieldOrderBy[]; + }; + foreignKeyConstraints?: { + select: ForeignKeyConstraintSelect; + first?: number; + filter?: ForeignKeyConstraintFilter; + orderBy?: ForeignKeyConstraintOrderBy[]; + }; + fullTextSearches?: { + select: FullTextSearchSelect; + first?: number; + filter?: FullTextSearchFilter; + orderBy?: FullTextSearchOrderBy[]; + }; + indices?: { + select: IndexSelect; + first?: number; + filter?: IndexFilter; + orderBy?: IndexOrderBy[]; + }; + limitFunctions?: { + select: LimitFunctionSelect; + first?: number; + filter?: LimitFunctionFilter; + orderBy?: LimitFunctionOrderBy[]; + }; + policies?: { + select: PolicySelect; + first?: number; + filter?: PolicyFilter; + orderBy?: PolicyOrderBy[]; + }; + primaryKeyConstraints?: { + select: PrimaryKeyConstraintSelect; + first?: number; + filter?: PrimaryKeyConstraintFilter; + orderBy?: PrimaryKeyConstraintOrderBy[]; + }; + procedures?: { + select: ProcedureSelect; + first?: number; + filter?: ProcedureFilter; + orderBy?: ProcedureOrderBy[]; + }; + schemaGrants?: { + select: SchemaGrantSelect; + first?: number; + filter?: SchemaGrantFilter; + orderBy?: SchemaGrantOrderBy[]; + }; + tableGrants?: { + select: TableGrantSelect; + first?: number; + filter?: TableGrantFilter; + orderBy?: TableGrantOrderBy[]; + }; + triggerFunctions?: { + select: TriggerFunctionSelect; + first?: number; + filter?: TriggerFunctionFilter; + orderBy?: TriggerFunctionOrderBy[]; + }; + triggers?: { + select: TriggerSelect; + first?: number; + filter?: TriggerFilter; + orderBy?: TriggerOrderBy[]; + }; + uniqueConstraints?: { + select: UniqueConstraintSelect; + first?: number; + filter?: UniqueConstraintFilter; + orderBy?: UniqueConstraintOrderBy[]; + }; + views?: { + select: ViewSelect; + first?: number; + filter?: ViewFilter; + orderBy?: ViewOrderBy[]; + }; + viewGrants?: { + select: ViewGrantSelect; + first?: number; + filter?: ViewGrantFilter; + orderBy?: ViewGrantOrderBy[]; + }; + viewRules?: { + select: ViewRuleSelect; + first?: number; + filter?: ViewRuleFilter; + orderBy?: ViewRuleOrderBy[]; + }; + apis?: { + select: ApiSelect; + first?: number; + filter?: ApiFilter; + orderBy?: ApiOrderBy[]; + }; + apiModules?: { + select: ApiModuleSelect; + first?: number; + filter?: ApiModuleFilter; + orderBy?: ApiModuleOrderBy[]; + }; + apiSchemas?: { + select: ApiSchemaSelect; + first?: number; + filter?: ApiSchemaFilter; + orderBy?: ApiSchemaOrderBy[]; + }; + sites?: { + select: SiteSelect; + first?: number; + filter?: SiteFilter; + orderBy?: SiteOrderBy[]; + }; + apps?: { + select: AppSelect; + first?: number; + filter?: AppFilter; + orderBy?: AppOrderBy[]; + }; + domains?: { + select: DomainSelect; + first?: number; + filter?: DomainFilter; + orderBy?: DomainOrderBy[]; + }; + siteMetadata?: { + select: SiteMetadatumSelect; + first?: number; + filter?: SiteMetadatumFilter; + orderBy?: SiteMetadatumOrderBy[]; + }; + siteModules?: { + select: SiteModuleSelect; + first?: number; + filter?: SiteModuleFilter; + orderBy?: SiteModuleOrderBy[]; + }; + siteThemes?: { + select: SiteThemeSelect; + first?: number; + filter?: SiteThemeFilter; + orderBy?: SiteThemeOrderBy[]; + }; + connectedAccountsModules?: { + select: ConnectedAccountsModuleSelect; + first?: number; + filter?: ConnectedAccountsModuleFilter; + orderBy?: ConnectedAccountsModuleOrderBy[]; + }; + cryptoAddressesModules?: { + select: CryptoAddressesModuleSelect; + first?: number; + filter?: CryptoAddressesModuleFilter; + orderBy?: CryptoAddressesModuleOrderBy[]; + }; + cryptoAuthModules?: { + select: CryptoAuthModuleSelect; + first?: number; + filter?: CryptoAuthModuleFilter; + orderBy?: CryptoAuthModuleOrderBy[]; + }; + defaultIdsModules?: { + select: DefaultIdsModuleSelect; + first?: number; + filter?: DefaultIdsModuleFilter; + orderBy?: DefaultIdsModuleOrderBy[]; + }; + denormalizedTableFields?: { + select: DenormalizedTableFieldSelect; + first?: number; + filter?: DenormalizedTableFieldFilter; + orderBy?: DenormalizedTableFieldOrderBy[]; + }; + emailsModules?: { + select: EmailsModuleSelect; + first?: number; + filter?: EmailsModuleFilter; + orderBy?: EmailsModuleOrderBy[]; + }; + encryptedSecretsModules?: { + select: EncryptedSecretsModuleSelect; + first?: number; + filter?: EncryptedSecretsModuleFilter; + orderBy?: EncryptedSecretsModuleOrderBy[]; + }; + fieldModules?: { + select: FieldModuleSelect; + first?: number; + filter?: FieldModuleFilter; + orderBy?: FieldModuleOrderBy[]; + }; + tableModules?: { + select: TableModuleSelect; + first?: number; + filter?: TableModuleFilter; + orderBy?: TableModuleOrderBy[]; + }; + invitesModules?: { + select: InvitesModuleSelect; + first?: number; + filter?: InvitesModuleFilter; + orderBy?: InvitesModuleOrderBy[]; + }; + levelsModules?: { + select: LevelsModuleSelect; + first?: number; + filter?: LevelsModuleFilter; + orderBy?: LevelsModuleOrderBy[]; + }; + limitsModules?: { + select: LimitsModuleSelect; + first?: number; + filter?: LimitsModuleFilter; + orderBy?: LimitsModuleOrderBy[]; + }; + membershipTypesModules?: { + select: MembershipTypesModuleSelect; + first?: number; + filter?: MembershipTypesModuleFilter; + orderBy?: MembershipTypesModuleOrderBy[]; + }; + membershipsModules?: { + select: MembershipsModuleSelect; + first?: number; + filter?: MembershipsModuleFilter; + orderBy?: MembershipsModuleOrderBy[]; + }; + permissionsModules?: { + select: PermissionsModuleSelect; + first?: number; + filter?: PermissionsModuleFilter; + orderBy?: PermissionsModuleOrderBy[]; + }; + phoneNumbersModules?: { + select: PhoneNumbersModuleSelect; + first?: number; + filter?: PhoneNumbersModuleFilter; + orderBy?: PhoneNumbersModuleOrderBy[]; + }; + profilesModules?: { + select: ProfilesModuleSelect; + first?: number; + filter?: ProfilesModuleFilter; + orderBy?: ProfilesModuleOrderBy[]; + }; + rlsModules?: { + select: RlsModuleSelect; + first?: number; + filter?: RlsModuleFilter; + orderBy?: RlsModuleOrderBy[]; + }; + secretsModules?: { + select: SecretsModuleSelect; + first?: number; + filter?: SecretsModuleFilter; + orderBy?: SecretsModuleOrderBy[]; + }; + sessionsModules?: { + select: SessionsModuleSelect; + first?: number; + filter?: SessionsModuleFilter; + orderBy?: SessionsModuleOrderBy[]; + }; + userAuthModules?: { + select: UserAuthModuleSelect; + first?: number; + filter?: UserAuthModuleFilter; + orderBy?: UserAuthModuleOrderBy[]; + }; + usersModules?: { + select: UsersModuleSelect; + first?: number; + filter?: UsersModuleFilter; + orderBy?: UsersModuleOrderBy[]; + }; + uuidModules?: { + select: UuidModuleSelect; + first?: number; + filter?: UuidModuleFilter; + orderBy?: UuidModuleOrderBy[]; + }; + tableTemplateModules?: { + select: TableTemplateModuleSelect; + first?: number; + filter?: TableTemplateModuleFilter; + orderBy?: TableTemplateModuleOrderBy[]; + }; + databaseProvisionModules?: { + select: DatabaseProvisionModuleSelect; + first?: number; + filter?: DatabaseProvisionModuleFilter; + orderBy?: DatabaseProvisionModuleOrderBy[]; + }; +}; +export type SchemaSelect = { + id?: boolean; + databaseId?: boolean; + name?: boolean; + schemaName?: boolean; + label?: boolean; + description?: boolean; + smartTags?: boolean; + category?: boolean; + module?: boolean; + scope?: boolean; + tags?: boolean; + isPublic?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; + tables?: { + select: TableSelect; + first?: number; + filter?: TableFilter; + orderBy?: TableOrderBy[]; + }; + schemaGrants?: { + select: SchemaGrantSelect; + first?: number; + filter?: SchemaGrantFilter; + orderBy?: SchemaGrantOrderBy[]; + }; + views?: { + select: ViewSelect; + first?: number; + filter?: ViewFilter; + orderBy?: ViewOrderBy[]; + }; + apiSchemas?: { + select: ApiSchemaSelect; + first?: number; + filter?: ApiSchemaFilter; + orderBy?: ApiSchemaOrderBy[]; + }; + tableTemplateModulesByPrivateSchemaId?: { + select: TableTemplateModuleSelect; + first?: number; + filter?: TableTemplateModuleFilter; + orderBy?: TableTemplateModuleOrderBy[]; + }; + tableTemplateModules?: { + select: TableTemplateModuleSelect; + first?: number; + filter?: TableTemplateModuleFilter; + orderBy?: TableTemplateModuleOrderBy[]; + }; +}; +export type TableSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + name?: boolean; + label?: boolean; + description?: boolean; + smartTags?: boolean; + category?: boolean; + module?: boolean; + scope?: boolean; + useRls?: boolean; + timestamps?: boolean; + peoplestamps?: boolean; + pluralName?: boolean; + singularName?: boolean; + tags?: boolean; + inheritsId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; + schema?: { + select: SchemaSelect; + }; + inherits?: { + select: TableSelect; + }; + checkConstraints?: { + select: CheckConstraintSelect; + first?: number; + filter?: CheckConstraintFilter; + orderBy?: CheckConstraintOrderBy[]; + }; + fields?: { + select: FieldSelect; + first?: number; + filter?: FieldFilter; + orderBy?: FieldOrderBy[]; + }; + foreignKeyConstraints?: { + select: ForeignKeyConstraintSelect; + first?: number; + filter?: ForeignKeyConstraintFilter; + orderBy?: ForeignKeyConstraintOrderBy[]; + }; + fullTextSearches?: { + select: FullTextSearchSelect; + first?: number; + filter?: FullTextSearchFilter; + orderBy?: FullTextSearchOrderBy[]; + }; + indices?: { + select: IndexSelect; + first?: number; + filter?: IndexFilter; + orderBy?: IndexOrderBy[]; + }; + limitFunctions?: { + select: LimitFunctionSelect; + first?: number; + filter?: LimitFunctionFilter; + orderBy?: LimitFunctionOrderBy[]; + }; + policies?: { + select: PolicySelect; + first?: number; + filter?: PolicyFilter; + orderBy?: PolicyOrderBy[]; + }; + primaryKeyConstraints?: { + select: PrimaryKeyConstraintSelect; + first?: number; + filter?: PrimaryKeyConstraintFilter; + orderBy?: PrimaryKeyConstraintOrderBy[]; + }; + tableGrants?: { + select: TableGrantSelect; + first?: number; + filter?: TableGrantFilter; + orderBy?: TableGrantOrderBy[]; + }; + triggers?: { + select: TriggerSelect; + first?: number; + filter?: TriggerFilter; + orderBy?: TriggerOrderBy[]; + }; + uniqueConstraints?: { + select: UniqueConstraintSelect; + first?: number; + filter?: UniqueConstraintFilter; + orderBy?: UniqueConstraintOrderBy[]; + }; + views?: { + select: ViewSelect; + first?: number; + filter?: ViewFilter; + orderBy?: ViewOrderBy[]; + }; + viewTables?: { + select: ViewTableSelect; + first?: number; + filter?: ViewTableFilter; + orderBy?: ViewTableOrderBy[]; + }; + tableModules?: { + select: TableModuleSelect; + first?: number; + filter?: TableModuleFilter; + orderBy?: TableModuleOrderBy[]; + }; + tableTemplateModulesByOwnerTableId?: { + select: TableTemplateModuleSelect; + first?: number; + filter?: TableTemplateModuleFilter; + orderBy?: TableTemplateModuleOrderBy[]; + }; + tableTemplateModules?: { + select: TableTemplateModuleSelect; + first?: number; + filter?: TableTemplateModuleFilter; + orderBy?: TableTemplateModuleOrderBy[]; + }; +}; +export type CheckConstraintSelect = { + id?: boolean; + databaseId?: boolean; + tableId?: boolean; + name?: boolean; + type?: boolean; + fieldIds?: boolean; + expr?: boolean; + smartTags?: boolean; + category?: boolean; + module?: boolean; + scope?: boolean; + tags?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type FieldSelect = { + id?: boolean; + databaseId?: boolean; + tableId?: boolean; + name?: boolean; + label?: boolean; + description?: boolean; + smartTags?: boolean; + isRequired?: boolean; + defaultValue?: boolean; + defaultValueAst?: boolean; + isHidden?: boolean; + type?: boolean; + fieldOrder?: boolean; + regexp?: boolean; + chk?: boolean; + chkExpr?: boolean; + min?: boolean; + max?: boolean; + tags?: boolean; + category?: boolean; + module?: boolean; + scope?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type ForeignKeyConstraintSelect = { + id?: boolean; + databaseId?: boolean; + tableId?: boolean; + name?: boolean; + description?: boolean; + smartTags?: boolean; + type?: boolean; + fieldIds?: boolean; + refTableId?: boolean; + refFieldIds?: boolean; + deleteAction?: boolean; + updateAction?: boolean; + category?: boolean; + module?: boolean; + scope?: boolean; + tags?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; + refTable?: { + select: TableSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type FullTextSearchSelect = { + id?: boolean; + databaseId?: boolean; + tableId?: boolean; + fieldId?: boolean; + fieldIds?: boolean; + weights?: boolean; + langs?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type IndexSelect = { + id?: boolean; + databaseId?: boolean; + tableId?: boolean; + name?: boolean; + fieldIds?: boolean; + includeFieldIds?: boolean; + accessMethod?: boolean; + indexParams?: boolean; + whereClause?: boolean; + isUnique?: boolean; + smartTags?: boolean; + category?: boolean; + module?: boolean; + scope?: boolean; + tags?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; + table?: { + 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; + privilege?: boolean; + permissive?: boolean; + disabled?: boolean; + policyType?: boolean; + data?: boolean; + smartTags?: boolean; + category?: boolean; + module?: boolean; + scope?: boolean; + tags?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type PrimaryKeyConstraintSelect = { + id?: boolean; + databaseId?: boolean; + tableId?: boolean; + name?: boolean; + type?: boolean; + fieldIds?: boolean; + smartTags?: boolean; + category?: boolean; + module?: boolean; + scope?: boolean; + tags?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type TableGrantSelect = { + id?: boolean; + databaseId?: boolean; + tableId?: boolean; + privilege?: boolean; + roleName?: boolean; + fieldIds?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type TriggerSelect = { + id?: boolean; + databaseId?: boolean; + tableId?: boolean; + name?: boolean; + event?: boolean; + functionName?: boolean; + smartTags?: boolean; + category?: boolean; + module?: boolean; + scope?: boolean; + tags?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type UniqueConstraintSelect = { + id?: boolean; + databaseId?: boolean; + tableId?: boolean; + name?: boolean; + description?: boolean; + smartTags?: boolean; + type?: boolean; + fieldIds?: boolean; + category?: boolean; + module?: boolean; + scope?: boolean; + tags?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type ViewSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + name?: boolean; + tableId?: boolean; + viewType?: boolean; + data?: boolean; + filterType?: boolean; + filterData?: boolean; + securityInvoker?: boolean; + isReadOnly?: boolean; + smartTags?: boolean; + category?: boolean; + module?: boolean; + scope?: boolean; + tags?: boolean; + database?: { + select: DatabaseSelect; + }; + schema?: { + select: SchemaSelect; + }; + table?: { + select: TableSelect; + }; + viewTables?: { + select: ViewTableSelect; + first?: number; + filter?: ViewTableFilter; + orderBy?: ViewTableOrderBy[]; + }; + viewGrants?: { + select: ViewGrantSelect; + first?: number; + filter?: ViewGrantFilter; + orderBy?: ViewGrantOrderBy[]; + }; + viewRules?: { + select: ViewRuleSelect; + first?: number; + filter?: ViewRuleFilter; + orderBy?: ViewRuleOrderBy[]; + }; +}; +export type ViewTableSelect = { + id?: boolean; + viewId?: boolean; + tableId?: boolean; + joinOrder?: boolean; + table?: { + select: TableSelect; + }; + view?: { + select: ViewSelect; + }; +}; +export type ViewGrantSelect = { + id?: boolean; + databaseId?: boolean; + viewId?: boolean; + roleName?: boolean; + privilege?: boolean; + withGrantOption?: boolean; + database?: { + select: DatabaseSelect; + }; + view?: { + select: ViewSelect; + }; +}; +export type ViewRuleSelect = { + id?: boolean; + databaseId?: boolean; + viewId?: boolean; + name?: boolean; + event?: boolean; + action?: boolean; + database?: { + select: DatabaseSelect; + }; + view?: { + select: ViewSelect; + }; +}; +export type TableModuleSelect = { + id?: boolean; + databaseId?: boolean; + privateSchemaId?: boolean; + tableId?: boolean; + nodeType?: boolean; + data?: boolean; + fields?: boolean; + database?: { + select: DatabaseSelect; + }; + privateSchema?: { + select: SchemaSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type TableTemplateModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + tableId?: boolean; + ownerTableId?: boolean; + tableName?: boolean; + nodeType?: boolean; + data?: boolean; + database?: { + select: DatabaseSelect; + }; + ownerTable?: { + select: TableSelect; + }; + privateSchema?: { + select: SchemaSelect; + }; + schema?: { + select: SchemaSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type SchemaGrantSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + granteeName?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; + schema?: { + select: SchemaSelect; + }; +}; +export type ApiSchemaSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + apiId?: boolean; + api?: { + select: ApiSelect; + }; + database?: { + select: DatabaseSelect; + }; + schema?: { + select: SchemaSelect; + }; +}; +export type ApiModuleSelect = { + id?: boolean; + databaseId?: boolean; + apiId?: boolean; + name?: boolean; + data?: boolean; + api?: { + select: ApiSelect; + }; + database?: { + select: DatabaseSelect; + }; +}; +export type DomainSelect = { + id?: boolean; + databaseId?: boolean; + apiId?: boolean; + siteId?: boolean; + subdomain?: boolean; + domain?: boolean; + api?: { + select: ApiSelect; + }; + database?: { + select: DatabaseSelect; + }; + site?: { + select: SiteSelect; + }; +}; +export type SiteMetadatumSelect = { + id?: boolean; + databaseId?: boolean; + siteId?: boolean; + title?: boolean; + description?: boolean; + ogImage?: boolean; + database?: { + select: DatabaseSelect; + }; + site?: { + select: SiteSelect; + }; +}; +export type SiteModuleSelect = { + id?: boolean; + databaseId?: boolean; + siteId?: boolean; + name?: boolean; + data?: boolean; + database?: { + select: DatabaseSelect; + }; + site?: { + select: SiteSelect; + }; +}; +export type SiteThemeSelect = { + id?: boolean; + databaseId?: boolean; + siteId?: boolean; + theme?: boolean; + database?: { + select: DatabaseSelect; + }; + site?: { + 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; + name?: boolean; + code?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; + }; +}; +export type ApiSelect = { + id?: boolean; + databaseId?: boolean; + name?: boolean; + dbname?: boolean; + roleName?: boolean; + anonRole?: boolean; + isPublic?: boolean; + database?: { + select: DatabaseSelect; + }; + rlsModule?: { + select: RlsModuleSelect; + }; + apiModules?: { + select: ApiModuleSelect; + first?: number; + filter?: ApiModuleFilter; + orderBy?: ApiModuleOrderBy[]; + }; + apiSchemas?: { + select: ApiSchemaSelect; + first?: number; + filter?: ApiSchemaFilter; + orderBy?: ApiSchemaOrderBy[]; + }; + domains?: { + select: DomainSelect; + first?: number; + filter?: DomainFilter; + orderBy?: DomainOrderBy[]; + }; +}; +export type SiteSelect = { + id?: boolean; + databaseId?: boolean; + title?: boolean; + description?: boolean; + ogImage?: boolean; + favicon?: boolean; + appleTouchIcon?: boolean; + logo?: boolean; + dbname?: boolean; + database?: { + select: DatabaseSelect; + }; + app?: { + select: AppSelect; + }; + domains?: { + select: DomainSelect; + first?: number; + filter?: DomainFilter; + orderBy?: DomainOrderBy[]; + }; + siteMetadata?: { + select: SiteMetadatumSelect; + first?: number; + filter?: SiteMetadatumFilter; + orderBy?: SiteMetadatumOrderBy[]; + }; + siteModules?: { + select: SiteModuleSelect; + first?: number; + filter?: SiteModuleFilter; + orderBy?: SiteModuleOrderBy[]; + }; + siteThemes?: { + select: SiteThemeSelect; + first?: number; + filter?: SiteThemeFilter; + orderBy?: SiteThemeOrderBy[]; + }; +}; +export type AppSelect = { + id?: boolean; + databaseId?: boolean; + siteId?: boolean; + name?: boolean; + appImage?: boolean; + appStoreLink?: boolean; + appStoreId?: boolean; + appIdPrefix?: boolean; + playStoreLink?: boolean; + site?: { + select: SiteSelect; + }; + database?: { + select: DatabaseSelect; + }; +}; +export type ConnectedAccountsModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + tableId?: boolean; + ownerTableId?: boolean; + tableName?: boolean; + database?: { + select: DatabaseSelect; + }; + ownerTable?: { + select: TableSelect; + }; + privateSchema?: { + select: SchemaSelect; + }; + schema?: { + select: SchemaSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type CryptoAddressesModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + tableId?: boolean; + ownerTableId?: boolean; + tableName?: boolean; + cryptoNetwork?: boolean; + database?: { + select: DatabaseSelect; + }; + ownerTable?: { + select: TableSelect; + }; + privateSchema?: { + select: SchemaSelect; + }; + schema?: { + select: SchemaSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type CryptoAuthModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + usersTableId?: boolean; + secretsTableId?: boolean; + sessionsTableId?: boolean; + sessionCredentialsTableId?: boolean; + addressesTableId?: boolean; + userField?: boolean; + cryptoNetwork?: boolean; + signInRequestChallenge?: boolean; + signInRecordFailure?: boolean; + signUpWithKey?: boolean; + signInWithChallenge?: boolean; + database?: { + select: DatabaseSelect; + }; + schema?: { + select: SchemaSelect; + }; + secretsTable?: { + select: TableSelect; + }; + sessionCredentialsTable?: { + select: TableSelect; + }; + sessionsTable?: { + select: TableSelect; + }; + usersTable?: { + select: TableSelect; + }; +}; +export type DefaultIdsModuleSelect = { + id?: boolean; + databaseId?: boolean; + database?: { + select: DatabaseSelect; + }; +}; +export type DenormalizedTableFieldSelect = { + id?: boolean; + databaseId?: boolean; + tableId?: boolean; + fieldId?: boolean; + setIds?: boolean; + refTableId?: boolean; + refFieldId?: boolean; + refIds?: boolean; + useUpdates?: boolean; + updateDefaults?: boolean; + funcName?: boolean; + funcOrder?: boolean; + database?: { + select: DatabaseSelect; + }; + field?: { + select: FieldSelect; + }; + refField?: { + select: FieldSelect; + }; + refTable?: { + select: TableSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type EmailsModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + tableId?: boolean; + ownerTableId?: boolean; + tableName?: boolean; + database?: { + select: DatabaseSelect; + }; + ownerTable?: { + select: TableSelect; + }; + privateSchema?: { + select: SchemaSelect; + }; + schema?: { + select: SchemaSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type EncryptedSecretsModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + tableId?: boolean; + tableName?: boolean; + database?: { + select: DatabaseSelect; + }; + schema?: { + select: SchemaSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type FieldModuleSelect = { + id?: boolean; + databaseId?: boolean; + privateSchemaId?: boolean; + tableId?: boolean; + fieldId?: boolean; + nodeType?: boolean; + data?: boolean; + triggers?: boolean; + functions?: boolean; + database?: { + select: DatabaseSelect; + }; + field?: { + select: FieldSelect; + }; + privateSchema?: { + select: SchemaSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type InvitesModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + emailsTableId?: boolean; + usersTableId?: boolean; + invitesTableId?: boolean; + claimedInvitesTableId?: boolean; + invitesTableName?: boolean; + claimedInvitesTableName?: boolean; + submitInviteCodeFunction?: boolean; + prefix?: boolean; + membershipType?: boolean; + entityTableId?: boolean; + claimedInvitesTable?: { + select: TableSelect; + }; + database?: { + select: DatabaseSelect; + }; + emailsTable?: { + select: TableSelect; + }; + entityTable?: { + select: TableSelect; + }; + invitesTable?: { + select: TableSelect; + }; + privateSchema?: { + select: SchemaSelect; + }; + schema?: { + select: SchemaSelect; + }; + usersTable?: { + select: TableSelect; + }; +}; +export type LevelsModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + stepsTableId?: boolean; + stepsTableName?: boolean; + achievementsTableId?: boolean; + achievementsTableName?: boolean; + levelsTableId?: boolean; + levelsTableName?: boolean; + levelRequirementsTableId?: boolean; + levelRequirementsTableName?: boolean; + completedStep?: boolean; + incompletedStep?: boolean; + tgAchievement?: boolean; + tgAchievementToggle?: boolean; + tgAchievementToggleBoolean?: boolean; + tgAchievementBoolean?: boolean; + upsertAchievement?: boolean; + tgUpdateAchievements?: boolean; + stepsRequired?: boolean; + levelAchieved?: boolean; + prefix?: boolean; + membershipType?: boolean; + entityTableId?: boolean; + actorTableId?: boolean; + achievementsTable?: { + select: TableSelect; + }; + actorTable?: { + select: TableSelect; + }; + database?: { + select: DatabaseSelect; + }; + entityTable?: { + select: TableSelect; + }; + levelRequirementsTable?: { + select: TableSelect; + }; + levelsTable?: { + select: TableSelect; + }; + privateSchema?: { + select: SchemaSelect; + }; + schema?: { + select: SchemaSelect; + }; + stepsTable?: { + select: TableSelect; + }; +}; +export type LimitsModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + tableId?: boolean; + tableName?: boolean; + defaultTableId?: boolean; + defaultTableName?: boolean; + limitIncrementFunction?: boolean; + limitDecrementFunction?: boolean; + limitIncrementTrigger?: boolean; + limitDecrementTrigger?: boolean; + limitUpdateTrigger?: boolean; + limitCheckFunction?: boolean; + prefix?: boolean; + membershipType?: boolean; + entityTableId?: boolean; + actorTableId?: boolean; + actorTable?: { + select: TableSelect; + }; + database?: { + select: DatabaseSelect; + }; + defaultTable?: { + select: TableSelect; + }; + entityTable?: { + select: TableSelect; + }; + privateSchema?: { + select: SchemaSelect; + }; + schema?: { + select: SchemaSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type MembershipTypesModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + tableId?: boolean; + tableName?: boolean; + database?: { + select: DatabaseSelect; + }; + schema?: { + select: SchemaSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type MembershipsModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + membershipsTableId?: boolean; + membershipsTableName?: boolean; + membersTableId?: boolean; + membersTableName?: boolean; + membershipDefaultsTableId?: boolean; + membershipDefaultsTableName?: boolean; + grantsTableId?: boolean; + grantsTableName?: boolean; + actorTableId?: boolean; + limitsTableId?: boolean; + defaultLimitsTableId?: boolean; + permissionsTableId?: boolean; + defaultPermissionsTableId?: boolean; + sprtTableId?: boolean; + adminGrantsTableId?: boolean; + adminGrantsTableName?: boolean; + ownerGrantsTableId?: boolean; + ownerGrantsTableName?: boolean; + membershipType?: boolean; + entityTableId?: boolean; + entityTableOwnerId?: boolean; + prefix?: boolean; + actorMaskCheck?: boolean; + actorPermCheck?: boolean; + entityIdsByMask?: boolean; + entityIdsByPerm?: boolean; + entityIdsFunction?: boolean; + actorTable?: { + select: TableSelect; + }; + database?: { + select: DatabaseSelect; + }; + defaultLimitsTable?: { + select: TableSelect; + }; + defaultPermissionsTable?: { + select: TableSelect; + }; + entityTable?: { + select: TableSelect; + }; + entityTableOwner?: { + select: FieldSelect; + }; + grantsTable?: { + select: TableSelect; + }; + limitsTable?: { + select: TableSelect; + }; + membersTable?: { + select: TableSelect; + }; + membershipDefaultsTable?: { + select: TableSelect; + }; + membershipsTable?: { + select: TableSelect; + }; + permissionsTable?: { + select: TableSelect; + }; + privateSchema?: { + select: SchemaSelect; + }; + schema?: { + select: SchemaSelect; + }; + sprtTable?: { + select: TableSelect; + }; +}; +export type PermissionsModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + tableId?: boolean; + tableName?: boolean; + defaultTableId?: boolean; + defaultTableName?: boolean; + bitlen?: boolean; + membershipType?: boolean; + entityTableId?: boolean; + actorTableId?: boolean; + prefix?: boolean; + getPaddedMask?: boolean; + getMask?: boolean; + getByMask?: boolean; + getMaskByName?: boolean; + actorTable?: { + select: TableSelect; + }; + database?: { + select: DatabaseSelect; + }; + defaultTable?: { + select: TableSelect; + }; + entityTable?: { + select: TableSelect; + }; + privateSchema?: { + select: SchemaSelect; + }; + schema?: { + select: SchemaSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type PhoneNumbersModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + tableId?: boolean; + ownerTableId?: boolean; + tableName?: boolean; + database?: { + select: DatabaseSelect; + }; + ownerTable?: { + select: TableSelect; + }; + privateSchema?: { + select: SchemaSelect; + }; + schema?: { + select: SchemaSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type ProfilesModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + tableId?: boolean; + tableName?: boolean; + profilePermissionsTableId?: boolean; + profilePermissionsTableName?: boolean; + profileGrantsTableId?: boolean; + profileGrantsTableName?: boolean; + profileDefinitionGrantsTableId?: boolean; + profileDefinitionGrantsTableName?: boolean; + bitlen?: boolean; + membershipType?: boolean; + entityTableId?: boolean; + actorTableId?: boolean; + permissionsTableId?: boolean; + membershipsTableId?: boolean; + prefix?: boolean; + actorTable?: { + select: TableSelect; + }; + database?: { + select: DatabaseSelect; + }; + entityTable?: { + select: TableSelect; + }; + membershipsTable?: { + select: TableSelect; + }; + permissionsTable?: { + select: TableSelect; + }; + privateSchema?: { + select: SchemaSelect; + }; + profileDefinitionGrantsTable?: { + select: TableSelect; + }; + profileGrantsTable?: { + select: TableSelect; + }; + profilePermissionsTable?: { + select: TableSelect; + }; + schema?: { + select: SchemaSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type RlsModuleSelect = { + id?: boolean; + databaseId?: boolean; + apiId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + sessionCredentialsTableId?: boolean; + sessionsTableId?: boolean; + usersTableId?: boolean; + authenticate?: boolean; + authenticateStrict?: boolean; + currentRole?: boolean; + currentRoleId?: boolean; + api?: { + select: ApiSelect; + }; + database?: { + select: DatabaseSelect; + }; + privateSchema?: { + select: SchemaSelect; + }; + schema?: { + select: SchemaSelect; + }; + sessionCredentialsTable?: { + select: TableSelect; + }; + sessionsTable?: { + select: TableSelect; + }; + usersTable?: { + select: TableSelect; + }; +}; +export type SecretsModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + tableId?: boolean; + tableName?: boolean; + database?: { + select: DatabaseSelect; + }; + schema?: { + select: SchemaSelect; + }; + table?: { + select: TableSelect; + }; +}; +export type SessionsModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + sessionsTableId?: boolean; + sessionCredentialsTableId?: boolean; + authSettingsTableId?: boolean; + usersTableId?: boolean; + sessionsDefaultExpiration?: boolean; + sessionsTable?: boolean; + sessionCredentialsTable?: boolean; + authSettingsTable?: boolean; + authSettingsTableByAuthSettingsTableId?: { + select: TableSelect; + }; + database?: { + select: DatabaseSelect; + }; + schema?: { + select: SchemaSelect; + }; + sessionCredentialsTableBySessionCredentialsTableId?: { + select: TableSelect; + }; + sessionsTableBySessionsTableId?: { + select: TableSelect; + }; + usersTable?: { + select: TableSelect; + }; +}; +export type UserAuthModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + emailsTableId?: boolean; + usersTableId?: boolean; + secretsTableId?: boolean; + encryptedTableId?: boolean; + sessionsTableId?: boolean; + sessionCredentialsTableId?: boolean; + auditsTableId?: boolean; + auditsTableName?: boolean; + signInFunction?: boolean; + signUpFunction?: boolean; + signOutFunction?: boolean; + setPasswordFunction?: boolean; + resetPasswordFunction?: boolean; + forgotPasswordFunction?: boolean; + sendVerificationEmailFunction?: boolean; + verifyEmailFunction?: boolean; + verifyPasswordFunction?: boolean; + checkPasswordFunction?: boolean; + sendAccountDeletionEmailFunction?: boolean; + deleteAccountFunction?: boolean; + signInOneTimeTokenFunction?: boolean; + oneTimeTokenFunction?: boolean; + extendTokenExpires?: boolean; + database?: { + select: DatabaseSelect; + }; + emailsTable?: { + select: TableSelect; + }; + encryptedTable?: { + select: TableSelect; + }; + schema?: { + select: SchemaSelect; + }; + secretsTable?: { + select: TableSelect; + }; + sessionCredentialsTable?: { + select: TableSelect; + }; + sessionsTable?: { + select: TableSelect; + }; + usersTable?: { + select: TableSelect; + }; +}; +export type UsersModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + tableId?: boolean; + tableName?: boolean; + typeTableId?: boolean; + typeTableName?: boolean; + database?: { + select: DatabaseSelect; + }; + schema?: { + select: SchemaSelect; + }; + table?: { + select: TableSelect; + }; + typeTable?: { + select: TableSelect; + }; +}; +export type UuidModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + uuidFunction?: boolean; + uuidSeed?: boolean; + database?: { + select: DatabaseSelect; + }; + schema?: { + select: SchemaSelect; + }; +}; +export type DatabaseProvisionModuleSelect = { + id?: boolean; + databaseName?: boolean; + ownerId?: boolean; + subdomain?: boolean; + domain?: boolean; + modules?: boolean; + options?: boolean; + bootstrapUser?: boolean; + status?: boolean; + errorMessage?: boolean; + databaseId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + completedAt?: boolean; + database?: { + select: DatabaseSelect; + }; +}; +export type AppAdminGrantSelect = { + id?: boolean; + isGrant?: boolean; + actorId?: boolean; + grantorId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + actor?: { + select: UserSelect; + }; + grantor?: { + select: UserSelect; + }; +}; +export type AppOwnerGrantSelect = { + id?: boolean; + isGrant?: boolean; + actorId?: boolean; + grantorId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + actor?: { + select: UserSelect; + }; + grantor?: { + select: UserSelect; + }; +}; +export type AppGrantSelect = { + id?: boolean; + permissions?: boolean; + isGrant?: boolean; + actorId?: boolean; + grantorId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + actor?: { + select: UserSelect; + }; + grantor?: { + select: UserSelect; + }; +}; +export type OrgMembershipSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + isBanned?: boolean; + isDisabled?: boolean; + isActive?: boolean; + isOwner?: boolean; + isAdmin?: boolean; + permissions?: boolean; + granted?: boolean; + actorId?: boolean; + entityId?: boolean; + actor?: { + select: UserSelect; + }; + entity?: { + select: UserSelect; + }; +}; +export type OrgMemberSelect = { + id?: boolean; + isAdmin?: boolean; + actorId?: boolean; + entityId?: boolean; + actor?: { + select: UserSelect; + }; + entity?: { + select: UserSelect; + }; +}; +export type OrgAdminGrantSelect = { + id?: boolean; + isGrant?: boolean; + actorId?: boolean; + entityId?: boolean; + grantorId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + actor?: { + select: UserSelect; + }; + entity?: { + select: UserSelect; + }; + grantor?: { + select: UserSelect; + }; +}; +export type OrgOwnerGrantSelect = { + id?: boolean; + isGrant?: boolean; + actorId?: boolean; + entityId?: boolean; + grantorId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + actor?: { + select: UserSelect; + }; + entity?: { + select: UserSelect; + }; + grantor?: { + select: UserSelect; + }; +}; +export type OrgGrantSelect = { + id?: boolean; + permissions?: boolean; + isGrant?: boolean; + actorId?: boolean; + entityId?: boolean; + grantorId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + actor?: { + select: UserSelect; + }; + entity?: { + select: UserSelect; + }; + grantor?: { + select: UserSelect; + }; +}; +export type AppLimitSelect = { + id?: boolean; + name?: boolean; + actorId?: boolean; + num?: boolean; + max?: boolean; + actor?: { + select: UserSelect; + }; +}; +export type OrgLimitSelect = { + id?: boolean; + name?: boolean; + actorId?: boolean; + num?: boolean; + max?: boolean; + entityId?: boolean; + actor?: { + select: UserSelect; + }; + entity?: { + select: UserSelect; + }; +}; +export type AppStepSelect = { + id?: boolean; + actorId?: boolean; + name?: boolean; + count?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + actor?: { + select: UserSelect; + }; +}; +export type AppAchievementSelect = { + id?: boolean; + actorId?: boolean; + name?: boolean; + count?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + actor?: { + select: UserSelect; + }; +}; +export type InviteSelect = { + id?: boolean; + email?: boolean; + senderId?: boolean; + inviteToken?: boolean; + inviteValid?: boolean; + inviteLimit?: boolean; + inviteCount?: boolean; + multiple?: boolean; + data?: boolean; + expiresAt?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + sender?: { + select: UserSelect; + }; +}; +export type ClaimedInviteSelect = { + id?: boolean; + data?: boolean; + senderId?: boolean; + receiverId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + receiver?: { + select: UserSelect; + }; + sender?: { + select: UserSelect; + }; +}; +export type OrgInviteSelect = { + id?: boolean; + email?: boolean; + senderId?: boolean; + receiverId?: boolean; + inviteToken?: boolean; + inviteValid?: boolean; + inviteLimit?: boolean; + inviteCount?: boolean; + multiple?: boolean; + data?: boolean; + expiresAt?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + entityId?: boolean; + entity?: { + select: UserSelect; + }; + receiver?: { + select: UserSelect; + }; + sender?: { + select: UserSelect; + }; +}; +export type OrgClaimedInviteSelect = { + id?: boolean; + data?: boolean; + senderId?: boolean; + receiverId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + entityId?: boolean; + entity?: { + select: UserSelect; + }; + receiver?: { + select: UserSelect; + }; + sender?: { + select: UserSelect; + }; +}; +export type AppPermissionDefaultSelect = { + id?: boolean; + permissions?: boolean; +}; +export type RefSelect = { + id?: boolean; + name?: boolean; + databaseId?: boolean; + storeId?: boolean; + commitId?: boolean; +}; +export type StoreSelect = { + id?: boolean; + name?: boolean; + databaseId?: boolean; + hash?: boolean; + createdAt?: boolean; +}; +export type RoleTypeSelect = { + id?: boolean; + name?: boolean; +}; +export type OrgPermissionDefaultSelect = { + id?: boolean; + permissions?: boolean; + entityId?: boolean; + entity?: { + 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; + address?: boolean; + isVerified?: boolean; + isPrimary?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + owner?: { + select: UserSelect; + }; +}; +export type MembershipTypeSelect = { + id?: boolean; + name?: boolean; + description?: boolean; + prefix?: boolean; +}; +export type ConnectedAccountSelect = { + id?: boolean; + ownerId?: boolean; + service?: boolean; + identifier?: boolean; + details?: boolean; + isVerified?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + owner?: { + select: UserSelect; + }; +}; +export type PhoneNumberSelect = { + id?: boolean; + ownerId?: boolean; + cc?: boolean; + number?: boolean; + isVerified?: boolean; + isPrimary?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + owner?: { + select: UserSelect; + }; +}; +export type AppMembershipDefaultSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + isVerified?: boolean; +}; +export type NodeTypeRegistrySelect = { + name?: boolean; + slug?: boolean; + category?: boolean; + displayName?: boolean; + description?: boolean; + parameterSchema?: boolean; + tags?: boolean; + createdAt?: boolean; + updatedAt?: boolean; +}; +export type CommitSelect = { + id?: boolean; + message?: boolean; + databaseId?: boolean; + storeId?: boolean; + parentIds?: boolean; + authorId?: boolean; + committerId?: boolean; + treeId?: boolean; + date?: boolean; +}; +export type OrgMembershipDefaultSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + entityId?: boolean; + deleteMemberCascadeGroups?: boolean; + createGroupsCascadeMembers?: boolean; + entity?: { + 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; + actorId?: boolean; + origin?: boolean; + userAgent?: boolean; + ipAddress?: boolean; + success?: boolean; + createdAt?: boolean; + actor?: { + select: UserSelect; + }; +}; +export type AppLevelSelect = { + id?: boolean; + name?: boolean; + description?: boolean; + image?: boolean; + ownerId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + owner?: { + select: UserSelect; + }; +}; +export type SqlMigrationSelect = { + id?: boolean; + name?: boolean; + databaseId?: boolean; + deploy?: boolean; + deps?: boolean; + payload?: boolean; + content?: boolean; + revert?: boolean; + verify?: boolean; + createdAt?: boolean; + action?: boolean; + actionId?: boolean; + actorId?: boolean; +}; +export type AstMigrationSelect = { + id?: boolean; + databaseId?: boolean; + name?: boolean; + requires?: boolean; + payload?: boolean; + deploys?: boolean; + deploy?: boolean; + revert?: boolean; + verify?: boolean; + createdAt?: boolean; + action?: boolean; + 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; + displayName?: boolean; + profilePicture?: boolean; + searchTsv?: boolean; + type?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + searchTsvRank?: boolean; + roleType?: { + select: RoleTypeSelect; + }; + appMembershipByActorId?: { + select: AppMembershipSelect; + }; + orgMembershipDefaultByEntityId?: { + select: OrgMembershipDefaultSelect; + }; + ownedDatabases?: { + select: DatabaseSelect; + first?: number; + filter?: DatabaseFilter; + orderBy?: DatabaseOrderBy[]; + }; + appAdminGrantsByGrantorId?: { + select: AppAdminGrantSelect; + first?: number; + filter?: AppAdminGrantFilter; + orderBy?: AppAdminGrantOrderBy[]; + }; + appOwnerGrantsByGrantorId?: { + select: AppOwnerGrantSelect; + first?: number; + filter?: AppOwnerGrantFilter; + orderBy?: AppOwnerGrantOrderBy[]; + }; + appGrantsByGrantorId?: { + select: AppGrantSelect; + first?: number; + filter?: AppGrantFilter; + orderBy?: AppGrantOrderBy[]; + }; + orgMembershipsByActorId?: { + select: OrgMembershipSelect; + first?: number; + filter?: OrgMembershipFilter; + orderBy?: OrgMembershipOrderBy[]; + }; + orgMembershipsByEntityId?: { + select: OrgMembershipSelect; + first?: number; + filter?: OrgMembershipFilter; + orderBy?: OrgMembershipOrderBy[]; + }; + orgMembersByActorId?: { + select: OrgMemberSelect; + first?: number; + filter?: OrgMemberFilter; + orderBy?: OrgMemberOrderBy[]; + }; + orgMembersByEntityId?: { + select: OrgMemberSelect; + first?: number; + filter?: OrgMemberFilter; + orderBy?: OrgMemberOrderBy[]; + }; + orgAdminGrantsByEntityId?: { + select: OrgAdminGrantSelect; + first?: number; + filter?: OrgAdminGrantFilter; + orderBy?: OrgAdminGrantOrderBy[]; + }; + orgAdminGrantsByGrantorId?: { + select: OrgAdminGrantSelect; + first?: number; + filter?: OrgAdminGrantFilter; + orderBy?: OrgAdminGrantOrderBy[]; + }; + orgOwnerGrantsByEntityId?: { + select: OrgOwnerGrantSelect; + first?: number; + filter?: OrgOwnerGrantFilter; + orderBy?: OrgOwnerGrantOrderBy[]; + }; + orgOwnerGrantsByGrantorId?: { + select: OrgOwnerGrantSelect; + first?: number; + filter?: OrgOwnerGrantFilter; + orderBy?: OrgOwnerGrantOrderBy[]; + }; + orgGrantsByEntityId?: { + select: OrgGrantSelect; + first?: number; + filter?: OrgGrantFilter; + orderBy?: OrgGrantOrderBy[]; + }; + orgGrantsByGrantorId?: { + select: OrgGrantSelect; + first?: number; + filter?: OrgGrantFilter; + orderBy?: OrgGrantOrderBy[]; + }; + appLimitsByActorId?: { + select: AppLimitSelect; + first?: number; + filter?: AppLimitFilter; + orderBy?: AppLimitOrderBy[]; + }; + orgLimitsByActorId?: { + select: OrgLimitSelect; + first?: number; + filter?: OrgLimitFilter; + orderBy?: OrgLimitOrderBy[]; + }; + orgLimitsByEntityId?: { + select: OrgLimitSelect; + first?: number; + filter?: OrgLimitFilter; + orderBy?: OrgLimitOrderBy[]; + }; + appStepsByActorId?: { + select: AppStepSelect; + first?: number; + filter?: AppStepFilter; + orderBy?: AppStepOrderBy[]; + }; + appAchievementsByActorId?: { + select: AppAchievementSelect; + first?: number; + filter?: AppAchievementFilter; + orderBy?: AppAchievementOrderBy[]; + }; + invitesBySenderId?: { + select: InviteSelect; + first?: number; + filter?: InviteFilter; + orderBy?: InviteOrderBy[]; + }; + claimedInvitesByReceiverId?: { + select: ClaimedInviteSelect; + first?: number; + filter?: ClaimedInviteFilter; + orderBy?: ClaimedInviteOrderBy[]; + }; + claimedInvitesBySenderId?: { + select: ClaimedInviteSelect; + first?: number; + filter?: ClaimedInviteFilter; + orderBy?: ClaimedInviteOrderBy[]; + }; + orgInvitesByEntityId?: { + select: OrgInviteSelect; + first?: number; + filter?: OrgInviteFilter; + orderBy?: OrgInviteOrderBy[]; + }; + orgInvitesBySenderId?: { + select: OrgInviteSelect; + first?: number; + filter?: OrgInviteFilter; + orderBy?: OrgInviteOrderBy[]; + }; + orgClaimedInvitesByReceiverId?: { + select: OrgClaimedInviteSelect; + first?: number; + filter?: OrgClaimedInviteFilter; + orderBy?: OrgClaimedInviteOrderBy[]; + }; + orgClaimedInvitesBySenderId?: { + select: OrgClaimedInviteSelect; + first?: number; + filter?: OrgClaimedInviteFilter; + orderBy?: OrgClaimedInviteOrderBy[]; + }; +}; +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; + createdAt?: boolean; + chartEdgeGrantsTable?: { + select: TableSelect; + }; + chartEdgesTable?: { + select: TableSelect; + }; + database?: { + select: DatabaseSelect; + }; + entityTable?: { + select: TableSelect; + }; + hierarchySprtTable?: { + select: TableSelect; + }; + privateSchema?: { + select: SchemaSelect; + }; + schema?: { + select: SchemaSelect; + }; + usersTable?: { + select: TableSelect; + }; +}; +// ============ Table Filter Types ============ +export interface GetAllRecordFilter { + path?: StringFilter; + data?: JSONFilter; + and?: GetAllRecordFilter[]; + or?: GetAllRecordFilter[]; + not?: GetAllRecordFilter; +} +export interface AppPermissionFilter { + id?: UUIDFilter; + name?: StringFilter; + bitnum?: IntFilter; + bitstr?: BitStringFilter; + description?: StringFilter; + and?: AppPermissionFilter[]; + or?: AppPermissionFilter[]; + not?: AppPermissionFilter; +} +export interface OrgPermissionFilter { + id?: UUIDFilter; + name?: StringFilter; + bitnum?: IntFilter; + bitstr?: BitStringFilter; + description?: StringFilter; + and?: OrgPermissionFilter[]; + or?: OrgPermissionFilter[]; + not?: OrgPermissionFilter; +} +export interface ObjectFilter { + hashUuid?: UUIDFilter; + id?: UUIDFilter; + databaseId?: UUIDFilter; + kids?: UUIDFilter; + ktree?: StringFilter; + data?: JSONFilter; + frzn?: BooleanFilter; + createdAt?: DatetimeFilter; + and?: ObjectFilter[]; + or?: ObjectFilter[]; + not?: ObjectFilter; +} +export interface AppLevelRequirementFilter { + id?: UUIDFilter; + name?: StringFilter; + level?: StringFilter; + description?: StringFilter; + requiredCount?: IntFilter; + priority?: IntFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: AppLevelRequirementFilter[]; + or?: AppLevelRequirementFilter[]; + not?: AppLevelRequirementFilter; +} +export interface DatabaseFilter { + id?: UUIDFilter; + ownerId?: UUIDFilter; + schemaHash?: StringFilter; + name?: StringFilter; + label?: StringFilter; + hash?: UUIDFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: DatabaseFilter[]; + or?: DatabaseFilter[]; + not?: DatabaseFilter; +} +export interface SchemaFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + name?: StringFilter; + schemaName?: StringFilter; + label?: StringFilter; + description?: StringFilter; + smartTags?: JSONFilter; + category?: StringFilter; + module?: StringFilter; + scope?: IntFilter; + tags?: StringFilter; + isPublic?: BooleanFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: SchemaFilter[]; + or?: SchemaFilter[]; + not?: SchemaFilter; +} +export interface TableFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + schemaId?: UUIDFilter; + name?: StringFilter; + label?: StringFilter; + description?: StringFilter; + smartTags?: JSONFilter; + category?: StringFilter; + module?: StringFilter; + scope?: IntFilter; + useRls?: BooleanFilter; + timestamps?: BooleanFilter; + peoplestamps?: BooleanFilter; + pluralName?: StringFilter; + singularName?: StringFilter; + tags?: StringFilter; + inheritsId?: UUIDFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: TableFilter[]; + or?: TableFilter[]; + not?: TableFilter; +} +export interface CheckConstraintFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + tableId?: UUIDFilter; + name?: StringFilter; + type?: StringFilter; + fieldIds?: UUIDFilter; + expr?: JSONFilter; + smartTags?: JSONFilter; + category?: StringFilter; + module?: StringFilter; + scope?: IntFilter; + tags?: StringFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: CheckConstraintFilter[]; + or?: CheckConstraintFilter[]; + not?: CheckConstraintFilter; +} +export interface FieldFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + tableId?: UUIDFilter; + name?: StringFilter; + label?: StringFilter; + description?: StringFilter; + smartTags?: JSONFilter; + isRequired?: BooleanFilter; + defaultValue?: StringFilter; + defaultValueAst?: JSONFilter; + isHidden?: BooleanFilter; + type?: StringFilter; + fieldOrder?: IntFilter; + regexp?: StringFilter; + chk?: JSONFilter; + chkExpr?: JSONFilter; + min?: FloatFilter; + max?: FloatFilter; + tags?: StringFilter; + category?: StringFilter; + module?: StringFilter; + scope?: IntFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: FieldFilter[]; + or?: FieldFilter[]; + not?: FieldFilter; +} +export interface ForeignKeyConstraintFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + tableId?: UUIDFilter; + name?: StringFilter; + description?: StringFilter; + smartTags?: JSONFilter; + type?: StringFilter; + fieldIds?: UUIDFilter; + refTableId?: UUIDFilter; + refFieldIds?: UUIDFilter; + deleteAction?: StringFilter; + updateAction?: StringFilter; + category?: StringFilter; + module?: StringFilter; + scope?: IntFilter; + tags?: StringFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: ForeignKeyConstraintFilter[]; + or?: ForeignKeyConstraintFilter[]; + not?: ForeignKeyConstraintFilter; +} +export interface FullTextSearchFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + tableId?: UUIDFilter; + fieldId?: UUIDFilter; + fieldIds?: UUIDFilter; + weights?: StringFilter; + langs?: StringFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: FullTextSearchFilter[]; + or?: FullTextSearchFilter[]; + not?: FullTextSearchFilter; +} +export interface IndexFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + tableId?: UUIDFilter; + name?: StringFilter; + fieldIds?: UUIDFilter; + includeFieldIds?: UUIDFilter; + accessMethod?: StringFilter; + indexParams?: JSONFilter; + whereClause?: JSONFilter; + isUnique?: BooleanFilter; + smartTags?: JSONFilter; + category?: StringFilter; + module?: StringFilter; + scope?: IntFilter; + tags?: StringFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: 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; + privilege?: StringFilter; + permissive?: BooleanFilter; + disabled?: BooleanFilter; + policyType?: StringFilter; + data?: JSONFilter; + smartTags?: JSONFilter; + category?: StringFilter; + module?: StringFilter; + scope?: IntFilter; + tags?: StringFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: PolicyFilter[]; + or?: PolicyFilter[]; + not?: PolicyFilter; +} +export interface PrimaryKeyConstraintFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + tableId?: UUIDFilter; + name?: StringFilter; + type?: StringFilter; + fieldIds?: UUIDFilter; + smartTags?: JSONFilter; + category?: StringFilter; + module?: StringFilter; + scope?: IntFilter; + tags?: StringFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: PrimaryKeyConstraintFilter[]; + or?: PrimaryKeyConstraintFilter[]; + not?: PrimaryKeyConstraintFilter; +} +export interface TableGrantFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + tableId?: UUIDFilter; + privilege?: StringFilter; + roleName?: StringFilter; + fieldIds?: UUIDFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: TableGrantFilter[]; + or?: TableGrantFilter[]; + not?: TableGrantFilter; +} +export interface TriggerFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + tableId?: UUIDFilter; + name?: StringFilter; + event?: StringFilter; + functionName?: StringFilter; + smartTags?: JSONFilter; + category?: StringFilter; + module?: StringFilter; + scope?: IntFilter; + tags?: StringFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: TriggerFilter[]; + or?: TriggerFilter[]; + not?: TriggerFilter; +} +export interface UniqueConstraintFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + tableId?: UUIDFilter; + name?: StringFilter; + description?: StringFilter; + smartTags?: JSONFilter; + type?: StringFilter; + fieldIds?: UUIDFilter; + category?: StringFilter; + module?: StringFilter; + scope?: IntFilter; + tags?: StringFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: UniqueConstraintFilter[]; + or?: UniqueConstraintFilter[]; + not?: UniqueConstraintFilter; +} +export interface ViewFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + schemaId?: UUIDFilter; + name?: StringFilter; + tableId?: UUIDFilter; + viewType?: StringFilter; + data?: JSONFilter; + filterType?: StringFilter; + filterData?: JSONFilter; + securityInvoker?: BooleanFilter; + isReadOnly?: BooleanFilter; + smartTags?: JSONFilter; + category?: StringFilter; + module?: StringFilter; + scope?: IntFilter; + tags?: StringFilter; + and?: ViewFilter[]; + or?: ViewFilter[]; + not?: ViewFilter; +} +export interface ViewTableFilter { + id?: UUIDFilter; + viewId?: UUIDFilter; + tableId?: UUIDFilter; + joinOrder?: IntFilter; + and?: ViewTableFilter[]; + or?: ViewTableFilter[]; + not?: ViewTableFilter; +} +export interface ViewGrantFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + viewId?: UUIDFilter; + roleName?: StringFilter; + privilege?: StringFilter; + withGrantOption?: BooleanFilter; + and?: ViewGrantFilter[]; + or?: ViewGrantFilter[]; + not?: ViewGrantFilter; +} +export interface ViewRuleFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + viewId?: UUIDFilter; + name?: StringFilter; + event?: StringFilter; + action?: StringFilter; + and?: ViewRuleFilter[]; + or?: ViewRuleFilter[]; + not?: ViewRuleFilter; +} +export interface TableModuleFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + privateSchemaId?: UUIDFilter; + tableId?: UUIDFilter; + nodeType?: StringFilter; + data?: JSONFilter; + fields?: UUIDFilter; + and?: TableModuleFilter[]; + or?: TableModuleFilter[]; + not?: TableModuleFilter; +} +export interface TableTemplateModuleFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + schemaId?: UUIDFilter; + privateSchemaId?: UUIDFilter; + tableId?: UUIDFilter; + ownerTableId?: UUIDFilter; + tableName?: StringFilter; + nodeType?: StringFilter; + data?: JSONFilter; + and?: TableTemplateModuleFilter[]; + or?: TableTemplateModuleFilter[]; + not?: TableTemplateModuleFilter; +} +export interface SchemaGrantFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + schemaId?: UUIDFilter; + granteeName?: StringFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: SchemaGrantFilter[]; + or?: SchemaGrantFilter[]; + not?: SchemaGrantFilter; +} +export interface ApiSchemaFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + schemaId?: UUIDFilter; + apiId?: UUIDFilter; + and?: ApiSchemaFilter[]; + or?: ApiSchemaFilter[]; + not?: ApiSchemaFilter; +} +export interface ApiModuleFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + apiId?: UUIDFilter; + name?: StringFilter; + data?: JSONFilter; + and?: ApiModuleFilter[]; + or?: ApiModuleFilter[]; + not?: ApiModuleFilter; +} +export interface DomainFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + apiId?: UUIDFilter; + siteId?: UUIDFilter; + subdomain?: StringFilter; + domain?: StringFilter; + and?: DomainFilter[]; + or?: DomainFilter[]; + not?: DomainFilter; +} +export interface SiteMetadatumFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + siteId?: UUIDFilter; + title?: StringFilter; + description?: StringFilter; + ogImage?: StringFilter; + and?: SiteMetadatumFilter[]; + or?: SiteMetadatumFilter[]; + not?: SiteMetadatumFilter; +} +export interface SiteModuleFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + siteId?: UUIDFilter; + name?: StringFilter; + data?: JSONFilter; + and?: SiteModuleFilter[]; + or?: SiteModuleFilter[]; + not?: SiteModuleFilter; +} +export interface SiteThemeFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + siteId?: UUIDFilter; + theme?: JSONFilter; + and?: 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; + name?: StringFilter; + code?: StringFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: TriggerFunctionFilter[]; + or?: TriggerFunctionFilter[]; + not?: TriggerFunctionFilter; +} +export interface ApiFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + name?: StringFilter; + dbname?: StringFilter; + roleName?: StringFilter; + anonRole?: StringFilter; + isPublic?: BooleanFilter; + and?: ApiFilter[]; + or?: ApiFilter[]; + not?: ApiFilter; +} +export interface SiteFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + title?: StringFilter; + description?: StringFilter; + ogImage?: StringFilter; + favicon?: StringFilter; + appleTouchIcon?: StringFilter; + logo?: StringFilter; + dbname?: StringFilter; + and?: SiteFilter[]; + or?: SiteFilter[]; + not?: SiteFilter; +} +export interface AppFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + siteId?: UUIDFilter; + name?: StringFilter; + appImage?: StringFilter; + appStoreLink?: StringFilter; + appStoreId?: StringFilter; + appIdPrefix?: StringFilter; + playStoreLink?: StringFilter; + and?: AppFilter[]; + or?: AppFilter[]; + not?: AppFilter; +} +export interface ConnectedAccountsModuleFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + schemaId?: UUIDFilter; + privateSchemaId?: UUIDFilter; + tableId?: UUIDFilter; + ownerTableId?: UUIDFilter; + tableName?: StringFilter; + and?: ConnectedAccountsModuleFilter[]; + or?: ConnectedAccountsModuleFilter[]; + not?: ConnectedAccountsModuleFilter; +} +export interface CryptoAddressesModuleFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + schemaId?: UUIDFilter; + privateSchemaId?: UUIDFilter; + tableId?: UUIDFilter; + ownerTableId?: UUIDFilter; + tableName?: StringFilter; + cryptoNetwork?: StringFilter; + and?: CryptoAddressesModuleFilter[]; + or?: CryptoAddressesModuleFilter[]; + not?: CryptoAddressesModuleFilter; +} +export interface CryptoAuthModuleFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + schemaId?: UUIDFilter; + usersTableId?: UUIDFilter; + secretsTableId?: UUIDFilter; + sessionsTableId?: UUIDFilter; + sessionCredentialsTableId?: UUIDFilter; + addressesTableId?: UUIDFilter; + userField?: StringFilter; + cryptoNetwork?: StringFilter; + signInRequestChallenge?: StringFilter; + signInRecordFailure?: StringFilter; + signUpWithKey?: StringFilter; + signInWithChallenge?: StringFilter; + and?: CryptoAuthModuleFilter[]; + or?: CryptoAuthModuleFilter[]; + not?: CryptoAuthModuleFilter; +} +export interface DefaultIdsModuleFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + and?: DefaultIdsModuleFilter[]; + or?: DefaultIdsModuleFilter[]; + not?: DefaultIdsModuleFilter; +} +export interface DenormalizedTableFieldFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + tableId?: UUIDFilter; + fieldId?: UUIDFilter; + setIds?: UUIDFilter; + refTableId?: UUIDFilter; + refFieldId?: UUIDFilter; + refIds?: UUIDFilter; + useUpdates?: BooleanFilter; + updateDefaults?: BooleanFilter; + funcName?: StringFilter; + funcOrder?: IntFilter; + and?: DenormalizedTableFieldFilter[]; + or?: DenormalizedTableFieldFilter[]; + not?: DenormalizedTableFieldFilter; +} +export interface EmailsModuleFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + schemaId?: UUIDFilter; + privateSchemaId?: UUIDFilter; + tableId?: UUIDFilter; + ownerTableId?: UUIDFilter; + tableName?: StringFilter; + and?: EmailsModuleFilter[]; + or?: EmailsModuleFilter[]; + not?: EmailsModuleFilter; +} +export interface EncryptedSecretsModuleFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + schemaId?: UUIDFilter; + tableId?: UUIDFilter; + tableName?: StringFilter; + and?: EncryptedSecretsModuleFilter[]; + or?: EncryptedSecretsModuleFilter[]; + not?: EncryptedSecretsModuleFilter; +} +export interface FieldModuleFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + privateSchemaId?: UUIDFilter; + tableId?: UUIDFilter; + fieldId?: UUIDFilter; + nodeType?: StringFilter; + data?: JSONFilter; + triggers?: StringFilter; + functions?: StringFilter; + and?: FieldModuleFilter[]; + or?: FieldModuleFilter[]; + not?: FieldModuleFilter; +} +export interface InvitesModuleFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + schemaId?: UUIDFilter; + privateSchemaId?: UUIDFilter; + emailsTableId?: UUIDFilter; + usersTableId?: UUIDFilter; + invitesTableId?: UUIDFilter; + claimedInvitesTableId?: UUIDFilter; + invitesTableName?: StringFilter; + claimedInvitesTableName?: StringFilter; + submitInviteCodeFunction?: StringFilter; + prefix?: StringFilter; + membershipType?: IntFilter; + entityTableId?: UUIDFilter; + and?: InvitesModuleFilter[]; + or?: InvitesModuleFilter[]; + not?: InvitesModuleFilter; +} +export interface LevelsModuleFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + schemaId?: UUIDFilter; + privateSchemaId?: UUIDFilter; + stepsTableId?: UUIDFilter; + stepsTableName?: StringFilter; + achievementsTableId?: UUIDFilter; + achievementsTableName?: StringFilter; + levelsTableId?: UUIDFilter; + levelsTableName?: StringFilter; + levelRequirementsTableId?: UUIDFilter; + levelRequirementsTableName?: StringFilter; + completedStep?: StringFilter; + incompletedStep?: StringFilter; + tgAchievement?: StringFilter; + tgAchievementToggle?: StringFilter; + tgAchievementToggleBoolean?: StringFilter; + tgAchievementBoolean?: StringFilter; + upsertAchievement?: StringFilter; + tgUpdateAchievements?: StringFilter; + stepsRequired?: StringFilter; + levelAchieved?: StringFilter; + prefix?: StringFilter; + membershipType?: IntFilter; + entityTableId?: UUIDFilter; + actorTableId?: UUIDFilter; + and?: LevelsModuleFilter[]; + or?: LevelsModuleFilter[]; + not?: LevelsModuleFilter; +} +export interface LimitsModuleFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + schemaId?: UUIDFilter; + privateSchemaId?: UUIDFilter; + tableId?: UUIDFilter; + tableName?: StringFilter; + defaultTableId?: UUIDFilter; + defaultTableName?: StringFilter; + limitIncrementFunction?: StringFilter; + limitDecrementFunction?: StringFilter; + limitIncrementTrigger?: StringFilter; + limitDecrementTrigger?: StringFilter; + limitUpdateTrigger?: StringFilter; + limitCheckFunction?: StringFilter; + prefix?: StringFilter; + membershipType?: IntFilter; + entityTableId?: UUIDFilter; + actorTableId?: UUIDFilter; + and?: LimitsModuleFilter[]; + or?: LimitsModuleFilter[]; + not?: LimitsModuleFilter; +} +export interface MembershipTypesModuleFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + schemaId?: UUIDFilter; + tableId?: UUIDFilter; + tableName?: StringFilter; + and?: MembershipTypesModuleFilter[]; + or?: MembershipTypesModuleFilter[]; + not?: MembershipTypesModuleFilter; +} +export interface MembershipsModuleFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + schemaId?: UUIDFilter; + privateSchemaId?: UUIDFilter; + membershipsTableId?: UUIDFilter; + membershipsTableName?: StringFilter; + membersTableId?: UUIDFilter; + membersTableName?: StringFilter; + membershipDefaultsTableId?: UUIDFilter; + membershipDefaultsTableName?: StringFilter; + grantsTableId?: UUIDFilter; + grantsTableName?: StringFilter; + actorTableId?: UUIDFilter; + limitsTableId?: UUIDFilter; + defaultLimitsTableId?: UUIDFilter; + permissionsTableId?: UUIDFilter; + defaultPermissionsTableId?: UUIDFilter; + sprtTableId?: UUIDFilter; + adminGrantsTableId?: UUIDFilter; + adminGrantsTableName?: StringFilter; + ownerGrantsTableId?: UUIDFilter; + ownerGrantsTableName?: StringFilter; + membershipType?: IntFilter; + entityTableId?: UUIDFilter; + entityTableOwnerId?: UUIDFilter; + prefix?: StringFilter; + actorMaskCheck?: StringFilter; + actorPermCheck?: StringFilter; + entityIdsByMask?: StringFilter; + entityIdsByPerm?: StringFilter; + entityIdsFunction?: StringFilter; + and?: MembershipsModuleFilter[]; + or?: MembershipsModuleFilter[]; + not?: MembershipsModuleFilter; +} +export interface PermissionsModuleFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + schemaId?: UUIDFilter; + privateSchemaId?: UUIDFilter; + tableId?: UUIDFilter; + tableName?: StringFilter; + defaultTableId?: UUIDFilter; + defaultTableName?: StringFilter; + bitlen?: IntFilter; + membershipType?: IntFilter; + entityTableId?: UUIDFilter; + actorTableId?: UUIDFilter; + prefix?: StringFilter; + getPaddedMask?: StringFilter; + getMask?: StringFilter; + getByMask?: StringFilter; + getMaskByName?: StringFilter; + and?: PermissionsModuleFilter[]; + or?: PermissionsModuleFilter[]; + not?: PermissionsModuleFilter; +} +export interface PhoneNumbersModuleFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + schemaId?: UUIDFilter; + privateSchemaId?: UUIDFilter; + tableId?: UUIDFilter; + ownerTableId?: UUIDFilter; + tableName?: StringFilter; + and?: PhoneNumbersModuleFilter[]; + or?: PhoneNumbersModuleFilter[]; + not?: PhoneNumbersModuleFilter; +} +export interface ProfilesModuleFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + schemaId?: UUIDFilter; + privateSchemaId?: UUIDFilter; + tableId?: UUIDFilter; + tableName?: StringFilter; + profilePermissionsTableId?: UUIDFilter; + profilePermissionsTableName?: StringFilter; + profileGrantsTableId?: UUIDFilter; + profileGrantsTableName?: StringFilter; + profileDefinitionGrantsTableId?: UUIDFilter; + profileDefinitionGrantsTableName?: StringFilter; + bitlen?: IntFilter; + membershipType?: IntFilter; + entityTableId?: UUIDFilter; + actorTableId?: UUIDFilter; + permissionsTableId?: UUIDFilter; + membershipsTableId?: UUIDFilter; + prefix?: StringFilter; + and?: ProfilesModuleFilter[]; + or?: ProfilesModuleFilter[]; + not?: ProfilesModuleFilter; +} +export interface RlsModuleFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + apiId?: UUIDFilter; + schemaId?: UUIDFilter; + privateSchemaId?: UUIDFilter; + sessionCredentialsTableId?: UUIDFilter; + sessionsTableId?: UUIDFilter; + usersTableId?: UUIDFilter; + authenticate?: StringFilter; + authenticateStrict?: StringFilter; + currentRole?: StringFilter; + currentRoleId?: StringFilter; + and?: RlsModuleFilter[]; + or?: RlsModuleFilter[]; + not?: RlsModuleFilter; +} +export interface SecretsModuleFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + schemaId?: UUIDFilter; + tableId?: UUIDFilter; + tableName?: StringFilter; + and?: SecretsModuleFilter[]; + or?: SecretsModuleFilter[]; + not?: SecretsModuleFilter; +} +export interface SessionsModuleFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + schemaId?: UUIDFilter; + sessionsTableId?: UUIDFilter; + sessionCredentialsTableId?: UUIDFilter; + authSettingsTableId?: UUIDFilter; + usersTableId?: UUIDFilter; + sessionsDefaultExpiration?: StringFilter; + sessionsTable?: StringFilter; + sessionCredentialsTable?: StringFilter; + authSettingsTable?: StringFilter; + and?: SessionsModuleFilter[]; + or?: SessionsModuleFilter[]; + not?: SessionsModuleFilter; +} +export interface UserAuthModuleFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + schemaId?: UUIDFilter; + emailsTableId?: UUIDFilter; + usersTableId?: UUIDFilter; + secretsTableId?: UUIDFilter; + encryptedTableId?: UUIDFilter; + sessionsTableId?: UUIDFilter; + sessionCredentialsTableId?: UUIDFilter; + auditsTableId?: UUIDFilter; + auditsTableName?: StringFilter; + signInFunction?: StringFilter; + signUpFunction?: StringFilter; + signOutFunction?: StringFilter; + setPasswordFunction?: StringFilter; + resetPasswordFunction?: StringFilter; + forgotPasswordFunction?: StringFilter; + sendVerificationEmailFunction?: StringFilter; + verifyEmailFunction?: StringFilter; + verifyPasswordFunction?: StringFilter; + checkPasswordFunction?: StringFilter; + sendAccountDeletionEmailFunction?: StringFilter; + deleteAccountFunction?: StringFilter; + signInOneTimeTokenFunction?: StringFilter; + oneTimeTokenFunction?: StringFilter; + extendTokenExpires?: StringFilter; + and?: UserAuthModuleFilter[]; + or?: UserAuthModuleFilter[]; + not?: UserAuthModuleFilter; +} +export interface UsersModuleFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + schemaId?: UUIDFilter; + tableId?: UUIDFilter; + tableName?: StringFilter; + typeTableId?: UUIDFilter; + typeTableName?: StringFilter; + and?: UsersModuleFilter[]; + or?: UsersModuleFilter[]; + not?: UsersModuleFilter; +} +export interface UuidModuleFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + schemaId?: UUIDFilter; + uuidFunction?: StringFilter; + uuidSeed?: StringFilter; + and?: UuidModuleFilter[]; + or?: UuidModuleFilter[]; + not?: UuidModuleFilter; +} +export interface DatabaseProvisionModuleFilter { + id?: UUIDFilter; + databaseName?: StringFilter; + ownerId?: UUIDFilter; + subdomain?: StringFilter; + domain?: StringFilter; + modules?: StringFilter; + options?: JSONFilter; + bootstrapUser?: BooleanFilter; + status?: StringFilter; + errorMessage?: StringFilter; + databaseId?: UUIDFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + completedAt?: DatetimeFilter; + and?: DatabaseProvisionModuleFilter[]; + or?: DatabaseProvisionModuleFilter[]; + not?: DatabaseProvisionModuleFilter; +} +export interface AppAdminGrantFilter { + id?: UUIDFilter; + isGrant?: BooleanFilter; + actorId?: UUIDFilter; + grantorId?: UUIDFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: AppAdminGrantFilter[]; + or?: AppAdminGrantFilter[]; + not?: AppAdminGrantFilter; +} +export interface AppOwnerGrantFilter { + id?: UUIDFilter; + isGrant?: BooleanFilter; + actorId?: UUIDFilter; + grantorId?: UUIDFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: AppOwnerGrantFilter[]; + or?: AppOwnerGrantFilter[]; + not?: AppOwnerGrantFilter; +} +export interface AppGrantFilter { + id?: UUIDFilter; + permissions?: BitStringFilter; + isGrant?: BooleanFilter; + actorId?: UUIDFilter; + grantorId?: UUIDFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: AppGrantFilter[]; + or?: AppGrantFilter[]; + not?: AppGrantFilter; +} +export interface OrgMembershipFilter { + id?: UUIDFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + createdBy?: UUIDFilter; + updatedBy?: UUIDFilter; + isApproved?: BooleanFilter; + isBanned?: BooleanFilter; + isDisabled?: BooleanFilter; + isActive?: BooleanFilter; + isOwner?: BooleanFilter; + isAdmin?: BooleanFilter; + permissions?: BitStringFilter; + granted?: BitStringFilter; + actorId?: UUIDFilter; + entityId?: UUIDFilter; + and?: OrgMembershipFilter[]; + or?: OrgMembershipFilter[]; + not?: OrgMembershipFilter; +} +export interface OrgMemberFilter { + id?: UUIDFilter; + isAdmin?: BooleanFilter; + actorId?: UUIDFilter; + entityId?: UUIDFilter; + and?: OrgMemberFilter[]; + or?: OrgMemberFilter[]; + not?: OrgMemberFilter; +} +export interface OrgAdminGrantFilter { + id?: UUIDFilter; + isGrant?: BooleanFilter; + actorId?: UUIDFilter; + entityId?: UUIDFilter; + grantorId?: UUIDFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: OrgAdminGrantFilter[]; + or?: OrgAdminGrantFilter[]; + not?: OrgAdminGrantFilter; +} +export interface OrgOwnerGrantFilter { + id?: UUIDFilter; + isGrant?: BooleanFilter; + actorId?: UUIDFilter; + entityId?: UUIDFilter; + grantorId?: UUIDFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: OrgOwnerGrantFilter[]; + or?: OrgOwnerGrantFilter[]; + not?: OrgOwnerGrantFilter; +} +export interface OrgGrantFilter { + id?: UUIDFilter; + permissions?: BitStringFilter; + isGrant?: BooleanFilter; + actorId?: UUIDFilter; + entityId?: UUIDFilter; + grantorId?: UUIDFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: OrgGrantFilter[]; + or?: OrgGrantFilter[]; + not?: OrgGrantFilter; +} +export interface AppLimitFilter { + id?: UUIDFilter; + name?: StringFilter; + actorId?: UUIDFilter; + num?: IntFilter; + max?: IntFilter; + and?: AppLimitFilter[]; + or?: AppLimitFilter[]; + not?: AppLimitFilter; +} +export interface OrgLimitFilter { + id?: UUIDFilter; + name?: StringFilter; + actorId?: UUIDFilter; + num?: IntFilter; + max?: IntFilter; + entityId?: UUIDFilter; + and?: OrgLimitFilter[]; + or?: OrgLimitFilter[]; + not?: OrgLimitFilter; +} +export interface AppStepFilter { + id?: UUIDFilter; + actorId?: UUIDFilter; + name?: StringFilter; + count?: IntFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: AppStepFilter[]; + or?: AppStepFilter[]; + not?: AppStepFilter; +} +export interface AppAchievementFilter { + id?: UUIDFilter; + actorId?: UUIDFilter; + name?: StringFilter; + count?: IntFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: AppAchievementFilter[]; + or?: AppAchievementFilter[]; + not?: AppAchievementFilter; +} +export interface InviteFilter { + id?: UUIDFilter; + email?: StringFilter; + senderId?: UUIDFilter; + inviteToken?: StringFilter; + inviteValid?: BooleanFilter; + inviteLimit?: IntFilter; + inviteCount?: IntFilter; + multiple?: BooleanFilter; + data?: JSONFilter; + expiresAt?: DatetimeFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: InviteFilter[]; + or?: InviteFilter[]; + not?: InviteFilter; +} +export interface ClaimedInviteFilter { + id?: UUIDFilter; + data?: JSONFilter; + senderId?: UUIDFilter; + receiverId?: UUIDFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: ClaimedInviteFilter[]; + or?: ClaimedInviteFilter[]; + not?: ClaimedInviteFilter; +} +export interface OrgInviteFilter { + id?: UUIDFilter; + email?: StringFilter; + senderId?: UUIDFilter; + receiverId?: UUIDFilter; + inviteToken?: StringFilter; + inviteValid?: BooleanFilter; + inviteLimit?: IntFilter; + inviteCount?: IntFilter; + multiple?: BooleanFilter; + data?: JSONFilter; + expiresAt?: DatetimeFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + entityId?: UUIDFilter; + and?: OrgInviteFilter[]; + or?: OrgInviteFilter[]; + not?: OrgInviteFilter; +} +export interface OrgClaimedInviteFilter { + id?: UUIDFilter; + data?: JSONFilter; + senderId?: UUIDFilter; + receiverId?: UUIDFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + entityId?: UUIDFilter; + and?: 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; + databaseId?: UUIDFilter; + storeId?: UUIDFilter; + commitId?: UUIDFilter; + and?: RefFilter[]; + or?: RefFilter[]; + not?: RefFilter; +} +export interface StoreFilter { + id?: UUIDFilter; + name?: StringFilter; + databaseId?: UUIDFilter; + hash?: UUIDFilter; + createdAt?: DatetimeFilter; + and?: StoreFilter[]; + or?: StoreFilter[]; + not?: StoreFilter; +} +export interface RoleTypeFilter { + id?: IntFilter; + name?: StringFilter; + and?: RoleTypeFilter[]; + or?: RoleTypeFilter[]; + not?: RoleTypeFilter; +} +export interface OrgPermissionDefaultFilter { + id?: UUIDFilter; + permissions?: BitStringFilter; + entityId?: UUIDFilter; + and?: OrgPermissionDefaultFilter[]; + or?: OrgPermissionDefaultFilter[]; + not?: OrgPermissionDefaultFilter; +} +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 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; + service?: StringFilter; + identifier?: StringFilter; + details?: JSONFilter; + isVerified?: BooleanFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: ConnectedAccountFilter[]; + or?: ConnectedAccountFilter[]; + not?: ConnectedAccountFilter; +} +export interface PhoneNumberFilter { + id?: UUIDFilter; + ownerId?: UUIDFilter; + cc?: StringFilter; + number?: StringFilter; + isVerified?: BooleanFilter; + isPrimary?: BooleanFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: 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 NodeTypeRegistryFilter { + name?: StringFilter; + slug?: StringFilter; + category?: StringFilter; + displayName?: StringFilter; + description?: StringFilter; + parameterSchema?: JSONFilter; + tags?: StringFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: NodeTypeRegistryFilter[]; + or?: NodeTypeRegistryFilter[]; + not?: NodeTypeRegistryFilter; +} +export interface CommitFilter { + id?: UUIDFilter; + message?: StringFilter; + databaseId?: UUIDFilter; + storeId?: UUIDFilter; + parentIds?: UUIDFilter; + authorId?: UUIDFilter; + committerId?: UUIDFilter; + treeId?: UUIDFilter; + date?: DatetimeFilter; + and?: CommitFilter[]; + or?: CommitFilter[]; + not?: CommitFilter; +} +export interface OrgMembershipDefaultFilter { + id?: UUIDFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + createdBy?: UUIDFilter; + updatedBy?: UUIDFilter; + isApproved?: BooleanFilter; + entityId?: UUIDFilter; + deleteMemberCascadeGroups?: BooleanFilter; + createGroupsCascadeMembers?: BooleanFilter; + and?: 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; + actorId?: UUIDFilter; + origin?: StringFilter; + userAgent?: StringFilter; + ipAddress?: InternetAddressFilter; + success?: BooleanFilter; + createdAt?: DatetimeFilter; + and?: AuditLogFilter[]; + or?: AuditLogFilter[]; + not?: AuditLogFilter; +} +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 SqlMigrationFilter { + id?: IntFilter; + name?: StringFilter; + databaseId?: UUIDFilter; + deploy?: StringFilter; + deps?: StringFilter; + payload?: JSONFilter; + content?: StringFilter; + revert?: StringFilter; + verify?: StringFilter; + createdAt?: DatetimeFilter; + action?: StringFilter; + actionId?: UUIDFilter; + actorId?: UUIDFilter; + and?: SqlMigrationFilter[]; + or?: SqlMigrationFilter[]; + not?: SqlMigrationFilter; +} +export interface AstMigrationFilter { + id?: IntFilter; + databaseId?: UUIDFilter; + name?: StringFilter; + requires?: StringFilter; + payload?: JSONFilter; + deploys?: StringFilter; + deploy?: JSONFilter; + revert?: JSONFilter; + verify?: JSONFilter; + createdAt?: DatetimeFilter; + action?: StringFilter; + actionId?: UUIDFilter; + actorId?: UUIDFilter; + and?: AstMigrationFilter[]; + or?: AstMigrationFilter[]; + not?: AstMigrationFilter; +} +export interface AppMembershipFilter { + id?: UUIDFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + createdBy?: UUIDFilter; + updatedBy?: UUIDFilter; + isApproved?: BooleanFilter; + isBanned?: BooleanFilter; + isDisabled?: BooleanFilter; + isVerified?: BooleanFilter; + isActive?: BooleanFilter; + isOwner?: BooleanFilter; + isAdmin?: BooleanFilter; + permissions?: BitStringFilter; + granted?: BitStringFilter; + actorId?: 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; + schemaId?: UUIDFilter; + privateSchemaId?: UUIDFilter; + chartEdgesTableId?: UUIDFilter; + chartEdgesTableName?: StringFilter; + hierarchySprtTableId?: UUIDFilter; + hierarchySprtTableName?: StringFilter; + chartEdgeGrantsTableId?: UUIDFilter; + chartEdgeGrantsTableName?: StringFilter; + entityTableId?: UUIDFilter; + usersTableId?: UUIDFilter; + prefix?: StringFilter; + privateSchemaName?: StringFilter; + sprtTableName?: StringFilter; + rebuildHierarchyFunction?: StringFilter; + getSubordinatesFunction?: StringFilter; + getManagersFunction?: StringFilter; + isManagerOfFunction?: StringFilter; + createdAt?: DatetimeFilter; + and?: HierarchyModuleFilter[]; + or?: HierarchyModuleFilter[]; + not?: HierarchyModuleFilter; +} +// ============ Table Condition Types ============ +export interface GetAllRecordCondition { + path?: string | null; + data?: unknown | null; +} +export interface AppPermissionCondition { + id?: string | null; + name?: string | null; + bitnum?: number | null; + bitstr?: string | null; + description?: string | null; +} +export interface OrgPermissionCondition { + id?: string | null; + name?: string | null; + bitnum?: number | null; + bitstr?: string | null; + description?: string | null; +} +export interface ObjectCondition { + hashUuid?: string | null; + id?: string | null; + databaseId?: string | null; + kids?: string | null; + ktree?: string | null; + data?: unknown | null; + frzn?: boolean | null; + createdAt?: string | null; +} +export interface AppLevelRequirementCondition { + id?: string | null; + name?: string | null; + level?: string | null; + description?: string | null; + requiredCount?: number | null; + priority?: number | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface DatabaseCondition { + id?: string | null; + ownerId?: string | null; + schemaHash?: string | null; + name?: string | null; + label?: string | null; + hash?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface SchemaCondition { + id?: string | null; + databaseId?: string | null; + name?: string | null; + schemaName?: string | null; + label?: string | null; + description?: string | null; + smartTags?: unknown | null; + category?: unknown | null; + module?: string | null; + scope?: number | null; + tags?: string | null; + isPublic?: boolean | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface TableCondition { + id?: string | null; + databaseId?: string | null; + schemaId?: string | null; + name?: string | null; + label?: string | null; + description?: string | null; + smartTags?: unknown | null; + category?: unknown | null; + module?: string | null; + scope?: number | null; + useRls?: boolean | null; + timestamps?: boolean | null; + peoplestamps?: boolean | null; + pluralName?: string | null; + singularName?: string | null; + tags?: string | null; + inheritsId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface CheckConstraintCondition { + id?: string | null; + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + type?: string | null; + fieldIds?: string | null; + expr?: unknown | null; + smartTags?: unknown | null; + category?: unknown | null; + module?: string | null; + scope?: number | null; + tags?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface FieldCondition { + id?: string | null; + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + label?: string | null; + description?: string | null; + smartTags?: unknown | null; + isRequired?: boolean | null; + defaultValue?: string | null; + defaultValueAst?: unknown | null; + isHidden?: boolean | null; + type?: string | null; + fieldOrder?: number | null; + regexp?: string | null; + chk?: unknown | null; + chkExpr?: unknown | null; + min?: number | null; + max?: number | null; + tags?: string | null; + category?: unknown | null; + module?: string | null; + scope?: number | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface ForeignKeyConstraintCondition { + id?: string | null; + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + description?: string | null; + smartTags?: unknown | null; + type?: string | null; + fieldIds?: string | null; + refTableId?: string | null; + refFieldIds?: string | null; + deleteAction?: string | null; + updateAction?: string | null; + category?: unknown | null; + module?: string | null; + scope?: number | null; + tags?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface FullTextSearchCondition { + id?: string | null; + databaseId?: string | null; + tableId?: string | null; + fieldId?: string | null; + fieldIds?: string | null; + weights?: string | null; + langs?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface IndexCondition { + id?: string | null; + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + fieldIds?: string | null; + includeFieldIds?: string | null; + accessMethod?: string | null; + indexParams?: unknown | null; + whereClause?: unknown | null; + isUnique?: boolean | null; + smartTags?: unknown | null; + category?: unknown | null; + module?: string | null; + scope?: number | null; + tags?: string | null; + 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; + privilege?: string | null; + permissive?: boolean | null; + disabled?: boolean | null; + policyType?: string | null; + data?: unknown | null; + smartTags?: unknown | null; + category?: unknown | null; + module?: string | null; + scope?: number | null; + tags?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface PrimaryKeyConstraintCondition { + id?: string | null; + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + type?: string | null; + fieldIds?: 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 TableGrantCondition { + id?: string | null; + databaseId?: string | null; + tableId?: string | null; + privilege?: string | null; + roleName?: string | null; + fieldIds?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface TriggerCondition { + id?: string | null; + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + event?: string | null; + functionName?: 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 UniqueConstraintCondition { + id?: string | null; + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + description?: string | null; + smartTags?: unknown | null; + type?: string | null; + fieldIds?: string | null; + category?: unknown | null; + module?: string | null; + scope?: number | null; + tags?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface ViewCondition { + id?: string | null; + databaseId?: string | null; + schemaId?: string | null; + name?: string | null; + tableId?: string | null; + viewType?: string | null; + data?: unknown | null; + filterType?: string | null; + filterData?: unknown | null; + securityInvoker?: boolean | null; + isReadOnly?: boolean | null; + smartTags?: unknown | null; + category?: unknown | null; + module?: string | null; + scope?: number | null; + tags?: string | null; +} +export interface ViewTableCondition { + id?: string | null; + viewId?: string | null; + tableId?: string | null; + joinOrder?: number | null; +} +export interface ViewGrantCondition { + id?: string | null; + databaseId?: string | null; + viewId?: string | null; + roleName?: string | null; + privilege?: string | null; + withGrantOption?: boolean | null; +} +export interface ViewRuleCondition { + id?: string | null; + databaseId?: string | null; + viewId?: string | null; + name?: string | null; + event?: string | null; + action?: string | null; +} +export interface TableModuleCondition { + id?: string | null; + databaseId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + nodeType?: string | null; + data?: unknown | null; + fields?: string | null; +} +export interface TableTemplateModuleCondition { + id?: string | null; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + ownerTableId?: string | null; + tableName?: string | null; + nodeType?: string | null; + data?: unknown | null; +} +export interface SchemaGrantCondition { + id?: string | null; + databaseId?: string | null; + schemaId?: string | null; + granteeName?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface ApiSchemaCondition { + id?: string | null; + databaseId?: string | null; + schemaId?: string | null; + apiId?: string | null; +} +export interface ApiModuleCondition { + id?: string | null; + databaseId?: string | null; + apiId?: string | null; + name?: string | null; + data?: unknown | null; +} +export interface DomainCondition { + id?: string | null; + databaseId?: string | null; + apiId?: string | null; + siteId?: string | null; + subdomain?: unknown | null; + domain?: unknown | null; +} +export interface SiteMetadatumCondition { + id?: string | null; + databaseId?: string | null; + siteId?: string | null; + title?: string | null; + description?: string | null; + ogImage?: unknown | null; +} +export interface SiteModuleCondition { + id?: string | null; + databaseId?: string | null; + siteId?: string | null; + name?: string | null; + data?: unknown | null; +} +export interface SiteThemeCondition { + id?: string | null; + databaseId?: string | null; + 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; + name?: string | null; + code?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface ApiCondition { + id?: string | null; + databaseId?: string | null; + name?: string | null; + dbname?: string | null; + roleName?: string | null; + anonRole?: string | null; + isPublic?: boolean | null; +} +export interface SiteCondition { + id?: string | null; + databaseId?: string | null; + title?: string | null; + description?: string | null; + ogImage?: unknown | null; + favicon?: unknown | null; + appleTouchIcon?: unknown | null; + logo?: unknown | null; + dbname?: string | null; +} +export interface AppCondition { + id?: string | null; + databaseId?: string | null; + siteId?: string | null; + name?: string | null; + appImage?: unknown | null; + appStoreLink?: unknown | null; + appStoreId?: string | null; + appIdPrefix?: string | null; + playStoreLink?: unknown | null; +} +export interface ConnectedAccountsModuleCondition { + id?: string | null; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + ownerTableId?: string | null; + tableName?: string | null; +} +export interface CryptoAddressesModuleCondition { + id?: string | null; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + ownerTableId?: string | null; + tableName?: string | null; + cryptoNetwork?: string | null; +} +export interface CryptoAuthModuleCondition { + id?: string | null; + databaseId?: string | null; + schemaId?: string | null; + usersTableId?: string | null; + secretsTableId?: string | null; + sessionsTableId?: string | null; + sessionCredentialsTableId?: string | null; + addressesTableId?: string | null; + userField?: string | null; + cryptoNetwork?: string | null; + signInRequestChallenge?: string | null; + signInRecordFailure?: string | null; + signUpWithKey?: string | null; + signInWithChallenge?: string | null; +} +export interface DefaultIdsModuleCondition { + id?: string | null; + databaseId?: string | null; +} +export interface DenormalizedTableFieldCondition { + id?: string | null; + databaseId?: string | null; + tableId?: string | null; + fieldId?: string | null; + setIds?: string | null; + refTableId?: string | null; + refFieldId?: string | null; + refIds?: string | null; + useUpdates?: boolean | null; + updateDefaults?: boolean | null; + funcName?: string | null; + funcOrder?: number | null; +} +export interface EmailsModuleCondition { + id?: string | null; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + ownerTableId?: string | null; + tableName?: string | null; +} +export interface EncryptedSecretsModuleCondition { + id?: string | null; + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; +} +export interface FieldModuleCondition { + id?: string | null; + databaseId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + fieldId?: string | null; + nodeType?: string | null; + data?: unknown | null; + triggers?: string | null; + functions?: string | null; +} +export interface InvitesModuleCondition { + id?: string | null; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + emailsTableId?: string | null; + usersTableId?: string | null; + invitesTableId?: string | null; + claimedInvitesTableId?: string | null; + invitesTableName?: string | null; + claimedInvitesTableName?: string | null; + submitInviteCodeFunction?: string | null; + prefix?: string | null; + membershipType?: number | null; + entityTableId?: string | null; +} +export interface LevelsModuleCondition { + id?: string | null; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + stepsTableId?: string | null; + stepsTableName?: string | null; + achievementsTableId?: string | null; + achievementsTableName?: string | null; + levelsTableId?: string | null; + levelsTableName?: string | null; + levelRequirementsTableId?: string | null; + levelRequirementsTableName?: string | null; + completedStep?: string | null; + incompletedStep?: string | null; + tgAchievement?: string | null; + tgAchievementToggle?: string | null; + tgAchievementToggleBoolean?: string | null; + tgAchievementBoolean?: string | null; + upsertAchievement?: string | null; + tgUpdateAchievements?: string | null; + stepsRequired?: string | null; + levelAchieved?: string | null; + prefix?: string | null; + membershipType?: number | null; + entityTableId?: string | null; + actorTableId?: string | null; +} +export interface LimitsModuleCondition { + id?: string | null; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + tableName?: string | null; + defaultTableId?: string | null; + defaultTableName?: string | null; + limitIncrementFunction?: string | null; + limitDecrementFunction?: string | null; + limitIncrementTrigger?: string | null; + limitDecrementTrigger?: string | null; + limitUpdateTrigger?: string | null; + limitCheckFunction?: string | null; + prefix?: string | null; + membershipType?: number | null; + entityTableId?: string | null; + actorTableId?: string | null; +} +export interface MembershipTypesModuleCondition { + id?: string | null; + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; +} +export interface MembershipsModuleCondition { + id?: string | null; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + membershipsTableId?: string | null; + membershipsTableName?: string | null; + membersTableId?: string | null; + membersTableName?: string | null; + membershipDefaultsTableId?: string | null; + membershipDefaultsTableName?: string | null; + grantsTableId?: string | null; + grantsTableName?: string | null; + actorTableId?: string | null; + limitsTableId?: string | null; + defaultLimitsTableId?: string | null; + permissionsTableId?: string | null; + defaultPermissionsTableId?: string | null; + sprtTableId?: string | null; + adminGrantsTableId?: string | null; + adminGrantsTableName?: string | null; + ownerGrantsTableId?: string | null; + ownerGrantsTableName?: string | null; + membershipType?: number | null; + entityTableId?: string | null; + entityTableOwnerId?: string | null; + prefix?: string | null; + actorMaskCheck?: string | null; + actorPermCheck?: string | null; + entityIdsByMask?: string | null; + entityIdsByPerm?: string | null; + entityIdsFunction?: string | null; +} +export interface PermissionsModuleCondition { + id?: string | null; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + tableName?: string | null; + defaultTableId?: string | null; + defaultTableName?: string | null; + bitlen?: number | null; + membershipType?: number | null; + entityTableId?: string | null; + actorTableId?: string | null; + prefix?: string | null; + getPaddedMask?: string | null; + getMask?: string | null; + getByMask?: string | null; + getMaskByName?: string | null; +} +export interface PhoneNumbersModuleCondition { + id?: string | null; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + ownerTableId?: string | null; + tableName?: string | null; +} +export interface ProfilesModuleCondition { + id?: string | null; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + tableName?: string | null; + profilePermissionsTableId?: string | null; + profilePermissionsTableName?: string | null; + profileGrantsTableId?: string | null; + profileGrantsTableName?: string | null; + profileDefinitionGrantsTableId?: string | null; + profileDefinitionGrantsTableName?: string | null; + bitlen?: number | null; + membershipType?: number | null; + entityTableId?: string | null; + actorTableId?: string | null; + permissionsTableId?: string | null; + membershipsTableId?: string | null; + prefix?: string | null; +} +export interface RlsModuleCondition { + id?: string | null; + databaseId?: string | null; + apiId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + sessionCredentialsTableId?: string | null; + sessionsTableId?: string | null; + usersTableId?: string | null; + authenticate?: string | null; + authenticateStrict?: string | null; + currentRole?: string | null; + currentRoleId?: string | null; +} +export interface SecretsModuleCondition { + id?: string | null; + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; +} +export interface SessionsModuleCondition { + id?: string | null; + databaseId?: string | null; + schemaId?: string | null; + sessionsTableId?: string | null; + sessionCredentialsTableId?: string | null; + authSettingsTableId?: string | null; + usersTableId?: string | null; + sessionsDefaultExpiration?: string | null; + sessionsTable?: string | null; + sessionCredentialsTable?: string | null; + authSettingsTable?: string | null; +} +export interface UserAuthModuleCondition { + id?: string | null; + databaseId?: string | null; + schemaId?: string | null; + emailsTableId?: string | null; + usersTableId?: string | null; + secretsTableId?: string | null; + encryptedTableId?: string | null; + sessionsTableId?: string | null; + sessionCredentialsTableId?: string | null; + auditsTableId?: string | null; + auditsTableName?: string | null; + signInFunction?: string | null; + signUpFunction?: string | null; + signOutFunction?: string | null; + setPasswordFunction?: string | null; + resetPasswordFunction?: string | null; + forgotPasswordFunction?: string | null; + sendVerificationEmailFunction?: string | null; + verifyEmailFunction?: string | null; + verifyPasswordFunction?: string | null; + checkPasswordFunction?: string | null; + sendAccountDeletionEmailFunction?: string | null; + deleteAccountFunction?: string | null; + signInOneTimeTokenFunction?: string | null; + oneTimeTokenFunction?: string | null; + extendTokenExpires?: string | null; +} +export interface UsersModuleCondition { + id?: string | null; + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; + typeTableId?: string | null; + typeTableName?: string | null; +} +export interface UuidModuleCondition { + id?: string | null; + databaseId?: string | null; + schemaId?: string | null; + uuidFunction?: string | null; + uuidSeed?: string | null; +} +export interface DatabaseProvisionModuleCondition { + id?: string | null; + databaseName?: string | null; + ownerId?: string | null; + subdomain?: string | null; + domain?: string | null; + modules?: string | null; + options?: unknown | null; + bootstrapUser?: boolean | null; + status?: string | null; + errorMessage?: string | null; + databaseId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; + completedAt?: string | null; +} +export interface AppAdminGrantCondition { + id?: string | null; + isGrant?: boolean | null; + actorId?: string | null; + grantorId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface AppOwnerGrantCondition { + id?: string | null; + isGrant?: boolean | null; + actorId?: string | null; + grantorId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface AppGrantCondition { + id?: string | null; + permissions?: string | null; + isGrant?: boolean | null; + actorId?: string | null; + grantorId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface OrgMembershipCondition { + id?: string | null; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + isBanned?: boolean | null; + isDisabled?: boolean | null; + isActive?: boolean | null; + isOwner?: boolean | null; + isAdmin?: boolean | null; + permissions?: string | null; + granted?: string | null; + actorId?: string | null; + entityId?: string | null; +} +export interface OrgMemberCondition { + id?: string | null; + isAdmin?: boolean | null; + actorId?: string | null; + entityId?: string | null; +} +export interface OrgAdminGrantCondition { + id?: string | null; + isGrant?: boolean | null; + actorId?: string | null; + entityId?: string | null; + grantorId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface OrgOwnerGrantCondition { + id?: string | null; + isGrant?: boolean | null; + actorId?: string | null; + entityId?: string | null; + grantorId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface OrgGrantCondition { + id?: string | null; + permissions?: string | null; + isGrant?: boolean | null; + actorId?: string | null; + entityId?: string | null; + grantorId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface AppLimitCondition { + id?: string | null; + name?: string | null; + actorId?: string | null; + num?: number | null; + max?: number | null; +} +export interface OrgLimitCondition { + id?: string | null; + name?: string | null; + actorId?: string | null; + num?: number | null; + max?: number | null; + entityId?: string | null; +} +export interface AppStepCondition { + id?: string | null; + actorId?: string | null; + name?: string | null; + count?: number | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface AppAchievementCondition { + id?: string | null; + actorId?: string | null; + name?: string | null; + count?: number | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface InviteCondition { + id?: string | null; + email?: unknown | null; + senderId?: string | null; + inviteToken?: string | null; + inviteValid?: boolean | null; + inviteLimit?: number | null; + inviteCount?: number | null; + multiple?: boolean | null; + data?: unknown | null; + expiresAt?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface ClaimedInviteCondition { + id?: string | null; + data?: unknown | null; + senderId?: string | null; + receiverId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface OrgInviteCondition { + id?: string | null; + email?: unknown | null; + senderId?: string | null; + receiverId?: string | null; + inviteToken?: string | null; + inviteValid?: boolean | null; + inviteLimit?: number | null; + inviteCount?: number | null; + multiple?: boolean | null; + data?: unknown | null; + expiresAt?: string | null; + createdAt?: string | null; + updatedAt?: string | null; + entityId?: string | null; +} +export interface OrgClaimedInviteCondition { + id?: string | null; + data?: unknown | null; + senderId?: string | null; + receiverId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; + entityId?: string | null; +} +export interface AppPermissionDefaultCondition { + id?: string | null; + permissions?: string | null; +} +export interface RefCondition { + id?: string | null; + name?: string | null; + databaseId?: string | null; + storeId?: string | null; + commitId?: string | null; +} +export interface StoreCondition { + id?: string | null; + name?: string | null; + databaseId?: string | null; + hash?: string | null; + createdAt?: string | null; +} +export interface RoleTypeCondition { + id?: number | null; + name?: string | null; +} +export interface OrgPermissionDefaultCondition { + id?: string | null; + 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; + address?: string | null; + isVerified?: boolean | null; + isPrimary?: boolean | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface MembershipTypeCondition { + id?: number | null; + name?: string | null; + description?: string | null; + prefix?: string | null; +} +export interface ConnectedAccountCondition { + id?: string | null; + ownerId?: string | null; + service?: string | null; + identifier?: string | null; + details?: unknown | null; + isVerified?: boolean | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface PhoneNumberCondition { + id?: string | null; + ownerId?: string | null; + cc?: string | null; + number?: string | null; + isVerified?: boolean | null; + isPrimary?: boolean | null; + 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 NodeTypeRegistryCondition { + name?: string | null; + slug?: string | null; + category?: string | null; + displayName?: string | null; + description?: string | null; + parameterSchema?: unknown | null; + tags?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface CommitCondition { + id?: string | null; + message?: string | null; + databaseId?: string | null; + storeId?: string | null; + parentIds?: string | null; + authorId?: string | null; + committerId?: string | null; + treeId?: string | null; + date?: string | null; +} +export interface OrgMembershipDefaultCondition { + id?: string | null; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + entityId?: string | null; + 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; + actorId?: string | null; + origin?: unknown | null; + userAgent?: string | null; + ipAddress?: string | null; + success?: boolean | null; + createdAt?: 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 SqlMigrationCondition { + id?: number | null; + name?: string | null; + databaseId?: string | null; + deploy?: string | null; + deps?: string | null; + payload?: unknown | null; + content?: string | null; + revert?: string | null; + verify?: string | null; + createdAt?: string | null; + action?: string | null; + actionId?: string | null; + actorId?: string | null; +} +export interface AstMigrationCondition { + id?: number | null; + databaseId?: string | null; + name?: string | null; + requires?: string | null; + payload?: unknown | null; + deploys?: string | null; + deploy?: unknown | null; + revert?: unknown | null; + verify?: unknown | null; + createdAt?: string | null; + action?: string | null; + actionId?: string | null; + actorId?: string | null; +} +export interface AppMembershipCondition { + id?: string | null; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + isBanned?: boolean | null; + isDisabled?: boolean | null; + isVerified?: boolean | null; + isActive?: boolean | null; + isOwner?: boolean | null; + isAdmin?: boolean | null; + 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; +} +export interface HierarchyModuleCondition { + id?: string | null; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + chartEdgesTableId?: string | null; + chartEdgesTableName?: string | null; + hierarchySprtTableId?: string | null; + hierarchySprtTableName?: string | null; + chartEdgeGrantsTableId?: string | null; + chartEdgeGrantsTableName?: string | null; + entityTableId?: string | null; + usersTableId?: string | null; + prefix?: string | null; + privateSchemaName?: string | null; + sprtTableName?: string | null; + rebuildHierarchyFunction?: string | null; + getSubordinatesFunction?: string | null; + getManagersFunction?: string | null; + isManagerOfFunction?: string | null; + createdAt?: string | null; +} +// ============ OrderBy Types ============ +export type GetAllRecordsOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'PATH_ASC' + | 'PATH_DESC' + | 'DATA_ASC' + | 'DATA_DESC'; +export type AppPermissionOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'BITNUM_ASC' + | 'BITNUM_DESC' + | 'BITSTR_ASC' + | 'BITSTR_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC'; +export type OrgPermissionOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'BITNUM_ASC' + | 'BITNUM_DESC' + | 'BITSTR_ASC' + | 'BITSTR_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC'; +export type ObjectOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'HASH_UUID_ASC' + | 'HASH_UUID_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'KIDS_ASC' + | 'KIDS_DESC' + | 'KTREE_ASC' + | 'KTREE_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'FRZN_ASC' + | 'FRZN_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC'; +export type AppLevelRequirementOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'LEVEL_ASC' + | 'LEVEL_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'REQUIRED_COUNT_ASC' + | 'REQUIRED_COUNT_DESC' + | 'PRIORITY_ASC' + | 'PRIORITY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type DatabaseOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'SCHEMA_HASH_ASC' + | 'SCHEMA_HASH_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'HASH_ASC' + | 'HASH_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type SchemaOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'SCHEMA_NAME_ASC' + | 'SCHEMA_NAME_DESC' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'MODULE_ASC' + | 'MODULE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'IS_PUBLIC_ASC' + | 'IS_PUBLIC_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type TableOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'MODULE_ASC' + | 'MODULE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'USE_RLS_ASC' + | 'USE_RLS_DESC' + | 'TIMESTAMPS_ASC' + | 'TIMESTAMPS_DESC' + | 'PEOPLESTAMPS_ASC' + | 'PEOPLESTAMPS_DESC' + | 'PLURAL_NAME_ASC' + | 'PLURAL_NAME_DESC' + | 'SINGULAR_NAME_ASC' + | 'SINGULAR_NAME_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'INHERITS_ID_ASC' + | 'INHERITS_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type CheckConstraintOrderBy = + | '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' + | 'TYPE_ASC' + | 'TYPE_DESC' + | 'FIELD_IDS_ASC' + | 'FIELD_IDS_DESC' + | 'EXPR_ASC' + | 'EXPR_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 FieldOrderBy = + | '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' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'IS_REQUIRED_ASC' + | 'IS_REQUIRED_DESC' + | 'DEFAULT_VALUE_ASC' + | 'DEFAULT_VALUE_DESC' + | 'DEFAULT_VALUE_AST_ASC' + | 'DEFAULT_VALUE_AST_DESC' + | 'IS_HIDDEN_ASC' + | 'IS_HIDDEN_DESC' + | 'TYPE_ASC' + | 'TYPE_DESC' + | 'FIELD_ORDER_ASC' + | 'FIELD_ORDER_DESC' + | 'REGEXP_ASC' + | 'REGEXP_DESC' + | 'CHK_ASC' + | 'CHK_DESC' + | 'CHK_EXPR_ASC' + | 'CHK_EXPR_DESC' + | 'MIN_ASC' + | 'MIN_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'MODULE_ASC' + | 'MODULE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type ForeignKeyConstraintOrderBy = + | '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' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'TYPE_ASC' + | 'TYPE_DESC' + | 'FIELD_IDS_ASC' + | 'FIELD_IDS_DESC' + | 'REF_TABLE_ID_ASC' + | 'REF_TABLE_ID_DESC' + | 'REF_FIELD_IDS_ASC' + | 'REF_FIELD_IDS_DESC' + | 'DELETE_ACTION_ASC' + | 'DELETE_ACTION_DESC' + | 'UPDATE_ACTION_ASC' + | 'UPDATE_ACTION_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 FullTextSearchOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'FIELD_ID_ASC' + | 'FIELD_ID_DESC' + | 'FIELD_IDS_ASC' + | 'FIELD_IDS_DESC' + | 'WEIGHTS_ASC' + | 'WEIGHTS_DESC' + | 'LANGS_ASC' + | 'LANGS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type IndexOrderBy = + | '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' + | 'FIELD_IDS_ASC' + | 'FIELD_IDS_DESC' + | 'INCLUDE_FIELD_IDS_ASC' + | 'INCLUDE_FIELD_IDS_DESC' + | 'ACCESS_METHOD_ASC' + | 'ACCESS_METHOD_DESC' + | 'INDEX_PARAMS_ASC' + | 'INDEX_PARAMS_DESC' + | 'WHERE_CLAUSE_ASC' + | 'WHERE_CLAUSE_DESC' + | 'IS_UNIQUE_ASC' + | 'IS_UNIQUE_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 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' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ROLE_NAME_ASC' + | 'ROLE_NAME_DESC' + | 'PRIVILEGE_ASC' + | 'PRIVILEGE_DESC' + | 'PERMISSIVE_ASC' + | 'PERMISSIVE_DESC' + | 'DISABLED_ASC' + | 'DISABLED_DESC' + | 'POLICY_TYPE_ASC' + | 'POLICY_TYPE_DESC' + | 'DATA_ASC' + | 'DATA_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 PrimaryKeyConstraintOrderBy = + | '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' + | 'TYPE_ASC' + | 'TYPE_DESC' + | 'FIELD_IDS_ASC' + | 'FIELD_IDS_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 TableGrantOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'PRIVILEGE_ASC' + | 'PRIVILEGE_DESC' + | 'ROLE_NAME_ASC' + | 'ROLE_NAME_DESC' + | 'FIELD_IDS_ASC' + | 'FIELD_IDS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type TriggerOrderBy = + | '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' + | 'EVENT_ASC' + | 'EVENT_DESC' + | 'FUNCTION_NAME_ASC' + | 'FUNCTION_NAME_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 UniqueConstraintOrderBy = + | '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' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'TYPE_ASC' + | 'TYPE_DESC' + | 'FIELD_IDS_ASC' + | 'FIELD_IDS_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 ViewOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'VIEW_TYPE_ASC' + | 'VIEW_TYPE_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'FILTER_TYPE_ASC' + | 'FILTER_TYPE_DESC' + | 'FILTER_DATA_ASC' + | 'FILTER_DATA_DESC' + | 'SECURITY_INVOKER_ASC' + | 'SECURITY_INVOKER_DESC' + | 'IS_READ_ONLY_ASC' + | 'IS_READ_ONLY_DESC' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'MODULE_ASC' + | 'MODULE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC'; +export type ViewTableOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'VIEW_ID_ASC' + | 'VIEW_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'JOIN_ORDER_ASC' + | 'JOIN_ORDER_DESC'; +export type ViewGrantOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'VIEW_ID_ASC' + | 'VIEW_ID_DESC' + | 'ROLE_NAME_ASC' + | 'ROLE_NAME_DESC' + | 'PRIVILEGE_ASC' + | 'PRIVILEGE_DESC' + | 'WITH_GRANT_OPTION_ASC' + | 'WITH_GRANT_OPTION_DESC'; +export type ViewRuleOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'VIEW_ID_ASC' + | 'VIEW_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'EVENT_ASC' + | 'EVENT_DESC' + | 'ACTION_ASC' + | 'ACTION_DESC'; +export type TableModuleOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'NODE_TYPE_ASC' + | 'NODE_TYPE_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'FIELDS_ASC' + | 'FIELDS_DESC'; +export type TableTemplateModuleOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'OWNER_TABLE_ID_ASC' + | 'OWNER_TABLE_ID_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC' + | 'NODE_TYPE_ASC' + | 'NODE_TYPE_DESC' + | 'DATA_ASC' + | 'DATA_DESC'; +export type SchemaGrantOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'GRANTEE_NAME_ASC' + | 'GRANTEE_NAME_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type ApiSchemaOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'API_ID_ASC' + | 'API_ID_DESC'; +export type ApiModuleOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'API_ID_ASC' + | 'API_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'DATA_ASC' + | 'DATA_DESC'; +export type DomainOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'API_ID_ASC' + | 'API_ID_DESC' + | 'SITE_ID_ASC' + | 'SITE_ID_DESC' + | 'SUBDOMAIN_ASC' + | 'SUBDOMAIN_DESC' + | 'DOMAIN_ASC' + | 'DOMAIN_DESC'; +export type SiteMetadatumOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SITE_ID_ASC' + | 'SITE_ID_DESC' + | 'TITLE_ASC' + | 'TITLE_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'OG_IMAGE_ASC' + | 'OG_IMAGE_DESC'; +export type SiteModuleOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SITE_ID_ASC' + | 'SITE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'DATA_ASC' + | 'DATA_DESC'; +export type SiteThemeOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SITE_ID_ASC' + | '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' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'CODE_ASC' + | 'CODE_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type ApiOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'DBNAME_ASC' + | 'DBNAME_DESC' + | 'ROLE_NAME_ASC' + | 'ROLE_NAME_DESC' + | 'ANON_ROLE_ASC' + | 'ANON_ROLE_DESC' + | 'IS_PUBLIC_ASC' + | 'IS_PUBLIC_DESC'; +export type SiteOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TITLE_ASC' + | 'TITLE_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'OG_IMAGE_ASC' + | 'OG_IMAGE_DESC' + | 'FAVICON_ASC' + | 'FAVICON_DESC' + | 'APPLE_TOUCH_ICON_ASC' + | 'APPLE_TOUCH_ICON_DESC' + | 'LOGO_ASC' + | 'LOGO_DESC' + | 'DBNAME_ASC' + | 'DBNAME_DESC'; +export type AppOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SITE_ID_ASC' + | 'SITE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'APP_IMAGE_ASC' + | 'APP_IMAGE_DESC' + | 'APP_STORE_LINK_ASC' + | 'APP_STORE_LINK_DESC' + | 'APP_STORE_ID_ASC' + | 'APP_STORE_ID_DESC' + | 'APP_ID_PREFIX_ASC' + | 'APP_ID_PREFIX_DESC' + | 'PLAY_STORE_LINK_ASC' + | 'PLAY_STORE_LINK_DESC'; +export type ConnectedAccountsModuleOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'OWNER_TABLE_ID_ASC' + | 'OWNER_TABLE_ID_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC'; +export type CryptoAddressesModuleOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'OWNER_TABLE_ID_ASC' + | 'OWNER_TABLE_ID_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC' + | 'CRYPTO_NETWORK_ASC' + | 'CRYPTO_NETWORK_DESC'; +export type CryptoAuthModuleOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'USERS_TABLE_ID_ASC' + | 'USERS_TABLE_ID_DESC' + | 'SECRETS_TABLE_ID_ASC' + | 'SECRETS_TABLE_ID_DESC' + | 'SESSIONS_TABLE_ID_ASC' + | 'SESSIONS_TABLE_ID_DESC' + | 'SESSION_CREDENTIALS_TABLE_ID_ASC' + | 'SESSION_CREDENTIALS_TABLE_ID_DESC' + | 'ADDRESSES_TABLE_ID_ASC' + | 'ADDRESSES_TABLE_ID_DESC' + | 'USER_FIELD_ASC' + | 'USER_FIELD_DESC' + | 'CRYPTO_NETWORK_ASC' + | 'CRYPTO_NETWORK_DESC' + | 'SIGN_IN_REQUEST_CHALLENGE_ASC' + | 'SIGN_IN_REQUEST_CHALLENGE_DESC' + | 'SIGN_IN_RECORD_FAILURE_ASC' + | 'SIGN_IN_RECORD_FAILURE_DESC' + | 'SIGN_UP_WITH_KEY_ASC' + | 'SIGN_UP_WITH_KEY_DESC' + | 'SIGN_IN_WITH_CHALLENGE_ASC' + | 'SIGN_IN_WITH_CHALLENGE_DESC'; +export type DefaultIdsModuleOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +export type DenormalizedTableFieldOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'FIELD_ID_ASC' + | 'FIELD_ID_DESC' + | 'SET_IDS_ASC' + | 'SET_IDS_DESC' + | 'REF_TABLE_ID_ASC' + | 'REF_TABLE_ID_DESC' + | 'REF_FIELD_ID_ASC' + | 'REF_FIELD_ID_DESC' + | 'REF_IDS_ASC' + | 'REF_IDS_DESC' + | 'USE_UPDATES_ASC' + | 'USE_UPDATES_DESC' + | 'UPDATE_DEFAULTS_ASC' + | 'UPDATE_DEFAULTS_DESC' + | 'FUNC_NAME_ASC' + | 'FUNC_NAME_DESC' + | 'FUNC_ORDER_ASC' + | 'FUNC_ORDER_DESC'; +export type EmailsModuleOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'OWNER_TABLE_ID_ASC' + | 'OWNER_TABLE_ID_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC'; +export type EncryptedSecretsModuleOrderBy = + | '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'; +export type FieldModuleOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'FIELD_ID_ASC' + | 'FIELD_ID_DESC' + | 'NODE_TYPE_ASC' + | 'NODE_TYPE_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'TRIGGERS_ASC' + | 'TRIGGERS_DESC' + | 'FUNCTIONS_ASC' + | 'FUNCTIONS_DESC'; +export type InvitesModuleOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'EMAILS_TABLE_ID_ASC' + | 'EMAILS_TABLE_ID_DESC' + | 'USERS_TABLE_ID_ASC' + | 'USERS_TABLE_ID_DESC' + | 'INVITES_TABLE_ID_ASC' + | 'INVITES_TABLE_ID_DESC' + | 'CLAIMED_INVITES_TABLE_ID_ASC' + | 'CLAIMED_INVITES_TABLE_ID_DESC' + | 'INVITES_TABLE_NAME_ASC' + | 'INVITES_TABLE_NAME_DESC' + | 'CLAIMED_INVITES_TABLE_NAME_ASC' + | 'CLAIMED_INVITES_TABLE_NAME_DESC' + | 'SUBMIT_INVITE_CODE_FUNCTION_ASC' + | 'SUBMIT_INVITE_CODE_FUNCTION_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'MEMBERSHIP_TYPE_ASC' + | 'MEMBERSHIP_TYPE_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC'; +export type LevelsModuleOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'STEPS_TABLE_ID_ASC' + | 'STEPS_TABLE_ID_DESC' + | 'STEPS_TABLE_NAME_ASC' + | 'STEPS_TABLE_NAME_DESC' + | 'ACHIEVEMENTS_TABLE_ID_ASC' + | 'ACHIEVEMENTS_TABLE_ID_DESC' + | 'ACHIEVEMENTS_TABLE_NAME_ASC' + | 'ACHIEVEMENTS_TABLE_NAME_DESC' + | 'LEVELS_TABLE_ID_ASC' + | 'LEVELS_TABLE_ID_DESC' + | 'LEVELS_TABLE_NAME_ASC' + | 'LEVELS_TABLE_NAME_DESC' + | 'LEVEL_REQUIREMENTS_TABLE_ID_ASC' + | 'LEVEL_REQUIREMENTS_TABLE_ID_DESC' + | 'LEVEL_REQUIREMENTS_TABLE_NAME_ASC' + | 'LEVEL_REQUIREMENTS_TABLE_NAME_DESC' + | 'COMPLETED_STEP_ASC' + | 'COMPLETED_STEP_DESC' + | 'INCOMPLETED_STEP_ASC' + | 'INCOMPLETED_STEP_DESC' + | 'TG_ACHIEVEMENT_ASC' + | 'TG_ACHIEVEMENT_DESC' + | 'TG_ACHIEVEMENT_TOGGLE_ASC' + | 'TG_ACHIEVEMENT_TOGGLE_DESC' + | 'TG_ACHIEVEMENT_TOGGLE_BOOLEAN_ASC' + | 'TG_ACHIEVEMENT_TOGGLE_BOOLEAN_DESC' + | 'TG_ACHIEVEMENT_BOOLEAN_ASC' + | 'TG_ACHIEVEMENT_BOOLEAN_DESC' + | 'UPSERT_ACHIEVEMENT_ASC' + | 'UPSERT_ACHIEVEMENT_DESC' + | 'TG_UPDATE_ACHIEVEMENTS_ASC' + | 'TG_UPDATE_ACHIEVEMENTS_DESC' + | 'STEPS_REQUIRED_ASC' + | 'STEPS_REQUIRED_DESC' + | 'LEVEL_ACHIEVED_ASC' + | 'LEVEL_ACHIEVED_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'MEMBERSHIP_TYPE_ASC' + | 'MEMBERSHIP_TYPE_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'ACTOR_TABLE_ID_ASC' + | 'ACTOR_TABLE_ID_DESC'; +export type LimitsModuleOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC' + | 'DEFAULT_TABLE_ID_ASC' + | 'DEFAULT_TABLE_ID_DESC' + | 'DEFAULT_TABLE_NAME_ASC' + | 'DEFAULT_TABLE_NAME_DESC' + | 'LIMIT_INCREMENT_FUNCTION_ASC' + | 'LIMIT_INCREMENT_FUNCTION_DESC' + | 'LIMIT_DECREMENT_FUNCTION_ASC' + | 'LIMIT_DECREMENT_FUNCTION_DESC' + | 'LIMIT_INCREMENT_TRIGGER_ASC' + | 'LIMIT_INCREMENT_TRIGGER_DESC' + | 'LIMIT_DECREMENT_TRIGGER_ASC' + | 'LIMIT_DECREMENT_TRIGGER_DESC' + | 'LIMIT_UPDATE_TRIGGER_ASC' + | 'LIMIT_UPDATE_TRIGGER_DESC' + | 'LIMIT_CHECK_FUNCTION_ASC' + | 'LIMIT_CHECK_FUNCTION_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'MEMBERSHIP_TYPE_ASC' + | 'MEMBERSHIP_TYPE_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'ACTOR_TABLE_ID_ASC' + | 'ACTOR_TABLE_ID_DESC'; +export type MembershipTypesModuleOrderBy = + | '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'; +export type MembershipsModuleOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'MEMBERSHIPS_TABLE_ID_ASC' + | 'MEMBERSHIPS_TABLE_ID_DESC' + | 'MEMBERSHIPS_TABLE_NAME_ASC' + | 'MEMBERSHIPS_TABLE_NAME_DESC' + | 'MEMBERS_TABLE_ID_ASC' + | 'MEMBERS_TABLE_ID_DESC' + | 'MEMBERS_TABLE_NAME_ASC' + | 'MEMBERS_TABLE_NAME_DESC' + | 'MEMBERSHIP_DEFAULTS_TABLE_ID_ASC' + | 'MEMBERSHIP_DEFAULTS_TABLE_ID_DESC' + | 'MEMBERSHIP_DEFAULTS_TABLE_NAME_ASC' + | 'MEMBERSHIP_DEFAULTS_TABLE_NAME_DESC' + | 'GRANTS_TABLE_ID_ASC' + | 'GRANTS_TABLE_ID_DESC' + | 'GRANTS_TABLE_NAME_ASC' + | 'GRANTS_TABLE_NAME_DESC' + | 'ACTOR_TABLE_ID_ASC' + | 'ACTOR_TABLE_ID_DESC' + | 'LIMITS_TABLE_ID_ASC' + | 'LIMITS_TABLE_ID_DESC' + | 'DEFAULT_LIMITS_TABLE_ID_ASC' + | 'DEFAULT_LIMITS_TABLE_ID_DESC' + | 'PERMISSIONS_TABLE_ID_ASC' + | 'PERMISSIONS_TABLE_ID_DESC' + | 'DEFAULT_PERMISSIONS_TABLE_ID_ASC' + | 'DEFAULT_PERMISSIONS_TABLE_ID_DESC' + | 'SPRT_TABLE_ID_ASC' + | 'SPRT_TABLE_ID_DESC' + | 'ADMIN_GRANTS_TABLE_ID_ASC' + | 'ADMIN_GRANTS_TABLE_ID_DESC' + | 'ADMIN_GRANTS_TABLE_NAME_ASC' + | 'ADMIN_GRANTS_TABLE_NAME_DESC' + | 'OWNER_GRANTS_TABLE_ID_ASC' + | 'OWNER_GRANTS_TABLE_ID_DESC' + | 'OWNER_GRANTS_TABLE_NAME_ASC' + | 'OWNER_GRANTS_TABLE_NAME_DESC' + | 'MEMBERSHIP_TYPE_ASC' + | 'MEMBERSHIP_TYPE_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'ENTITY_TABLE_OWNER_ID_ASC' + | 'ENTITY_TABLE_OWNER_ID_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ACTOR_MASK_CHECK_ASC' + | 'ACTOR_MASK_CHECK_DESC' + | 'ACTOR_PERM_CHECK_ASC' + | 'ACTOR_PERM_CHECK_DESC' + | 'ENTITY_IDS_BY_MASK_ASC' + | 'ENTITY_IDS_BY_MASK_DESC' + | 'ENTITY_IDS_BY_PERM_ASC' + | 'ENTITY_IDS_BY_PERM_DESC' + | 'ENTITY_IDS_FUNCTION_ASC' + | 'ENTITY_IDS_FUNCTION_DESC'; +export type PermissionsModuleOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC' + | 'DEFAULT_TABLE_ID_ASC' + | 'DEFAULT_TABLE_ID_DESC' + | 'DEFAULT_TABLE_NAME_ASC' + | 'DEFAULT_TABLE_NAME_DESC' + | 'BITLEN_ASC' + | 'BITLEN_DESC' + | 'MEMBERSHIP_TYPE_ASC' + | 'MEMBERSHIP_TYPE_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'ACTOR_TABLE_ID_ASC' + | 'ACTOR_TABLE_ID_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'GET_PADDED_MASK_ASC' + | 'GET_PADDED_MASK_DESC' + | 'GET_MASK_ASC' + | 'GET_MASK_DESC' + | 'GET_BY_MASK_ASC' + | 'GET_BY_MASK_DESC' + | 'GET_MASK_BY_NAME_ASC' + | 'GET_MASK_BY_NAME_DESC'; +export type PhoneNumbersModuleOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'OWNER_TABLE_ID_ASC' + | 'OWNER_TABLE_ID_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC'; +export type ProfilesModuleOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC' + | 'PROFILE_PERMISSIONS_TABLE_ID_ASC' + | 'PROFILE_PERMISSIONS_TABLE_ID_DESC' + | 'PROFILE_PERMISSIONS_TABLE_NAME_ASC' + | 'PROFILE_PERMISSIONS_TABLE_NAME_DESC' + | 'PROFILE_GRANTS_TABLE_ID_ASC' + | 'PROFILE_GRANTS_TABLE_ID_DESC' + | 'PROFILE_GRANTS_TABLE_NAME_ASC' + | 'PROFILE_GRANTS_TABLE_NAME_DESC' + | 'PROFILE_DEFINITION_GRANTS_TABLE_ID_ASC' + | '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' + | 'ENTITY_TABLE_ID_DESC' + | 'ACTOR_TABLE_ID_ASC' + | 'ACTOR_TABLE_ID_DESC' + | 'PERMISSIONS_TABLE_ID_ASC' + | 'PERMISSIONS_TABLE_ID_DESC' + | 'MEMBERSHIPS_TABLE_ID_ASC' + | 'MEMBERSHIPS_TABLE_ID_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC'; +export type RlsModuleOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'API_ID_ASC' + | 'API_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'SESSION_CREDENTIALS_TABLE_ID_ASC' + | 'SESSION_CREDENTIALS_TABLE_ID_DESC' + | 'SESSIONS_TABLE_ID_ASC' + | 'SESSIONS_TABLE_ID_DESC' + | 'USERS_TABLE_ID_ASC' + | 'USERS_TABLE_ID_DESC' + | 'AUTHENTICATE_ASC' + | 'AUTHENTICATE_DESC' + | 'AUTHENTICATE_STRICT_ASC' + | 'AUTHENTICATE_STRICT_DESC' + | 'CURRENT_ROLE_ASC' + | 'CURRENT_ROLE_DESC' + | 'CURRENT_ROLE_ID_ASC' + | 'CURRENT_ROLE_ID_DESC'; +export type SecretsModuleOrderBy = + | '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'; +export type SessionsModuleOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'SESSIONS_TABLE_ID_ASC' + | 'SESSIONS_TABLE_ID_DESC' + | 'SESSION_CREDENTIALS_TABLE_ID_ASC' + | 'SESSION_CREDENTIALS_TABLE_ID_DESC' + | 'AUTH_SETTINGS_TABLE_ID_ASC' + | 'AUTH_SETTINGS_TABLE_ID_DESC' + | 'USERS_TABLE_ID_ASC' + | 'USERS_TABLE_ID_DESC' + | 'SESSIONS_DEFAULT_EXPIRATION_ASC' + | 'SESSIONS_DEFAULT_EXPIRATION_DESC' + | 'SESSIONS_TABLE_ASC' + | 'SESSIONS_TABLE_DESC' + | 'SESSION_CREDENTIALS_TABLE_ASC' + | 'SESSION_CREDENTIALS_TABLE_DESC' + | 'AUTH_SETTINGS_TABLE_ASC' + | 'AUTH_SETTINGS_TABLE_DESC'; +export type UserAuthModuleOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'EMAILS_TABLE_ID_ASC' + | 'EMAILS_TABLE_ID_DESC' + | 'USERS_TABLE_ID_ASC' + | 'USERS_TABLE_ID_DESC' + | 'SECRETS_TABLE_ID_ASC' + | 'SECRETS_TABLE_ID_DESC' + | 'ENCRYPTED_TABLE_ID_ASC' + | 'ENCRYPTED_TABLE_ID_DESC' + | 'SESSIONS_TABLE_ID_ASC' + | 'SESSIONS_TABLE_ID_DESC' + | 'SESSION_CREDENTIALS_TABLE_ID_ASC' + | 'SESSION_CREDENTIALS_TABLE_ID_DESC' + | 'AUDITS_TABLE_ID_ASC' + | 'AUDITS_TABLE_ID_DESC' + | 'AUDITS_TABLE_NAME_ASC' + | 'AUDITS_TABLE_NAME_DESC' + | 'SIGN_IN_FUNCTION_ASC' + | 'SIGN_IN_FUNCTION_DESC' + | 'SIGN_UP_FUNCTION_ASC' + | 'SIGN_UP_FUNCTION_DESC' + | 'SIGN_OUT_FUNCTION_ASC' + | 'SIGN_OUT_FUNCTION_DESC' + | 'SET_PASSWORD_FUNCTION_ASC' + | 'SET_PASSWORD_FUNCTION_DESC' + | 'RESET_PASSWORD_FUNCTION_ASC' + | 'RESET_PASSWORD_FUNCTION_DESC' + | 'FORGOT_PASSWORD_FUNCTION_ASC' + | 'FORGOT_PASSWORD_FUNCTION_DESC' + | 'SEND_VERIFICATION_EMAIL_FUNCTION_ASC' + | 'SEND_VERIFICATION_EMAIL_FUNCTION_DESC' + | 'VERIFY_EMAIL_FUNCTION_ASC' + | 'VERIFY_EMAIL_FUNCTION_DESC' + | 'VERIFY_PASSWORD_FUNCTION_ASC' + | 'VERIFY_PASSWORD_FUNCTION_DESC' + | 'CHECK_PASSWORD_FUNCTION_ASC' + | 'CHECK_PASSWORD_FUNCTION_DESC' + | 'SEND_ACCOUNT_DELETION_EMAIL_FUNCTION_ASC' + | 'SEND_ACCOUNT_DELETION_EMAIL_FUNCTION_DESC' + | 'DELETE_ACCOUNT_FUNCTION_ASC' + | 'DELETE_ACCOUNT_FUNCTION_DESC' + | 'SIGN_IN_ONE_TIME_TOKEN_FUNCTION_ASC' + | 'SIGN_IN_ONE_TIME_TOKEN_FUNCTION_DESC' + | 'ONE_TIME_TOKEN_FUNCTION_ASC' + | 'ONE_TIME_TOKEN_FUNCTION_DESC' + | 'EXTEND_TOKEN_EXPIRES_ASC' + | 'EXTEND_TOKEN_EXPIRES_DESC'; +export type UsersModuleOrderBy = + | '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' + | 'TYPE_TABLE_ID_ASC' + | 'TYPE_TABLE_ID_DESC' + | 'TYPE_TABLE_NAME_ASC' + | 'TYPE_TABLE_NAME_DESC'; +export type UuidModuleOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'UUID_FUNCTION_ASC' + | 'UUID_FUNCTION_DESC' + | 'UUID_SEED_ASC' + | 'UUID_SEED_DESC'; +export type DatabaseProvisionModuleOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_NAME_ASC' + | 'DATABASE_NAME_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'SUBDOMAIN_ASC' + | 'SUBDOMAIN_DESC' + | 'DOMAIN_ASC' + | 'DOMAIN_DESC' + | 'MODULES_ASC' + | 'MODULES_DESC' + | 'OPTIONS_ASC' + | 'OPTIONS_DESC' + | 'BOOTSTRAP_USER_ASC' + | 'BOOTSTRAP_USER_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'ERROR_MESSAGE_ASC' + | 'ERROR_MESSAGE_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'COMPLETED_AT_ASC' + | 'COMPLETED_AT_DESC'; +export type AppAdminGrantOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type AppOwnerGrantOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type AppGrantOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'PERMISSIONS_ASC' + | 'PERMISSIONS_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type OrgMembershipOrderBy = + | '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_BANNED_ASC' + | 'IS_BANNED_DESC' + | 'IS_DISABLED_ASC' + | 'IS_DISABLED_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' + | 'IS_OWNER_ASC' + | 'IS_OWNER_DESC' + | 'IS_ADMIN_ASC' + | 'IS_ADMIN_DESC' + | 'PERMISSIONS_ASC' + | 'PERMISSIONS_DESC' + | 'GRANTED_ASC' + | 'GRANTED_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; +export type OrgMemberOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_ADMIN_ASC' + | 'IS_ADMIN_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; +export type OrgAdminGrantOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type OrgOwnerGrantOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type OrgGrantOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'PERMISSIONS_ASC' + | 'PERMISSIONS_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type AppLimitOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'NUM_ASC' + | 'NUM_DESC' + | 'MAX_ASC' + | 'MAX_DESC'; +export type OrgLimitOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'NUM_ASC' + | 'NUM_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; +export type AppStepOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'COUNT_ASC' + | 'COUNT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type AppAchievementOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'COUNT_ASC' + | 'COUNT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type InviteOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'EMAIL_ASC' + | 'EMAIL_DESC' + | 'SENDER_ID_ASC' + | 'SENDER_ID_DESC' + | 'INVITE_TOKEN_ASC' + | 'INVITE_TOKEN_DESC' + | 'INVITE_VALID_ASC' + | 'INVITE_VALID_DESC' + | 'INVITE_LIMIT_ASC' + | 'INVITE_LIMIT_DESC' + | 'INVITE_COUNT_ASC' + | 'INVITE_COUNT_DESC' + | 'MULTIPLE_ASC' + | 'MULTIPLE_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type ClaimedInviteOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'SENDER_ID_ASC' + | 'SENDER_ID_DESC' + | 'RECEIVER_ID_ASC' + | 'RECEIVER_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type OrgInviteOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'EMAIL_ASC' + | 'EMAIL_DESC' + | 'SENDER_ID_ASC' + | 'SENDER_ID_DESC' + | 'RECEIVER_ID_ASC' + | 'RECEIVER_ID_DESC' + | 'INVITE_TOKEN_ASC' + | 'INVITE_TOKEN_DESC' + | 'INVITE_VALID_ASC' + | 'INVITE_VALID_DESC' + | 'INVITE_LIMIT_ASC' + | 'INVITE_LIMIT_DESC' + | 'INVITE_COUNT_ASC' + | 'INVITE_COUNT_DESC' + | 'MULTIPLE_ASC' + | 'MULTIPLE_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; +export type OrgClaimedInviteOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'SENDER_ID_ASC' + | 'SENDER_ID_DESC' + | 'RECEIVER_ID_ASC' + | 'RECEIVER_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | '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' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'COMMIT_ID_ASC' + | 'COMMIT_ID_DESC'; +export type StoreOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'HASH_ASC' + | 'HASH_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC'; +export type RoleTypeOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC'; +export type OrgPermissionDefaultOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'PERMISSIONS_ASC' + | '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' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'ADDRESS_ASC' + | 'ADDRESS_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 MembershipTypeOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC'; +export type ConnectedAccountOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'SERVICE_ASC' + | 'SERVICE_DESC' + | 'IDENTIFIER_ASC' + | 'IDENTIFIER_DESC' + | 'DETAILS_ASC' + | 'DETAILS_DESC' + | 'IS_VERIFIED_ASC' + | 'IS_VERIFIED_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type PhoneNumberOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'CC_ASC' + | 'CC_DESC' + | 'NUMBER_ASC' + | 'NUMBER_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 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 NodeTypeRegistryOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'NAME_ASC' + | 'NAME_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'DISPLAY_NAME_ASC' + | 'DISPLAY_NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'PARAMETER_SCHEMA_ASC' + | 'PARAMETER_SCHEMA_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type CommitOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'MESSAGE_ASC' + | 'MESSAGE_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'PARENT_IDS_ASC' + | 'PARENT_IDS_DESC' + | 'AUTHOR_ID_ASC' + | 'AUTHOR_ID_DESC' + | 'COMMITTER_ID_ASC' + | 'COMMITTER_ID_DESC' + | 'TREE_ID_ASC' + | 'TREE_ID_DESC' + | 'DATE_ASC' + | 'DATE_DESC'; +export type OrgMembershipDefaultOrderBy = + | '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' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'DELETE_MEMBER_CASCADE_GROUPS_ASC' + | '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' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'EVENT_ASC' + | 'EVENT_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ORIGIN_ASC' + | 'ORIGIN_DESC' + | 'USER_AGENT_ASC' + | 'USER_AGENT_DESC' + | 'IP_ADDRESS_ASC' + | 'IP_ADDRESS_DESC' + | 'SUCCESS_ASC' + | 'SUCCESS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_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 SqlMigrationOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DEPLOY_ASC' + | 'DEPLOY_DESC' + | 'DEPS_ASC' + | 'DEPS_DESC' + | 'PAYLOAD_ASC' + | 'PAYLOAD_DESC' + | 'CONTENT_ASC' + | 'CONTENT_DESC' + | 'REVERT_ASC' + | 'REVERT_DESC' + | 'VERIFY_ASC' + | 'VERIFY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ACTION_ASC' + | 'ACTION_DESC' + | 'ACTION_ID_ASC' + | 'ACTION_ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC'; +export type AstMigrationOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'REQUIRES_ASC' + | 'REQUIRES_DESC' + | 'PAYLOAD_ASC' + | 'PAYLOAD_DESC' + | 'DEPLOYS_ASC' + | 'DEPLOYS_DESC' + | 'DEPLOY_ASC' + | 'DEPLOY_DESC' + | 'REVERT_ASC' + | 'REVERT_DESC' + | 'VERIFY_ASC' + | 'VERIFY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ACTION_ASC' + | 'ACTION_DESC' + | 'ACTION_ID_ASC' + | 'ACTION_ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC'; +export type AppMembershipOrderBy = + | '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_BANNED_ASC' + | 'IS_BANNED_DESC' + | 'IS_DISABLED_ASC' + | 'IS_DISABLED_DESC' + | 'IS_VERIFIED_ASC' + | 'IS_VERIFIED_DESC' + | 'IS_ACTIVE_ASC' + | 'IS_ACTIVE_DESC' + | 'IS_OWNER_ASC' + | 'IS_OWNER_DESC' + | 'IS_ADMIN_ASC' + | 'IS_ADMIN_DESC' + | 'PERMISSIONS_ASC' + | 'PERMISSIONS_DESC' + | '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'; +export type HierarchyModuleOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'CHART_EDGES_TABLE_ID_ASC' + | 'CHART_EDGES_TABLE_ID_DESC' + | 'CHART_EDGES_TABLE_NAME_ASC' + | 'CHART_EDGES_TABLE_NAME_DESC' + | 'HIERARCHY_SPRT_TABLE_ID_ASC' + | 'HIERARCHY_SPRT_TABLE_ID_DESC' + | 'HIERARCHY_SPRT_TABLE_NAME_ASC' + | 'HIERARCHY_SPRT_TABLE_NAME_DESC' + | 'CHART_EDGE_GRANTS_TABLE_ID_ASC' + | 'CHART_EDGE_GRANTS_TABLE_ID_DESC' + | 'CHART_EDGE_GRANTS_TABLE_NAME_ASC' + | 'CHART_EDGE_GRANTS_TABLE_NAME_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'USERS_TABLE_ID_ASC' + | 'USERS_TABLE_ID_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'SPRT_TABLE_NAME_ASC' + | 'SPRT_TABLE_NAME_DESC' + | 'REBUILD_HIERARCHY_FUNCTION_ASC' + | 'REBUILD_HIERARCHY_FUNCTION_DESC' + | 'GET_SUBORDINATES_FUNCTION_ASC' + | 'GET_SUBORDINATES_FUNCTION_DESC' + | 'GET_MANAGERS_FUNCTION_ASC' + | 'GET_MANAGERS_FUNCTION_DESC' + | 'IS_MANAGER_OF_FUNCTION_ASC' + | 'IS_MANAGER_OF_FUNCTION_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC'; +// ============ CRUD Input Types ============ +export interface CreateGetAllRecordInput { + clientMutationId?: string; + getAllRecord: { + path?: string; + data?: Record; + }; +} +export interface GetAllRecordPatch { + path?: string | null; + data?: Record | null; +} +export interface UpdateGetAllRecordInput { + clientMutationId?: string; + id: string; + getAllRecordPatch: GetAllRecordPatch; +} +export interface DeleteGetAllRecordInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppPermissionInput { + clientMutationId?: string; + appPermission: { + name?: string; + bitnum?: number; + bitstr?: string; + description?: string; + }; +} +export interface AppPermissionPatch { + name?: string | null; + bitnum?: number | null; + bitstr?: string | null; + description?: string | null; +} +export interface UpdateAppPermissionInput { + clientMutationId?: string; + id: string; + appPermissionPatch: AppPermissionPatch; +} +export interface DeleteAppPermissionInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgPermissionInput { + clientMutationId?: string; + orgPermission: { + name?: string; + bitnum?: number; + bitstr?: string; + description?: string; + }; +} +export interface OrgPermissionPatch { + name?: string | null; + bitnum?: number | null; + bitstr?: string | null; + description?: string | null; +} +export interface UpdateOrgPermissionInput { + clientMutationId?: string; + id: string; + orgPermissionPatch: OrgPermissionPatch; +} +export interface DeleteOrgPermissionInput { + clientMutationId?: string; + id: string; +} +export interface CreateObjectInput { + clientMutationId?: string; + object: { + databaseId: string; + kids?: string[]; + ktree?: string[]; + data?: Record; + frzn?: boolean; + }; +} +export interface ObjectPatch { + hashUuid?: string | null; + databaseId?: string | null; + kids?: string | null; + ktree?: string | null; + data?: Record | null; + frzn?: boolean | null; +} +export interface UpdateObjectInput { + clientMutationId?: string; + id: string; + objectPatch: ObjectPatch; +} +export interface DeleteObjectInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppLevelRequirementInput { + clientMutationId?: string; + appLevelRequirement: { + name: string; + level: string; + description?: string; + requiredCount?: number; + priority?: number; + }; +} +export interface AppLevelRequirementPatch { + name?: string | null; + level?: string | null; + description?: string | null; + requiredCount?: number | null; + priority?: number | null; +} +export interface UpdateAppLevelRequirementInput { + clientMutationId?: string; + id: string; + appLevelRequirementPatch: AppLevelRequirementPatch; +} +export interface DeleteAppLevelRequirementInput { + clientMutationId?: string; + id: string; +} +export interface CreateDatabaseInput { + clientMutationId?: string; + database: { + ownerId?: string; + schemaHash?: string; + name?: string; + label?: string; + hash?: string; + }; +} +export interface DatabasePatch { + ownerId?: string | null; + schemaHash?: string | null; + name?: string | null; + label?: string | null; + hash?: string | null; +} +export interface UpdateDatabaseInput { + clientMutationId?: string; + id: string; + databasePatch: DatabasePatch; +} +export interface DeleteDatabaseInput { + clientMutationId?: string; + id: string; +} +export interface CreateSchemaInput { + clientMutationId?: string; + schema: { + databaseId: string; + name: string; + schemaName: string; + label?: string; + description?: string; + smartTags?: Record; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + isPublic?: boolean; + }; +} +export interface SchemaPatch { + databaseId?: string | null; + name?: string | null; + schemaName?: string | null; + label?: string | null; + description?: string | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string | null; + isPublic?: boolean | null; +} +export interface UpdateSchemaInput { + clientMutationId?: string; + id: string; + schemaPatch: SchemaPatch; +} +export interface DeleteSchemaInput { + clientMutationId?: string; + id: string; +} +export interface CreateTableInput { + clientMutationId?: string; + table: { + databaseId?: string; + schemaId: string; + name: string; + label?: string; + description?: string; + smartTags?: Record; + category?: ObjectCategory; + module?: string; + scope?: number; + useRls?: boolean; + timestamps?: boolean; + peoplestamps?: boolean; + pluralName?: string; + singularName?: string; + tags?: string[]; + inheritsId?: string; + }; +} +export interface TablePatch { + databaseId?: string | null; + schemaId?: string | null; + name?: string | null; + label?: string | null; + description?: string | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + useRls?: boolean | null; + timestamps?: boolean | null; + peoplestamps?: boolean | null; + pluralName?: string | null; + singularName?: string | null; + tags?: string | null; + inheritsId?: string | null; +} +export interface UpdateTableInput { + clientMutationId?: string; + id: string; + tablePatch: TablePatch; +} +export interface DeleteTableInput { + clientMutationId?: string; + id: string; +} +export interface CreateCheckConstraintInput { + clientMutationId?: string; + checkConstraint: { + databaseId?: string; + tableId: string; + name?: string; + type?: string; + fieldIds: string[]; + expr?: Record; + smartTags?: Record; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + }; +} +export interface CheckConstraintPatch { + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + type?: string | null; + fieldIds?: string | null; + expr?: Record | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string | null; +} +export interface UpdateCheckConstraintInput { + clientMutationId?: string; + id: string; + checkConstraintPatch: CheckConstraintPatch; +} +export interface DeleteCheckConstraintInput { + clientMutationId?: string; + id: string; +} +export interface CreateFieldInput { + clientMutationId?: string; + field: { + databaseId?: string; + tableId: string; + name: string; + label?: string; + description?: string; + smartTags?: Record; + isRequired?: boolean; + defaultValue?: string; + defaultValueAst?: Record; + isHidden?: boolean; + type: string; + fieldOrder?: number; + regexp?: string; + chk?: Record; + chkExpr?: Record; + min?: number; + max?: number; + tags?: string[]; + category?: ObjectCategory; + module?: string; + scope?: number; + }; +} +export interface FieldPatch { + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + label?: string | null; + description?: string | null; + smartTags?: Record | null; + isRequired?: boolean | null; + defaultValue?: string | null; + defaultValueAst?: Record | null; + isHidden?: boolean | null; + type?: string | null; + fieldOrder?: number | null; + regexp?: string | null; + chk?: Record | null; + chkExpr?: Record | null; + min?: number | null; + max?: number | null; + tags?: string | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; +} +export interface UpdateFieldInput { + clientMutationId?: string; + id: string; + fieldPatch: FieldPatch; +} +export interface DeleteFieldInput { + clientMutationId?: string; + id: string; +} +export interface CreateForeignKeyConstraintInput { + clientMutationId?: string; + foreignKeyConstraint: { + databaseId?: string; + tableId: string; + name?: string; + description?: string; + smartTags?: Record; + type?: string; + fieldIds: string[]; + refTableId: string; + refFieldIds: string[]; + deleteAction?: string; + updateAction?: string; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + }; +} +export interface ForeignKeyConstraintPatch { + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + description?: string | null; + smartTags?: Record | null; + type?: string | null; + fieldIds?: string | null; + refTableId?: string | null; + refFieldIds?: string | null; + deleteAction?: string | null; + updateAction?: string | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string | null; +} +export interface UpdateForeignKeyConstraintInput { + clientMutationId?: string; + id: string; + foreignKeyConstraintPatch: ForeignKeyConstraintPatch; +} +export interface DeleteForeignKeyConstraintInput { + clientMutationId?: string; + id: string; +} +export interface CreateFullTextSearchInput { + clientMutationId?: string; + fullTextSearch: { + databaseId?: string; + tableId: string; + fieldId: string; + fieldIds: string[]; + weights: string[]; + langs: string[]; + }; +} +export interface FullTextSearchPatch { + databaseId?: string | null; + tableId?: string | null; + fieldId?: string | null; + fieldIds?: string | null; + weights?: string | null; + langs?: string | null; +} +export interface UpdateFullTextSearchInput { + clientMutationId?: string; + id: string; + fullTextSearchPatch: FullTextSearchPatch; +} +export interface DeleteFullTextSearchInput { + clientMutationId?: string; + id: string; +} +export interface CreateIndexInput { + clientMutationId?: string; + index: { + databaseId: string; + tableId: string; + name?: string; + fieldIds?: string[]; + includeFieldIds?: string[]; + accessMethod?: string; + indexParams?: Record; + whereClause?: Record; + isUnique?: boolean; + smartTags?: Record; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + }; +} +export interface IndexPatch { + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + fieldIds?: string | null; + includeFieldIds?: string | null; + accessMethod?: string | null; + indexParams?: Record | null; + whereClause?: Record | null; + isUnique?: boolean | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string | null; +} +export interface UpdateIndexInput { + clientMutationId?: string; + id: string; + indexPatch: IndexPatch; +} +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; + privilege?: string; + permissive?: boolean; + disabled?: boolean; + policyType?: string; + data?: Record; + smartTags?: Record; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + }; +} +export interface PolicyPatch { + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + roleName?: string | null; + privilege?: string | null; + permissive?: boolean | null; + disabled?: boolean | null; + policyType?: string | null; + data?: Record | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string | null; +} +export interface UpdatePolicyInput { + clientMutationId?: string; + id: string; + policyPatch: PolicyPatch; +} +export interface DeletePolicyInput { + clientMutationId?: string; + id: string; +} +export interface CreatePrimaryKeyConstraintInput { + clientMutationId?: string; + primaryKeyConstraint: { + databaseId?: string; + tableId: string; + name?: string; + type?: string; + fieldIds: string[]; + smartTags?: Record; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + }; +} +export interface PrimaryKeyConstraintPatch { + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + type?: string | null; + fieldIds?: string | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string | null; +} +export interface UpdatePrimaryKeyConstraintInput { + clientMutationId?: string; + id: string; + primaryKeyConstraintPatch: PrimaryKeyConstraintPatch; +} +export interface DeletePrimaryKeyConstraintInput { + clientMutationId?: string; + id: string; +} +export interface CreateTableGrantInput { + clientMutationId?: string; + tableGrant: { + databaseId?: string; + tableId: string; + privilege: string; + roleName: string; + fieldIds?: string[]; + }; +} +export interface TableGrantPatch { + databaseId?: string | null; + tableId?: string | null; + privilege?: string | null; + roleName?: string | null; + fieldIds?: string | null; +} +export interface UpdateTableGrantInput { + clientMutationId?: string; + id: string; + tableGrantPatch: TableGrantPatch; +} +export interface DeleteTableGrantInput { + clientMutationId?: string; + id: string; +} +export interface CreateTriggerInput { + clientMutationId?: string; + trigger: { + databaseId?: string; + tableId: string; + name: string; + event?: string; + functionName?: string; + smartTags?: Record; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + }; +} +export interface TriggerPatch { + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + event?: string | null; + functionName?: string | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string | null; +} +export interface UpdateTriggerInput { + clientMutationId?: string; + id: string; + triggerPatch: TriggerPatch; +} +export interface DeleteTriggerInput { + clientMutationId?: string; + id: string; +} +export interface CreateUniqueConstraintInput { + clientMutationId?: string; + uniqueConstraint: { + databaseId?: string; + tableId: string; + name?: string; + description?: string; + smartTags?: Record; + type?: string; + fieldIds: string[]; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + }; +} +export interface UniqueConstraintPatch { + databaseId?: string | null; + tableId?: string | null; + name?: string | null; + description?: string | null; + smartTags?: Record | null; + type?: string | null; + fieldIds?: string | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string | null; +} +export interface UpdateUniqueConstraintInput { + clientMutationId?: string; + id: string; + uniqueConstraintPatch: UniqueConstraintPatch; +} +export interface DeleteUniqueConstraintInput { + clientMutationId?: string; + id: string; +} +export interface CreateViewInput { + clientMutationId?: string; + view: { + databaseId?: string; + schemaId: string; + name: string; + tableId?: string; + viewType: string; + data?: Record; + filterType?: string; + filterData?: Record; + securityInvoker?: boolean; + isReadOnly?: boolean; + smartTags?: Record; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + }; +} +export interface ViewPatch { + databaseId?: string | null; + schemaId?: string | null; + name?: string | null; + tableId?: string | null; + viewType?: string | null; + data?: Record | null; + filterType?: string | null; + filterData?: Record | null; + securityInvoker?: boolean | null; + isReadOnly?: boolean | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string | null; +} +export interface UpdateViewInput { + clientMutationId?: string; + id: string; + viewPatch: ViewPatch; +} +export interface DeleteViewInput { + clientMutationId?: string; + id: string; +} +export interface CreateViewTableInput { + clientMutationId?: string; + viewTable: { + viewId: string; + tableId: string; + joinOrder?: number; + }; +} +export interface ViewTablePatch { + viewId?: string | null; + tableId?: string | null; + joinOrder?: number | null; +} +export interface UpdateViewTableInput { + clientMutationId?: string; + id: string; + viewTablePatch: ViewTablePatch; +} +export interface DeleteViewTableInput { + clientMutationId?: string; + id: string; +} +export interface CreateViewGrantInput { + clientMutationId?: string; + viewGrant: { + databaseId?: string; + viewId: string; + roleName: string; + privilege: string; + withGrantOption?: boolean; + }; +} +export interface ViewGrantPatch { + databaseId?: string | null; + viewId?: string | null; + roleName?: string | null; + privilege?: string | null; + withGrantOption?: boolean | null; +} +export interface UpdateViewGrantInput { + clientMutationId?: string; + id: string; + viewGrantPatch: ViewGrantPatch; +} +export interface DeleteViewGrantInput { + clientMutationId?: string; + id: string; +} +export interface CreateViewRuleInput { + clientMutationId?: string; + viewRule: { + databaseId?: string; + viewId: string; + name: string; + event: string; + action?: string; + }; +} +export interface ViewRulePatch { + databaseId?: string | null; + viewId?: string | null; + name?: string | null; + event?: string | null; + action?: string | null; +} +export interface UpdateViewRuleInput { + clientMutationId?: string; + id: string; + viewRulePatch: ViewRulePatch; +} +export interface DeleteViewRuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateTableModuleInput { + clientMutationId?: string; + tableModule: { + databaseId: string; + privateSchemaId?: string; + tableId: string; + nodeType: string; + data?: Record; + fields?: string[]; + }; +} +export interface TableModulePatch { + databaseId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + nodeType?: string | null; + data?: Record | null; + fields?: string | null; +} +export interface UpdateTableModuleInput { + clientMutationId?: string; + id: string; + tableModulePatch: TableModulePatch; +} +export interface DeleteTableModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateTableTemplateModuleInput { + clientMutationId?: string; + tableTemplateModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName: string; + nodeType: string; + data?: Record; + }; +} +export interface TableTemplateModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + ownerTableId?: string | null; + tableName?: string | null; + nodeType?: string | null; + data?: Record | null; +} +export interface UpdateTableTemplateModuleInput { + clientMutationId?: string; + id: string; + tableTemplateModulePatch: TableTemplateModulePatch; +} +export interface DeleteTableTemplateModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateSchemaGrantInput { + clientMutationId?: string; + schemaGrant: { + databaseId?: string; + schemaId: string; + granteeName: string; + }; +} +export interface SchemaGrantPatch { + databaseId?: string | null; + schemaId?: string | null; + granteeName?: string | null; +} +export interface UpdateSchemaGrantInput { + clientMutationId?: string; + id: string; + schemaGrantPatch: SchemaGrantPatch; +} +export interface DeleteSchemaGrantInput { + clientMutationId?: string; + id: string; +} +export interface CreateApiSchemaInput { + clientMutationId?: string; + apiSchema: { + databaseId: string; + schemaId: string; + apiId: string; + }; +} +export interface ApiSchemaPatch { + databaseId?: string | null; + schemaId?: string | null; + apiId?: string | null; +} +export interface UpdateApiSchemaInput { + clientMutationId?: string; + id: string; + apiSchemaPatch: ApiSchemaPatch; +} +export interface DeleteApiSchemaInput { + clientMutationId?: string; + id: string; +} +export interface CreateApiModuleInput { + clientMutationId?: string; + apiModule: { + databaseId: string; + apiId: string; + name: string; + data: Record; + }; +} +export interface ApiModulePatch { + databaseId?: string | null; + apiId?: string | null; + name?: string | null; + data?: Record | null; +} +export interface UpdateApiModuleInput { + clientMutationId?: string; + id: string; + apiModulePatch: ApiModulePatch; +} +export interface DeleteApiModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateDomainInput { + clientMutationId?: string; + domain: { + databaseId: string; + apiId?: string; + siteId?: string; + subdomain?: ConstructiveInternalTypeHostname; + domain?: ConstructiveInternalTypeHostname; + }; +} +export interface DomainPatch { + databaseId?: string | null; + apiId?: string | null; + siteId?: string | null; + subdomain?: ConstructiveInternalTypeHostname | null; + domain?: ConstructiveInternalTypeHostname | null; +} +export interface UpdateDomainInput { + clientMutationId?: string; + id: string; + domainPatch: DomainPatch; +} +export interface DeleteDomainInput { + clientMutationId?: string; + id: string; +} +export interface CreateSiteMetadatumInput { + clientMutationId?: string; + siteMetadatum: { + databaseId: string; + siteId: string; + title?: string; + description?: string; + ogImage?: ConstructiveInternalTypeImage; + }; +} +export interface SiteMetadatumPatch { + databaseId?: string | null; + siteId?: string | null; + title?: string | null; + description?: string | null; + ogImage?: ConstructiveInternalTypeImage | null; +} +export interface UpdateSiteMetadatumInput { + clientMutationId?: string; + id: string; + siteMetadatumPatch: SiteMetadatumPatch; +} +export interface DeleteSiteMetadatumInput { + clientMutationId?: string; + id: string; +} +export interface CreateSiteModuleInput { + clientMutationId?: string; + siteModule: { + databaseId: string; + siteId: string; + name: string; + data: Record; + }; +} +export interface SiteModulePatch { + databaseId?: string | null; + siteId?: string | null; + name?: string | null; + data?: Record | null; +} +export interface UpdateSiteModuleInput { + clientMutationId?: string; + id: string; + siteModulePatch: SiteModulePatch; +} +export interface DeleteSiteModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateSiteThemeInput { + clientMutationId?: string; + siteTheme: { + databaseId: string; + siteId: string; + theme: Record; + }; +} +export interface SiteThemePatch { + databaseId?: string | null; + siteId?: string | null; + theme?: Record | null; +} +export interface UpdateSiteThemeInput { + clientMutationId?: string; + id: string; + siteThemePatch: SiteThemePatch; +} +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: { + databaseId: string; + name: string; + code?: string; + }; +} +export interface TriggerFunctionPatch { + databaseId?: string | null; + name?: string | null; + code?: string | null; +} +export interface UpdateTriggerFunctionInput { + clientMutationId?: string; + id: string; + triggerFunctionPatch: TriggerFunctionPatch; +} +export interface DeleteTriggerFunctionInput { + clientMutationId?: string; + id: string; +} +export interface CreateApiInput { + clientMutationId?: string; + api: { + databaseId: string; + name: string; + dbname?: string; + roleName?: string; + anonRole?: string; + isPublic?: boolean; + }; +} +export interface ApiPatch { + databaseId?: string | null; + name?: string | null; + dbname?: string | null; + roleName?: string | null; + anonRole?: string | null; + isPublic?: boolean | null; +} +export interface UpdateApiInput { + clientMutationId?: string; + id: string; + apiPatch: ApiPatch; +} +export interface DeleteApiInput { + clientMutationId?: string; + id: string; +} +export interface CreateSiteInput { + clientMutationId?: string; + site: { + databaseId: string; + title?: string; + description?: string; + ogImage?: ConstructiveInternalTypeImage; + favicon?: ConstructiveInternalTypeAttachment; + appleTouchIcon?: ConstructiveInternalTypeImage; + logo?: ConstructiveInternalTypeImage; + dbname?: string; + }; +} +export interface SitePatch { + databaseId?: string | null; + title?: string | null; + description?: string | null; + ogImage?: ConstructiveInternalTypeImage | null; + favicon?: ConstructiveInternalTypeAttachment | null; + appleTouchIcon?: ConstructiveInternalTypeImage | null; + logo?: ConstructiveInternalTypeImage | null; + dbname?: string | null; +} +export interface UpdateSiteInput { + clientMutationId?: string; + id: string; + sitePatch: SitePatch; +} +export interface DeleteSiteInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppInput { + clientMutationId?: string; + app: { + databaseId: string; + siteId: string; + name?: string; + appImage?: ConstructiveInternalTypeImage; + appStoreLink?: ConstructiveInternalTypeUrl; + appStoreId?: string; + appIdPrefix?: string; + playStoreLink?: ConstructiveInternalTypeUrl; + }; +} +export interface AppPatch { + databaseId?: string | null; + siteId?: string | null; + name?: string | null; + appImage?: ConstructiveInternalTypeImage | null; + appStoreLink?: ConstructiveInternalTypeUrl | null; + appStoreId?: string | null; + appIdPrefix?: string | null; + playStoreLink?: ConstructiveInternalTypeUrl | null; +} +export interface UpdateAppInput { + clientMutationId?: string; + id: string; + appPatch: AppPatch; +} +export interface DeleteAppInput { + clientMutationId?: string; + id: string; +} +export interface CreateConnectedAccountsModuleInput { + clientMutationId?: string; + connectedAccountsModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName: string; + }; +} +export interface ConnectedAccountsModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + ownerTableId?: string | null; + tableName?: string | null; +} +export interface UpdateConnectedAccountsModuleInput { + clientMutationId?: string; + id: string; + connectedAccountsModulePatch: ConnectedAccountsModulePatch; +} +export interface DeleteConnectedAccountsModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateCryptoAddressesModuleInput { + clientMutationId?: string; + cryptoAddressesModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName: string; + cryptoNetwork?: string; + }; +} +export interface CryptoAddressesModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + ownerTableId?: string | null; + tableName?: string | null; + cryptoNetwork?: string | null; +} +export interface UpdateCryptoAddressesModuleInput { + clientMutationId?: string; + id: string; + cryptoAddressesModulePatch: CryptoAddressesModulePatch; +} +export interface DeleteCryptoAddressesModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateCryptoAuthModuleInput { + clientMutationId?: string; + cryptoAuthModule: { + databaseId: string; + schemaId?: string; + usersTableId?: string; + secretsTableId?: string; + sessionsTableId?: string; + sessionCredentialsTableId?: string; + addressesTableId?: string; + userField: string; + cryptoNetwork?: string; + signInRequestChallenge?: string; + signInRecordFailure?: string; + signUpWithKey?: string; + signInWithChallenge?: string; + }; +} +export interface CryptoAuthModulePatch { + databaseId?: string | null; + schemaId?: string | null; + usersTableId?: string | null; + secretsTableId?: string | null; + sessionsTableId?: string | null; + sessionCredentialsTableId?: string | null; + addressesTableId?: string | null; + userField?: string | null; + cryptoNetwork?: string | null; + signInRequestChallenge?: string | null; + signInRecordFailure?: string | null; + signUpWithKey?: string | null; + signInWithChallenge?: string | null; +} +export interface UpdateCryptoAuthModuleInput { + clientMutationId?: string; + id: string; + cryptoAuthModulePatch: CryptoAuthModulePatch; +} +export interface DeleteCryptoAuthModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateDefaultIdsModuleInput { + clientMutationId?: string; + defaultIdsModule: { + databaseId: string; + }; +} +export interface DefaultIdsModulePatch { + databaseId?: string | null; +} +export interface UpdateDefaultIdsModuleInput { + clientMutationId?: string; + id: string; + defaultIdsModulePatch: DefaultIdsModulePatch; +} +export interface DeleteDefaultIdsModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateDenormalizedTableFieldInput { + clientMutationId?: string; + denormalizedTableField: { + databaseId: string; + tableId: string; + fieldId: string; + setIds?: string[]; + refTableId: string; + refFieldId: string; + refIds?: string[]; + useUpdates?: boolean; + updateDefaults?: boolean; + funcName?: string; + funcOrder?: number; + }; +} +export interface DenormalizedTableFieldPatch { + databaseId?: string | null; + tableId?: string | null; + fieldId?: string | null; + setIds?: string | null; + refTableId?: string | null; + refFieldId?: string | null; + refIds?: string | null; + useUpdates?: boolean | null; + updateDefaults?: boolean | null; + funcName?: string | null; + funcOrder?: number | null; +} +export interface UpdateDenormalizedTableFieldInput { + clientMutationId?: string; + id: string; + denormalizedTableFieldPatch: DenormalizedTableFieldPatch; +} +export interface DeleteDenormalizedTableFieldInput { + clientMutationId?: string; + id: string; +} +export interface CreateEmailsModuleInput { + clientMutationId?: string; + emailsModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName: string; + }; +} +export interface EmailsModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + ownerTableId?: string | null; + tableName?: string | null; +} +export interface UpdateEmailsModuleInput { + clientMutationId?: string; + id: string; + emailsModulePatch: EmailsModulePatch; +} +export interface DeleteEmailsModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateEncryptedSecretsModuleInput { + clientMutationId?: string; + encryptedSecretsModule: { + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; + }; +} +export interface EncryptedSecretsModulePatch { + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; +} +export interface UpdateEncryptedSecretsModuleInput { + clientMutationId?: string; + id: string; + encryptedSecretsModulePatch: EncryptedSecretsModulePatch; +} +export interface DeleteEncryptedSecretsModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateFieldModuleInput { + clientMutationId?: string; + fieldModule: { + databaseId: string; + privateSchemaId?: string; + tableId?: string; + fieldId?: string; + nodeType: string; + data?: Record; + triggers?: string[]; + functions?: string[]; + }; +} +export interface FieldModulePatch { + databaseId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + fieldId?: string | null; + nodeType?: string | null; + data?: Record | null; + triggers?: string | null; + functions?: string | null; +} +export interface UpdateFieldModuleInput { + clientMutationId?: string; + id: string; + fieldModulePatch: FieldModulePatch; +} +export interface DeleteFieldModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateInvitesModuleInput { + clientMutationId?: string; + invitesModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + emailsTableId?: string; + usersTableId?: string; + invitesTableId?: string; + claimedInvitesTableId?: string; + invitesTableName?: string; + claimedInvitesTableName?: string; + submitInviteCodeFunction?: string; + prefix?: string; + membershipType: number; + entityTableId?: string; + }; +} +export interface InvitesModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + emailsTableId?: string | null; + usersTableId?: string | null; + invitesTableId?: string | null; + claimedInvitesTableId?: string | null; + invitesTableName?: string | null; + claimedInvitesTableName?: string | null; + submitInviteCodeFunction?: string | null; + prefix?: string | null; + membershipType?: number | null; + entityTableId?: string | null; +} +export interface UpdateInvitesModuleInput { + clientMutationId?: string; + id: string; + invitesModulePatch: InvitesModulePatch; +} +export interface DeleteInvitesModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateLevelsModuleInput { + clientMutationId?: string; + levelsModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + stepsTableId?: string; + stepsTableName?: string; + achievementsTableId?: string; + achievementsTableName?: string; + levelsTableId?: string; + levelsTableName?: string; + levelRequirementsTableId?: string; + levelRequirementsTableName?: string; + completedStep?: string; + incompletedStep?: string; + tgAchievement?: string; + tgAchievementToggle?: string; + tgAchievementToggleBoolean?: string; + tgAchievementBoolean?: string; + upsertAchievement?: string; + tgUpdateAchievements?: string; + stepsRequired?: string; + levelAchieved?: string; + prefix?: string; + membershipType: number; + entityTableId?: string; + actorTableId?: string; + }; +} +export interface LevelsModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + stepsTableId?: string | null; + stepsTableName?: string | null; + achievementsTableId?: string | null; + achievementsTableName?: string | null; + levelsTableId?: string | null; + levelsTableName?: string | null; + levelRequirementsTableId?: string | null; + levelRequirementsTableName?: string | null; + completedStep?: string | null; + incompletedStep?: string | null; + tgAchievement?: string | null; + tgAchievementToggle?: string | null; + tgAchievementToggleBoolean?: string | null; + tgAchievementBoolean?: string | null; + upsertAchievement?: string | null; + tgUpdateAchievements?: string | null; + stepsRequired?: string | null; + levelAchieved?: string | null; + prefix?: string | null; + membershipType?: number | null; + entityTableId?: string | null; + actorTableId?: string | null; +} +export interface UpdateLevelsModuleInput { + clientMutationId?: string; + id: string; + levelsModulePatch: LevelsModulePatch; +} +export interface DeleteLevelsModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateLimitsModuleInput { + clientMutationId?: string; + limitsModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + tableName?: string; + defaultTableId?: string; + defaultTableName?: string; + limitIncrementFunction?: string; + limitDecrementFunction?: string; + limitIncrementTrigger?: string; + limitDecrementTrigger?: string; + limitUpdateTrigger?: string; + limitCheckFunction?: string; + prefix?: string; + membershipType: number; + entityTableId?: string; + actorTableId?: string; + }; +} +export interface LimitsModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + tableName?: string | null; + defaultTableId?: string | null; + defaultTableName?: string | null; + limitIncrementFunction?: string | null; + limitDecrementFunction?: string | null; + limitIncrementTrigger?: string | null; + limitDecrementTrigger?: string | null; + limitUpdateTrigger?: string | null; + limitCheckFunction?: string | null; + prefix?: string | null; + membershipType?: number | null; + entityTableId?: string | null; + actorTableId?: string | null; +} +export interface UpdateLimitsModuleInput { + clientMutationId?: string; + id: string; + limitsModulePatch: LimitsModulePatch; +} +export interface DeleteLimitsModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateMembershipTypesModuleInput { + clientMutationId?: string; + membershipTypesModule: { + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; + }; +} +export interface MembershipTypesModulePatch { + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; +} +export interface UpdateMembershipTypesModuleInput { + clientMutationId?: string; + id: string; + membershipTypesModulePatch: MembershipTypesModulePatch; +} +export interface DeleteMembershipTypesModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateMembershipsModuleInput { + clientMutationId?: string; + membershipsModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + membershipsTableId?: string; + membershipsTableName?: string; + membersTableId?: string; + membersTableName?: string; + membershipDefaultsTableId?: string; + membershipDefaultsTableName?: string; + grantsTableId?: string; + grantsTableName?: string; + actorTableId?: string; + limitsTableId?: string; + defaultLimitsTableId?: string; + permissionsTableId?: string; + defaultPermissionsTableId?: string; + sprtTableId?: string; + adminGrantsTableId?: string; + adminGrantsTableName?: string; + ownerGrantsTableId?: string; + ownerGrantsTableName?: string; + membershipType: number; + entityTableId?: string; + entityTableOwnerId?: string; + prefix?: string; + actorMaskCheck?: string; + actorPermCheck?: string; + entityIdsByMask?: string; + entityIdsByPerm?: string; + entityIdsFunction?: string; + }; +} +export interface MembershipsModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + membershipsTableId?: string | null; + membershipsTableName?: string | null; + membersTableId?: string | null; + membersTableName?: string | null; + membershipDefaultsTableId?: string | null; + membershipDefaultsTableName?: string | null; + grantsTableId?: string | null; + grantsTableName?: string | null; + actorTableId?: string | null; + limitsTableId?: string | null; + defaultLimitsTableId?: string | null; + permissionsTableId?: string | null; + defaultPermissionsTableId?: string | null; + sprtTableId?: string | null; + adminGrantsTableId?: string | null; + adminGrantsTableName?: string | null; + ownerGrantsTableId?: string | null; + ownerGrantsTableName?: string | null; + membershipType?: number | null; + entityTableId?: string | null; + entityTableOwnerId?: string | null; + prefix?: string | null; + actorMaskCheck?: string | null; + actorPermCheck?: string | null; + entityIdsByMask?: string | null; + entityIdsByPerm?: string | null; + entityIdsFunction?: string | null; +} +export interface UpdateMembershipsModuleInput { + clientMutationId?: string; + id: string; + membershipsModulePatch: MembershipsModulePatch; +} +export interface DeleteMembershipsModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreatePermissionsModuleInput { + clientMutationId?: string; + permissionsModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + tableName?: string; + defaultTableId?: string; + defaultTableName?: string; + bitlen?: number; + membershipType: number; + entityTableId?: string; + actorTableId?: string; + prefix?: string; + getPaddedMask?: string; + getMask?: string; + getByMask?: string; + getMaskByName?: string; + }; +} +export interface PermissionsModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + tableName?: string | null; + defaultTableId?: string | null; + defaultTableName?: string | null; + bitlen?: number | null; + membershipType?: number | null; + entityTableId?: string | null; + actorTableId?: string | null; + prefix?: string | null; + getPaddedMask?: string | null; + getMask?: string | null; + getByMask?: string | null; + getMaskByName?: string | null; +} +export interface UpdatePermissionsModuleInput { + clientMutationId?: string; + id: string; + permissionsModulePatch: PermissionsModulePatch; +} +export interface DeletePermissionsModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreatePhoneNumbersModuleInput { + clientMutationId?: string; + phoneNumbersModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName: string; + }; +} +export interface PhoneNumbersModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + ownerTableId?: string | null; + tableName?: string | null; +} +export interface UpdatePhoneNumbersModuleInput { + clientMutationId?: string; + id: string; + phoneNumbersModulePatch: PhoneNumbersModulePatch; +} +export interface DeletePhoneNumbersModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateProfilesModuleInput { + clientMutationId?: string; + profilesModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + tableName?: string; + profilePermissionsTableId?: string; + profilePermissionsTableName?: string; + profileGrantsTableId?: string; + profileGrantsTableName?: string; + profileDefinitionGrantsTableId?: string; + profileDefinitionGrantsTableName?: string; + bitlen?: number; + membershipType: number; + entityTableId?: string; + actorTableId?: string; + permissionsTableId?: string; + membershipsTableId?: string; + prefix?: string; + }; +} +export interface ProfilesModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableId?: string | null; + tableName?: string | null; + profilePermissionsTableId?: string | null; + profilePermissionsTableName?: string | null; + profileGrantsTableId?: string | null; + profileGrantsTableName?: string | null; + profileDefinitionGrantsTableId?: string | null; + profileDefinitionGrantsTableName?: string | null; + bitlen?: number | null; + membershipType?: number | null; + entityTableId?: string | null; + actorTableId?: string | null; + permissionsTableId?: string | null; + membershipsTableId?: string | null; + prefix?: string | null; +} +export interface UpdateProfilesModuleInput { + clientMutationId?: string; + id: string; + profilesModulePatch: ProfilesModulePatch; +} +export interface DeleteProfilesModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateRlsModuleInput { + clientMutationId?: string; + rlsModule: { + databaseId: string; + apiId?: string; + schemaId?: string; + privateSchemaId?: string; + sessionCredentialsTableId?: string; + sessionsTableId?: string; + usersTableId?: string; + authenticate?: string; + authenticateStrict?: string; + currentRole?: string; + currentRoleId?: string; + }; +} +export interface RlsModulePatch { + databaseId?: string | null; + apiId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + sessionCredentialsTableId?: string | null; + sessionsTableId?: string | null; + usersTableId?: string | null; + authenticate?: string | null; + authenticateStrict?: string | null; + currentRole?: string | null; + currentRoleId?: string | null; +} +export interface UpdateRlsModuleInput { + clientMutationId?: string; + id: string; + rlsModulePatch: RlsModulePatch; +} +export interface DeleteRlsModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateSecretsModuleInput { + clientMutationId?: string; + secretsModule: { + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; + }; +} +export interface SecretsModulePatch { + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; +} +export interface UpdateSecretsModuleInput { + clientMutationId?: string; + id: string; + secretsModulePatch: SecretsModulePatch; +} +export interface DeleteSecretsModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateSessionsModuleInput { + clientMutationId?: string; + sessionsModule: { + databaseId: string; + schemaId?: string; + sessionsTableId?: string; + sessionCredentialsTableId?: string; + authSettingsTableId?: string; + usersTableId?: string; + sessionsDefaultExpiration?: IntervalInput; + sessionsTable?: string; + sessionCredentialsTable?: string; + authSettingsTable?: string; + }; +} +export interface SessionsModulePatch { + databaseId?: string | null; + schemaId?: string | null; + sessionsTableId?: string | null; + sessionCredentialsTableId?: string | null; + authSettingsTableId?: string | null; + usersTableId?: string | null; + sessionsDefaultExpiration?: string | null; + sessionsTable?: string | null; + sessionCredentialsTable?: string | null; + authSettingsTable?: string | null; +} +export interface UpdateSessionsModuleInput { + clientMutationId?: string; + id: string; + sessionsModulePatch: SessionsModulePatch; +} +export interface DeleteSessionsModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateUserAuthModuleInput { + clientMutationId?: string; + userAuthModule: { + databaseId: string; + schemaId?: string; + emailsTableId?: string; + usersTableId?: string; + secretsTableId?: string; + encryptedTableId?: string; + sessionsTableId?: string; + sessionCredentialsTableId?: string; + auditsTableId?: string; + auditsTableName?: string; + signInFunction?: string; + signUpFunction?: string; + signOutFunction?: string; + setPasswordFunction?: string; + resetPasswordFunction?: string; + forgotPasswordFunction?: string; + sendVerificationEmailFunction?: string; + verifyEmailFunction?: string; + verifyPasswordFunction?: string; + checkPasswordFunction?: string; + sendAccountDeletionEmailFunction?: string; + deleteAccountFunction?: string; + signInOneTimeTokenFunction?: string; + oneTimeTokenFunction?: string; + extendTokenExpires?: string; + }; +} +export interface UserAuthModulePatch { + databaseId?: string | null; + schemaId?: string | null; + emailsTableId?: string | null; + usersTableId?: string | null; + secretsTableId?: string | null; + encryptedTableId?: string | null; + sessionsTableId?: string | null; + sessionCredentialsTableId?: string | null; + auditsTableId?: string | null; + auditsTableName?: string | null; + signInFunction?: string | null; + signUpFunction?: string | null; + signOutFunction?: string | null; + setPasswordFunction?: string | null; + resetPasswordFunction?: string | null; + forgotPasswordFunction?: string | null; + sendVerificationEmailFunction?: string | null; + verifyEmailFunction?: string | null; + verifyPasswordFunction?: string | null; + checkPasswordFunction?: string | null; + sendAccountDeletionEmailFunction?: string | null; + deleteAccountFunction?: string | null; + signInOneTimeTokenFunction?: string | null; + oneTimeTokenFunction?: string | null; + extendTokenExpires?: string | null; +} +export interface UpdateUserAuthModuleInput { + clientMutationId?: string; + id: string; + userAuthModulePatch: UserAuthModulePatch; +} +export interface DeleteUserAuthModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateUsersModuleInput { + clientMutationId?: string; + usersModule: { + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; + typeTableId?: string; + typeTableName?: string; + }; +} +export interface UsersModulePatch { + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; + typeTableId?: string | null; + typeTableName?: string | null; +} +export interface UpdateUsersModuleInput { + clientMutationId?: string; + id: string; + usersModulePatch: UsersModulePatch; +} +export interface DeleteUsersModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateUuidModuleInput { + clientMutationId?: string; + uuidModule: { + databaseId: string; + schemaId?: string; + uuidFunction?: string; + uuidSeed: string; + }; +} +export interface UuidModulePatch { + databaseId?: string | null; + schemaId?: string | null; + uuidFunction?: string | null; + uuidSeed?: string | null; +} +export interface UpdateUuidModuleInput { + clientMutationId?: string; + id: string; + uuidModulePatch: UuidModulePatch; +} +export interface DeleteUuidModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateDatabaseProvisionModuleInput { + clientMutationId?: string; + databaseProvisionModule: { + databaseName: string; + ownerId: string; + subdomain?: string; + domain: string; + modules?: string[]; + options?: Record; + bootstrapUser?: boolean; + status?: string; + errorMessage?: string; + databaseId?: string; + completedAt?: string; + }; +} +export interface DatabaseProvisionModulePatch { + databaseName?: string | null; + ownerId?: string | null; + subdomain?: string | null; + domain?: string | null; + modules?: string | null; + options?: Record | null; + bootstrapUser?: boolean | null; + status?: string | null; + errorMessage?: string | null; + databaseId?: string | null; + completedAt?: string | null; +} +export interface UpdateDatabaseProvisionModuleInput { + clientMutationId?: string; + id: string; + databaseProvisionModulePatch: DatabaseProvisionModulePatch; +} +export interface DeleteDatabaseProvisionModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppAdminGrantInput { + clientMutationId?: string; + appAdminGrant: { + isGrant?: boolean; + actorId: string; + grantorId?: string; + }; +} +export interface AppAdminGrantPatch { + isGrant?: boolean | null; + actorId?: string | null; + grantorId?: string | null; +} +export interface UpdateAppAdminGrantInput { + clientMutationId?: string; + id: string; + appAdminGrantPatch: AppAdminGrantPatch; +} +export interface DeleteAppAdminGrantInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppOwnerGrantInput { + clientMutationId?: string; + appOwnerGrant: { + isGrant?: boolean; + actorId: string; + grantorId?: string; + }; +} +export interface AppOwnerGrantPatch { + isGrant?: boolean | null; + actorId?: string | null; + grantorId?: string | null; +} +export interface UpdateAppOwnerGrantInput { + clientMutationId?: string; + id: string; + appOwnerGrantPatch: AppOwnerGrantPatch; +} +export interface DeleteAppOwnerGrantInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppGrantInput { + clientMutationId?: string; + appGrant: { + permissions?: string; + isGrant?: boolean; + actorId: string; + grantorId?: string; + }; +} +export interface AppGrantPatch { + permissions?: string | null; + isGrant?: boolean | null; + actorId?: string | null; + grantorId?: string | null; +} +export interface UpdateAppGrantInput { + clientMutationId?: string; + id: string; + appGrantPatch: AppGrantPatch; +} +export interface DeleteAppGrantInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgMembershipInput { + clientMutationId?: string; + orgMembership: { + 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 OrgMembershipPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + isBanned?: boolean | null; + isDisabled?: boolean | null; + isActive?: boolean | null; + isOwner?: boolean | null; + isAdmin?: boolean | null; + permissions?: string | null; + granted?: string | null; + actorId?: string | null; + entityId?: string | null; +} +export interface UpdateOrgMembershipInput { + clientMutationId?: string; + id: string; + orgMembershipPatch: OrgMembershipPatch; +} +export interface DeleteOrgMembershipInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgMemberInput { + clientMutationId?: string; + orgMember: { + isAdmin?: boolean; + actorId: string; + entityId: string; + }; +} +export interface OrgMemberPatch { + isAdmin?: boolean | null; + actorId?: string | null; + entityId?: string | null; +} +export interface UpdateOrgMemberInput { + clientMutationId?: string; + id: string; + orgMemberPatch: OrgMemberPatch; +} +export interface DeleteOrgMemberInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgAdminGrantInput { + clientMutationId?: string; + orgAdminGrant: { + isGrant?: boolean; + actorId: string; + entityId: string; + grantorId?: string; + }; +} +export interface OrgAdminGrantPatch { + isGrant?: boolean | null; + actorId?: string | null; + entityId?: string | null; + grantorId?: string | null; +} +export interface UpdateOrgAdminGrantInput { + clientMutationId?: string; + id: string; + orgAdminGrantPatch: OrgAdminGrantPatch; +} +export interface DeleteOrgAdminGrantInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgOwnerGrantInput { + clientMutationId?: string; + orgOwnerGrant: { + isGrant?: boolean; + actorId: string; + entityId: string; + grantorId?: string; + }; +} +export interface OrgOwnerGrantPatch { + isGrant?: boolean | null; + actorId?: string | null; + entityId?: string | null; + grantorId?: string | null; +} +export interface UpdateOrgOwnerGrantInput { + clientMutationId?: string; + id: string; + orgOwnerGrantPatch: OrgOwnerGrantPatch; +} +export interface DeleteOrgOwnerGrantInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgGrantInput { + clientMutationId?: string; + orgGrant: { + permissions?: string; + isGrant?: boolean; + actorId: string; + entityId: string; + grantorId?: string; + }; +} +export interface OrgGrantPatch { + permissions?: string | null; + isGrant?: boolean | null; + actorId?: string | null; + entityId?: string | null; + grantorId?: string | null; +} +export interface UpdateOrgGrantInput { + clientMutationId?: string; + id: string; + orgGrantPatch: OrgGrantPatch; +} +export interface DeleteOrgGrantInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppLimitInput { + clientMutationId?: string; + appLimit: { + name?: string; + actorId: string; + num?: number; + max?: number; + }; +} +export interface AppLimitPatch { + name?: string | null; + actorId?: string | null; + num?: number | null; + max?: number | null; +} +export interface UpdateAppLimitInput { + clientMutationId?: string; + id: string; + appLimitPatch: AppLimitPatch; +} +export interface DeleteAppLimitInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgLimitInput { + clientMutationId?: string; + orgLimit: { + name?: string; + actorId: string; + num?: number; + max?: number; + entityId: string; + }; +} +export interface OrgLimitPatch { + name?: string | null; + actorId?: string | null; + num?: number | null; + max?: number | null; + entityId?: string | null; +} +export interface UpdateOrgLimitInput { + clientMutationId?: string; + id: string; + orgLimitPatch: OrgLimitPatch; +} +export interface DeleteOrgLimitInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppStepInput { + clientMutationId?: string; + appStep: { + actorId?: string; + name: string; + count?: number; + }; +} +export interface AppStepPatch { + actorId?: string | null; + name?: string | null; + count?: number | null; +} +export interface UpdateAppStepInput { + clientMutationId?: string; + id: string; + appStepPatch: AppStepPatch; +} +export interface DeleteAppStepInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppAchievementInput { + clientMutationId?: string; + appAchievement: { + actorId?: string; + name: string; + count?: number; + }; +} +export interface AppAchievementPatch { + actorId?: string | null; + name?: string | null; + count?: number | null; +} +export interface UpdateAppAchievementInput { + clientMutationId?: string; + id: string; + appAchievementPatch: AppAchievementPatch; +} +export interface DeleteAppAchievementInput { + clientMutationId?: string; + id: string; +} +export interface CreateInviteInput { + clientMutationId?: string; + invite: { + email?: ConstructiveInternalTypeEmail; + senderId?: string; + inviteToken?: string; + inviteValid?: boolean; + inviteLimit?: number; + inviteCount?: number; + multiple?: boolean; + data?: Record; + expiresAt?: string; + }; +} +export interface InvitePatch { + email?: ConstructiveInternalTypeEmail | null; + senderId?: string | null; + inviteToken?: string | null; + inviteValid?: boolean | null; + inviteLimit?: number | null; + inviteCount?: number | null; + multiple?: boolean | null; + data?: Record | null; + expiresAt?: string | null; +} +export interface UpdateInviteInput { + clientMutationId?: string; + id: string; + invitePatch: InvitePatch; +} +export interface DeleteInviteInput { + clientMutationId?: string; + id: string; +} +export interface CreateClaimedInviteInput { + clientMutationId?: string; + claimedInvite: { + data?: Record; + senderId?: string; + receiverId?: string; + }; +} +export interface ClaimedInvitePatch { + data?: Record | null; + senderId?: string | null; + receiverId?: string | null; +} +export interface UpdateClaimedInviteInput { + clientMutationId?: string; + id: string; + claimedInvitePatch: ClaimedInvitePatch; +} +export interface DeleteClaimedInviteInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgInviteInput { + clientMutationId?: string; + orgInvite: { + email?: ConstructiveInternalTypeEmail; + senderId?: string; + receiverId?: string; + inviteToken?: string; + inviteValid?: boolean; + inviteLimit?: number; + inviteCount?: number; + multiple?: boolean; + data?: Record; + expiresAt?: string; + entityId: string; + }; +} +export interface OrgInvitePatch { + email?: ConstructiveInternalTypeEmail | null; + senderId?: string | null; + receiverId?: string | null; + inviteToken?: string | null; + inviteValid?: boolean | null; + inviteLimit?: number | null; + inviteCount?: number | null; + multiple?: boolean | null; + data?: Record | null; + expiresAt?: string | null; + entityId?: string | null; +} +export interface UpdateOrgInviteInput { + clientMutationId?: string; + id: string; + orgInvitePatch: OrgInvitePatch; +} +export interface DeleteOrgInviteInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgClaimedInviteInput { + clientMutationId?: string; + orgClaimedInvite: { + data?: Record; + senderId?: string; + receiverId?: string; + entityId: string; + }; +} +export interface OrgClaimedInvitePatch { + data?: Record | null; + senderId?: string | null; + receiverId?: string | null; + entityId?: string | null; +} +export interface UpdateOrgClaimedInviteInput { + clientMutationId?: string; + id: string; + orgClaimedInvitePatch: OrgClaimedInvitePatch; +} +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: { + name: string; + databaseId: string; + storeId: string; + commitId?: string; + }; +} +export interface RefPatch { + name?: string | null; + databaseId?: string | null; + storeId?: string | null; + commitId?: string | null; +} +export interface UpdateRefInput { + clientMutationId?: string; + id: string; + refPatch: RefPatch; +} +export interface DeleteRefInput { + clientMutationId?: string; + id: string; +} +export interface CreateStoreInput { + clientMutationId?: string; + store: { + name: string; + databaseId: string; + hash?: string; + }; +} +export interface StorePatch { + name?: string | null; + databaseId?: string | null; + hash?: string | null; +} +export interface UpdateStoreInput { + clientMutationId?: string; + id: string; + storePatch: StorePatch; +} +export interface DeleteStoreInput { + clientMutationId?: string; + id: string; +} +export interface CreateRoleTypeInput { + clientMutationId?: string; + roleType: { + name: string; + }; +} +export interface RoleTypePatch { + name?: string | null; +} +export interface UpdateRoleTypeInput { + clientMutationId?: string; + id: number; + roleTypePatch: RoleTypePatch; +} +export interface DeleteRoleTypeInput { + clientMutationId?: string; + id: number; +} +export interface CreateOrgPermissionDefaultInput { + clientMutationId?: string; + orgPermissionDefault: { + permissions?: string; + entityId: string; + }; +} +export interface OrgPermissionDefaultPatch { + permissions?: string | null; + entityId?: string | null; +} +export interface UpdateOrgPermissionDefaultInput { + clientMutationId?: string; + id: string; + orgPermissionDefaultPatch: OrgPermissionDefaultPatch; +} +export interface DeleteOrgPermissionDefaultInput { + 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 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: { + ownerId?: string; + service: string; + identifier: string; + details: Record; + isVerified?: boolean; + }; +} +export interface ConnectedAccountPatch { + ownerId?: string | null; + service?: string | null; + identifier?: string | null; + details?: Record | null; + isVerified?: boolean | null; +} +export interface UpdateConnectedAccountInput { + clientMutationId?: string; + id: string; + connectedAccountPatch: ConnectedAccountPatch; +} +export interface DeleteConnectedAccountInput { + clientMutationId?: string; + id: string; +} +export interface CreatePhoneNumberInput { + clientMutationId?: string; + phoneNumber: { + ownerId?: string; + cc: string; + number: string; + isVerified?: boolean; + isPrimary?: boolean; + }; +} +export interface PhoneNumberPatch { + ownerId?: string | null; + cc?: string | null; + number?: string | null; + isVerified?: boolean | null; + isPrimary?: boolean | null; +} +export interface UpdatePhoneNumberInput { + clientMutationId?: string; + id: string; + phoneNumberPatch: PhoneNumberPatch; +} +export interface DeletePhoneNumberInput { + clientMutationId?: string; + id: 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 CreateNodeTypeRegistryInput { + clientMutationId?: string; + nodeTypeRegistry: { + name: string; + slug: string; + category: string; + displayName?: string; + description?: string; + parameterSchema?: Record; + tags?: string[]; + }; +} +export interface NodeTypeRegistryPatch { + name?: string | null; + slug?: string | null; + category?: string | null; + displayName?: string | null; + description?: string | null; + parameterSchema?: Record | null; + tags?: string | null; +} +export interface UpdateNodeTypeRegistryInput { + clientMutationId?: string; + name: string; + nodeTypeRegistryPatch: NodeTypeRegistryPatch; +} +export interface DeleteNodeTypeRegistryInput { + clientMutationId?: string; + name: string; +} +export interface CreateCommitInput { + clientMutationId?: string; + commit: { + message?: string; + databaseId: string; + storeId: string; + parentIds?: string[]; + authorId?: string; + committerId?: string; + treeId?: string; + date?: string; + }; +} +export interface CommitPatch { + message?: string | null; + databaseId?: string | null; + storeId?: string | null; + parentIds?: string | null; + authorId?: string | null; + committerId?: string | null; + treeId?: string | null; + date?: string | null; +} +export interface UpdateCommitInput { + clientMutationId?: string; + id: string; + commitPatch: CommitPatch; +} +export interface DeleteCommitInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgMembershipDefaultInput { + clientMutationId?: string; + orgMembershipDefault: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + entityId: string; + deleteMemberCascadeGroups?: boolean; + createGroupsCascadeMembers?: boolean; + }; +} +export interface OrgMembershipDefaultPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + entityId?: string | null; + deleteMemberCascadeGroups?: boolean | null; + createGroupsCascadeMembers?: boolean | null; +} +export interface UpdateOrgMembershipDefaultInput { + clientMutationId?: string; + id: string; + orgMembershipDefaultPatch: OrgMembershipDefaultPatch; +} +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: { + event: string; + actorId?: string; + origin?: ConstructiveInternalTypeOrigin; + userAgent?: string; + ipAddress?: string; + success: boolean; + }; +} +export interface AuditLogPatch { + event?: string | null; + actorId?: string | null; + origin?: ConstructiveInternalTypeOrigin | null; + userAgent?: string | null; + ipAddress?: string | null; + success?: boolean | null; +} +export interface UpdateAuditLogInput { + clientMutationId?: string; + id: string; + auditLogPatch: AuditLogPatch; +} +export interface DeleteAuditLogInput { + 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 CreateSqlMigrationInput { + clientMutationId?: string; + sqlMigration: { + name?: string; + databaseId?: string; + deploy?: string; + deps?: string[]; + payload?: Record; + content?: string; + revert?: string; + verify?: string; + action?: string; + actionId?: string; + actorId?: string; + }; +} +export interface SqlMigrationPatch { + name?: string | null; + databaseId?: string | null; + deploy?: string | null; + deps?: string | null; + payload?: Record | null; + content?: string | null; + revert?: string | null; + verify?: string | null; + action?: string | null; + actionId?: string | null; + actorId?: string | null; +} +export interface UpdateSqlMigrationInput { + clientMutationId?: string; + id: number; + sqlMigrationPatch: SqlMigrationPatch; +} +export interface DeleteSqlMigrationInput { + clientMutationId?: string; + id: number; +} +export interface CreateAstMigrationInput { + clientMutationId?: string; + astMigration: { + databaseId?: string; + name?: string; + requires?: string[]; + payload?: Record; + deploys?: string; + deploy?: Record; + revert?: Record; + verify?: Record; + action?: string; + actionId?: string; + actorId?: string; + }; +} +export interface AstMigrationPatch { + databaseId?: string | null; + name?: string | null; + requires?: string | null; + payload?: Record | null; + deploys?: string | null; + deploy?: Record | null; + revert?: Record | null; + verify?: Record | null; + action?: string | null; + actionId?: string | null; + actorId?: string | null; +} +export interface UpdateAstMigrationInput { + clientMutationId?: string; + id: number; + astMigrationPatch: AstMigrationPatch; +} +export interface DeleteAstMigrationInput { + clientMutationId?: string; + id: number; +} +export interface CreateAppMembershipInput { + clientMutationId?: string; + appMembership: { + 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 AppMembershipPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + isBanned?: boolean | null; + isDisabled?: boolean | null; + isVerified?: boolean | null; + isActive?: boolean | null; + isOwner?: boolean | null; + isAdmin?: boolean | null; + permissions?: string | null; + granted?: string | null; + actorId?: string | null; +} +export interface UpdateAppMembershipInput { + clientMutationId?: string; + id: string; + appMembershipPatch: AppMembershipPatch; +} +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: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + chartEdgesTableId?: string; + chartEdgesTableName?: string; + hierarchySprtTableId?: string; + hierarchySprtTableName?: string; + chartEdgeGrantsTableId?: string; + chartEdgeGrantsTableName?: string; + entityTableId: string; + usersTableId: string; + prefix?: string; + privateSchemaName?: string; + sprtTableName?: string; + rebuildHierarchyFunction?: string; + getSubordinatesFunction?: string; + getManagersFunction?: string; + isManagerOfFunction?: string; + }; +} +export interface HierarchyModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + chartEdgesTableId?: string | null; + chartEdgesTableName?: string | null; + hierarchySprtTableId?: string | null; + hierarchySprtTableName?: string | null; + chartEdgeGrantsTableId?: string | null; + chartEdgeGrantsTableName?: string | null; + entityTableId?: string | null; + usersTableId?: string | null; + prefix?: string | null; + privateSchemaName?: string | null; + sprtTableName?: string | null; + rebuildHierarchyFunction?: string | null; + getSubordinatesFunction?: string | null; + getManagersFunction?: string | null; + isManagerOfFunction?: string | null; +} +export interface UpdateHierarchyModuleInput { + clientMutationId?: string; + id: string; + hierarchyModulePatch: HierarchyModulePatch; +} +export interface DeleteHierarchyModuleInput { + clientMutationId?: string; + id: string; +} +// ============ Connection Fields Map ============ +export const connectionFieldsMap = { + Database: { + schemas: 'Schema', + tables: 'Table', + checkConstraints: 'CheckConstraint', + fields: 'Field', + foreignKeyConstraints: 'ForeignKeyConstraint', + fullTextSearches: 'FullTextSearch', + indices: 'Index', + limitFunctions: 'LimitFunction', + policies: 'Policy', + primaryKeyConstraints: 'PrimaryKeyConstraint', + procedures: 'Procedure', + schemaGrants: 'SchemaGrant', + tableGrants: 'TableGrant', + triggerFunctions: 'TriggerFunction', + triggers: 'Trigger', + uniqueConstraints: 'UniqueConstraint', + views: 'View', + viewGrants: 'ViewGrant', + viewRules: 'ViewRule', + apis: 'Api', + apiModules: 'ApiModule', + apiSchemas: 'ApiSchema', + sites: 'Site', + apps: 'App', + domains: 'Domain', + siteMetadata: 'SiteMetadatum', + siteModules: 'SiteModule', + siteThemes: 'SiteTheme', + connectedAccountsModules: 'ConnectedAccountsModule', + cryptoAddressesModules: 'CryptoAddressesModule', + cryptoAuthModules: 'CryptoAuthModule', + defaultIdsModules: 'DefaultIdsModule', + denormalizedTableFields: 'DenormalizedTableField', + emailsModules: 'EmailsModule', + encryptedSecretsModules: 'EncryptedSecretsModule', + fieldModules: 'FieldModule', + tableModules: 'TableModule', + invitesModules: 'InvitesModule', + levelsModules: 'LevelsModule', + limitsModules: 'LimitsModule', + membershipTypesModules: 'MembershipTypesModule', + membershipsModules: 'MembershipsModule', + permissionsModules: 'PermissionsModule', + phoneNumbersModules: 'PhoneNumbersModule', + profilesModules: 'ProfilesModule', + rlsModules: 'RlsModule', + secretsModules: 'SecretsModule', + sessionsModules: 'SessionsModule', + userAuthModules: 'UserAuthModule', + usersModules: 'UsersModule', + uuidModules: 'UuidModule', + tableTemplateModules: 'TableTemplateModule', + databaseProvisionModules: 'DatabaseProvisionModule', + }, + Schema: { + tables: 'Table', + schemaGrants: 'SchemaGrant', + views: 'View', + apiSchemas: 'ApiSchema', + tableTemplateModulesByPrivateSchemaId: 'TableTemplateModule', + tableTemplateModules: 'TableTemplateModule', + }, + Table: { + checkConstraints: 'CheckConstraint', + fields: 'Field', + foreignKeyConstraints: 'ForeignKeyConstraint', + fullTextSearches: 'FullTextSearch', + indices: 'Index', + limitFunctions: 'LimitFunction', + policies: 'Policy', + primaryKeyConstraints: 'PrimaryKeyConstraint', + tableGrants: 'TableGrant', + triggers: 'Trigger', + uniqueConstraints: 'UniqueConstraint', + views: 'View', + viewTables: 'ViewTable', + tableModules: 'TableModule', + tableTemplateModulesByOwnerTableId: 'TableTemplateModule', + tableTemplateModules: 'TableTemplateModule', + }, + View: { + viewTables: 'ViewTable', + viewGrants: 'ViewGrant', + viewRules: 'ViewRule', + }, + Api: { + apiModules: 'ApiModule', + apiSchemas: 'ApiSchema', + domains: 'Domain', + }, + Site: { + domains: 'Domain', + siteMetadata: 'SiteMetadatum', + siteModules: 'SiteModule', + siteThemes: 'SiteTheme', + }, + User: { + ownedDatabases: 'Database', + appAdminGrantsByGrantorId: 'AppAdminGrant', + appOwnerGrantsByGrantorId: 'AppOwnerGrant', + appGrantsByGrantorId: 'AppGrant', + orgMembershipsByActorId: 'OrgMembership', + orgMembershipsByEntityId: 'OrgMembership', + orgMembersByActorId: 'OrgMember', + orgMembersByEntityId: 'OrgMember', + orgAdminGrantsByEntityId: 'OrgAdminGrant', + orgAdminGrantsByGrantorId: 'OrgAdminGrant', + orgOwnerGrantsByEntityId: 'OrgOwnerGrant', + orgOwnerGrantsByGrantorId: 'OrgOwnerGrant', + orgGrantsByEntityId: 'OrgGrant', + orgGrantsByGrantorId: 'OrgGrant', + appLimitsByActorId: 'AppLimit', + orgLimitsByActorId: 'OrgLimit', + orgLimitsByEntityId: 'OrgLimit', + appStepsByActorId: 'AppStep', + appAchievementsByActorId: 'AppAchievement', + invitesBySenderId: 'Invite', + claimedInvitesByReceiverId: 'ClaimedInvite', + claimedInvitesBySenderId: 'ClaimedInvite', + orgInvitesByEntityId: 'OrgInvite', + orgInvitesBySenderId: 'OrgInvite', + orgClaimedInvitesByReceiverId: 'OrgClaimedInvite', + orgClaimedInvitesBySenderId: 'OrgClaimedInvite', + }, +} as Record>; +// ============ Custom Input Types (from schema) ============ +export interface SignOutInput { + clientMutationId?: string; +} +export interface SendAccountDeletionEmailInput { + clientMutationId?: string; +} +export interface CheckPasswordInput { + clientMutationId?: string; + password?: string; +} +export interface SubmitInviteCodeInput { + clientMutationId?: string; + token?: string; +} +export interface SubmitOrgInviteCodeInput { + clientMutationId?: string; + token?: string; +} +export interface FreezeObjectsInput { + clientMutationId?: string; + databaseId?: string; + id?: string; +} +export interface InitEmptyRepoInput { + clientMutationId?: string; + dbId?: string; + storeId?: string; +} +export interface ConfirmDeleteAccountInput { + clientMutationId?: string; + userId?: string; + token?: string; +} +export interface SetPasswordInput { + clientMutationId?: string; + currentPassword?: string; + newPassword?: string; +} +export interface VerifyEmailInput { + clientMutationId?: string; + emailId?: string; + token?: string; +} +export interface ResetPasswordInput { + clientMutationId?: string; + roleId?: string; + resetToken?: string; + newPassword?: string; +} +export interface RemoveNodeAtPathInput { + clientMutationId?: string; + dbId?: string; + root?: string; + path?: string[]; +} +export interface BootstrapUserInput { + clientMutationId?: string; + targetDatabaseId?: string; + password?: string; + isAdmin?: boolean; + isOwner?: boolean; + username?: string; + displayName?: string; + returnApiKey?: boolean; +} +export interface SetDataAtPathInput { + clientMutationId?: string; + dbId?: string; + root?: string; + path?: string[]; + data?: Record; +} +export interface SetPropsAndCommitInput { + clientMutationId?: string; + dbId?: string; + storeId?: string; + refname?: string; + path?: string[]; + data?: Record; +} +export interface ProvisionDatabaseWithUserInput { + clientMutationId?: string; + pDatabaseName?: string; + pDomain?: string; + pSubdomain?: string; + pModules?: string[]; + pOptions?: Record; +} +export interface SignInOneTimeTokenInput { + clientMutationId?: string; + token?: string; + credentialKind?: string; +} +export interface CreateUserDatabaseInput { + clientMutationId?: string; + databaseName?: string; + ownerId?: string; + includeInvites?: boolean; + includeGroups?: boolean; + includeLevels?: boolean; + bitlen?: number; + tokensExpiration?: IntervalInput; +} +export interface ExtendTokenExpiresInput { + clientMutationId?: string; + amount?: IntervalInput; +} +export interface SignInInput { + clientMutationId?: string; + email?: string; + password?: string; + rememberMe?: boolean; + credentialKind?: string; + csrfToken?: string; +} +export interface SignUpInput { + clientMutationId?: string; + email?: string; + password?: string; + rememberMe?: boolean; + credentialKind?: string; + csrfToken?: string; +} +export interface SetFieldOrderInput { + clientMutationId?: string; + fieldIds?: string[]; +} +export interface OneTimeTokenInput { + clientMutationId?: string; + email?: string; + password?: string; + origin?: ConstructiveInternalTypeOrigin; + rememberMe?: boolean; +} +export interface InsertNodeAtPathInput { + clientMutationId?: string; + dbId?: string; + root?: string; + path?: string[]; + data?: Record; + kids?: string[]; + ktree?: string[]; +} +export interface UpdateNodeAtPathInput { + clientMutationId?: string; + dbId?: string; + root?: string; + path?: string[]; + data?: Record; + kids?: string[]; + ktree?: string[]; +} +export interface SetAndCommitInput { + clientMutationId?: string; + dbId?: string; + storeId?: string; + refname?: string; + path?: string[]; + data?: Record; + kids?: string[]; + ktree?: string[]; +} +export interface ApplyRlsInput { + clientMutationId?: string; + tableId?: string; + grants?: Record; + policyType?: string; + vars?: Record; + fieldIds?: string[]; + permissive?: boolean; + name?: string; +} +export interface ForgotPasswordInput { + clientMutationId?: string; + email?: ConstructiveInternalTypeEmail; +} +export interface SendVerificationEmailInput { + clientMutationId?: string; + email?: ConstructiveInternalTypeEmail; +} +export interface VerifyPasswordInput { + clientMutationId?: string; + password: string; +} +export interface VerifyTotpInput { + clientMutationId?: string; + totpValue: string; +} +/** An interval of time that has passed where the smallest distinct unit is a second. */ +export interface IntervalInput { + /** + * A quantity of seconds. This is the only non-integer field, as all the other + * fields will dump their overflow into a smaller unit of time. Intervals don’t + * have a smaller unit than seconds. + */ + seconds?: number; + /** A quantity of minutes. */ + minutes?: number; + /** A quantity of hours. */ + hours?: number; + /** A quantity of days. */ + days?: number; + /** A quantity of months. */ + months?: number; + /** A quantity of years. */ + years?: number; +} +/** A connection to a list of `AppPermission` values. */ +// ============ Payload/Return Types (for custom operations) ============ +export interface AppPermissionConnection { + nodes: AppPermission[]; + edges: AppPermissionEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export type AppPermissionConnectionSelect = { + nodes?: { + select: AppPermissionSelect; + }; + edges?: { + select: AppPermissionEdgeSelect; + }; + pageInfo?: { + select: PageInfoSelect; + }; + totalCount?: boolean; +}; +/** A connection to a list of `OrgPermission` values. */ +export interface OrgPermissionConnection { + nodes: OrgPermission[]; + edges: OrgPermissionEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export type OrgPermissionConnectionSelect = { + nodes?: { + select: OrgPermissionSelect; + }; + edges?: { + select: OrgPermissionEdgeSelect; + }; + pageInfo?: { + select: PageInfoSelect; + }; + totalCount?: boolean; +}; +/** A connection to a list of `Object` values. */ +export interface ObjectConnection { + nodes: Object[]; + edges: ObjectEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export type ObjectConnectionSelect = { + nodes?: { + select: ObjectSelect; + }; + edges?: { + select: ObjectEdgeSelect; + }; + pageInfo?: { + select: PageInfoSelect; + }; + totalCount?: boolean; +}; +/** A connection to a list of `AppLevelRequirement` values. */ +export interface AppLevelRequirementConnection { + nodes: AppLevelRequirement[]; + edges: AppLevelRequirementEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export type AppLevelRequirementConnectionSelect = { + nodes?: { + select: AppLevelRequirementSelect; + }; + edges?: { + select: AppLevelRequirementEdgeSelect; + }; + pageInfo?: { + select: PageInfoSelect; + }; + totalCount?: boolean; +}; +export interface SignOutPayload { + clientMutationId?: string | null; +} +export type SignOutPayloadSelect = { + clientMutationId?: boolean; +}; +export interface SendAccountDeletionEmailPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type SendAccountDeletionEmailPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface CheckPasswordPayload { + clientMutationId?: string | null; +} +export type CheckPasswordPayloadSelect = { + clientMutationId?: boolean; +}; +export interface SubmitInviteCodePayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type SubmitInviteCodePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface SubmitOrgInviteCodePayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type SubmitOrgInviteCodePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface FreezeObjectsPayload { + clientMutationId?: string | null; +} +export type FreezeObjectsPayloadSelect = { + clientMutationId?: boolean; +}; +export interface InitEmptyRepoPayload { + clientMutationId?: string | null; +} +export type InitEmptyRepoPayloadSelect = { + clientMutationId?: boolean; +}; +export interface ConfirmDeleteAccountPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type ConfirmDeleteAccountPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface SetPasswordPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type SetPasswordPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface VerifyEmailPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type VerifyEmailPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface ResetPasswordPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type ResetPasswordPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface RemoveNodeAtPathPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type RemoveNodeAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface BootstrapUserPayload { + clientMutationId?: string | null; + result?: BootstrapUserRecord[] | null; +} +export type BootstrapUserPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: BootstrapUserRecordSelect; + }; +}; +export interface SetDataAtPathPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type SetDataAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface SetPropsAndCommitPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type SetPropsAndCommitPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface ProvisionDatabaseWithUserPayload { + clientMutationId?: string | null; + result?: ProvisionDatabaseWithUserRecord[] | null; +} +export type ProvisionDatabaseWithUserPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: ProvisionDatabaseWithUserRecordSelect; + }; +}; +export interface SignInOneTimeTokenPayload { + clientMutationId?: string | null; + result?: SignInOneTimeTokenRecord | null; +} +export type SignInOneTimeTokenPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: SignInOneTimeTokenRecordSelect; + }; +}; +export interface CreateUserDatabasePayload { + clientMutationId?: string | null; + result?: string | null; +} +export type CreateUserDatabasePayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface ExtendTokenExpiresPayload { + clientMutationId?: string | null; + result?: ExtendTokenExpiresRecord[] | null; +} +export type ExtendTokenExpiresPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: ExtendTokenExpiresRecordSelect; + }; +}; +export interface SignInPayload { + clientMutationId?: string | null; + result?: SignInRecord | null; +} +export type SignInPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: SignInRecordSelect; + }; +}; +export interface SignUpPayload { + clientMutationId?: string | null; + result?: SignUpRecord | null; +} +export type SignUpPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: SignUpRecordSelect; + }; +}; +export interface SetFieldOrderPayload { + clientMutationId?: string | null; +} +export type SetFieldOrderPayloadSelect = { + clientMutationId?: boolean; +}; +export interface OneTimeTokenPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type OneTimeTokenPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface InsertNodeAtPathPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type InsertNodeAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface UpdateNodeAtPathPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type UpdateNodeAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface SetAndCommitPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type SetAndCommitPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface ApplyRlsPayload { + clientMutationId?: string | null; +} +export type ApplyRlsPayloadSelect = { + clientMutationId?: boolean; +}; +export interface ForgotPasswordPayload { + clientMutationId?: string | null; +} +export type ForgotPasswordPayloadSelect = { + clientMutationId?: boolean; +}; +export interface SendVerificationEmailPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type SendVerificationEmailPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface VerifyPasswordPayload { + clientMutationId?: string | null; + result?: Session | null; +} +export type VerifyPasswordPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: SessionSelect; + }; +}; +export interface VerifyTotpPayload { + clientMutationId?: string | null; + result?: Session | null; +} +export type VerifyTotpPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: SessionSelect; + }; +}; +export interface CreateAppPermissionPayload { + clientMutationId?: string | null; + /** The `AppPermission` that was created by this mutation. */ + appPermission?: AppPermission | null; + appPermissionEdge?: AppPermissionEdge | null; +} +export type CreateAppPermissionPayloadSelect = { + clientMutationId?: boolean; + appPermission?: { + select: AppPermissionSelect; + }; + appPermissionEdge?: { + select: AppPermissionEdgeSelect; + }; +}; +export interface UpdateAppPermissionPayload { + clientMutationId?: string | null; + /** The `AppPermission` that was updated by this mutation. */ + appPermission?: AppPermission | null; + appPermissionEdge?: AppPermissionEdge | null; +} +export type UpdateAppPermissionPayloadSelect = { + clientMutationId?: boolean; + appPermission?: { + select: AppPermissionSelect; + }; + appPermissionEdge?: { + select: AppPermissionEdgeSelect; + }; +}; +export interface DeleteAppPermissionPayload { + clientMutationId?: string | null; + /** The `AppPermission` that was deleted by this mutation. */ + appPermission?: AppPermission | null; + appPermissionEdge?: AppPermissionEdge | null; +} +export type DeleteAppPermissionPayloadSelect = { + clientMutationId?: boolean; + appPermission?: { + select: AppPermissionSelect; + }; + appPermissionEdge?: { + select: AppPermissionEdgeSelect; + }; +}; +export interface CreateOrgPermissionPayload { + clientMutationId?: string | null; + /** The `OrgPermission` that was created by this mutation. */ + orgPermission?: OrgPermission | null; + orgPermissionEdge?: OrgPermissionEdge | null; +} +export type CreateOrgPermissionPayloadSelect = { + clientMutationId?: boolean; + orgPermission?: { + select: OrgPermissionSelect; + }; + orgPermissionEdge?: { + select: OrgPermissionEdgeSelect; + }; +}; +export interface UpdateOrgPermissionPayload { + clientMutationId?: string | null; + /** The `OrgPermission` that was updated by this mutation. */ + orgPermission?: OrgPermission | null; + orgPermissionEdge?: OrgPermissionEdge | null; +} +export type UpdateOrgPermissionPayloadSelect = { + clientMutationId?: boolean; + orgPermission?: { + select: OrgPermissionSelect; + }; + orgPermissionEdge?: { + select: OrgPermissionEdgeSelect; + }; +}; +export interface DeleteOrgPermissionPayload { + clientMutationId?: string | null; + /** The `OrgPermission` that was deleted by this mutation. */ + orgPermission?: OrgPermission | null; + orgPermissionEdge?: OrgPermissionEdge | null; +} +export type DeleteOrgPermissionPayloadSelect = { + clientMutationId?: boolean; + orgPermission?: { + select: OrgPermissionSelect; + }; + orgPermissionEdge?: { + select: OrgPermissionEdgeSelect; + }; +}; +export interface CreateObjectPayload { + clientMutationId?: string | null; + /** The `Object` that was created by this mutation. */ + object?: Object | null; + objectEdge?: ObjectEdge | null; +} +export type CreateObjectPayloadSelect = { + clientMutationId?: boolean; + object?: { + select: ObjectSelect; + }; + objectEdge?: { + select: ObjectEdgeSelect; + }; +}; +export interface UpdateObjectPayload { + clientMutationId?: string | null; + /** The `Object` that was updated by this mutation. */ + object?: Object | null; + objectEdge?: ObjectEdge | null; +} +export type UpdateObjectPayloadSelect = { + clientMutationId?: boolean; + object?: { + select: ObjectSelect; + }; + objectEdge?: { + select: ObjectEdgeSelect; + }; +}; +export interface DeleteObjectPayload { + clientMutationId?: string | null; + /** The `Object` that was deleted by this mutation. */ + object?: Object | null; + objectEdge?: ObjectEdge | null; +} +export type DeleteObjectPayloadSelect = { + clientMutationId?: boolean; + object?: { + select: ObjectSelect; + }; + objectEdge?: { + select: ObjectEdgeSelect; + }; +}; +export interface CreateAppLevelRequirementPayload { + clientMutationId?: string | null; + /** The `AppLevelRequirement` that was created by this mutation. */ + appLevelRequirement?: AppLevelRequirement | null; + appLevelRequirementEdge?: AppLevelRequirementEdge | null; +} +export type CreateAppLevelRequirementPayloadSelect = { + clientMutationId?: boolean; + appLevelRequirement?: { + select: AppLevelRequirementSelect; + }; + appLevelRequirementEdge?: { + select: AppLevelRequirementEdgeSelect; + }; +}; +export interface UpdateAppLevelRequirementPayload { + clientMutationId?: string | null; + /** The `AppLevelRequirement` that was updated by this mutation. */ + appLevelRequirement?: AppLevelRequirement | null; + appLevelRequirementEdge?: AppLevelRequirementEdge | null; +} +export type UpdateAppLevelRequirementPayloadSelect = { + clientMutationId?: boolean; + appLevelRequirement?: { + select: AppLevelRequirementSelect; + }; + appLevelRequirementEdge?: { + select: AppLevelRequirementEdgeSelect; + }; +}; +export interface DeleteAppLevelRequirementPayload { + clientMutationId?: string | null; + /** The `AppLevelRequirement` that was deleted by this mutation. */ + appLevelRequirement?: AppLevelRequirement | null; + appLevelRequirementEdge?: AppLevelRequirementEdge | null; +} +export type DeleteAppLevelRequirementPayloadSelect = { + clientMutationId?: boolean; + appLevelRequirement?: { + select: AppLevelRequirementSelect; + }; + appLevelRequirementEdge?: { + select: AppLevelRequirementEdgeSelect; + }; +}; +export interface CreateDatabasePayload { + clientMutationId?: string | null; + /** The `Database` that was created by this mutation. */ + database?: Database | null; + databaseEdge?: DatabaseEdge | null; +} +export type CreateDatabasePayloadSelect = { + clientMutationId?: boolean; + database?: { + select: DatabaseSelect; + }; + databaseEdge?: { + select: DatabaseEdgeSelect; + }; +}; +export interface UpdateDatabasePayload { + clientMutationId?: string | null; + /** The `Database` that was updated by this mutation. */ + database?: Database | null; + databaseEdge?: DatabaseEdge | null; +} +export type UpdateDatabasePayloadSelect = { + clientMutationId?: boolean; + database?: { + select: DatabaseSelect; + }; + databaseEdge?: { + select: DatabaseEdgeSelect; + }; +}; +export interface DeleteDatabasePayload { + clientMutationId?: string | null; + /** The `Database` that was deleted by this mutation. */ + database?: Database | null; + databaseEdge?: DatabaseEdge | null; +} +export type DeleteDatabasePayloadSelect = { + clientMutationId?: boolean; + database?: { + select: DatabaseSelect; + }; + databaseEdge?: { + select: DatabaseEdgeSelect; + }; +}; +export interface CreateSchemaPayload { + clientMutationId?: string | null; + /** The `Schema` that was created by this mutation. */ + schema?: Schema | null; + schemaEdge?: SchemaEdge | null; +} +export type CreateSchemaPayloadSelect = { + clientMutationId?: boolean; + schema?: { + select: SchemaSelect; + }; + schemaEdge?: { + select: SchemaEdgeSelect; + }; +}; +export interface UpdateSchemaPayload { + clientMutationId?: string | null; + /** The `Schema` that was updated by this mutation. */ + schema?: Schema | null; + schemaEdge?: SchemaEdge | null; +} +export type UpdateSchemaPayloadSelect = { + clientMutationId?: boolean; + schema?: { + select: SchemaSelect; + }; + schemaEdge?: { + select: SchemaEdgeSelect; + }; +}; +export interface DeleteSchemaPayload { + clientMutationId?: string | null; + /** The `Schema` that was deleted by this mutation. */ + schema?: Schema | null; + schemaEdge?: SchemaEdge | null; +} +export type DeleteSchemaPayloadSelect = { + clientMutationId?: boolean; + schema?: { + select: SchemaSelect; + }; + schemaEdge?: { + select: SchemaEdgeSelect; + }; +}; +export interface CreateTablePayload { + clientMutationId?: string | null; + /** The `Table` that was created by this mutation. */ + table?: Table | null; + tableEdge?: TableEdge | null; +} +export type CreateTablePayloadSelect = { + clientMutationId?: boolean; + table?: { + select: TableSelect; + }; + tableEdge?: { + select: TableEdgeSelect; + }; +}; +export interface UpdateTablePayload { + clientMutationId?: string | null; + /** The `Table` that was updated by this mutation. */ + table?: Table | null; + tableEdge?: TableEdge | null; +} +export type UpdateTablePayloadSelect = { + clientMutationId?: boolean; + table?: { + select: TableSelect; + }; + tableEdge?: { + select: TableEdgeSelect; + }; +}; +export interface DeleteTablePayload { + clientMutationId?: string | null; + /** The `Table` that was deleted by this mutation. */ + table?: Table | null; + tableEdge?: TableEdge | null; +} +export type DeleteTablePayloadSelect = { + clientMutationId?: boolean; + table?: { + select: TableSelect; + }; + tableEdge?: { + select: TableEdgeSelect; + }; +}; +export interface CreateCheckConstraintPayload { + clientMutationId?: string | null; + /** The `CheckConstraint` that was created by this mutation. */ + checkConstraint?: CheckConstraint | null; + checkConstraintEdge?: CheckConstraintEdge | null; +} +export type CreateCheckConstraintPayloadSelect = { + clientMutationId?: boolean; + checkConstraint?: { + select: CheckConstraintSelect; + }; + checkConstraintEdge?: { + select: CheckConstraintEdgeSelect; + }; +}; +export interface UpdateCheckConstraintPayload { + clientMutationId?: string | null; + /** The `CheckConstraint` that was updated by this mutation. */ + checkConstraint?: CheckConstraint | null; + checkConstraintEdge?: CheckConstraintEdge | null; +} +export type UpdateCheckConstraintPayloadSelect = { + clientMutationId?: boolean; + checkConstraint?: { + select: CheckConstraintSelect; + }; + checkConstraintEdge?: { + select: CheckConstraintEdgeSelect; + }; +}; +export interface DeleteCheckConstraintPayload { + clientMutationId?: string | null; + /** The `CheckConstraint` that was deleted by this mutation. */ + checkConstraint?: CheckConstraint | null; + checkConstraintEdge?: CheckConstraintEdge | null; +} +export type DeleteCheckConstraintPayloadSelect = { + clientMutationId?: boolean; + checkConstraint?: { + select: CheckConstraintSelect; + }; + checkConstraintEdge?: { + select: CheckConstraintEdgeSelect; + }; +}; +export interface CreateFieldPayload { + clientMutationId?: string | null; + /** The `Field` that was created by this mutation. */ + field?: Field | null; + fieldEdge?: FieldEdge | null; +} +export type CreateFieldPayloadSelect = { + clientMutationId?: boolean; + field?: { + select: FieldSelect; + }; + fieldEdge?: { + select: FieldEdgeSelect; + }; +}; +export interface UpdateFieldPayload { + clientMutationId?: string | null; + /** The `Field` that was updated by this mutation. */ + field?: Field | null; + fieldEdge?: FieldEdge | null; +} +export type UpdateFieldPayloadSelect = { + clientMutationId?: boolean; + field?: { + select: FieldSelect; + }; + fieldEdge?: { + select: FieldEdgeSelect; + }; +}; +export interface DeleteFieldPayload { + clientMutationId?: string | null; + /** The `Field` that was deleted by this mutation. */ + field?: Field | null; + fieldEdge?: FieldEdge | null; +} +export type DeleteFieldPayloadSelect = { + clientMutationId?: boolean; + field?: { + select: FieldSelect; + }; + fieldEdge?: { + select: FieldEdgeSelect; + }; +}; +export interface CreateForeignKeyConstraintPayload { + clientMutationId?: string | null; + /** The `ForeignKeyConstraint` that was created by this mutation. */ + foreignKeyConstraint?: ForeignKeyConstraint | null; + foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null; +} +export type CreateForeignKeyConstraintPayloadSelect = { + clientMutationId?: boolean; + foreignKeyConstraint?: { + select: ForeignKeyConstraintSelect; + }; + foreignKeyConstraintEdge?: { + select: ForeignKeyConstraintEdgeSelect; + }; +}; +export interface UpdateForeignKeyConstraintPayload { + clientMutationId?: string | null; + /** The `ForeignKeyConstraint` that was updated by this mutation. */ + foreignKeyConstraint?: ForeignKeyConstraint | null; + foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null; +} +export type UpdateForeignKeyConstraintPayloadSelect = { + clientMutationId?: boolean; + foreignKeyConstraint?: { + select: ForeignKeyConstraintSelect; + }; + foreignKeyConstraintEdge?: { + select: ForeignKeyConstraintEdgeSelect; + }; +}; +export interface DeleteForeignKeyConstraintPayload { + clientMutationId?: string | null; + /** The `ForeignKeyConstraint` that was deleted by this mutation. */ + foreignKeyConstraint?: ForeignKeyConstraint | null; + foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null; +} +export type DeleteForeignKeyConstraintPayloadSelect = { + clientMutationId?: boolean; + foreignKeyConstraint?: { + select: ForeignKeyConstraintSelect; + }; + foreignKeyConstraintEdge?: { + select: ForeignKeyConstraintEdgeSelect; + }; +}; +export interface CreateFullTextSearchPayload { + clientMutationId?: string | null; + /** The `FullTextSearch` that was created by this mutation. */ + fullTextSearch?: FullTextSearch | null; + fullTextSearchEdge?: FullTextSearchEdge | null; +} +export type CreateFullTextSearchPayloadSelect = { + clientMutationId?: boolean; + fullTextSearch?: { + select: FullTextSearchSelect; + }; + fullTextSearchEdge?: { + select: FullTextSearchEdgeSelect; + }; +}; +export interface UpdateFullTextSearchPayload { + clientMutationId?: string | null; + /** The `FullTextSearch` that was updated by this mutation. */ + fullTextSearch?: FullTextSearch | null; + fullTextSearchEdge?: FullTextSearchEdge | null; +} +export type UpdateFullTextSearchPayloadSelect = { + clientMutationId?: boolean; + fullTextSearch?: { + select: FullTextSearchSelect; + }; + fullTextSearchEdge?: { + select: FullTextSearchEdgeSelect; + }; +}; +export interface DeleteFullTextSearchPayload { + clientMutationId?: string | null; + /** The `FullTextSearch` that was deleted by this mutation. */ + fullTextSearch?: FullTextSearch | null; + fullTextSearchEdge?: FullTextSearchEdge | null; +} +export type DeleteFullTextSearchPayloadSelect = { + clientMutationId?: boolean; + fullTextSearch?: { + select: FullTextSearchSelect; + }; + fullTextSearchEdge?: { + select: FullTextSearchEdgeSelect; + }; +}; +export interface CreateIndexPayload { + clientMutationId?: string | null; + /** The `Index` that was created by this mutation. */ + index?: Index | null; + indexEdge?: IndexEdge | null; +} +export type CreateIndexPayloadSelect = { + clientMutationId?: boolean; + index?: { + select: IndexSelect; + }; + indexEdge?: { + select: IndexEdgeSelect; + }; +}; +export interface UpdateIndexPayload { + clientMutationId?: string | null; + /** The `Index` that was updated by this mutation. */ + index?: Index | null; + indexEdge?: IndexEdge | null; +} +export type UpdateIndexPayloadSelect = { + clientMutationId?: boolean; + index?: { + select: IndexSelect; + }; + indexEdge?: { + select: IndexEdgeSelect; + }; +}; +export interface DeleteIndexPayload { + clientMutationId?: string | null; + /** The `Index` that was deleted by this mutation. */ + index?: Index | null; + indexEdge?: IndexEdge | null; +} +export type DeleteIndexPayloadSelect = { + clientMutationId?: boolean; + index?: { + select: IndexSelect; + }; + indexEdge?: { + 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. */ + policy?: Policy | null; + policyEdge?: PolicyEdge | null; +} +export type CreatePolicyPayloadSelect = { + clientMutationId?: boolean; + policy?: { + select: PolicySelect; + }; + policyEdge?: { + select: PolicyEdgeSelect; + }; +}; +export interface UpdatePolicyPayload { + clientMutationId?: string | null; + /** The `Policy` that was updated by this mutation. */ + policy?: Policy | null; + policyEdge?: PolicyEdge | null; +} +export type UpdatePolicyPayloadSelect = { + clientMutationId?: boolean; + policy?: { + select: PolicySelect; + }; + policyEdge?: { + select: PolicyEdgeSelect; + }; +}; +export interface DeletePolicyPayload { + clientMutationId?: string | null; + /** The `Policy` that was deleted by this mutation. */ + policy?: Policy | null; + policyEdge?: PolicyEdge | null; +} +export type DeletePolicyPayloadSelect = { + clientMutationId?: boolean; + policy?: { + select: PolicySelect; + }; + policyEdge?: { + select: PolicyEdgeSelect; + }; +}; +export interface CreatePrimaryKeyConstraintPayload { + clientMutationId?: string | null; + /** The `PrimaryKeyConstraint` that was created by this mutation. */ + primaryKeyConstraint?: PrimaryKeyConstraint | null; + primaryKeyConstraintEdge?: PrimaryKeyConstraintEdge | null; +} +export type CreatePrimaryKeyConstraintPayloadSelect = { + clientMutationId?: boolean; + primaryKeyConstraint?: { + select: PrimaryKeyConstraintSelect; + }; + primaryKeyConstraintEdge?: { + select: PrimaryKeyConstraintEdgeSelect; + }; +}; +export interface UpdatePrimaryKeyConstraintPayload { + clientMutationId?: string | null; + /** The `PrimaryKeyConstraint` that was updated by this mutation. */ + primaryKeyConstraint?: PrimaryKeyConstraint | null; + primaryKeyConstraintEdge?: PrimaryKeyConstraintEdge | null; +} +export type UpdatePrimaryKeyConstraintPayloadSelect = { + clientMutationId?: boolean; + primaryKeyConstraint?: { + select: PrimaryKeyConstraintSelect; + }; + primaryKeyConstraintEdge?: { + select: PrimaryKeyConstraintEdgeSelect; + }; +}; +export interface DeletePrimaryKeyConstraintPayload { + clientMutationId?: string | null; + /** The `PrimaryKeyConstraint` that was deleted by this mutation. */ + primaryKeyConstraint?: PrimaryKeyConstraint | null; + primaryKeyConstraintEdge?: PrimaryKeyConstraintEdge | null; +} +export type DeletePrimaryKeyConstraintPayloadSelect = { + clientMutationId?: boolean; + primaryKeyConstraint?: { + select: PrimaryKeyConstraintSelect; + }; + primaryKeyConstraintEdge?: { + select: PrimaryKeyConstraintEdgeSelect; + }; +}; +export interface CreateTableGrantPayload { + clientMutationId?: string | null; + /** The `TableGrant` that was created by this mutation. */ + tableGrant?: TableGrant | null; + tableGrantEdge?: TableGrantEdge | null; +} +export type CreateTableGrantPayloadSelect = { + clientMutationId?: boolean; + tableGrant?: { + select: TableGrantSelect; + }; + tableGrantEdge?: { + select: TableGrantEdgeSelect; + }; +}; +export interface UpdateTableGrantPayload { + clientMutationId?: string | null; + /** The `TableGrant` that was updated by this mutation. */ + tableGrant?: TableGrant | null; + tableGrantEdge?: TableGrantEdge | null; +} +export type UpdateTableGrantPayloadSelect = { + clientMutationId?: boolean; + tableGrant?: { + select: TableGrantSelect; + }; + tableGrantEdge?: { + select: TableGrantEdgeSelect; + }; +}; +export interface DeleteTableGrantPayload { + clientMutationId?: string | null; + /** The `TableGrant` that was deleted by this mutation. */ + tableGrant?: TableGrant | null; + tableGrantEdge?: TableGrantEdge | null; +} +export type DeleteTableGrantPayloadSelect = { + clientMutationId?: boolean; + tableGrant?: { + select: TableGrantSelect; + }; + tableGrantEdge?: { + select: TableGrantEdgeSelect; + }; +}; +export interface CreateTriggerPayload { + clientMutationId?: string | null; + /** The `Trigger` that was created by this mutation. */ + trigger?: Trigger | null; + triggerEdge?: TriggerEdge | null; +} +export type CreateTriggerPayloadSelect = { + clientMutationId?: boolean; + trigger?: { + select: TriggerSelect; + }; + triggerEdge?: { + select: TriggerEdgeSelect; + }; +}; +export interface UpdateTriggerPayload { + clientMutationId?: string | null; + /** The `Trigger` that was updated by this mutation. */ + trigger?: Trigger | null; + triggerEdge?: TriggerEdge | null; +} +export type UpdateTriggerPayloadSelect = { + clientMutationId?: boolean; + trigger?: { + select: TriggerSelect; + }; + triggerEdge?: { + select: TriggerEdgeSelect; + }; +}; +export interface DeleteTriggerPayload { + clientMutationId?: string | null; + /** The `Trigger` that was deleted by this mutation. */ + trigger?: Trigger | null; + triggerEdge?: TriggerEdge | null; +} +export type DeleteTriggerPayloadSelect = { + clientMutationId?: boolean; + trigger?: { + select: TriggerSelect; + }; + triggerEdge?: { + select: TriggerEdgeSelect; + }; +}; +export interface CreateUniqueConstraintPayload { + clientMutationId?: string | null; + /** The `UniqueConstraint` that was created by this mutation. */ + uniqueConstraint?: UniqueConstraint | null; + uniqueConstraintEdge?: UniqueConstraintEdge | null; +} +export type CreateUniqueConstraintPayloadSelect = { + clientMutationId?: boolean; + uniqueConstraint?: { + select: UniqueConstraintSelect; + }; + uniqueConstraintEdge?: { + select: UniqueConstraintEdgeSelect; + }; +}; +export interface UpdateUniqueConstraintPayload { + clientMutationId?: string | null; + /** The `UniqueConstraint` that was updated by this mutation. */ + uniqueConstraint?: UniqueConstraint | null; + uniqueConstraintEdge?: UniqueConstraintEdge | null; +} +export type UpdateUniqueConstraintPayloadSelect = { + clientMutationId?: boolean; + uniqueConstraint?: { + select: UniqueConstraintSelect; + }; + uniqueConstraintEdge?: { + select: UniqueConstraintEdgeSelect; + }; +}; +export interface DeleteUniqueConstraintPayload { + clientMutationId?: string | null; + /** The `UniqueConstraint` that was deleted by this mutation. */ + uniqueConstraint?: UniqueConstraint | null; + uniqueConstraintEdge?: UniqueConstraintEdge | null; +} +export type DeleteUniqueConstraintPayloadSelect = { + clientMutationId?: boolean; + uniqueConstraint?: { + select: UniqueConstraintSelect; + }; + uniqueConstraintEdge?: { + select: UniqueConstraintEdgeSelect; + }; +}; +export interface CreateViewPayload { + clientMutationId?: string | null; + /** The `View` that was created by this mutation. */ + view?: View | null; + viewEdge?: ViewEdge | null; +} +export type CreateViewPayloadSelect = { + clientMutationId?: boolean; + view?: { + select: ViewSelect; + }; + viewEdge?: { + select: ViewEdgeSelect; + }; +}; +export interface UpdateViewPayload { + clientMutationId?: string | null; + /** The `View` that was updated by this mutation. */ + view?: View | null; + viewEdge?: ViewEdge | null; +} +export type UpdateViewPayloadSelect = { + clientMutationId?: boolean; + view?: { + select: ViewSelect; + }; + viewEdge?: { + select: ViewEdgeSelect; + }; +}; +export interface DeleteViewPayload { + clientMutationId?: string | null; + /** The `View` that was deleted by this mutation. */ + view?: View | null; + viewEdge?: ViewEdge | null; +} +export type DeleteViewPayloadSelect = { + clientMutationId?: boolean; + view?: { + select: ViewSelect; + }; + viewEdge?: { + select: ViewEdgeSelect; + }; +}; +export interface CreateViewTablePayload { + clientMutationId?: string | null; + /** The `ViewTable` that was created by this mutation. */ + viewTable?: ViewTable | null; + viewTableEdge?: ViewTableEdge | null; +} +export type CreateViewTablePayloadSelect = { + clientMutationId?: boolean; + viewTable?: { + select: ViewTableSelect; + }; + viewTableEdge?: { + select: ViewTableEdgeSelect; + }; +}; +export interface UpdateViewTablePayload { + clientMutationId?: string | null; + /** The `ViewTable` that was updated by this mutation. */ + viewTable?: ViewTable | null; + viewTableEdge?: ViewTableEdge | null; +} +export type UpdateViewTablePayloadSelect = { + clientMutationId?: boolean; + viewTable?: { + select: ViewTableSelect; + }; + viewTableEdge?: { + select: ViewTableEdgeSelect; + }; +}; +export interface DeleteViewTablePayload { + clientMutationId?: string | null; + /** The `ViewTable` that was deleted by this mutation. */ + viewTable?: ViewTable | null; + viewTableEdge?: ViewTableEdge | null; +} +export type DeleteViewTablePayloadSelect = { + clientMutationId?: boolean; + viewTable?: { + select: ViewTableSelect; + }; + viewTableEdge?: { + select: ViewTableEdgeSelect; + }; +}; +export interface CreateViewGrantPayload { + clientMutationId?: string | null; + /** The `ViewGrant` that was created by this mutation. */ + viewGrant?: ViewGrant | null; + viewGrantEdge?: ViewGrantEdge | null; +} +export type CreateViewGrantPayloadSelect = { + clientMutationId?: boolean; + viewGrant?: { + select: ViewGrantSelect; + }; + viewGrantEdge?: { + select: ViewGrantEdgeSelect; + }; +}; +export interface UpdateViewGrantPayload { + clientMutationId?: string | null; + /** The `ViewGrant` that was updated by this mutation. */ + viewGrant?: ViewGrant | null; + viewGrantEdge?: ViewGrantEdge | null; +} +export type UpdateViewGrantPayloadSelect = { + clientMutationId?: boolean; + viewGrant?: { + select: ViewGrantSelect; + }; + viewGrantEdge?: { + select: ViewGrantEdgeSelect; + }; +}; +export interface DeleteViewGrantPayload { + clientMutationId?: string | null; + /** The `ViewGrant` that was deleted by this mutation. */ + viewGrant?: ViewGrant | null; + viewGrantEdge?: ViewGrantEdge | null; +} +export type DeleteViewGrantPayloadSelect = { + clientMutationId?: boolean; + viewGrant?: { + select: ViewGrantSelect; + }; + viewGrantEdge?: { + select: ViewGrantEdgeSelect; + }; +}; +export interface CreateViewRulePayload { + clientMutationId?: string | null; + /** The `ViewRule` that was created by this mutation. */ + viewRule?: ViewRule | null; + viewRuleEdge?: ViewRuleEdge | null; +} +export type CreateViewRulePayloadSelect = { + clientMutationId?: boolean; + viewRule?: { + select: ViewRuleSelect; + }; + viewRuleEdge?: { + select: ViewRuleEdgeSelect; + }; +}; +export interface UpdateViewRulePayload { + clientMutationId?: string | null; + /** The `ViewRule` that was updated by this mutation. */ + viewRule?: ViewRule | null; + viewRuleEdge?: ViewRuleEdge | null; +} +export type UpdateViewRulePayloadSelect = { + clientMutationId?: boolean; + viewRule?: { + select: ViewRuleSelect; + }; + viewRuleEdge?: { + select: ViewRuleEdgeSelect; + }; +}; +export interface DeleteViewRulePayload { + clientMutationId?: string | null; + /** The `ViewRule` that was deleted by this mutation. */ + viewRule?: ViewRule | null; + viewRuleEdge?: ViewRuleEdge | null; +} +export type DeleteViewRulePayloadSelect = { + clientMutationId?: boolean; + viewRule?: { + select: ViewRuleSelect; + }; + viewRuleEdge?: { + select: ViewRuleEdgeSelect; + }; +}; +export interface CreateTableModulePayload { + clientMutationId?: string | null; + /** The `TableModule` that was created by this mutation. */ + tableModule?: TableModule | null; + tableModuleEdge?: TableModuleEdge | null; +} +export type CreateTableModulePayloadSelect = { + clientMutationId?: boolean; + tableModule?: { + select: TableModuleSelect; + }; + tableModuleEdge?: { + select: TableModuleEdgeSelect; + }; +}; +export interface UpdateTableModulePayload { + clientMutationId?: string | null; + /** The `TableModule` that was updated by this mutation. */ + tableModule?: TableModule | null; + tableModuleEdge?: TableModuleEdge | null; +} +export type UpdateTableModulePayloadSelect = { + clientMutationId?: boolean; + tableModule?: { + select: TableModuleSelect; + }; + tableModuleEdge?: { + select: TableModuleEdgeSelect; + }; +}; +export interface DeleteTableModulePayload { + clientMutationId?: string | null; + /** The `TableModule` that was deleted by this mutation. */ + tableModule?: TableModule | null; + tableModuleEdge?: TableModuleEdge | null; +} +export type DeleteTableModulePayloadSelect = { + clientMutationId?: boolean; + tableModule?: { + select: TableModuleSelect; + }; + tableModuleEdge?: { + select: TableModuleEdgeSelect; + }; +}; +export interface CreateTableTemplateModulePayload { + clientMutationId?: string | null; + /** The `TableTemplateModule` that was created by this mutation. */ + tableTemplateModule?: TableTemplateModule | null; + tableTemplateModuleEdge?: TableTemplateModuleEdge | null; +} +export type CreateTableTemplateModulePayloadSelect = { + clientMutationId?: boolean; + tableTemplateModule?: { + select: TableTemplateModuleSelect; + }; + tableTemplateModuleEdge?: { + select: TableTemplateModuleEdgeSelect; + }; +}; +export interface UpdateTableTemplateModulePayload { + clientMutationId?: string | null; + /** The `TableTemplateModule` that was updated by this mutation. */ + tableTemplateModule?: TableTemplateModule | null; + tableTemplateModuleEdge?: TableTemplateModuleEdge | null; +} +export type UpdateTableTemplateModulePayloadSelect = { + clientMutationId?: boolean; + tableTemplateModule?: { + select: TableTemplateModuleSelect; + }; + tableTemplateModuleEdge?: { + select: TableTemplateModuleEdgeSelect; + }; +}; +export interface DeleteTableTemplateModulePayload { + clientMutationId?: string | null; + /** The `TableTemplateModule` that was deleted by this mutation. */ + tableTemplateModule?: TableTemplateModule | null; + tableTemplateModuleEdge?: TableTemplateModuleEdge | null; +} +export type DeleteTableTemplateModulePayloadSelect = { + clientMutationId?: boolean; + tableTemplateModule?: { + select: TableTemplateModuleSelect; + }; + tableTemplateModuleEdge?: { + select: TableTemplateModuleEdgeSelect; + }; +}; +export interface CreateSchemaGrantPayload { + clientMutationId?: string | null; + /** The `SchemaGrant` that was created by this mutation. */ + schemaGrant?: SchemaGrant | null; + schemaGrantEdge?: SchemaGrantEdge | null; +} +export type CreateSchemaGrantPayloadSelect = { + clientMutationId?: boolean; + schemaGrant?: { + select: SchemaGrantSelect; + }; + schemaGrantEdge?: { + select: SchemaGrantEdgeSelect; + }; +}; +export interface UpdateSchemaGrantPayload { + clientMutationId?: string | null; + /** The `SchemaGrant` that was updated by this mutation. */ + schemaGrant?: SchemaGrant | null; + schemaGrantEdge?: SchemaGrantEdge | null; +} +export type UpdateSchemaGrantPayloadSelect = { + clientMutationId?: boolean; + schemaGrant?: { + select: SchemaGrantSelect; + }; + schemaGrantEdge?: { + select: SchemaGrantEdgeSelect; + }; +}; +export interface DeleteSchemaGrantPayload { + clientMutationId?: string | null; + /** The `SchemaGrant` that was deleted by this mutation. */ + schemaGrant?: SchemaGrant | null; + schemaGrantEdge?: SchemaGrantEdge | null; +} +export type DeleteSchemaGrantPayloadSelect = { + clientMutationId?: boolean; + schemaGrant?: { + select: SchemaGrantSelect; + }; + schemaGrantEdge?: { + select: SchemaGrantEdgeSelect; + }; +}; +export interface CreateApiSchemaPayload { + clientMutationId?: string | null; + /** The `ApiSchema` that was created by this mutation. */ + apiSchema?: ApiSchema | null; + apiSchemaEdge?: ApiSchemaEdge | null; +} +export type CreateApiSchemaPayloadSelect = { + clientMutationId?: boolean; + apiSchema?: { + select: ApiSchemaSelect; + }; + apiSchemaEdge?: { + select: ApiSchemaEdgeSelect; + }; +}; +export interface UpdateApiSchemaPayload { + clientMutationId?: string | null; + /** The `ApiSchema` that was updated by this mutation. */ + apiSchema?: ApiSchema | null; + apiSchemaEdge?: ApiSchemaEdge | null; +} +export type UpdateApiSchemaPayloadSelect = { + clientMutationId?: boolean; + apiSchema?: { + select: ApiSchemaSelect; + }; + apiSchemaEdge?: { + select: ApiSchemaEdgeSelect; + }; +}; +export interface DeleteApiSchemaPayload { + clientMutationId?: string | null; + /** The `ApiSchema` that was deleted by this mutation. */ + apiSchema?: ApiSchema | null; + apiSchemaEdge?: ApiSchemaEdge | null; +} +export type DeleteApiSchemaPayloadSelect = { + clientMutationId?: boolean; + apiSchema?: { + select: ApiSchemaSelect; + }; + apiSchemaEdge?: { + select: ApiSchemaEdgeSelect; + }; +}; +export interface CreateApiModulePayload { + clientMutationId?: string | null; + /** The `ApiModule` that was created by this mutation. */ + apiModule?: ApiModule | null; + apiModuleEdge?: ApiModuleEdge | null; +} +export type CreateApiModulePayloadSelect = { + clientMutationId?: boolean; + apiModule?: { + select: ApiModuleSelect; + }; + apiModuleEdge?: { + select: ApiModuleEdgeSelect; + }; +}; +export interface UpdateApiModulePayload { + clientMutationId?: string | null; + /** The `ApiModule` that was updated by this mutation. */ + apiModule?: ApiModule | null; + apiModuleEdge?: ApiModuleEdge | null; +} +export type UpdateApiModulePayloadSelect = { + clientMutationId?: boolean; + apiModule?: { + select: ApiModuleSelect; + }; + apiModuleEdge?: { + select: ApiModuleEdgeSelect; + }; +}; +export interface DeleteApiModulePayload { + clientMutationId?: string | null; + /** The `ApiModule` that was deleted by this mutation. */ + apiModule?: ApiModule | null; + apiModuleEdge?: ApiModuleEdge | null; +} +export type DeleteApiModulePayloadSelect = { + clientMutationId?: boolean; + apiModule?: { + select: ApiModuleSelect; + }; + apiModuleEdge?: { + select: ApiModuleEdgeSelect; + }; +}; +export interface CreateDomainPayload { + clientMutationId?: string | null; + /** The `Domain` that was created by this mutation. */ + domain?: Domain | null; + domainEdge?: DomainEdge | null; +} +export type CreateDomainPayloadSelect = { + clientMutationId?: boolean; + domain?: { + select: DomainSelect; + }; + domainEdge?: { + select: DomainEdgeSelect; + }; +}; +export interface UpdateDomainPayload { + clientMutationId?: string | null; + /** The `Domain` that was updated by this mutation. */ + domain?: Domain | null; + domainEdge?: DomainEdge | null; +} +export type UpdateDomainPayloadSelect = { + clientMutationId?: boolean; + domain?: { + select: DomainSelect; + }; + domainEdge?: { + select: DomainEdgeSelect; + }; +}; +export interface DeleteDomainPayload { + clientMutationId?: string | null; + /** The `Domain` that was deleted by this mutation. */ + domain?: Domain | null; + domainEdge?: DomainEdge | null; +} +export type DeleteDomainPayloadSelect = { + clientMutationId?: boolean; + domain?: { + select: DomainSelect; + }; + domainEdge?: { + select: DomainEdgeSelect; + }; +}; +export interface CreateSiteMetadatumPayload { + clientMutationId?: string | null; + /** The `SiteMetadatum` that was created by this mutation. */ + siteMetadatum?: SiteMetadatum | null; + siteMetadatumEdge?: SiteMetadatumEdge | null; +} +export type CreateSiteMetadatumPayloadSelect = { + clientMutationId?: boolean; + siteMetadatum?: { + select: SiteMetadatumSelect; + }; + siteMetadatumEdge?: { + select: SiteMetadatumEdgeSelect; + }; +}; +export interface UpdateSiteMetadatumPayload { + clientMutationId?: string | null; + /** The `SiteMetadatum` that was updated by this mutation. */ + siteMetadatum?: SiteMetadatum | null; + siteMetadatumEdge?: SiteMetadatumEdge | null; +} +export type UpdateSiteMetadatumPayloadSelect = { + clientMutationId?: boolean; + siteMetadatum?: { + select: SiteMetadatumSelect; + }; + siteMetadatumEdge?: { + select: SiteMetadatumEdgeSelect; + }; +}; +export interface DeleteSiteMetadatumPayload { + clientMutationId?: string | null; + /** The `SiteMetadatum` that was deleted by this mutation. */ + siteMetadatum?: SiteMetadatum | null; + siteMetadatumEdge?: SiteMetadatumEdge | null; +} +export type DeleteSiteMetadatumPayloadSelect = { + clientMutationId?: boolean; + siteMetadatum?: { + select: SiteMetadatumSelect; + }; + siteMetadatumEdge?: { + select: SiteMetadatumEdgeSelect; + }; +}; +export interface CreateSiteModulePayload { + clientMutationId?: string | null; + /** The `SiteModule` that was created by this mutation. */ + siteModule?: SiteModule | null; + siteModuleEdge?: SiteModuleEdge | null; +} +export type CreateSiteModulePayloadSelect = { + clientMutationId?: boolean; + siteModule?: { + select: SiteModuleSelect; + }; + siteModuleEdge?: { + select: SiteModuleEdgeSelect; + }; +}; +export interface UpdateSiteModulePayload { + clientMutationId?: string | null; + /** The `SiteModule` that was updated by this mutation. */ + siteModule?: SiteModule | null; + siteModuleEdge?: SiteModuleEdge | null; +} +export type UpdateSiteModulePayloadSelect = { + clientMutationId?: boolean; + siteModule?: { + select: SiteModuleSelect; + }; + siteModuleEdge?: { + select: SiteModuleEdgeSelect; + }; +}; +export interface DeleteSiteModulePayload { + clientMutationId?: string | null; + /** The `SiteModule` that was deleted by this mutation. */ + siteModule?: SiteModule | null; + siteModuleEdge?: SiteModuleEdge | null; +} +export type DeleteSiteModulePayloadSelect = { + clientMutationId?: boolean; + siteModule?: { + select: SiteModuleSelect; + }; + siteModuleEdge?: { + select: SiteModuleEdgeSelect; + }; +}; +export interface CreateSiteThemePayload { + clientMutationId?: string | null; + /** The `SiteTheme` that was created by this mutation. */ + siteTheme?: SiteTheme | null; + siteThemeEdge?: SiteThemeEdge | null; +} +export type CreateSiteThemePayloadSelect = { + clientMutationId?: boolean; + siteTheme?: { + select: SiteThemeSelect; + }; + siteThemeEdge?: { + select: SiteThemeEdgeSelect; + }; +}; +export interface UpdateSiteThemePayload { + clientMutationId?: string | null; + /** The `SiteTheme` that was updated by this mutation. */ + siteTheme?: SiteTheme | null; + siteThemeEdge?: SiteThemeEdge | null; +} +export type UpdateSiteThemePayloadSelect = { + clientMutationId?: boolean; + siteTheme?: { + select: SiteThemeSelect; + }; + siteThemeEdge?: { + select: SiteThemeEdgeSelect; + }; +}; +export interface DeleteSiteThemePayload { + clientMutationId?: string | null; + /** The `SiteTheme` that was deleted by this mutation. */ + siteTheme?: SiteTheme | null; + siteThemeEdge?: SiteThemeEdge | null; +} +export type DeleteSiteThemePayloadSelect = { + clientMutationId?: boolean; + siteTheme?: { + select: SiteThemeSelect; + }; + siteThemeEdge?: { + 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. */ + triggerFunction?: TriggerFunction | null; + triggerFunctionEdge?: TriggerFunctionEdge | null; +} +export type CreateTriggerFunctionPayloadSelect = { + clientMutationId?: boolean; + triggerFunction?: { + select: TriggerFunctionSelect; + }; + triggerFunctionEdge?: { + select: TriggerFunctionEdgeSelect; + }; +}; +export interface UpdateTriggerFunctionPayload { + clientMutationId?: string | null; + /** The `TriggerFunction` that was updated by this mutation. */ + triggerFunction?: TriggerFunction | null; + triggerFunctionEdge?: TriggerFunctionEdge | null; +} +export type UpdateTriggerFunctionPayloadSelect = { + clientMutationId?: boolean; + triggerFunction?: { + select: TriggerFunctionSelect; + }; + triggerFunctionEdge?: { + select: TriggerFunctionEdgeSelect; + }; +}; +export interface DeleteTriggerFunctionPayload { + clientMutationId?: string | null; + /** The `TriggerFunction` that was deleted by this mutation. */ + triggerFunction?: TriggerFunction | null; + triggerFunctionEdge?: TriggerFunctionEdge | null; +} +export type DeleteTriggerFunctionPayloadSelect = { + clientMutationId?: boolean; + triggerFunction?: { + select: TriggerFunctionSelect; + }; + triggerFunctionEdge?: { + select: TriggerFunctionEdgeSelect; + }; +}; +export interface CreateApiPayload { + clientMutationId?: string | null; + /** The `Api` that was created by this mutation. */ + api?: Api | null; + apiEdge?: ApiEdge | null; +} +export type CreateApiPayloadSelect = { + clientMutationId?: boolean; + api?: { + select: ApiSelect; + }; + apiEdge?: { + select: ApiEdgeSelect; + }; +}; +export interface UpdateApiPayload { + clientMutationId?: string | null; + /** The `Api` that was updated by this mutation. */ + api?: Api | null; + apiEdge?: ApiEdge | null; +} +export type UpdateApiPayloadSelect = { + clientMutationId?: boolean; + api?: { + select: ApiSelect; + }; + apiEdge?: { + select: ApiEdgeSelect; + }; +}; +export interface DeleteApiPayload { + clientMutationId?: string | null; + /** The `Api` that was deleted by this mutation. */ + api?: Api | null; + apiEdge?: ApiEdge | null; +} +export type DeleteApiPayloadSelect = { + clientMutationId?: boolean; + api?: { + select: ApiSelect; + }; + apiEdge?: { + select: ApiEdgeSelect; + }; +}; +export interface CreateSitePayload { + clientMutationId?: string | null; + /** The `Site` that was created by this mutation. */ + site?: Site | null; + siteEdge?: SiteEdge | null; +} +export type CreateSitePayloadSelect = { + clientMutationId?: boolean; + site?: { + select: SiteSelect; + }; + siteEdge?: { + select: SiteEdgeSelect; + }; +}; +export interface UpdateSitePayload { + clientMutationId?: string | null; + /** The `Site` that was updated by this mutation. */ + site?: Site | null; + siteEdge?: SiteEdge | null; +} +export type UpdateSitePayloadSelect = { + clientMutationId?: boolean; + site?: { + select: SiteSelect; + }; + siteEdge?: { + select: SiteEdgeSelect; + }; +}; +export interface DeleteSitePayload { + clientMutationId?: string | null; + /** The `Site` that was deleted by this mutation. */ + site?: Site | null; + siteEdge?: SiteEdge | null; +} +export type DeleteSitePayloadSelect = { + clientMutationId?: boolean; + site?: { + select: SiteSelect; + }; + siteEdge?: { + select: SiteEdgeSelect; + }; +}; +export interface CreateAppPayload { + clientMutationId?: string | null; + /** The `App` that was created by this mutation. */ + app?: App | null; + appEdge?: AppEdge | null; +} +export type CreateAppPayloadSelect = { + clientMutationId?: boolean; + app?: { + select: AppSelect; + }; + appEdge?: { + select: AppEdgeSelect; + }; +}; +export interface UpdateAppPayload { + clientMutationId?: string | null; + /** The `App` that was updated by this mutation. */ + app?: App | null; + appEdge?: AppEdge | null; +} +export type UpdateAppPayloadSelect = { + clientMutationId?: boolean; + app?: { + select: AppSelect; + }; + appEdge?: { + select: AppEdgeSelect; + }; +}; +export interface DeleteAppPayload { + clientMutationId?: string | null; + /** The `App` that was deleted by this mutation. */ + app?: App | null; + appEdge?: AppEdge | null; +} +export type DeleteAppPayloadSelect = { + clientMutationId?: boolean; + app?: { + select: AppSelect; + }; + appEdge?: { + select: AppEdgeSelect; + }; +}; +export interface CreateConnectedAccountsModulePayload { + clientMutationId?: string | null; + /** The `ConnectedAccountsModule` that was created by this mutation. */ + connectedAccountsModule?: ConnectedAccountsModule | null; + connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; +} +export type CreateConnectedAccountsModulePayloadSelect = { + clientMutationId?: boolean; + connectedAccountsModule?: { + select: ConnectedAccountsModuleSelect; + }; + connectedAccountsModuleEdge?: { + select: ConnectedAccountsModuleEdgeSelect; + }; +}; +export interface UpdateConnectedAccountsModulePayload { + clientMutationId?: string | null; + /** The `ConnectedAccountsModule` that was updated by this mutation. */ + connectedAccountsModule?: ConnectedAccountsModule | null; + connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; +} +export type UpdateConnectedAccountsModulePayloadSelect = { + clientMutationId?: boolean; + connectedAccountsModule?: { + select: ConnectedAccountsModuleSelect; + }; + connectedAccountsModuleEdge?: { + select: ConnectedAccountsModuleEdgeSelect; + }; +}; +export interface DeleteConnectedAccountsModulePayload { + clientMutationId?: string | null; + /** The `ConnectedAccountsModule` that was deleted by this mutation. */ + connectedAccountsModule?: ConnectedAccountsModule | null; + connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; +} +export type DeleteConnectedAccountsModulePayloadSelect = { + clientMutationId?: boolean; + connectedAccountsModule?: { + select: ConnectedAccountsModuleSelect; + }; + connectedAccountsModuleEdge?: { + select: ConnectedAccountsModuleEdgeSelect; + }; +}; +export interface CreateCryptoAddressesModulePayload { + clientMutationId?: string | null; + /** The `CryptoAddressesModule` that was created by this mutation. */ + cryptoAddressesModule?: CryptoAddressesModule | null; + cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; +} +export type CreateCryptoAddressesModulePayloadSelect = { + clientMutationId?: boolean; + cryptoAddressesModule?: { + select: CryptoAddressesModuleSelect; + }; + cryptoAddressesModuleEdge?: { + select: CryptoAddressesModuleEdgeSelect; + }; +}; +export interface UpdateCryptoAddressesModulePayload { + clientMutationId?: string | null; + /** The `CryptoAddressesModule` that was updated by this mutation. */ + cryptoAddressesModule?: CryptoAddressesModule | null; + cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; +} +export type UpdateCryptoAddressesModulePayloadSelect = { + clientMutationId?: boolean; + cryptoAddressesModule?: { + select: CryptoAddressesModuleSelect; + }; + cryptoAddressesModuleEdge?: { + select: CryptoAddressesModuleEdgeSelect; + }; +}; +export interface DeleteCryptoAddressesModulePayload { + clientMutationId?: string | null; + /** The `CryptoAddressesModule` that was deleted by this mutation. */ + cryptoAddressesModule?: CryptoAddressesModule | null; + cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; +} +export type DeleteCryptoAddressesModulePayloadSelect = { + clientMutationId?: boolean; + cryptoAddressesModule?: { + select: CryptoAddressesModuleSelect; + }; + cryptoAddressesModuleEdge?: { + select: CryptoAddressesModuleEdgeSelect; + }; +}; +export interface CreateCryptoAuthModulePayload { + clientMutationId?: string | null; + /** The `CryptoAuthModule` that was created by this mutation. */ + cryptoAuthModule?: CryptoAuthModule | null; + cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; +} +export type CreateCryptoAuthModulePayloadSelect = { + clientMutationId?: boolean; + cryptoAuthModule?: { + select: CryptoAuthModuleSelect; + }; + cryptoAuthModuleEdge?: { + select: CryptoAuthModuleEdgeSelect; + }; +}; +export interface UpdateCryptoAuthModulePayload { + clientMutationId?: string | null; + /** The `CryptoAuthModule` that was updated by this mutation. */ + cryptoAuthModule?: CryptoAuthModule | null; + cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; +} +export type UpdateCryptoAuthModulePayloadSelect = { + clientMutationId?: boolean; + cryptoAuthModule?: { + select: CryptoAuthModuleSelect; + }; + cryptoAuthModuleEdge?: { + select: CryptoAuthModuleEdgeSelect; + }; +}; +export interface DeleteCryptoAuthModulePayload { + clientMutationId?: string | null; + /** The `CryptoAuthModule` that was deleted by this mutation. */ + cryptoAuthModule?: CryptoAuthModule | null; + cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; +} +export type DeleteCryptoAuthModulePayloadSelect = { + clientMutationId?: boolean; + cryptoAuthModule?: { + select: CryptoAuthModuleSelect; + }; + cryptoAuthModuleEdge?: { + select: CryptoAuthModuleEdgeSelect; + }; +}; +export interface CreateDefaultIdsModulePayload { + clientMutationId?: string | null; + /** The `DefaultIdsModule` that was created by this mutation. */ + defaultIdsModule?: DefaultIdsModule | null; + defaultIdsModuleEdge?: DefaultIdsModuleEdge | null; +} +export type CreateDefaultIdsModulePayloadSelect = { + clientMutationId?: boolean; + defaultIdsModule?: { + select: DefaultIdsModuleSelect; + }; + defaultIdsModuleEdge?: { + select: DefaultIdsModuleEdgeSelect; + }; +}; +export interface UpdateDefaultIdsModulePayload { + clientMutationId?: string | null; + /** The `DefaultIdsModule` that was updated by this mutation. */ + defaultIdsModule?: DefaultIdsModule | null; + defaultIdsModuleEdge?: DefaultIdsModuleEdge | null; +} +export type UpdateDefaultIdsModulePayloadSelect = { + clientMutationId?: boolean; + defaultIdsModule?: { + select: DefaultIdsModuleSelect; + }; + defaultIdsModuleEdge?: { + select: DefaultIdsModuleEdgeSelect; + }; +}; +export interface DeleteDefaultIdsModulePayload { + clientMutationId?: string | null; + /** The `DefaultIdsModule` that was deleted by this mutation. */ + defaultIdsModule?: DefaultIdsModule | null; + defaultIdsModuleEdge?: DefaultIdsModuleEdge | null; +} +export type DeleteDefaultIdsModulePayloadSelect = { + clientMutationId?: boolean; + defaultIdsModule?: { + select: DefaultIdsModuleSelect; + }; + defaultIdsModuleEdge?: { + select: DefaultIdsModuleEdgeSelect; + }; +}; +export interface CreateDenormalizedTableFieldPayload { + clientMutationId?: string | null; + /** The `DenormalizedTableField` that was created by this mutation. */ + denormalizedTableField?: DenormalizedTableField | null; + denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; +} +export type CreateDenormalizedTableFieldPayloadSelect = { + clientMutationId?: boolean; + denormalizedTableField?: { + select: DenormalizedTableFieldSelect; + }; + denormalizedTableFieldEdge?: { + select: DenormalizedTableFieldEdgeSelect; + }; +}; +export interface UpdateDenormalizedTableFieldPayload { + clientMutationId?: string | null; + /** The `DenormalizedTableField` that was updated by this mutation. */ + denormalizedTableField?: DenormalizedTableField | null; + denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; +} +export type UpdateDenormalizedTableFieldPayloadSelect = { + clientMutationId?: boolean; + denormalizedTableField?: { + select: DenormalizedTableFieldSelect; + }; + denormalizedTableFieldEdge?: { + select: DenormalizedTableFieldEdgeSelect; + }; +}; +export interface DeleteDenormalizedTableFieldPayload { + clientMutationId?: string | null; + /** The `DenormalizedTableField` that was deleted by this mutation. */ + denormalizedTableField?: DenormalizedTableField | null; + denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; +} +export type DeleteDenormalizedTableFieldPayloadSelect = { + clientMutationId?: boolean; + denormalizedTableField?: { + select: DenormalizedTableFieldSelect; + }; + denormalizedTableFieldEdge?: { + select: DenormalizedTableFieldEdgeSelect; + }; +}; +export interface CreateEmailsModulePayload { + clientMutationId?: string | null; + /** The `EmailsModule` that was created by this mutation. */ + emailsModule?: EmailsModule | null; + emailsModuleEdge?: EmailsModuleEdge | null; +} +export type CreateEmailsModulePayloadSelect = { + clientMutationId?: boolean; + emailsModule?: { + select: EmailsModuleSelect; + }; + emailsModuleEdge?: { + select: EmailsModuleEdgeSelect; + }; +}; +export interface UpdateEmailsModulePayload { + clientMutationId?: string | null; + /** The `EmailsModule` that was updated by this mutation. */ + emailsModule?: EmailsModule | null; + emailsModuleEdge?: EmailsModuleEdge | null; +} +export type UpdateEmailsModulePayloadSelect = { + clientMutationId?: boolean; + emailsModule?: { + select: EmailsModuleSelect; + }; + emailsModuleEdge?: { + select: EmailsModuleEdgeSelect; + }; +}; +export interface DeleteEmailsModulePayload { + clientMutationId?: string | null; + /** The `EmailsModule` that was deleted by this mutation. */ + emailsModule?: EmailsModule | null; + emailsModuleEdge?: EmailsModuleEdge | null; +} +export type DeleteEmailsModulePayloadSelect = { + clientMutationId?: boolean; + emailsModule?: { + select: EmailsModuleSelect; + }; + emailsModuleEdge?: { + select: EmailsModuleEdgeSelect; + }; +}; +export interface CreateEncryptedSecretsModulePayload { + clientMutationId?: string | null; + /** The `EncryptedSecretsModule` that was created by this mutation. */ + encryptedSecretsModule?: EncryptedSecretsModule | null; + encryptedSecretsModuleEdge?: EncryptedSecretsModuleEdge | null; +} +export type CreateEncryptedSecretsModulePayloadSelect = { + clientMutationId?: boolean; + encryptedSecretsModule?: { + select: EncryptedSecretsModuleSelect; + }; + encryptedSecretsModuleEdge?: { + select: EncryptedSecretsModuleEdgeSelect; + }; +}; +export interface UpdateEncryptedSecretsModulePayload { + clientMutationId?: string | null; + /** The `EncryptedSecretsModule` that was updated by this mutation. */ + encryptedSecretsModule?: EncryptedSecretsModule | null; + encryptedSecretsModuleEdge?: EncryptedSecretsModuleEdge | null; +} +export type UpdateEncryptedSecretsModulePayloadSelect = { + clientMutationId?: boolean; + encryptedSecretsModule?: { + select: EncryptedSecretsModuleSelect; + }; + encryptedSecretsModuleEdge?: { + select: EncryptedSecretsModuleEdgeSelect; + }; +}; +export interface DeleteEncryptedSecretsModulePayload { + clientMutationId?: string | null; + /** The `EncryptedSecretsModule` that was deleted by this mutation. */ + encryptedSecretsModule?: EncryptedSecretsModule | null; + encryptedSecretsModuleEdge?: EncryptedSecretsModuleEdge | null; +} +export type DeleteEncryptedSecretsModulePayloadSelect = { + clientMutationId?: boolean; + encryptedSecretsModule?: { + select: EncryptedSecretsModuleSelect; + }; + encryptedSecretsModuleEdge?: { + select: EncryptedSecretsModuleEdgeSelect; + }; +}; +export interface CreateFieldModulePayload { + clientMutationId?: string | null; + /** The `FieldModule` that was created by this mutation. */ + fieldModule?: FieldModule | null; + fieldModuleEdge?: FieldModuleEdge | null; +} +export type CreateFieldModulePayloadSelect = { + clientMutationId?: boolean; + fieldModule?: { + select: FieldModuleSelect; + }; + fieldModuleEdge?: { + select: FieldModuleEdgeSelect; + }; +}; +export interface UpdateFieldModulePayload { + clientMutationId?: string | null; + /** The `FieldModule` that was updated by this mutation. */ + fieldModule?: FieldModule | null; + fieldModuleEdge?: FieldModuleEdge | null; +} +export type UpdateFieldModulePayloadSelect = { + clientMutationId?: boolean; + fieldModule?: { + select: FieldModuleSelect; + }; + fieldModuleEdge?: { + select: FieldModuleEdgeSelect; + }; +}; +export interface DeleteFieldModulePayload { + clientMutationId?: string | null; + /** The `FieldModule` that was deleted by this mutation. */ + fieldModule?: FieldModule | null; + fieldModuleEdge?: FieldModuleEdge | null; +} +export type DeleteFieldModulePayloadSelect = { + clientMutationId?: boolean; + fieldModule?: { + select: FieldModuleSelect; + }; + fieldModuleEdge?: { + select: FieldModuleEdgeSelect; + }; +}; +export interface CreateInvitesModulePayload { + clientMutationId?: string | null; + /** The `InvitesModule` that was created by this mutation. */ + invitesModule?: InvitesModule | null; + invitesModuleEdge?: InvitesModuleEdge | null; +} +export type CreateInvitesModulePayloadSelect = { + clientMutationId?: boolean; + invitesModule?: { + select: InvitesModuleSelect; + }; + invitesModuleEdge?: { + select: InvitesModuleEdgeSelect; + }; +}; +export interface UpdateInvitesModulePayload { + clientMutationId?: string | null; + /** The `InvitesModule` that was updated by this mutation. */ + invitesModule?: InvitesModule | null; + invitesModuleEdge?: InvitesModuleEdge | null; +} +export type UpdateInvitesModulePayloadSelect = { + clientMutationId?: boolean; + invitesModule?: { + select: InvitesModuleSelect; + }; + invitesModuleEdge?: { + select: InvitesModuleEdgeSelect; + }; +}; +export interface DeleteInvitesModulePayload { + clientMutationId?: string | null; + /** The `InvitesModule` that was deleted by this mutation. */ + invitesModule?: InvitesModule | null; + invitesModuleEdge?: InvitesModuleEdge | null; +} +export type DeleteInvitesModulePayloadSelect = { + clientMutationId?: boolean; + invitesModule?: { + select: InvitesModuleSelect; + }; + invitesModuleEdge?: { + select: InvitesModuleEdgeSelect; + }; +}; +export interface CreateLevelsModulePayload { + clientMutationId?: string | null; + /** The `LevelsModule` that was created by this mutation. */ + levelsModule?: LevelsModule | null; + levelsModuleEdge?: LevelsModuleEdge | null; +} +export type CreateLevelsModulePayloadSelect = { + clientMutationId?: boolean; + levelsModule?: { + select: LevelsModuleSelect; + }; + levelsModuleEdge?: { + select: LevelsModuleEdgeSelect; + }; +}; +export interface UpdateLevelsModulePayload { + clientMutationId?: string | null; + /** The `LevelsModule` that was updated by this mutation. */ + levelsModule?: LevelsModule | null; + levelsModuleEdge?: LevelsModuleEdge | null; +} +export type UpdateLevelsModulePayloadSelect = { + clientMutationId?: boolean; + levelsModule?: { + select: LevelsModuleSelect; + }; + levelsModuleEdge?: { + select: LevelsModuleEdgeSelect; + }; +}; +export interface DeleteLevelsModulePayload { + clientMutationId?: string | null; + /** The `LevelsModule` that was deleted by this mutation. */ + levelsModule?: LevelsModule | null; + levelsModuleEdge?: LevelsModuleEdge | null; +} +export type DeleteLevelsModulePayloadSelect = { + clientMutationId?: boolean; + levelsModule?: { + select: LevelsModuleSelect; + }; + levelsModuleEdge?: { + select: LevelsModuleEdgeSelect; + }; +}; +export interface CreateLimitsModulePayload { + clientMutationId?: string | null; + /** The `LimitsModule` that was created by this mutation. */ + limitsModule?: LimitsModule | null; + limitsModuleEdge?: LimitsModuleEdge | null; +} +export type CreateLimitsModulePayloadSelect = { + clientMutationId?: boolean; + limitsModule?: { + select: LimitsModuleSelect; + }; + limitsModuleEdge?: { + select: LimitsModuleEdgeSelect; + }; +}; +export interface UpdateLimitsModulePayload { + clientMutationId?: string | null; + /** The `LimitsModule` that was updated by this mutation. */ + limitsModule?: LimitsModule | null; + limitsModuleEdge?: LimitsModuleEdge | null; +} +export type UpdateLimitsModulePayloadSelect = { + clientMutationId?: boolean; + limitsModule?: { + select: LimitsModuleSelect; + }; + limitsModuleEdge?: { + select: LimitsModuleEdgeSelect; + }; +}; +export interface DeleteLimitsModulePayload { + clientMutationId?: string | null; + /** The `LimitsModule` that was deleted by this mutation. */ + limitsModule?: LimitsModule | null; + limitsModuleEdge?: LimitsModuleEdge | null; +} +export type DeleteLimitsModulePayloadSelect = { + clientMutationId?: boolean; + limitsModule?: { + select: LimitsModuleSelect; + }; + limitsModuleEdge?: { + select: LimitsModuleEdgeSelect; + }; +}; +export interface CreateMembershipTypesModulePayload { + clientMutationId?: string | null; + /** The `MembershipTypesModule` that was created by this mutation. */ + membershipTypesModule?: MembershipTypesModule | null; + membershipTypesModuleEdge?: MembershipTypesModuleEdge | null; +} +export type CreateMembershipTypesModulePayloadSelect = { + clientMutationId?: boolean; + membershipTypesModule?: { + select: MembershipTypesModuleSelect; + }; + membershipTypesModuleEdge?: { + select: MembershipTypesModuleEdgeSelect; + }; +}; +export interface UpdateMembershipTypesModulePayload { + clientMutationId?: string | null; + /** The `MembershipTypesModule` that was updated by this mutation. */ + membershipTypesModule?: MembershipTypesModule | null; + membershipTypesModuleEdge?: MembershipTypesModuleEdge | null; +} +export type UpdateMembershipTypesModulePayloadSelect = { + clientMutationId?: boolean; + membershipTypesModule?: { + select: MembershipTypesModuleSelect; + }; + membershipTypesModuleEdge?: { + select: MembershipTypesModuleEdgeSelect; + }; +}; +export interface DeleteMembershipTypesModulePayload { + clientMutationId?: string | null; + /** The `MembershipTypesModule` that was deleted by this mutation. */ + membershipTypesModule?: MembershipTypesModule | null; + membershipTypesModuleEdge?: MembershipTypesModuleEdge | null; +} +export type DeleteMembershipTypesModulePayloadSelect = { + clientMutationId?: boolean; + membershipTypesModule?: { + select: MembershipTypesModuleSelect; + }; + membershipTypesModuleEdge?: { + select: MembershipTypesModuleEdgeSelect; + }; +}; +export interface CreateMembershipsModulePayload { + clientMutationId?: string | null; + /** The `MembershipsModule` that was created by this mutation. */ + membershipsModule?: MembershipsModule | null; + membershipsModuleEdge?: MembershipsModuleEdge | null; +} +export type CreateMembershipsModulePayloadSelect = { + clientMutationId?: boolean; + membershipsModule?: { + select: MembershipsModuleSelect; + }; + membershipsModuleEdge?: { + select: MembershipsModuleEdgeSelect; + }; +}; +export interface UpdateMembershipsModulePayload { + clientMutationId?: string | null; + /** The `MembershipsModule` that was updated by this mutation. */ + membershipsModule?: MembershipsModule | null; + membershipsModuleEdge?: MembershipsModuleEdge | null; +} +export type UpdateMembershipsModulePayloadSelect = { + clientMutationId?: boolean; + membershipsModule?: { + select: MembershipsModuleSelect; + }; + membershipsModuleEdge?: { + select: MembershipsModuleEdgeSelect; + }; +}; +export interface DeleteMembershipsModulePayload { + clientMutationId?: string | null; + /** The `MembershipsModule` that was deleted by this mutation. */ + membershipsModule?: MembershipsModule | null; + membershipsModuleEdge?: MembershipsModuleEdge | null; +} +export type DeleteMembershipsModulePayloadSelect = { + clientMutationId?: boolean; + membershipsModule?: { + select: MembershipsModuleSelect; + }; + membershipsModuleEdge?: { + select: MembershipsModuleEdgeSelect; + }; +}; +export interface CreatePermissionsModulePayload { + clientMutationId?: string | null; + /** The `PermissionsModule` that was created by this mutation. */ + permissionsModule?: PermissionsModule | null; + permissionsModuleEdge?: PermissionsModuleEdge | null; +} +export type CreatePermissionsModulePayloadSelect = { + clientMutationId?: boolean; + permissionsModule?: { + select: PermissionsModuleSelect; + }; + permissionsModuleEdge?: { + select: PermissionsModuleEdgeSelect; + }; +}; +export interface UpdatePermissionsModulePayload { + clientMutationId?: string | null; + /** The `PermissionsModule` that was updated by this mutation. */ + permissionsModule?: PermissionsModule | null; + permissionsModuleEdge?: PermissionsModuleEdge | null; +} +export type UpdatePermissionsModulePayloadSelect = { + clientMutationId?: boolean; + permissionsModule?: { + select: PermissionsModuleSelect; + }; + permissionsModuleEdge?: { + select: PermissionsModuleEdgeSelect; + }; +}; +export interface DeletePermissionsModulePayload { + clientMutationId?: string | null; + /** The `PermissionsModule` that was deleted by this mutation. */ + permissionsModule?: PermissionsModule | null; + permissionsModuleEdge?: PermissionsModuleEdge | null; +} +export type DeletePermissionsModulePayloadSelect = { + clientMutationId?: boolean; + permissionsModule?: { + select: PermissionsModuleSelect; + }; + permissionsModuleEdge?: { + select: PermissionsModuleEdgeSelect; + }; +}; +export interface CreatePhoneNumbersModulePayload { + clientMutationId?: string | null; + /** The `PhoneNumbersModule` that was created by this mutation. */ + phoneNumbersModule?: PhoneNumbersModule | null; + phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; +} +export type CreatePhoneNumbersModulePayloadSelect = { + clientMutationId?: boolean; + phoneNumbersModule?: { + select: PhoneNumbersModuleSelect; + }; + phoneNumbersModuleEdge?: { + select: PhoneNumbersModuleEdgeSelect; + }; +}; +export interface UpdatePhoneNumbersModulePayload { + clientMutationId?: string | null; + /** The `PhoneNumbersModule` that was updated by this mutation. */ + phoneNumbersModule?: PhoneNumbersModule | null; + phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; +} +export type UpdatePhoneNumbersModulePayloadSelect = { + clientMutationId?: boolean; + phoneNumbersModule?: { + select: PhoneNumbersModuleSelect; + }; + phoneNumbersModuleEdge?: { + select: PhoneNumbersModuleEdgeSelect; + }; +}; +export interface DeletePhoneNumbersModulePayload { + clientMutationId?: string | null; + /** The `PhoneNumbersModule` that was deleted by this mutation. */ + phoneNumbersModule?: PhoneNumbersModule | null; + phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; +} +export type DeletePhoneNumbersModulePayloadSelect = { + clientMutationId?: boolean; + phoneNumbersModule?: { + select: PhoneNumbersModuleSelect; + }; + phoneNumbersModuleEdge?: { + select: PhoneNumbersModuleEdgeSelect; + }; +}; +export interface CreateProfilesModulePayload { + clientMutationId?: string | null; + /** The `ProfilesModule` that was created by this mutation. */ + profilesModule?: ProfilesModule | null; + profilesModuleEdge?: ProfilesModuleEdge | null; +} +export type CreateProfilesModulePayloadSelect = { + clientMutationId?: boolean; + profilesModule?: { + select: ProfilesModuleSelect; + }; + profilesModuleEdge?: { + select: ProfilesModuleEdgeSelect; + }; +}; +export interface UpdateProfilesModulePayload { + clientMutationId?: string | null; + /** The `ProfilesModule` that was updated by this mutation. */ + profilesModule?: ProfilesModule | null; + profilesModuleEdge?: ProfilesModuleEdge | null; +} +export type UpdateProfilesModulePayloadSelect = { + clientMutationId?: boolean; + profilesModule?: { + select: ProfilesModuleSelect; + }; + profilesModuleEdge?: { + select: ProfilesModuleEdgeSelect; + }; +}; +export interface DeleteProfilesModulePayload { + clientMutationId?: string | null; + /** The `ProfilesModule` that was deleted by this mutation. */ + profilesModule?: ProfilesModule | null; + profilesModuleEdge?: ProfilesModuleEdge | null; +} +export type DeleteProfilesModulePayloadSelect = { + clientMutationId?: boolean; + profilesModule?: { + select: ProfilesModuleSelect; + }; + profilesModuleEdge?: { + select: ProfilesModuleEdgeSelect; + }; +}; +export interface CreateRlsModulePayload { + clientMutationId?: string | null; + /** The `RlsModule` that was created by this mutation. */ + rlsModule?: RlsModule | null; + rlsModuleEdge?: RlsModuleEdge | null; +} +export type CreateRlsModulePayloadSelect = { + clientMutationId?: boolean; + rlsModule?: { + select: RlsModuleSelect; + }; + rlsModuleEdge?: { + select: RlsModuleEdgeSelect; + }; +}; +export interface UpdateRlsModulePayload { + clientMutationId?: string | null; + /** The `RlsModule` that was updated by this mutation. */ + rlsModule?: RlsModule | null; + rlsModuleEdge?: RlsModuleEdge | null; +} +export type UpdateRlsModulePayloadSelect = { + clientMutationId?: boolean; + rlsModule?: { + select: RlsModuleSelect; + }; + rlsModuleEdge?: { + select: RlsModuleEdgeSelect; + }; +}; +export interface DeleteRlsModulePayload { + clientMutationId?: string | null; + /** The `RlsModule` that was deleted by this mutation. */ + rlsModule?: RlsModule | null; + rlsModuleEdge?: RlsModuleEdge | null; +} +export type DeleteRlsModulePayloadSelect = { + clientMutationId?: boolean; + rlsModule?: { + select: RlsModuleSelect; + }; + rlsModuleEdge?: { + select: RlsModuleEdgeSelect; + }; +}; +export interface CreateSecretsModulePayload { + clientMutationId?: string | null; + /** The `SecretsModule` that was created by this mutation. */ + secretsModule?: SecretsModule | null; + secretsModuleEdge?: SecretsModuleEdge | null; +} +export type CreateSecretsModulePayloadSelect = { + clientMutationId?: boolean; + secretsModule?: { + select: SecretsModuleSelect; + }; + secretsModuleEdge?: { + select: SecretsModuleEdgeSelect; + }; +}; +export interface UpdateSecretsModulePayload { + clientMutationId?: string | null; + /** The `SecretsModule` that was updated by this mutation. */ + secretsModule?: SecretsModule | null; + secretsModuleEdge?: SecretsModuleEdge | null; +} +export type UpdateSecretsModulePayloadSelect = { + clientMutationId?: boolean; + secretsModule?: { + select: SecretsModuleSelect; + }; + secretsModuleEdge?: { + select: SecretsModuleEdgeSelect; + }; +}; +export interface DeleteSecretsModulePayload { + clientMutationId?: string | null; + /** The `SecretsModule` that was deleted by this mutation. */ + secretsModule?: SecretsModule | null; + secretsModuleEdge?: SecretsModuleEdge | null; +} +export type DeleteSecretsModulePayloadSelect = { + clientMutationId?: boolean; + secretsModule?: { + select: SecretsModuleSelect; + }; + secretsModuleEdge?: { + select: SecretsModuleEdgeSelect; + }; +}; +export interface CreateSessionsModulePayload { + clientMutationId?: string | null; + /** The `SessionsModule` that was created by this mutation. */ + sessionsModule?: SessionsModule | null; + sessionsModuleEdge?: SessionsModuleEdge | null; +} +export type CreateSessionsModulePayloadSelect = { + clientMutationId?: boolean; + sessionsModule?: { + select: SessionsModuleSelect; + }; + sessionsModuleEdge?: { + select: SessionsModuleEdgeSelect; + }; +}; +export interface UpdateSessionsModulePayload { + clientMutationId?: string | null; + /** The `SessionsModule` that was updated by this mutation. */ + sessionsModule?: SessionsModule | null; + sessionsModuleEdge?: SessionsModuleEdge | null; +} +export type UpdateSessionsModulePayloadSelect = { + clientMutationId?: boolean; + sessionsModule?: { + select: SessionsModuleSelect; + }; + sessionsModuleEdge?: { + select: SessionsModuleEdgeSelect; + }; +}; +export interface DeleteSessionsModulePayload { + clientMutationId?: string | null; + /** The `SessionsModule` that was deleted by this mutation. */ + sessionsModule?: SessionsModule | null; + sessionsModuleEdge?: SessionsModuleEdge | null; +} +export type DeleteSessionsModulePayloadSelect = { + clientMutationId?: boolean; + sessionsModule?: { + select: SessionsModuleSelect; + }; + sessionsModuleEdge?: { + select: SessionsModuleEdgeSelect; + }; +}; +export interface CreateUserAuthModulePayload { + clientMutationId?: string | null; + /** The `UserAuthModule` that was created by this mutation. */ + userAuthModule?: UserAuthModule | null; + userAuthModuleEdge?: UserAuthModuleEdge | null; +} +export type CreateUserAuthModulePayloadSelect = { + clientMutationId?: boolean; + userAuthModule?: { + select: UserAuthModuleSelect; + }; + userAuthModuleEdge?: { + select: UserAuthModuleEdgeSelect; + }; +}; +export interface UpdateUserAuthModulePayload { + clientMutationId?: string | null; + /** The `UserAuthModule` that was updated by this mutation. */ + userAuthModule?: UserAuthModule | null; + userAuthModuleEdge?: UserAuthModuleEdge | null; +} +export type UpdateUserAuthModulePayloadSelect = { + clientMutationId?: boolean; + userAuthModule?: { + select: UserAuthModuleSelect; + }; + userAuthModuleEdge?: { + select: UserAuthModuleEdgeSelect; + }; +}; +export interface DeleteUserAuthModulePayload { + clientMutationId?: string | null; + /** The `UserAuthModule` that was deleted by this mutation. */ + userAuthModule?: UserAuthModule | null; + userAuthModuleEdge?: UserAuthModuleEdge | null; +} +export type DeleteUserAuthModulePayloadSelect = { + clientMutationId?: boolean; + userAuthModule?: { + select: UserAuthModuleSelect; + }; + userAuthModuleEdge?: { + select: UserAuthModuleEdgeSelect; + }; +}; +export interface CreateUsersModulePayload { + clientMutationId?: string | null; + /** The `UsersModule` that was created by this mutation. */ + usersModule?: UsersModule | null; + usersModuleEdge?: UsersModuleEdge | null; +} +export type CreateUsersModulePayloadSelect = { + clientMutationId?: boolean; + usersModule?: { + select: UsersModuleSelect; + }; + usersModuleEdge?: { + select: UsersModuleEdgeSelect; + }; +}; +export interface UpdateUsersModulePayload { + clientMutationId?: string | null; + /** The `UsersModule` that was updated by this mutation. */ + usersModule?: UsersModule | null; + usersModuleEdge?: UsersModuleEdge | null; +} +export type UpdateUsersModulePayloadSelect = { + clientMutationId?: boolean; + usersModule?: { + select: UsersModuleSelect; + }; + usersModuleEdge?: { + select: UsersModuleEdgeSelect; + }; +}; +export interface DeleteUsersModulePayload { + clientMutationId?: string | null; + /** The `UsersModule` that was deleted by this mutation. */ + usersModule?: UsersModule | null; + usersModuleEdge?: UsersModuleEdge | null; +} +export type DeleteUsersModulePayloadSelect = { + clientMutationId?: boolean; + usersModule?: { + select: UsersModuleSelect; + }; + usersModuleEdge?: { + select: UsersModuleEdgeSelect; + }; +}; +export interface CreateUuidModulePayload { + clientMutationId?: string | null; + /** The `UuidModule` that was created by this mutation. */ + uuidModule?: UuidModule | null; + uuidModuleEdge?: UuidModuleEdge | null; +} +export type CreateUuidModulePayloadSelect = { + clientMutationId?: boolean; + uuidModule?: { + select: UuidModuleSelect; + }; + uuidModuleEdge?: { + select: UuidModuleEdgeSelect; + }; +}; +export interface UpdateUuidModulePayload { + clientMutationId?: string | null; + /** The `UuidModule` that was updated by this mutation. */ + uuidModule?: UuidModule | null; + uuidModuleEdge?: UuidModuleEdge | null; +} +export type UpdateUuidModulePayloadSelect = { + clientMutationId?: boolean; + uuidModule?: { + select: UuidModuleSelect; + }; + uuidModuleEdge?: { + select: UuidModuleEdgeSelect; + }; +}; +export interface DeleteUuidModulePayload { + clientMutationId?: string | null; + /** The `UuidModule` that was deleted by this mutation. */ + uuidModule?: UuidModule | null; + uuidModuleEdge?: UuidModuleEdge | null; +} +export type DeleteUuidModulePayloadSelect = { + clientMutationId?: boolean; + uuidModule?: { + select: UuidModuleSelect; + }; + uuidModuleEdge?: { + select: UuidModuleEdgeSelect; + }; +}; +export interface CreateDatabaseProvisionModulePayload { + clientMutationId?: string | null; + /** The `DatabaseProvisionModule` that was created by this mutation. */ + databaseProvisionModule?: DatabaseProvisionModule | null; + databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; +} +export type CreateDatabaseProvisionModulePayloadSelect = { + clientMutationId?: boolean; + databaseProvisionModule?: { + select: DatabaseProvisionModuleSelect; + }; + databaseProvisionModuleEdge?: { + select: DatabaseProvisionModuleEdgeSelect; + }; +}; +export interface UpdateDatabaseProvisionModulePayload { + clientMutationId?: string | null; + /** The `DatabaseProvisionModule` that was updated by this mutation. */ + databaseProvisionModule?: DatabaseProvisionModule | null; + databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; +} +export type UpdateDatabaseProvisionModulePayloadSelect = { + clientMutationId?: boolean; + databaseProvisionModule?: { + select: DatabaseProvisionModuleSelect; + }; + databaseProvisionModuleEdge?: { + select: DatabaseProvisionModuleEdgeSelect; + }; +}; +export interface DeleteDatabaseProvisionModulePayload { + clientMutationId?: string | null; + /** The `DatabaseProvisionModule` that was deleted by this mutation. */ + databaseProvisionModule?: DatabaseProvisionModule | null; + databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; +} +export type DeleteDatabaseProvisionModulePayloadSelect = { + clientMutationId?: boolean; + databaseProvisionModule?: { + select: DatabaseProvisionModuleSelect; + }; + databaseProvisionModuleEdge?: { + select: DatabaseProvisionModuleEdgeSelect; + }; +}; +export interface CreateAppAdminGrantPayload { + clientMutationId?: string | null; + /** The `AppAdminGrant` that was created by this mutation. */ + appAdminGrant?: AppAdminGrant | null; + appAdminGrantEdge?: AppAdminGrantEdge | null; +} +export type CreateAppAdminGrantPayloadSelect = { + clientMutationId?: boolean; + appAdminGrant?: { + select: AppAdminGrantSelect; + }; + appAdminGrantEdge?: { + select: AppAdminGrantEdgeSelect; + }; +}; +export interface UpdateAppAdminGrantPayload { + clientMutationId?: string | null; + /** The `AppAdminGrant` that was updated by this mutation. */ + appAdminGrant?: AppAdminGrant | null; + appAdminGrantEdge?: AppAdminGrantEdge | null; +} +export type UpdateAppAdminGrantPayloadSelect = { + clientMutationId?: boolean; + appAdminGrant?: { + select: AppAdminGrantSelect; + }; + appAdminGrantEdge?: { + select: AppAdminGrantEdgeSelect; + }; +}; +export interface DeleteAppAdminGrantPayload { + clientMutationId?: string | null; + /** The `AppAdminGrant` that was deleted by this mutation. */ + appAdminGrant?: AppAdminGrant | null; + appAdminGrantEdge?: AppAdminGrantEdge | null; +} +export type DeleteAppAdminGrantPayloadSelect = { + clientMutationId?: boolean; + appAdminGrant?: { + select: AppAdminGrantSelect; + }; + appAdminGrantEdge?: { + select: AppAdminGrantEdgeSelect; + }; +}; +export interface CreateAppOwnerGrantPayload { + clientMutationId?: string | null; + /** The `AppOwnerGrant` that was created by this mutation. */ + appOwnerGrant?: AppOwnerGrant | null; + appOwnerGrantEdge?: AppOwnerGrantEdge | null; +} +export type CreateAppOwnerGrantPayloadSelect = { + clientMutationId?: boolean; + appOwnerGrant?: { + select: AppOwnerGrantSelect; + }; + appOwnerGrantEdge?: { + select: AppOwnerGrantEdgeSelect; + }; +}; +export interface UpdateAppOwnerGrantPayload { + clientMutationId?: string | null; + /** The `AppOwnerGrant` that was updated by this mutation. */ + appOwnerGrant?: AppOwnerGrant | null; + appOwnerGrantEdge?: AppOwnerGrantEdge | null; +} +export type UpdateAppOwnerGrantPayloadSelect = { + clientMutationId?: boolean; + appOwnerGrant?: { + select: AppOwnerGrantSelect; + }; + appOwnerGrantEdge?: { + select: AppOwnerGrantEdgeSelect; + }; +}; +export interface DeleteAppOwnerGrantPayload { + clientMutationId?: string | null; + /** The `AppOwnerGrant` that was deleted by this mutation. */ + appOwnerGrant?: AppOwnerGrant | null; + appOwnerGrantEdge?: AppOwnerGrantEdge | null; +} +export type DeleteAppOwnerGrantPayloadSelect = { + clientMutationId?: boolean; + appOwnerGrant?: { + select: AppOwnerGrantSelect; + }; + appOwnerGrantEdge?: { + select: AppOwnerGrantEdgeSelect; + }; +}; +export interface CreateAppGrantPayload { + clientMutationId?: string | null; + /** The `AppGrant` that was created by this mutation. */ + appGrant?: AppGrant | null; + appGrantEdge?: AppGrantEdge | null; +} +export type CreateAppGrantPayloadSelect = { + clientMutationId?: boolean; + appGrant?: { + select: AppGrantSelect; + }; + appGrantEdge?: { + select: AppGrantEdgeSelect; + }; +}; +export interface UpdateAppGrantPayload { + clientMutationId?: string | null; + /** The `AppGrant` that was updated by this mutation. */ + appGrant?: AppGrant | null; + appGrantEdge?: AppGrantEdge | null; +} +export type UpdateAppGrantPayloadSelect = { + clientMutationId?: boolean; + appGrant?: { + select: AppGrantSelect; + }; + appGrantEdge?: { + select: AppGrantEdgeSelect; + }; +}; +export interface DeleteAppGrantPayload { + clientMutationId?: string | null; + /** The `AppGrant` that was deleted by this mutation. */ + appGrant?: AppGrant | null; + appGrantEdge?: AppGrantEdge | null; +} +export type DeleteAppGrantPayloadSelect = { + clientMutationId?: boolean; + appGrant?: { + select: AppGrantSelect; + }; + appGrantEdge?: { + select: AppGrantEdgeSelect; + }; +}; +export interface CreateOrgMembershipPayload { + clientMutationId?: string | null; + /** The `OrgMembership` that was created by this mutation. */ + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; +} +export type CreateOrgMembershipPayloadSelect = { + clientMutationId?: boolean; + orgMembership?: { + select: OrgMembershipSelect; + }; + orgMembershipEdge?: { + select: OrgMembershipEdgeSelect; + }; +}; +export interface UpdateOrgMembershipPayload { + clientMutationId?: string | null; + /** The `OrgMembership` that was updated by this mutation. */ + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; +} +export type UpdateOrgMembershipPayloadSelect = { + clientMutationId?: boolean; + orgMembership?: { + select: OrgMembershipSelect; + }; + orgMembershipEdge?: { + select: OrgMembershipEdgeSelect; + }; +}; +export interface DeleteOrgMembershipPayload { + clientMutationId?: string | null; + /** The `OrgMembership` that was deleted by this mutation. */ + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; +} +export type DeleteOrgMembershipPayloadSelect = { + clientMutationId?: boolean; + orgMembership?: { + select: OrgMembershipSelect; + }; + orgMembershipEdge?: { + select: OrgMembershipEdgeSelect; + }; +}; +export interface CreateOrgMemberPayload { + clientMutationId?: string | null; + /** The `OrgMember` that was created by this mutation. */ + orgMember?: OrgMember | null; + orgMemberEdge?: OrgMemberEdge | null; +} +export type CreateOrgMemberPayloadSelect = { + clientMutationId?: boolean; + orgMember?: { + select: OrgMemberSelect; + }; + orgMemberEdge?: { + select: OrgMemberEdgeSelect; + }; +}; +export interface UpdateOrgMemberPayload { + clientMutationId?: string | null; + /** The `OrgMember` that was updated by this mutation. */ + orgMember?: OrgMember | null; + orgMemberEdge?: OrgMemberEdge | null; +} +export type UpdateOrgMemberPayloadSelect = { + clientMutationId?: boolean; + orgMember?: { + select: OrgMemberSelect; + }; + orgMemberEdge?: { + select: OrgMemberEdgeSelect; + }; +}; +export interface DeleteOrgMemberPayload { + clientMutationId?: string | null; + /** The `OrgMember` that was deleted by this mutation. */ + orgMember?: OrgMember | null; + orgMemberEdge?: OrgMemberEdge | null; +} +export type DeleteOrgMemberPayloadSelect = { + clientMutationId?: boolean; + orgMember?: { + select: OrgMemberSelect; + }; + orgMemberEdge?: { + select: OrgMemberEdgeSelect; + }; +}; +export interface CreateOrgAdminGrantPayload { + clientMutationId?: string | null; + /** The `OrgAdminGrant` that was created by this mutation. */ + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; +} +export type CreateOrgAdminGrantPayloadSelect = { + clientMutationId?: boolean; + orgAdminGrant?: { + select: OrgAdminGrantSelect; + }; + orgAdminGrantEdge?: { + select: OrgAdminGrantEdgeSelect; + }; +}; +export interface UpdateOrgAdminGrantPayload { + clientMutationId?: string | null; + /** The `OrgAdminGrant` that was updated by this mutation. */ + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; +} +export type UpdateOrgAdminGrantPayloadSelect = { + clientMutationId?: boolean; + orgAdminGrant?: { + select: OrgAdminGrantSelect; + }; + orgAdminGrantEdge?: { + select: OrgAdminGrantEdgeSelect; + }; +}; +export interface DeleteOrgAdminGrantPayload { + clientMutationId?: string | null; + /** The `OrgAdminGrant` that was deleted by this mutation. */ + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; +} +export type DeleteOrgAdminGrantPayloadSelect = { + clientMutationId?: boolean; + orgAdminGrant?: { + select: OrgAdminGrantSelect; + }; + orgAdminGrantEdge?: { + select: OrgAdminGrantEdgeSelect; + }; +}; +export interface CreateOrgOwnerGrantPayload { + clientMutationId?: string | null; + /** The `OrgOwnerGrant` that was created by this mutation. */ + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; +} +export type CreateOrgOwnerGrantPayloadSelect = { + clientMutationId?: boolean; + orgOwnerGrant?: { + select: OrgOwnerGrantSelect; + }; + orgOwnerGrantEdge?: { + select: OrgOwnerGrantEdgeSelect; + }; +}; +export interface UpdateOrgOwnerGrantPayload { + clientMutationId?: string | null; + /** The `OrgOwnerGrant` that was updated by this mutation. */ + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; +} +export type UpdateOrgOwnerGrantPayloadSelect = { + clientMutationId?: boolean; + orgOwnerGrant?: { + select: OrgOwnerGrantSelect; + }; + orgOwnerGrantEdge?: { + select: OrgOwnerGrantEdgeSelect; + }; +}; +export interface DeleteOrgOwnerGrantPayload { + clientMutationId?: string | null; + /** The `OrgOwnerGrant` that was deleted by this mutation. */ + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; +} +export type DeleteOrgOwnerGrantPayloadSelect = { + clientMutationId?: boolean; + orgOwnerGrant?: { + select: OrgOwnerGrantSelect; + }; + orgOwnerGrantEdge?: { + select: OrgOwnerGrantEdgeSelect; + }; +}; +export interface CreateOrgGrantPayload { + clientMutationId?: string | null; + /** The `OrgGrant` that was created by this mutation. */ + orgGrant?: OrgGrant | null; + orgGrantEdge?: OrgGrantEdge | null; +} +export type CreateOrgGrantPayloadSelect = { + clientMutationId?: boolean; + orgGrant?: { + select: OrgGrantSelect; + }; + orgGrantEdge?: { + select: OrgGrantEdgeSelect; + }; +}; +export interface UpdateOrgGrantPayload { + clientMutationId?: string | null; + /** The `OrgGrant` that was updated by this mutation. */ + orgGrant?: OrgGrant | null; + orgGrantEdge?: OrgGrantEdge | null; +} +export type UpdateOrgGrantPayloadSelect = { + clientMutationId?: boolean; + orgGrant?: { + select: OrgGrantSelect; + }; + orgGrantEdge?: { + select: OrgGrantEdgeSelect; + }; +}; +export interface DeleteOrgGrantPayload { + clientMutationId?: string | null; + /** The `OrgGrant` that was deleted by this mutation. */ + orgGrant?: OrgGrant | null; + orgGrantEdge?: OrgGrantEdge | null; +} +export type DeleteOrgGrantPayloadSelect = { + clientMutationId?: boolean; + orgGrant?: { + select: OrgGrantSelect; + }; + orgGrantEdge?: { + select: OrgGrantEdgeSelect; + }; +}; +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; + }; +}; +export interface UpdateOrgLimitPayload { + clientMutationId?: string | null; + /** The `OrgLimit` that was updated by this mutation. */ + orgLimit?: OrgLimit | null; + orgLimitEdge?: OrgLimitEdge | null; +} +export type UpdateOrgLimitPayloadSelect = { + clientMutationId?: boolean; + orgLimit?: { + select: OrgLimitSelect; + }; + orgLimitEdge?: { + select: OrgLimitEdgeSelect; + }; +}; +export interface DeleteOrgLimitPayload { + clientMutationId?: string | null; + /** The `OrgLimit` that was deleted by this mutation. */ + orgLimit?: OrgLimit | null; + orgLimitEdge?: OrgLimitEdge | null; +} +export type DeleteOrgLimitPayloadSelect = { + clientMutationId?: boolean; + orgLimit?: { + select: OrgLimitSelect; + }; + orgLimitEdge?: { + select: OrgLimitEdgeSelect; + }; +}; +export interface CreateAppStepPayload { + clientMutationId?: string | null; + /** The `AppStep` that was created by this mutation. */ + appStep?: AppStep | null; + appStepEdge?: AppStepEdge | null; +} +export type CreateAppStepPayloadSelect = { + clientMutationId?: boolean; + appStep?: { + select: AppStepSelect; + }; + appStepEdge?: { + select: AppStepEdgeSelect; + }; +}; +export interface UpdateAppStepPayload { + clientMutationId?: string | null; + /** The `AppStep` that was updated by this mutation. */ + appStep?: AppStep | null; + appStepEdge?: AppStepEdge | null; +} +export type UpdateAppStepPayloadSelect = { + clientMutationId?: boolean; + appStep?: { + select: AppStepSelect; + }; + appStepEdge?: { + select: AppStepEdgeSelect; + }; +}; +export interface DeleteAppStepPayload { + clientMutationId?: string | null; + /** The `AppStep` that was deleted by this mutation. */ + appStep?: AppStep | null; + appStepEdge?: AppStepEdge | null; +} +export type DeleteAppStepPayloadSelect = { + clientMutationId?: boolean; + appStep?: { + select: AppStepSelect; + }; + appStepEdge?: { + select: AppStepEdgeSelect; + }; +}; +export interface CreateAppAchievementPayload { + clientMutationId?: string | null; + /** The `AppAchievement` that was created by this mutation. */ + appAchievement?: AppAchievement | null; + appAchievementEdge?: AppAchievementEdge | null; +} +export type CreateAppAchievementPayloadSelect = { + clientMutationId?: boolean; + appAchievement?: { + select: AppAchievementSelect; + }; + appAchievementEdge?: { + select: AppAchievementEdgeSelect; + }; +}; +export interface UpdateAppAchievementPayload { + clientMutationId?: string | null; + /** The `AppAchievement` that was updated by this mutation. */ + appAchievement?: AppAchievement | null; + appAchievementEdge?: AppAchievementEdge | null; +} +export type UpdateAppAchievementPayloadSelect = { + clientMutationId?: boolean; + appAchievement?: { + select: AppAchievementSelect; + }; + appAchievementEdge?: { + select: AppAchievementEdgeSelect; + }; +}; +export interface DeleteAppAchievementPayload { + clientMutationId?: string | null; + /** The `AppAchievement` that was deleted by this mutation. */ + appAchievement?: AppAchievement | null; + appAchievementEdge?: AppAchievementEdge | null; +} +export type DeleteAppAchievementPayloadSelect = { + clientMutationId?: boolean; + appAchievement?: { + select: AppAchievementSelect; + }; + appAchievementEdge?: { + select: AppAchievementEdgeSelect; + }; +}; +export interface CreateInvitePayload { + clientMutationId?: string | null; + /** The `Invite` that was created by this mutation. */ + invite?: Invite | null; + inviteEdge?: InviteEdge | null; +} +export type CreateInvitePayloadSelect = { + clientMutationId?: boolean; + invite?: { + select: InviteSelect; + }; + inviteEdge?: { + select: InviteEdgeSelect; + }; +}; +export interface UpdateInvitePayload { + clientMutationId?: string | null; + /** The `Invite` that was updated by this mutation. */ + invite?: Invite | null; + inviteEdge?: InviteEdge | null; +} +export type UpdateInvitePayloadSelect = { + clientMutationId?: boolean; + invite?: { + select: InviteSelect; + }; + inviteEdge?: { + select: InviteEdgeSelect; + }; +}; +export interface DeleteInvitePayload { + clientMutationId?: string | null; + /** The `Invite` that was deleted by this mutation. */ + invite?: Invite | null; + inviteEdge?: InviteEdge | null; +} +export type DeleteInvitePayloadSelect = { + clientMutationId?: boolean; + invite?: { + select: InviteSelect; + }; + inviteEdge?: { + select: InviteEdgeSelect; + }; +}; +export interface CreateClaimedInvitePayload { + clientMutationId?: string | null; + /** The `ClaimedInvite` that was created by this mutation. */ + claimedInvite?: ClaimedInvite | null; + claimedInviteEdge?: ClaimedInviteEdge | null; +} +export type CreateClaimedInvitePayloadSelect = { + clientMutationId?: boolean; + claimedInvite?: { + select: ClaimedInviteSelect; + }; + claimedInviteEdge?: { + select: ClaimedInviteEdgeSelect; + }; +}; +export interface UpdateClaimedInvitePayload { + clientMutationId?: string | null; + /** The `ClaimedInvite` that was updated by this mutation. */ + claimedInvite?: ClaimedInvite | null; + claimedInviteEdge?: ClaimedInviteEdge | null; +} +export type UpdateClaimedInvitePayloadSelect = { + clientMutationId?: boolean; + claimedInvite?: { + select: ClaimedInviteSelect; + }; + claimedInviteEdge?: { + select: ClaimedInviteEdgeSelect; + }; +}; +export interface DeleteClaimedInvitePayload { + clientMutationId?: string | null; + /** The `ClaimedInvite` that was deleted by this mutation. */ + claimedInvite?: ClaimedInvite | null; + claimedInviteEdge?: ClaimedInviteEdge | null; +} +export type DeleteClaimedInvitePayloadSelect = { + clientMutationId?: boolean; + claimedInvite?: { + select: ClaimedInviteSelect; + }; + claimedInviteEdge?: { + select: ClaimedInviteEdgeSelect; + }; +}; +export interface CreateOrgInvitePayload { + clientMutationId?: string | null; + /** The `OrgInvite` that was created by this mutation. */ + orgInvite?: OrgInvite | null; + orgInviteEdge?: OrgInviteEdge | null; +} +export type CreateOrgInvitePayloadSelect = { + clientMutationId?: boolean; + orgInvite?: { + select: OrgInviteSelect; + }; + orgInviteEdge?: { + select: OrgInviteEdgeSelect; + }; +}; +export interface UpdateOrgInvitePayload { + clientMutationId?: string | null; + /** The `OrgInvite` that was updated by this mutation. */ + orgInvite?: OrgInvite | null; + orgInviteEdge?: OrgInviteEdge | null; +} +export type UpdateOrgInvitePayloadSelect = { + clientMutationId?: boolean; + orgInvite?: { + select: OrgInviteSelect; + }; + orgInviteEdge?: { + select: OrgInviteEdgeSelect; + }; +}; +export interface DeleteOrgInvitePayload { + clientMutationId?: string | null; + /** The `OrgInvite` that was deleted by this mutation. */ + orgInvite?: OrgInvite | null; + orgInviteEdge?: OrgInviteEdge | null; +} +export type DeleteOrgInvitePayloadSelect = { + clientMutationId?: boolean; + orgInvite?: { + select: OrgInviteSelect; + }; + orgInviteEdge?: { + select: OrgInviteEdgeSelect; + }; +}; +export interface CreateOrgClaimedInvitePayload { + clientMutationId?: string | null; + /** The `OrgClaimedInvite` that was created by this mutation. */ + orgClaimedInvite?: OrgClaimedInvite | null; + orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; +} +export type CreateOrgClaimedInvitePayloadSelect = { + clientMutationId?: boolean; + orgClaimedInvite?: { + select: OrgClaimedInviteSelect; + }; + orgClaimedInviteEdge?: { + select: OrgClaimedInviteEdgeSelect; + }; +}; +export interface UpdateOrgClaimedInvitePayload { + clientMutationId?: string | null; + /** The `OrgClaimedInvite` that was updated by this mutation. */ + orgClaimedInvite?: OrgClaimedInvite | null; + orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; +} +export type UpdateOrgClaimedInvitePayloadSelect = { + clientMutationId?: boolean; + orgClaimedInvite?: { + select: OrgClaimedInviteSelect; + }; + orgClaimedInviteEdge?: { + select: OrgClaimedInviteEdgeSelect; + }; +}; +export interface DeleteOrgClaimedInvitePayload { + clientMutationId?: string | null; + /** The `OrgClaimedInvite` that was deleted by this mutation. */ + orgClaimedInvite?: OrgClaimedInvite | null; + orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; +} +export type DeleteOrgClaimedInvitePayloadSelect = { + clientMutationId?: boolean; + orgClaimedInvite?: { + select: OrgClaimedInviteSelect; + }; + orgClaimedInviteEdge?: { + 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. */ + ref?: Ref | null; + refEdge?: RefEdge | null; +} +export type CreateRefPayloadSelect = { + clientMutationId?: boolean; + ref?: { + select: RefSelect; + }; + refEdge?: { + select: RefEdgeSelect; + }; +}; +export interface UpdateRefPayload { + clientMutationId?: string | null; + /** The `Ref` that was updated by this mutation. */ + ref?: Ref | null; + refEdge?: RefEdge | null; +} +export type UpdateRefPayloadSelect = { + clientMutationId?: boolean; + ref?: { + select: RefSelect; + }; + refEdge?: { + select: RefEdgeSelect; + }; +}; +export interface DeleteRefPayload { + clientMutationId?: string | null; + /** The `Ref` that was deleted by this mutation. */ + ref?: Ref | null; + refEdge?: RefEdge | null; +} +export type DeleteRefPayloadSelect = { + clientMutationId?: boolean; + ref?: { + select: RefSelect; + }; + refEdge?: { + select: RefEdgeSelect; + }; +}; +export interface CreateStorePayload { + clientMutationId?: string | null; + /** The `Store` that was created by this mutation. */ + store?: Store | null; + storeEdge?: StoreEdge | null; +} +export type CreateStorePayloadSelect = { + clientMutationId?: boolean; + store?: { + select: StoreSelect; + }; + storeEdge?: { + select: StoreEdgeSelect; + }; +}; +export interface UpdateStorePayload { + clientMutationId?: string | null; + /** The `Store` that was updated by this mutation. */ + store?: Store | null; + storeEdge?: StoreEdge | null; +} +export type UpdateStorePayloadSelect = { + clientMutationId?: boolean; + store?: { + select: StoreSelect; + }; + storeEdge?: { + select: StoreEdgeSelect; + }; +}; +export interface DeleteStorePayload { + clientMutationId?: string | null; + /** The `Store` that was deleted by this mutation. */ + store?: Store | null; + storeEdge?: StoreEdge | null; +} +export type DeleteStorePayloadSelect = { + clientMutationId?: boolean; + store?: { + select: StoreSelect; + }; + storeEdge?: { + select: StoreEdgeSelect; + }; +}; +export interface CreateRoleTypePayload { + clientMutationId?: string | null; + /** The `RoleType` that was created by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; +} +export type CreateRoleTypePayloadSelect = { + clientMutationId?: boolean; + roleType?: { + select: RoleTypeSelect; + }; + roleTypeEdge?: { + select: RoleTypeEdgeSelect; + }; +}; +export interface UpdateRoleTypePayload { + clientMutationId?: string | null; + /** The `RoleType` that was updated by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; +} +export type UpdateRoleTypePayloadSelect = { + clientMutationId?: boolean; + roleType?: { + select: RoleTypeSelect; + }; + roleTypeEdge?: { + select: RoleTypeEdgeSelect; + }; +}; +export interface DeleteRoleTypePayload { + clientMutationId?: string | null; + /** The `RoleType` that was deleted by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; +} +export type DeleteRoleTypePayloadSelect = { + clientMutationId?: boolean; + roleType?: { + select: RoleTypeSelect; + }; + roleTypeEdge?: { + select: RoleTypeEdgeSelect; + }; +}; +export interface CreateOrgPermissionDefaultPayload { + clientMutationId?: string | null; + /** The `OrgPermissionDefault` that was created by this mutation. */ + orgPermissionDefault?: OrgPermissionDefault | null; + orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; +} +export type CreateOrgPermissionDefaultPayloadSelect = { + clientMutationId?: boolean; + orgPermissionDefault?: { + select: OrgPermissionDefaultSelect; + }; + orgPermissionDefaultEdge?: { + select: OrgPermissionDefaultEdgeSelect; + }; +}; +export interface UpdateOrgPermissionDefaultPayload { + clientMutationId?: string | null; + /** The `OrgPermissionDefault` that was updated by this mutation. */ + orgPermissionDefault?: OrgPermissionDefault | null; + orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; +} +export type UpdateOrgPermissionDefaultPayloadSelect = { + clientMutationId?: boolean; + orgPermissionDefault?: { + select: OrgPermissionDefaultSelect; + }; + orgPermissionDefaultEdge?: { + select: OrgPermissionDefaultEdgeSelect; + }; +}; +export interface DeleteOrgPermissionDefaultPayload { + clientMutationId?: string | null; + /** The `OrgPermissionDefault` that was deleted by this mutation. */ + orgPermissionDefault?: OrgPermissionDefault | null; + orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; +} +export type DeleteOrgPermissionDefaultPayloadSelect = { + clientMutationId?: boolean; + orgPermissionDefault?: { + select: OrgPermissionDefaultSelect; + }; + orgPermissionDefaultEdge?: { + select: OrgPermissionDefaultEdgeSelect; + }; +}; +export interface CreateAppLimitDefaultPayload { + clientMutationId?: string | null; + /** The `AppLimitDefault` that was created by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; +} +export type CreateAppLimitDefaultPayloadSelect = { + clientMutationId?: boolean; + appLimitDefault?: { + select: AppLimitDefaultSelect; + }; + appLimitDefaultEdge?: { + select: AppLimitDefaultEdgeSelect; + }; +}; +export interface UpdateAppLimitDefaultPayload { + clientMutationId?: string | null; + /** The `AppLimitDefault` that was updated by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; +} +export type UpdateAppLimitDefaultPayloadSelect = { + clientMutationId?: boolean; + appLimitDefault?: { + select: AppLimitDefaultSelect; + }; + appLimitDefaultEdge?: { + select: AppLimitDefaultEdgeSelect; + }; +}; +export interface DeleteAppLimitDefaultPayload { + clientMutationId?: string | null; + /** The `AppLimitDefault` that was deleted by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; +} +export type DeleteAppLimitDefaultPayloadSelect = { + clientMutationId?: boolean; + appLimitDefault?: { + select: AppLimitDefaultSelect; + }; + appLimitDefaultEdge?: { + select: AppLimitDefaultEdgeSelect; + }; +}; +export interface CreateOrgLimitDefaultPayload { + clientMutationId?: string | null; + /** The `OrgLimitDefault` that was created by this mutation. */ + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; +} +export type CreateOrgLimitDefaultPayloadSelect = { + clientMutationId?: boolean; + orgLimitDefault?: { + select: OrgLimitDefaultSelect; + }; + orgLimitDefaultEdge?: { + select: OrgLimitDefaultEdgeSelect; + }; +}; +export interface UpdateOrgLimitDefaultPayload { + clientMutationId?: string | null; + /** The `OrgLimitDefault` that was updated by this mutation. */ + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; +} +export type UpdateOrgLimitDefaultPayloadSelect = { + clientMutationId?: boolean; + orgLimitDefault?: { + select: OrgLimitDefaultSelect; + }; + orgLimitDefaultEdge?: { + select: OrgLimitDefaultEdgeSelect; + }; +}; +export interface DeleteOrgLimitDefaultPayload { + clientMutationId?: string | null; + /** The `OrgLimitDefault` that was deleted by this mutation. */ + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; +} +export type DeleteOrgLimitDefaultPayloadSelect = { + clientMutationId?: boolean; + orgLimitDefault?: { + select: OrgLimitDefaultSelect; + }; + orgLimitDefaultEdge?: { + 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. */ + connectedAccount?: ConnectedAccount | null; + connectedAccountEdge?: ConnectedAccountEdge | null; +} +export type CreateConnectedAccountPayloadSelect = { + clientMutationId?: boolean; + connectedAccount?: { + select: ConnectedAccountSelect; + }; + connectedAccountEdge?: { + select: ConnectedAccountEdgeSelect; + }; +}; +export interface UpdateConnectedAccountPayload { + clientMutationId?: string | null; + /** The `ConnectedAccount` that was updated by this mutation. */ + connectedAccount?: ConnectedAccount | null; + connectedAccountEdge?: ConnectedAccountEdge | null; +} +export type UpdateConnectedAccountPayloadSelect = { + clientMutationId?: boolean; + connectedAccount?: { + select: ConnectedAccountSelect; + }; + connectedAccountEdge?: { + select: ConnectedAccountEdgeSelect; + }; +}; +export interface DeleteConnectedAccountPayload { + clientMutationId?: string | null; + /** The `ConnectedAccount` that was deleted by this mutation. */ + connectedAccount?: ConnectedAccount | null; + connectedAccountEdge?: ConnectedAccountEdge | null; +} +export type DeleteConnectedAccountPayloadSelect = { + clientMutationId?: boolean; + connectedAccount?: { + select: ConnectedAccountSelect; + }; + connectedAccountEdge?: { + select: ConnectedAccountEdgeSelect; + }; +}; +export interface CreatePhoneNumberPayload { + clientMutationId?: string | null; + /** The `PhoneNumber` that was created by this mutation. */ + phoneNumber?: PhoneNumber | null; + phoneNumberEdge?: PhoneNumberEdge | null; +} +export type CreatePhoneNumberPayloadSelect = { + clientMutationId?: boolean; + phoneNumber?: { + select: PhoneNumberSelect; + }; + phoneNumberEdge?: { + select: PhoneNumberEdgeSelect; + }; +}; +export interface UpdatePhoneNumberPayload { + clientMutationId?: string | null; + /** The `PhoneNumber` that was updated by this mutation. */ + phoneNumber?: PhoneNumber | null; + phoneNumberEdge?: PhoneNumberEdge | null; +} +export type UpdatePhoneNumberPayloadSelect = { + clientMutationId?: boolean; + phoneNumber?: { + select: PhoneNumberSelect; + }; + phoneNumberEdge?: { + select: PhoneNumberEdgeSelect; + }; +}; +export interface DeletePhoneNumberPayload { + clientMutationId?: string | null; + /** The `PhoneNumber` that was deleted by this mutation. */ + phoneNumber?: PhoneNumber | null; + phoneNumberEdge?: PhoneNumberEdge | null; +} +export type DeletePhoneNumberPayloadSelect = { + clientMutationId?: boolean; + phoneNumber?: { + select: PhoneNumberSelect; + }; + phoneNumberEdge?: { + select: PhoneNumberEdgeSelect; + }; +}; +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 CreateNodeTypeRegistryPayload { + clientMutationId?: string | null; + /** The `NodeTypeRegistry` that was created by this mutation. */ + nodeTypeRegistry?: NodeTypeRegistry | null; + nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; +} +export type CreateNodeTypeRegistryPayloadSelect = { + clientMutationId?: boolean; + nodeTypeRegistry?: { + select: NodeTypeRegistrySelect; + }; + nodeTypeRegistryEdge?: { + select: NodeTypeRegistryEdgeSelect; + }; +}; +export interface UpdateNodeTypeRegistryPayload { + clientMutationId?: string | null; + /** The `NodeTypeRegistry` that was updated by this mutation. */ + nodeTypeRegistry?: NodeTypeRegistry | null; + nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; +} +export type UpdateNodeTypeRegistryPayloadSelect = { + clientMutationId?: boolean; + nodeTypeRegistry?: { + select: NodeTypeRegistrySelect; + }; + nodeTypeRegistryEdge?: { + select: NodeTypeRegistryEdgeSelect; + }; +}; +export interface DeleteNodeTypeRegistryPayload { + clientMutationId?: string | null; + /** The `NodeTypeRegistry` that was deleted by this mutation. */ + nodeTypeRegistry?: NodeTypeRegistry | null; + nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; +} +export type DeleteNodeTypeRegistryPayloadSelect = { + clientMutationId?: boolean; + nodeTypeRegistry?: { + select: NodeTypeRegistrySelect; + }; + nodeTypeRegistryEdge?: { + select: NodeTypeRegistryEdgeSelect; + }; +}; +export interface CreateCommitPayload { + clientMutationId?: string | null; + /** The `Commit` that was created by this mutation. */ + commit?: Commit | null; + commitEdge?: CommitEdge | null; +} +export type CreateCommitPayloadSelect = { + clientMutationId?: boolean; + commit?: { + select: CommitSelect; + }; + commitEdge?: { + select: CommitEdgeSelect; + }; +}; +export interface UpdateCommitPayload { + clientMutationId?: string | null; + /** The `Commit` that was updated by this mutation. */ + commit?: Commit | null; + commitEdge?: CommitEdge | null; +} +export type UpdateCommitPayloadSelect = { + clientMutationId?: boolean; + commit?: { + select: CommitSelect; + }; + commitEdge?: { + select: CommitEdgeSelect; + }; +}; +export interface DeleteCommitPayload { + clientMutationId?: string | null; + /** The `Commit` that was deleted by this mutation. */ + commit?: Commit | null; + commitEdge?: CommitEdge | null; +} +export type DeleteCommitPayloadSelect = { + clientMutationId?: boolean; + commit?: { + select: CommitSelect; + }; + commitEdge?: { + select: CommitEdgeSelect; + }; +}; +export interface CreateOrgMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `OrgMembershipDefault` that was created by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; +} +export type CreateOrgMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + orgMembershipDefault?: { + select: OrgMembershipDefaultSelect; + }; + orgMembershipDefaultEdge?: { + select: OrgMembershipDefaultEdgeSelect; + }; +}; +export interface UpdateOrgMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `OrgMembershipDefault` that was updated by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; +} +export type UpdateOrgMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + orgMembershipDefault?: { + select: OrgMembershipDefaultSelect; + }; + orgMembershipDefaultEdge?: { + select: OrgMembershipDefaultEdgeSelect; + }; +}; +export interface DeleteOrgMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `OrgMembershipDefault` that was deleted by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; +} +export type DeleteOrgMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + orgMembershipDefault?: { + select: OrgMembershipDefaultSelect; + }; + orgMembershipDefaultEdge?: { + 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. */ + auditLog?: AuditLog | null; + auditLogEdge?: AuditLogEdge | null; +} +export type CreateAuditLogPayloadSelect = { + clientMutationId?: boolean; + auditLog?: { + select: AuditLogSelect; + }; + auditLogEdge?: { + select: AuditLogEdgeSelect; + }; +}; +export interface UpdateAuditLogPayload { + clientMutationId?: string | null; + /** The `AuditLog` that was updated by this mutation. */ + auditLog?: AuditLog | null; + auditLogEdge?: AuditLogEdge | null; +} +export type UpdateAuditLogPayloadSelect = { + clientMutationId?: boolean; + auditLog?: { + select: AuditLogSelect; + }; + auditLogEdge?: { + select: AuditLogEdgeSelect; + }; +}; +export interface DeleteAuditLogPayload { + clientMutationId?: string | null; + /** The `AuditLog` that was deleted by this mutation. */ + auditLog?: AuditLog | null; + auditLogEdge?: AuditLogEdge | null; +} +export type DeleteAuditLogPayloadSelect = { + clientMutationId?: boolean; + auditLog?: { + select: AuditLogSelect; + }; + auditLogEdge?: { + select: AuditLogEdgeSelect; + }; +}; +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 CreateSqlMigrationPayload { + clientMutationId?: string | null; + /** The `SqlMigration` that was created by this mutation. */ + sqlMigration?: SqlMigration | null; +} +export type CreateSqlMigrationPayloadSelect = { + clientMutationId?: boolean; + sqlMigration?: { + select: SqlMigrationSelect; + }; +}; +export interface CreateAstMigrationPayload { + clientMutationId?: string | null; + /** The `AstMigration` that was created by this mutation. */ + astMigration?: AstMigration | null; +} +export type CreateAstMigrationPayloadSelect = { + clientMutationId?: boolean; + astMigration?: { + 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. */ + user?: User | null; + userEdge?: UserEdge | null; +} +export type CreateUserPayloadSelect = { + clientMutationId?: boolean; + user?: { + select: UserSelect; + }; + userEdge?: { + select: UserEdgeSelect; + }; +}; +export interface UpdateUserPayload { + clientMutationId?: string | null; + /** The `User` that was updated by this mutation. */ + user?: User | null; + userEdge?: UserEdge | null; +} +export type UpdateUserPayloadSelect = { + clientMutationId?: boolean; + user?: { + select: UserSelect; + }; + userEdge?: { + select: UserEdgeSelect; + }; +}; +export interface DeleteUserPayload { + clientMutationId?: string | null; + /** The `User` that was deleted by this mutation. */ + user?: User | null; + userEdge?: UserEdge | null; +} +export type DeleteUserPayloadSelect = { + clientMutationId?: boolean; + user?: { + select: UserSelect; + }; + userEdge?: { + select: UserEdgeSelect; + }; +}; +export interface CreateHierarchyModulePayload { + clientMutationId?: string | null; + /** The `HierarchyModule` that was created by this mutation. */ + hierarchyModule?: HierarchyModule | null; + hierarchyModuleEdge?: HierarchyModuleEdge | null; +} +export type CreateHierarchyModulePayloadSelect = { + clientMutationId?: boolean; + hierarchyModule?: { + select: HierarchyModuleSelect; + }; + hierarchyModuleEdge?: { + select: HierarchyModuleEdgeSelect; + }; +}; +export interface UpdateHierarchyModulePayload { + clientMutationId?: string | null; + /** The `HierarchyModule` that was updated by this mutation. */ + hierarchyModule?: HierarchyModule | null; + hierarchyModuleEdge?: HierarchyModuleEdge | null; +} +export type UpdateHierarchyModulePayloadSelect = { + clientMutationId?: boolean; + hierarchyModule?: { + select: HierarchyModuleSelect; + }; + hierarchyModuleEdge?: { + select: HierarchyModuleEdgeSelect; + }; +}; +export interface DeleteHierarchyModulePayload { + clientMutationId?: string | null; + /** The `HierarchyModule` that was deleted by this mutation. */ + hierarchyModule?: HierarchyModule | null; + hierarchyModuleEdge?: HierarchyModuleEdge | null; +} +export type DeleteHierarchyModulePayloadSelect = { + clientMutationId?: boolean; + hierarchyModule?: { + select: HierarchyModuleSelect; + }; + hierarchyModuleEdge?: { + select: HierarchyModuleEdgeSelect; + }; +}; +/** A `AppPermission` edge in the connection. */ +export interface AppPermissionEdge { + cursor?: string | null; + /** The `AppPermission` at the end of the edge. */ + node?: AppPermission | null; +} +export type AppPermissionEdgeSelect = { + cursor?: boolean; + node?: { + select: AppPermissionSelect; + }; +}; +/** Information about pagination in a connection. */ +export interface PageInfo { + /** When paginating forwards, are there more items? */ + hasNextPage: boolean; + /** When paginating backwards, are there more items? */ + hasPreviousPage: boolean; + /** When paginating backwards, the cursor to continue. */ + startCursor?: string | null; + /** When paginating forwards, the cursor to continue. */ + endCursor?: string | null; +} +export type PageInfoSelect = { + hasNextPage?: boolean; + hasPreviousPage?: boolean; + startCursor?: boolean; + endCursor?: boolean; +}; +/** A `OrgPermission` edge in the connection. */ +export interface OrgPermissionEdge { + cursor?: string | null; + /** The `OrgPermission` at the end of the edge. */ + node?: OrgPermission | null; +} +export type OrgPermissionEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgPermissionSelect; + }; +}; +/** A `Object` edge in the connection. */ +export interface ObjectEdge { + cursor?: string | null; + /** The `Object` at the end of the edge. */ + node?: Object | null; +} +export type ObjectEdgeSelect = { + cursor?: boolean; + node?: { + select: ObjectSelect; + }; +}; +/** A `AppLevelRequirement` edge in the connection. */ +export interface AppLevelRequirementEdge { + cursor?: string | null; + /** The `AppLevelRequirement` at the end of the edge. */ + node?: AppLevelRequirement | null; +} +export type AppLevelRequirementEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLevelRequirementSelect; + }; +}; +export interface BootstrapUserRecord { + outUserId?: string | null; + outEmail?: string | null; + outUsername?: string | null; + outDisplayName?: string | null; + outIsAdmin?: boolean | null; + outIsOwner?: boolean | null; + outIsSudo?: boolean | null; + outApiKey?: string | null; +} +export type BootstrapUserRecordSelect = { + outUserId?: boolean; + outEmail?: boolean; + outUsername?: boolean; + outDisplayName?: boolean; + outIsAdmin?: boolean; + outIsOwner?: boolean; + outIsSudo?: boolean; + outApiKey?: boolean; +}; +export interface ProvisionDatabaseWithUserRecord { + outDatabaseId?: string | null; + outApiKey?: string | null; +} +export type ProvisionDatabaseWithUserRecordSelect = { + outDatabaseId?: boolean; + outApiKey?: boolean; +}; +export interface SignInOneTimeTokenRecord { + id?: string | null; + userId?: string | null; + accessToken?: string | null; + accessTokenExpiresAt?: string | null; + isVerified?: boolean | null; + totpEnabled?: boolean | null; +} +export type SignInOneTimeTokenRecordSelect = { + id?: boolean; + userId?: boolean; + accessToken?: boolean; + accessTokenExpiresAt?: boolean; + isVerified?: boolean; + totpEnabled?: boolean; +}; +export interface ExtendTokenExpiresRecord { + id?: string | null; + sessionId?: string | null; + expiresAt?: string | null; +} +export type ExtendTokenExpiresRecordSelect = { + id?: boolean; + sessionId?: boolean; + expiresAt?: boolean; +}; +export interface SignInRecord { + id?: string | null; + userId?: string | null; + accessToken?: string | null; + accessTokenExpiresAt?: string | null; + isVerified?: boolean | null; + totpEnabled?: boolean | null; +} +export type SignInRecordSelect = { + id?: boolean; + userId?: boolean; + accessToken?: boolean; + accessTokenExpiresAt?: boolean; + isVerified?: boolean; + totpEnabled?: boolean; +}; +export interface SignUpRecord { + id?: string | null; + userId?: string | null; + accessToken?: string | null; + accessTokenExpiresAt?: string | null; + isVerified?: boolean | null; + totpEnabled?: boolean | null; +} +export type SignUpRecordSelect = { + id?: boolean; + userId?: boolean; + accessToken?: boolean; + accessTokenExpiresAt?: boolean; + isVerified?: boolean; + totpEnabled?: boolean; +}; +export interface Session { + id: string; + userId?: string | null; + isAnonymous: boolean; + expiresAt: string; + revokedAt?: string | null; + origin?: ConstructiveInternalTypeOrigin | null; + ip?: string | null; + uagent?: string | null; + fingerprintMode: string; + lastPasswordVerified?: string | null; + lastMfaVerified?: string | null; + csrfSecret?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export type SessionSelect = { + id?: boolean; + userId?: boolean; + isAnonymous?: boolean; + expiresAt?: boolean; + revokedAt?: boolean; + origin?: boolean; + ip?: boolean; + uagent?: boolean; + fingerprintMode?: boolean; + lastPasswordVerified?: boolean; + lastMfaVerified?: boolean; + csrfSecret?: boolean; + createdAt?: boolean; + updatedAt?: boolean; +}; +/** A `Database` edge in the connection. */ +export interface DatabaseEdge { + cursor?: string | null; + /** The `Database` at the end of the edge. */ + node?: Database | null; +} +export type DatabaseEdgeSelect = { + cursor?: boolean; + node?: { + select: DatabaseSelect; + }; +}; +/** A `Schema` edge in the connection. */ +export interface SchemaEdge { + cursor?: string | null; + /** The `Schema` at the end of the edge. */ + node?: Schema | null; +} +export type SchemaEdgeSelect = { + cursor?: boolean; + node?: { + select: SchemaSelect; + }; +}; +/** A `Table` edge in the connection. */ +export interface TableEdge { + cursor?: string | null; + /** The `Table` at the end of the edge. */ + node?: Table | null; +} +export type TableEdgeSelect = { + cursor?: boolean; + node?: { + select: TableSelect; + }; +}; +/** A `CheckConstraint` edge in the connection. */ +export interface CheckConstraintEdge { + cursor?: string | null; + /** The `CheckConstraint` at the end of the edge. */ + node?: CheckConstraint | null; +} +export type CheckConstraintEdgeSelect = { + cursor?: boolean; + node?: { + select: CheckConstraintSelect; + }; +}; +/** A `Field` edge in the connection. */ +export interface FieldEdge { + cursor?: string | null; + /** The `Field` at the end of the edge. */ + node?: Field | null; +} +export type FieldEdgeSelect = { + cursor?: boolean; + node?: { + select: FieldSelect; + }; +}; +/** A `ForeignKeyConstraint` edge in the connection. */ +export interface ForeignKeyConstraintEdge { + cursor?: string | null; + /** The `ForeignKeyConstraint` at the end of the edge. */ + node?: ForeignKeyConstraint | null; +} +export type ForeignKeyConstraintEdgeSelect = { + cursor?: boolean; + node?: { + select: ForeignKeyConstraintSelect; + }; +}; +/** A `FullTextSearch` edge in the connection. */ +export interface FullTextSearchEdge { + cursor?: string | null; + /** The `FullTextSearch` at the end of the edge. */ + node?: FullTextSearch | null; +} +export type FullTextSearchEdgeSelect = { + cursor?: boolean; + node?: { + select: FullTextSearchSelect; + }; +}; +/** A `Index` edge in the connection. */ +export interface IndexEdge { + cursor?: string | null; + /** The `Index` at the end of the edge. */ + node?: Index | null; +} +export type IndexEdgeSelect = { + cursor?: boolean; + node?: { + 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; + /** The `Policy` at the end of the edge. */ + node?: Policy | null; +} +export type PolicyEdgeSelect = { + cursor?: boolean; + node?: { + select: PolicySelect; + }; +}; +/** A `PrimaryKeyConstraint` edge in the connection. */ +export interface PrimaryKeyConstraintEdge { + cursor?: string | null; + /** The `PrimaryKeyConstraint` at the end of the edge. */ + node?: PrimaryKeyConstraint | null; +} +export type PrimaryKeyConstraintEdgeSelect = { + cursor?: boolean; + node?: { + select: PrimaryKeyConstraintSelect; + }; +}; +/** A `TableGrant` edge in the connection. */ +export interface TableGrantEdge { + cursor?: string | null; + /** The `TableGrant` at the end of the edge. */ + node?: TableGrant | null; +} +export type TableGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: TableGrantSelect; + }; +}; +/** A `Trigger` edge in the connection. */ +export interface TriggerEdge { + cursor?: string | null; + /** The `Trigger` at the end of the edge. */ + node?: Trigger | null; +} +export type TriggerEdgeSelect = { + cursor?: boolean; + node?: { + select: TriggerSelect; + }; +}; +/** A `UniqueConstraint` edge in the connection. */ +export interface UniqueConstraintEdge { + cursor?: string | null; + /** The `UniqueConstraint` at the end of the edge. */ + node?: UniqueConstraint | null; +} +export type UniqueConstraintEdgeSelect = { + cursor?: boolean; + node?: { + select: UniqueConstraintSelect; + }; +}; +/** A `View` edge in the connection. */ +export interface ViewEdge { + cursor?: string | null; + /** The `View` at the end of the edge. */ + node?: View | null; +} +export type ViewEdgeSelect = { + cursor?: boolean; + node?: { + select: ViewSelect; + }; +}; +/** A `ViewTable` edge in the connection. */ +export interface ViewTableEdge { + cursor?: string | null; + /** The `ViewTable` at the end of the edge. */ + node?: ViewTable | null; +} +export type ViewTableEdgeSelect = { + cursor?: boolean; + node?: { + select: ViewTableSelect; + }; +}; +/** A `ViewGrant` edge in the connection. */ +export interface ViewGrantEdge { + cursor?: string | null; + /** The `ViewGrant` at the end of the edge. */ + node?: ViewGrant | null; +} +export type ViewGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: ViewGrantSelect; + }; +}; +/** A `ViewRule` edge in the connection. */ +export interface ViewRuleEdge { + cursor?: string | null; + /** The `ViewRule` at the end of the edge. */ + node?: ViewRule | null; +} +export type ViewRuleEdgeSelect = { + cursor?: boolean; + node?: { + select: ViewRuleSelect; + }; +}; +/** A `TableModule` edge in the connection. */ +export interface TableModuleEdge { + cursor?: string | null; + /** The `TableModule` at the end of the edge. */ + node?: TableModule | null; +} +export type TableModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: TableModuleSelect; + }; +}; +/** A `TableTemplateModule` edge in the connection. */ +export interface TableTemplateModuleEdge { + cursor?: string | null; + /** The `TableTemplateModule` at the end of the edge. */ + node?: TableTemplateModule | null; +} +export type TableTemplateModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: TableTemplateModuleSelect; + }; +}; +/** A `SchemaGrant` edge in the connection. */ +export interface SchemaGrantEdge { + cursor?: string | null; + /** The `SchemaGrant` at the end of the edge. */ + node?: SchemaGrant | null; +} +export type SchemaGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: SchemaGrantSelect; + }; +}; +/** A `ApiSchema` edge in the connection. */ +export interface ApiSchemaEdge { + cursor?: string | null; + /** The `ApiSchema` at the end of the edge. */ + node?: ApiSchema | null; +} +export type ApiSchemaEdgeSelect = { + cursor?: boolean; + node?: { + select: ApiSchemaSelect; + }; +}; +/** A `ApiModule` edge in the connection. */ +export interface ApiModuleEdge { + cursor?: string | null; + /** The `ApiModule` at the end of the edge. */ + node?: ApiModule | null; +} +export type ApiModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: ApiModuleSelect; + }; +}; +/** A `Domain` edge in the connection. */ +export interface DomainEdge { + cursor?: string | null; + /** The `Domain` at the end of the edge. */ + node?: Domain | null; +} +export type DomainEdgeSelect = { + cursor?: boolean; + node?: { + select: DomainSelect; + }; +}; +/** A `SiteMetadatum` edge in the connection. */ +export interface SiteMetadatumEdge { + cursor?: string | null; + /** The `SiteMetadatum` at the end of the edge. */ + node?: SiteMetadatum | null; +} +export type SiteMetadatumEdgeSelect = { + cursor?: boolean; + node?: { + select: SiteMetadatumSelect; + }; +}; +/** A `SiteModule` edge in the connection. */ +export interface SiteModuleEdge { + cursor?: string | null; + /** The `SiteModule` at the end of the edge. */ + node?: SiteModule | null; +} +export type SiteModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: SiteModuleSelect; + }; +}; +/** A `SiteTheme` edge in the connection. */ +export interface SiteThemeEdge { + cursor?: string | null; + /** The `SiteTheme` at the end of the edge. */ + node?: SiteTheme | null; +} +export type SiteThemeEdgeSelect = { + cursor?: boolean; + node?: { + 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; + /** The `TriggerFunction` at the end of the edge. */ + node?: TriggerFunction | null; +} +export type TriggerFunctionEdgeSelect = { + cursor?: boolean; + node?: { + select: TriggerFunctionSelect; + }; +}; +/** A `Api` edge in the connection. */ +export interface ApiEdge { + cursor?: string | null; + /** The `Api` at the end of the edge. */ + node?: Api | null; +} +export type ApiEdgeSelect = { + cursor?: boolean; + node?: { + select: ApiSelect; + }; +}; +/** A `Site` edge in the connection. */ +export interface SiteEdge { + cursor?: string | null; + /** The `Site` at the end of the edge. */ + node?: Site | null; +} +export type SiteEdgeSelect = { + cursor?: boolean; + node?: { + select: SiteSelect; + }; +}; +/** A `App` edge in the connection. */ +export interface AppEdge { + cursor?: string | null; + /** The `App` at the end of the edge. */ + node?: App | null; +} +export type AppEdgeSelect = { + cursor?: boolean; + node?: { + select: AppSelect; + }; +}; +/** A `ConnectedAccountsModule` edge in the connection. */ +export interface ConnectedAccountsModuleEdge { + cursor?: string | null; + /** The `ConnectedAccountsModule` at the end of the edge. */ + node?: ConnectedAccountsModule | null; +} +export type ConnectedAccountsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: ConnectedAccountsModuleSelect; + }; +}; +/** A `CryptoAddressesModule` edge in the connection. */ +export interface CryptoAddressesModuleEdge { + cursor?: string | null; + /** The `CryptoAddressesModule` at the end of the edge. */ + node?: CryptoAddressesModule | null; +} +export type CryptoAddressesModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: CryptoAddressesModuleSelect; + }; +}; +/** A `CryptoAuthModule` edge in the connection. */ +export interface CryptoAuthModuleEdge { + cursor?: string | null; + /** The `CryptoAuthModule` at the end of the edge. */ + node?: CryptoAuthModule | null; +} +export type CryptoAuthModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: CryptoAuthModuleSelect; + }; +}; +/** A `DefaultIdsModule` edge in the connection. */ +export interface DefaultIdsModuleEdge { + cursor?: string | null; + /** The `DefaultIdsModule` at the end of the edge. */ + node?: DefaultIdsModule | null; +} +export type DefaultIdsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: DefaultIdsModuleSelect; + }; +}; +/** A `DenormalizedTableField` edge in the connection. */ +export interface DenormalizedTableFieldEdge { + cursor?: string | null; + /** The `DenormalizedTableField` at the end of the edge. */ + node?: DenormalizedTableField | null; +} +export type DenormalizedTableFieldEdgeSelect = { + cursor?: boolean; + node?: { + select: DenormalizedTableFieldSelect; + }; +}; +/** A `EmailsModule` edge in the connection. */ +export interface EmailsModuleEdge { + cursor?: string | null; + /** The `EmailsModule` at the end of the edge. */ + node?: EmailsModule | null; +} +export type EmailsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: EmailsModuleSelect; + }; +}; +/** A `EncryptedSecretsModule` edge in the connection. */ +export interface EncryptedSecretsModuleEdge { + cursor?: string | null; + /** The `EncryptedSecretsModule` at the end of the edge. */ + node?: EncryptedSecretsModule | null; +} +export type EncryptedSecretsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: EncryptedSecretsModuleSelect; + }; +}; +/** A `FieldModule` edge in the connection. */ +export interface FieldModuleEdge { + cursor?: string | null; + /** The `FieldModule` at the end of the edge. */ + node?: FieldModule | null; +} +export type FieldModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: FieldModuleSelect; + }; +}; +/** A `InvitesModule` edge in the connection. */ +export interface InvitesModuleEdge { + cursor?: string | null; + /** The `InvitesModule` at the end of the edge. */ + node?: InvitesModule | null; +} +export type InvitesModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: InvitesModuleSelect; + }; +}; +/** A `LevelsModule` edge in the connection. */ +export interface LevelsModuleEdge { + cursor?: string | null; + /** The `LevelsModule` at the end of the edge. */ + node?: LevelsModule | null; +} +export type LevelsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: LevelsModuleSelect; + }; +}; +/** A `LimitsModule` edge in the connection. */ +export interface LimitsModuleEdge { + cursor?: string | null; + /** The `LimitsModule` at the end of the edge. */ + node?: LimitsModule | null; +} +export type LimitsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: LimitsModuleSelect; + }; +}; +/** A `MembershipTypesModule` edge in the connection. */ +export interface MembershipTypesModuleEdge { + cursor?: string | null; + /** The `MembershipTypesModule` at the end of the edge. */ + node?: MembershipTypesModule | null; +} +export type MembershipTypesModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: MembershipTypesModuleSelect; + }; +}; +/** A `MembershipsModule` edge in the connection. */ +export interface MembershipsModuleEdge { + cursor?: string | null; + /** The `MembershipsModule` at the end of the edge. */ + node?: MembershipsModule | null; +} +export type MembershipsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: MembershipsModuleSelect; + }; +}; +/** A `PermissionsModule` edge in the connection. */ +export interface PermissionsModuleEdge { + cursor?: string | null; + /** The `PermissionsModule` at the end of the edge. */ + node?: PermissionsModule | null; +} +export type PermissionsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: PermissionsModuleSelect; + }; +}; +/** A `PhoneNumbersModule` edge in the connection. */ +export interface PhoneNumbersModuleEdge { + cursor?: string | null; + /** The `PhoneNumbersModule` at the end of the edge. */ + node?: PhoneNumbersModule | null; +} +export type PhoneNumbersModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: PhoneNumbersModuleSelect; + }; +}; +/** A `ProfilesModule` edge in the connection. */ +export interface ProfilesModuleEdge { + cursor?: string | null; + /** The `ProfilesModule` at the end of the edge. */ + node?: ProfilesModule | null; +} +export type ProfilesModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: ProfilesModuleSelect; + }; +}; +/** A `RlsModule` edge in the connection. */ +export interface RlsModuleEdge { + cursor?: string | null; + /** The `RlsModule` at the end of the edge. */ + node?: RlsModule | null; +} +export type RlsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: RlsModuleSelect; + }; +}; +/** A `SecretsModule` edge in the connection. */ +export interface SecretsModuleEdge { + cursor?: string | null; + /** The `SecretsModule` at the end of the edge. */ + node?: SecretsModule | null; +} +export type SecretsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: SecretsModuleSelect; + }; +}; +/** A `SessionsModule` edge in the connection. */ +export interface SessionsModuleEdge { + cursor?: string | null; + /** The `SessionsModule` at the end of the edge. */ + node?: SessionsModule | null; +} +export type SessionsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: SessionsModuleSelect; + }; +}; +/** A `UserAuthModule` edge in the connection. */ +export interface UserAuthModuleEdge { + cursor?: string | null; + /** The `UserAuthModule` at the end of the edge. */ + node?: UserAuthModule | null; +} +export type UserAuthModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: UserAuthModuleSelect; + }; +}; +/** A `UsersModule` edge in the connection. */ +export interface UsersModuleEdge { + cursor?: string | null; + /** The `UsersModule` at the end of the edge. */ + node?: UsersModule | null; +} +export type UsersModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: UsersModuleSelect; + }; +}; +/** A `UuidModule` edge in the connection. */ +export interface UuidModuleEdge { + cursor?: string | null; + /** The `UuidModule` at the end of the edge. */ + node?: UuidModule | null; +} +export type UuidModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: UuidModuleSelect; + }; +}; +/** A `DatabaseProvisionModule` edge in the connection. */ +export interface DatabaseProvisionModuleEdge { + cursor?: string | null; + /** The `DatabaseProvisionModule` at the end of the edge. */ + node?: DatabaseProvisionModule | null; +} +export type DatabaseProvisionModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: DatabaseProvisionModuleSelect; + }; +}; +/** A `AppAdminGrant` edge in the connection. */ +export interface AppAdminGrantEdge { + cursor?: string | null; + /** The `AppAdminGrant` at the end of the edge. */ + node?: AppAdminGrant | null; +} +export type AppAdminGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: AppAdminGrantSelect; + }; +}; +/** A `AppOwnerGrant` edge in the connection. */ +export interface AppOwnerGrantEdge { + cursor?: string | null; + /** The `AppOwnerGrant` at the end of the edge. */ + node?: AppOwnerGrant | null; +} +export type AppOwnerGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: AppOwnerGrantSelect; + }; +}; +/** A `AppGrant` edge in the connection. */ +export interface AppGrantEdge { + cursor?: string | null; + /** The `AppGrant` at the end of the edge. */ + node?: AppGrant | null; +} +export type AppGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: AppGrantSelect; + }; +}; +/** A `OrgMembership` edge in the connection. */ +export interface OrgMembershipEdge { + cursor?: string | null; + /** The `OrgMembership` at the end of the edge. */ + node?: OrgMembership | null; +} +export type OrgMembershipEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgMembershipSelect; + }; +}; +/** A `OrgMember` edge in the connection. */ +export interface OrgMemberEdge { + cursor?: string | null; + /** The `OrgMember` at the end of the edge. */ + node?: OrgMember | null; +} +export type OrgMemberEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgMemberSelect; + }; +}; +/** A `OrgAdminGrant` edge in the connection. */ +export interface OrgAdminGrantEdge { + cursor?: string | null; + /** The `OrgAdminGrant` at the end of the edge. */ + node?: OrgAdminGrant | null; +} +export type OrgAdminGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgAdminGrantSelect; + }; +}; +/** A `OrgOwnerGrant` edge in the connection. */ +export interface OrgOwnerGrantEdge { + cursor?: string | null; + /** The `OrgOwnerGrant` at the end of the edge. */ + node?: OrgOwnerGrant | null; +} +export type OrgOwnerGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgOwnerGrantSelect; + }; +}; +/** A `OrgGrant` edge in the connection. */ +export interface OrgGrantEdge { + cursor?: string | null; + /** The `OrgGrant` at the end of the edge. */ + node?: OrgGrant | null; +} +export type OrgGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgGrantSelect; + }; +}; +/** A `AppLimit` edge in the connection. */ +export interface AppLimitEdge { + cursor?: string | null; + /** The `AppLimit` at the end of the edge. */ + node?: AppLimit | null; +} +export type AppLimitEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLimitSelect; + }; +}; +/** A `OrgLimit` edge in the connection. */ +export interface OrgLimitEdge { + cursor?: string | null; + /** The `OrgLimit` at the end of the edge. */ + node?: OrgLimit | null; +} +export type OrgLimitEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgLimitSelect; + }; +}; +/** A `AppStep` edge in the connection. */ +export interface AppStepEdge { + cursor?: string | null; + /** The `AppStep` at the end of the edge. */ + node?: AppStep | null; +} +export type AppStepEdgeSelect = { + cursor?: boolean; + node?: { + select: AppStepSelect; + }; +}; +/** A `AppAchievement` edge in the connection. */ +export interface AppAchievementEdge { + cursor?: string | null; + /** The `AppAchievement` at the end of the edge. */ + node?: AppAchievement | null; +} +export type AppAchievementEdgeSelect = { + cursor?: boolean; + node?: { + select: AppAchievementSelect; + }; +}; +/** A `Invite` edge in the connection. */ +export interface InviteEdge { + cursor?: string | null; + /** The `Invite` at the end of the edge. */ + node?: Invite | null; +} +export type InviteEdgeSelect = { + cursor?: boolean; + node?: { + select: InviteSelect; + }; +}; +/** A `ClaimedInvite` edge in the connection. */ +export interface ClaimedInviteEdge { + cursor?: string | null; + /** The `ClaimedInvite` at the end of the edge. */ + node?: ClaimedInvite | null; +} +export type ClaimedInviteEdgeSelect = { + cursor?: boolean; + node?: { + select: ClaimedInviteSelect; + }; +}; +/** A `OrgInvite` edge in the connection. */ +export interface OrgInviteEdge { + cursor?: string | null; + /** The `OrgInvite` at the end of the edge. */ + node?: OrgInvite | null; +} +export type OrgInviteEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgInviteSelect; + }; +}; +/** A `OrgClaimedInvite` edge in the connection. */ +export interface OrgClaimedInviteEdge { + cursor?: string | null; + /** The `OrgClaimedInvite` at the end of the edge. */ + node?: OrgClaimedInvite | null; +} +export type OrgClaimedInviteEdgeSelect = { + cursor?: boolean; + node?: { + 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; + /** The `Ref` at the end of the edge. */ + node?: Ref | null; +} +export type RefEdgeSelect = { + cursor?: boolean; + node?: { + select: RefSelect; + }; +}; +/** A `Store` edge in the connection. */ +export interface StoreEdge { + cursor?: string | null; + /** The `Store` at the end of the edge. */ + node?: Store | null; +} +export type StoreEdgeSelect = { + cursor?: boolean; + node?: { + select: StoreSelect; + }; +}; +/** A `RoleType` edge in the connection. */ +export interface RoleTypeEdge { + cursor?: string | null; + /** The `RoleType` at the end of the edge. */ + node?: RoleType | null; +} +export type RoleTypeEdgeSelect = { + cursor?: boolean; + node?: { + select: RoleTypeSelect; + }; +}; +/** A `OrgPermissionDefault` edge in the connection. */ +export interface OrgPermissionDefaultEdge { + cursor?: string | null; + /** The `OrgPermissionDefault` at the end of the edge. */ + node?: OrgPermissionDefault | null; +} +export type OrgPermissionDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgPermissionDefaultSelect; + }; +}; +/** 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 `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; + /** The `ConnectedAccount` at the end of the edge. */ + node?: ConnectedAccount | null; +} +export type ConnectedAccountEdgeSelect = { + cursor?: boolean; + node?: { + select: ConnectedAccountSelect; + }; +}; +/** A `PhoneNumber` edge in the connection. */ +export interface PhoneNumberEdge { + cursor?: string | null; + /** The `PhoneNumber` at the end of the edge. */ + node?: PhoneNumber | null; +} +export type PhoneNumberEdgeSelect = { + cursor?: boolean; + node?: { + select: PhoneNumberSelect; + }; +}; +/** 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 `NodeTypeRegistry` edge in the connection. */ +export interface NodeTypeRegistryEdge { + cursor?: string | null; + /** The `NodeTypeRegistry` at the end of the edge. */ + node?: NodeTypeRegistry | null; +} +export type NodeTypeRegistryEdgeSelect = { + cursor?: boolean; + node?: { + select: NodeTypeRegistrySelect; + }; +}; +/** A `Commit` edge in the connection. */ +export interface CommitEdge { + cursor?: string | null; + /** The `Commit` at the end of the edge. */ + node?: Commit | null; +} +export type CommitEdgeSelect = { + cursor?: boolean; + node?: { + select: CommitSelect; + }; +}; +/** A `OrgMembershipDefault` edge in the connection. */ +export interface OrgMembershipDefaultEdge { + cursor?: string | null; + /** The `OrgMembershipDefault` at the end of the edge. */ + node?: OrgMembershipDefault | null; +} +export type OrgMembershipDefaultEdgeSelect = { + cursor?: boolean; + node?: { + 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; + /** The `AuditLog` at the end of the edge. */ + node?: AuditLog | null; +} +export type AuditLogEdgeSelect = { + cursor?: boolean; + node?: { + select: AuditLogSelect; + }; +}; +/** 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; + /** The `AppMembership` at the end of the edge. */ + node?: AppMembership | null; +} +export type AppMembershipEdgeSelect = { + cursor?: boolean; + node?: { + select: AppMembershipSelect; + }; +}; +/** A `User` edge in the connection. */ +export interface UserEdge { + cursor?: string | null; + /** The `User` at the end of the edge. */ + node?: User | null; +} +export type UserEdgeSelect = { + cursor?: boolean; + node?: { + select: UserSelect; + }; +}; +/** A `HierarchyModule` edge in the connection. */ +export interface HierarchyModuleEdge { + cursor?: string | null; + /** The `HierarchyModule` at the end of the edge. */ + node?: HierarchyModule | null; +} +export type HierarchyModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: HierarchyModuleSelect; + }; +}; diff --git a/sdk/constructive-react/src/public/orm/models/api.ts b/sdk/constructive-react/src/public/orm/models/api.ts new file mode 100644 index 000000000..2995bb318 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/api.ts @@ -0,0 +1,236 @@ +/** + * Api 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 { + Api, + ApiWithRelations, + ApiSelect, + ApiFilter, + ApiOrderBy, + CreateApiInput, + UpdateApiInput, + ApiPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ApiModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + apis: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Api', + 'apis', + 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, + }, + 'ApiFilter', + 'ApiOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Api', + fieldName: 'apis', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + apis: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'Api', + 'apis', + args.select, + { + where: args?.where, + }, + 'ApiFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Api', + fieldName: 'apis', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + api: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'Api', + 'apis', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ApiFilter', + 'ApiOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Api', + fieldName: 'api', + document, + variables, + transform: (data: { + apis?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + api: data.apis?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createApi: { + api: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Api', + 'createApi', + 'api', + args.select, + args.data, + 'CreateApiInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Api', + fieldName: 'createApi', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ApiPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateApi: { + api: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'Api', + 'updateApi', + 'api', + args.select, + args.where.id, + args.data, + 'UpdateApiInput', + 'id', + 'apiPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Api', + fieldName: 'updateApi', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteApi: { + api: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'Api', + 'deleteApi', + 'api', + args.where.id, + 'DeleteApiInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Api', + fieldName: 'deleteApi', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/apiModule.ts b/sdk/constructive-react/src/public/orm/models/apiModule.ts new file mode 100644 index 000000000..47b2be5f6 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/apiModule.ts @@ -0,0 +1,236 @@ +/** + * ApiModule 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 { + ApiModule, + ApiModuleWithRelations, + ApiModuleSelect, + ApiModuleFilter, + ApiModuleOrderBy, + CreateApiModuleInput, + UpdateApiModuleInput, + ApiModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ApiModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + apiModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'ApiModule', + 'apiModules', + 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, + }, + 'ApiModuleFilter', + 'ApiModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ApiModule', + fieldName: 'apiModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + apiModules: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'ApiModule', + 'apiModules', + args.select, + { + where: args?.where, + }, + 'ApiModuleFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ApiModule', + fieldName: 'apiModules', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + apiModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ApiModule', + 'apiModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ApiModuleFilter', + 'ApiModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ApiModule', + fieldName: 'apiModule', + document, + variables, + transform: (data: { + apiModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + apiModule: data.apiModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createApiModule: { + apiModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ApiModule', + 'createApiModule', + 'apiModule', + args.select, + args.data, + 'CreateApiModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ApiModule', + fieldName: 'createApiModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ApiModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateApiModule: { + apiModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ApiModule', + 'updateApiModule', + 'apiModule', + args.select, + args.where.id, + args.data, + 'UpdateApiModuleInput', + 'id', + 'apiModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ApiModule', + fieldName: 'updateApiModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteApiModule: { + apiModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ApiModule', + 'deleteApiModule', + 'apiModule', + args.where.id, + 'DeleteApiModuleInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ApiModule', + fieldName: 'deleteApiModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/apiSchema.ts b/sdk/constructive-react/src/public/orm/models/apiSchema.ts new file mode 100644 index 000000000..4e6664741 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/apiSchema.ts @@ -0,0 +1,236 @@ +/** + * ApiSchema 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 { + ApiSchema, + ApiSchemaWithRelations, + ApiSchemaSelect, + ApiSchemaFilter, + ApiSchemaOrderBy, + CreateApiSchemaInput, + UpdateApiSchemaInput, + ApiSchemaPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ApiSchemaModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + apiSchemas: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'ApiSchema', + 'apiSchemas', + 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, + }, + 'ApiSchemaFilter', + 'ApiSchemaOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ApiSchema', + fieldName: 'apiSchemas', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + apiSchemas: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'ApiSchema', + 'apiSchemas', + args.select, + { + where: args?.where, + }, + 'ApiSchemaFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ApiSchema', + fieldName: 'apiSchemas', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + apiSchema: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ApiSchema', + 'apiSchemas', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ApiSchemaFilter', + 'ApiSchemaOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ApiSchema', + fieldName: 'apiSchema', + document, + variables, + transform: (data: { + apiSchemas?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + apiSchema: data.apiSchemas?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createApiSchema: { + apiSchema: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ApiSchema', + 'createApiSchema', + 'apiSchema', + args.select, + args.data, + 'CreateApiSchemaInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ApiSchema', + fieldName: 'createApiSchema', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ApiSchemaPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateApiSchema: { + apiSchema: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ApiSchema', + 'updateApiSchema', + 'apiSchema', + args.select, + args.where.id, + args.data, + 'UpdateApiSchemaInput', + 'id', + 'apiSchemaPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ApiSchema', + fieldName: 'updateApiSchema', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteApiSchema: { + apiSchema: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ApiSchema', + 'deleteApiSchema', + 'apiSchema', + args.where.id, + 'DeleteApiSchemaInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ApiSchema', + fieldName: 'deleteApiSchema', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/app.ts b/sdk/constructive-react/src/public/orm/models/app.ts new file mode 100644 index 000000000..a851a9774 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/app.ts @@ -0,0 +1,236 @@ +/** + * App 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 { + App, + AppWithRelations, + AppSelect, + AppFilter, + AppOrderBy, + CreateAppInput, + UpdateAppInput, + AppPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AppModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + apps: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'App', + 'apps', + 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, + }, + 'AppFilter', + 'AppOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'App', + fieldName: 'apps', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + apps: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'App', + 'apps', + args.select, + { + where: args?.where, + }, + 'AppFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'App', + fieldName: 'apps', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + app: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'App', + 'apps', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AppFilter', + 'AppOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'App', + fieldName: 'app', + document, + variables, + transform: (data: { + apps?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + app: data.apps?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createApp: { + app: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'App', + 'createApp', + 'app', + args.select, + args.data, + 'CreateAppInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'App', + fieldName: 'createApp', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AppPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateApp: { + app: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'App', + 'updateApp', + 'app', + args.select, + args.where.id, + args.data, + 'UpdateAppInput', + 'id', + 'appPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'App', + fieldName: 'updateApp', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteApp: { + app: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'App', + 'deleteApp', + 'app', + args.where.id, + 'DeleteAppInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'App', + fieldName: 'deleteApp', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/appAchievement.ts b/sdk/constructive-react/src/public/orm/models/appAchievement.ts new file mode 100644 index 000000000..c26bd04df --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/appAchievement.ts @@ -0,0 +1,236 @@ +/** + * AppAchievement 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 { + AppAchievement, + AppAchievementWithRelations, + AppAchievementSelect, + AppAchievementFilter, + AppAchievementOrderBy, + CreateAppAchievementInput, + UpdateAppAchievementInput, + AppAchievementPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AppAchievementModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appAchievements: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AppAchievement', + 'appAchievements', + 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, + }, + 'AppAchievementFilter', + 'AppAchievementOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppAchievement', + fieldName: 'appAchievements', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appAchievements: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'AppAchievement', + 'appAchievements', + args.select, + { + where: args?.where, + }, + 'AppAchievementFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppAchievement', + fieldName: 'appAchievements', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + appAchievement: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AppAchievement', + 'appAchievements', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AppAchievementFilter', + 'AppAchievementOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppAchievement', + fieldName: 'appAchievement', + document, + variables, + transform: (data: { + appAchievements?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appAchievement: data.appAchievements?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAppAchievement: { + appAchievement: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AppAchievement', + 'createAppAchievement', + 'appAchievement', + args.select, + args.data, + 'CreateAppAchievementInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppAchievement', + fieldName: 'createAppAchievement', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AppAchievementPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAppAchievement: { + appAchievement: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AppAchievement', + 'updateAppAchievement', + 'appAchievement', + args.select, + args.where.id, + args.data, + 'UpdateAppAchievementInput', + 'id', + 'appAchievementPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppAchievement', + fieldName: 'updateAppAchievement', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAppAchievement: { + appAchievement: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AppAchievement', + 'deleteAppAchievement', + 'appAchievement', + args.where.id, + 'DeleteAppAchievementInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppAchievement', + fieldName: 'deleteAppAchievement', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/appAdminGrant.ts b/sdk/constructive-react/src/public/orm/models/appAdminGrant.ts new file mode 100644 index 000000000..994dcd67d --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/appAdminGrant.ts @@ -0,0 +1,236 @@ +/** + * AppAdminGrant 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 { + AppAdminGrant, + AppAdminGrantWithRelations, + AppAdminGrantSelect, + AppAdminGrantFilter, + AppAdminGrantOrderBy, + CreateAppAdminGrantInput, + UpdateAppAdminGrantInput, + AppAdminGrantPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AppAdminGrantModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appAdminGrants: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AppAdminGrant', + 'appAdminGrants', + 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, + }, + 'AppAdminGrantFilter', + 'AppAdminGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppAdminGrant', + fieldName: 'appAdminGrants', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appAdminGrants: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'AppAdminGrant', + 'appAdminGrants', + args.select, + { + where: args?.where, + }, + 'AppAdminGrantFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppAdminGrant', + fieldName: 'appAdminGrants', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + appAdminGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AppAdminGrant', + 'appAdminGrants', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AppAdminGrantFilter', + 'AppAdminGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppAdminGrant', + fieldName: 'appAdminGrant', + document, + variables, + transform: (data: { + appAdminGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appAdminGrant: data.appAdminGrants?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAppAdminGrant: { + appAdminGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AppAdminGrant', + 'createAppAdminGrant', + 'appAdminGrant', + args.select, + args.data, + 'CreateAppAdminGrantInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppAdminGrant', + fieldName: 'createAppAdminGrant', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AppAdminGrantPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAppAdminGrant: { + appAdminGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AppAdminGrant', + 'updateAppAdminGrant', + 'appAdminGrant', + args.select, + args.where.id, + args.data, + 'UpdateAppAdminGrantInput', + 'id', + 'appAdminGrantPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppAdminGrant', + fieldName: 'updateAppAdminGrant', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAppAdminGrant: { + appAdminGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AppAdminGrant', + 'deleteAppAdminGrant', + 'appAdminGrant', + args.where.id, + 'DeleteAppAdminGrantInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppAdminGrant', + fieldName: 'deleteAppAdminGrant', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/appGrant.ts b/sdk/constructive-react/src/public/orm/models/appGrant.ts new file mode 100644 index 000000000..df4f3ac72 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/appGrant.ts @@ -0,0 +1,236 @@ +/** + * AppGrant 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 { + AppGrant, + AppGrantWithRelations, + AppGrantSelect, + AppGrantFilter, + AppGrantOrderBy, + CreateAppGrantInput, + UpdateAppGrantInput, + AppGrantPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AppGrantModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appGrants: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AppGrant', + 'appGrants', + 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, + }, + 'AppGrantFilter', + 'AppGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppGrant', + fieldName: 'appGrants', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appGrants: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'AppGrant', + 'appGrants', + args.select, + { + where: args?.where, + }, + 'AppGrantFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppGrant', + fieldName: 'appGrants', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + appGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AppGrant', + 'appGrants', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AppGrantFilter', + 'AppGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppGrant', + fieldName: 'appGrant', + document, + variables, + transform: (data: { + appGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appGrant: data.appGrants?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAppGrant: { + appGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AppGrant', + 'createAppGrant', + 'appGrant', + args.select, + args.data, + 'CreateAppGrantInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppGrant', + fieldName: 'createAppGrant', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AppGrantPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAppGrant: { + appGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AppGrant', + 'updateAppGrant', + 'appGrant', + args.select, + args.where.id, + args.data, + 'UpdateAppGrantInput', + 'id', + 'appGrantPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppGrant', + fieldName: 'updateAppGrant', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAppGrant: { + appGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AppGrant', + 'deleteAppGrant', + 'appGrant', + args.where.id, + 'DeleteAppGrantInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppGrant', + fieldName: 'deleteAppGrant', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/appLevel.ts b/sdk/constructive-react/src/public/orm/models/appLevel.ts new file mode 100644 index 000000000..16a46df57 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/appLevel.ts @@ -0,0 +1,236 @@ +/** + * AppLevel 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 { + AppLevel, + AppLevelWithRelations, + AppLevelSelect, + AppLevelFilter, + AppLevelOrderBy, + CreateAppLevelInput, + UpdateAppLevelInput, + AppLevelPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AppLevelModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appLevels: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AppLevel', + 'appLevels', + 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, + }, + 'AppLevelFilter', + 'AppLevelOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppLevel', + fieldName: 'appLevels', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appLevels: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'AppLevel', + 'appLevels', + args.select, + { + where: args?.where, + }, + 'AppLevelFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppLevel', + fieldName: 'appLevels', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + appLevel: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AppLevel', + 'appLevels', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AppLevelFilter', + 'AppLevelOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppLevel', + fieldName: 'appLevel', + document, + variables, + transform: (data: { + appLevels?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appLevel: data.appLevels?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAppLevel: { + appLevel: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AppLevel', + 'createAppLevel', + 'appLevel', + args.select, + args.data, + 'CreateAppLevelInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppLevel', + fieldName: 'createAppLevel', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AppLevelPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAppLevel: { + appLevel: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AppLevel', + 'updateAppLevel', + 'appLevel', + args.select, + args.where.id, + args.data, + 'UpdateAppLevelInput', + 'id', + 'appLevelPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppLevel', + fieldName: 'updateAppLevel', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAppLevel: { + appLevel: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AppLevel', + 'deleteAppLevel', + 'appLevel', + args.where.id, + 'DeleteAppLevelInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppLevel', + fieldName: 'deleteAppLevel', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/appLevelRequirement.ts b/sdk/constructive-react/src/public/orm/models/appLevelRequirement.ts new file mode 100644 index 000000000..a67824ec2 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/appLevelRequirement.ts @@ -0,0 +1,236 @@ +/** + * AppLevelRequirement 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 { + AppLevelRequirement, + AppLevelRequirementWithRelations, + AppLevelRequirementSelect, + AppLevelRequirementFilter, + AppLevelRequirementOrderBy, + CreateAppLevelRequirementInput, + UpdateAppLevelRequirementInput, + AppLevelRequirementPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AppLevelRequirementModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appLevelRequirements: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AppLevelRequirement', + 'appLevelRequirements', + 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, + }, + 'AppLevelRequirementFilter', + 'AppLevelRequirementOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppLevelRequirement', + fieldName: 'appLevelRequirements', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appLevelRequirements: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'AppLevelRequirement', + 'appLevelRequirements', + args.select, + { + where: args?.where, + }, + 'AppLevelRequirementFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppLevelRequirement', + fieldName: 'appLevelRequirements', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + appLevelRequirement: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AppLevelRequirement', + 'appLevelRequirements', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AppLevelRequirementFilter', + 'AppLevelRequirementOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppLevelRequirement', + fieldName: 'appLevelRequirement', + document, + variables, + transform: (data: { + appLevelRequirements?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appLevelRequirement: data.appLevelRequirements?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAppLevelRequirement: { + appLevelRequirement: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AppLevelRequirement', + 'createAppLevelRequirement', + 'appLevelRequirement', + args.select, + args.data, + 'CreateAppLevelRequirementInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppLevelRequirement', + fieldName: 'createAppLevelRequirement', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AppLevelRequirementPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAppLevelRequirement: { + appLevelRequirement: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AppLevelRequirement', + 'updateAppLevelRequirement', + 'appLevelRequirement', + args.select, + args.where.id, + args.data, + 'UpdateAppLevelRequirementInput', + 'id', + 'appLevelRequirementPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppLevelRequirement', + fieldName: 'updateAppLevelRequirement', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAppLevelRequirement: { + appLevelRequirement: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AppLevelRequirement', + 'deleteAppLevelRequirement', + 'appLevelRequirement', + args.where.id, + 'DeleteAppLevelRequirementInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppLevelRequirement', + fieldName: 'deleteAppLevelRequirement', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/appLimit.ts b/sdk/constructive-react/src/public/orm/models/appLimit.ts new file mode 100644 index 000000000..6671f9d37 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/appLimit.ts @@ -0,0 +1,236 @@ +/** + * AppLimit 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 { + AppLimit, + AppLimitWithRelations, + AppLimitSelect, + AppLimitFilter, + AppLimitOrderBy, + CreateAppLimitInput, + UpdateAppLimitInput, + AppLimitPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AppLimitModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appLimits: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AppLimit', + 'appLimits', + 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, + }, + 'AppLimitFilter', + 'AppLimitOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppLimit', + fieldName: 'appLimits', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appLimits: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'AppLimit', + 'appLimits', + args.select, + { + where: args?.where, + }, + 'AppLimitFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppLimit', + fieldName: 'appLimits', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + appLimit: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AppLimit', + 'appLimits', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AppLimitFilter', + 'AppLimitOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppLimit', + fieldName: 'appLimit', + document, + variables, + transform: (data: { + appLimits?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appLimit: data.appLimits?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAppLimit: { + appLimit: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AppLimit', + 'createAppLimit', + 'appLimit', + args.select, + args.data, + 'CreateAppLimitInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppLimit', + fieldName: 'createAppLimit', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AppLimitPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAppLimit: { + appLimit: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AppLimit', + 'updateAppLimit', + 'appLimit', + args.select, + args.where.id, + args.data, + 'UpdateAppLimitInput', + 'id', + 'appLimitPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppLimit', + fieldName: 'updateAppLimit', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAppLimit: { + appLimit: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AppLimit', + 'deleteAppLimit', + 'appLimit', + args.where.id, + 'DeleteAppLimitInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppLimit', + fieldName: 'deleteAppLimit', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/appLimitDefault.ts b/sdk/constructive-react/src/public/orm/models/appLimitDefault.ts new file mode 100644 index 000000000..8d926da0a --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/appLimitDefault.ts @@ -0,0 +1,236 @@ +/** + * AppLimitDefault 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 { + AppLimitDefault, + AppLimitDefaultWithRelations, + AppLimitDefaultSelect, + AppLimitDefaultFilter, + AppLimitDefaultOrderBy, + CreateAppLimitDefaultInput, + UpdateAppLimitDefaultInput, + AppLimitDefaultPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AppLimitDefaultModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appLimitDefaults: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AppLimitDefault', + 'appLimitDefaults', + 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, + }, + 'AppLimitDefaultFilter', + 'AppLimitDefaultOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppLimitDefault', + fieldName: 'appLimitDefaults', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appLimitDefaults: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'AppLimitDefault', + 'appLimitDefaults', + args.select, + { + where: args?.where, + }, + 'AppLimitDefaultFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppLimitDefault', + fieldName: 'appLimitDefaults', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + appLimitDefault: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AppLimitDefault', + 'appLimitDefaults', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AppLimitDefaultFilter', + 'AppLimitDefaultOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppLimitDefault', + fieldName: 'appLimitDefault', + document, + variables, + transform: (data: { + appLimitDefaults?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appLimitDefault: data.appLimitDefaults?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAppLimitDefault: { + appLimitDefault: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AppLimitDefault', + 'createAppLimitDefault', + 'appLimitDefault', + args.select, + args.data, + 'CreateAppLimitDefaultInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppLimitDefault', + fieldName: 'createAppLimitDefault', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AppLimitDefaultPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAppLimitDefault: { + appLimitDefault: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AppLimitDefault', + 'updateAppLimitDefault', + 'appLimitDefault', + args.select, + args.where.id, + args.data, + 'UpdateAppLimitDefaultInput', + 'id', + 'appLimitDefaultPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppLimitDefault', + fieldName: 'updateAppLimitDefault', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAppLimitDefault: { + appLimitDefault: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AppLimitDefault', + 'deleteAppLimitDefault', + 'appLimitDefault', + args.where.id, + 'DeleteAppLimitDefaultInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppLimitDefault', + fieldName: 'deleteAppLimitDefault', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/appMembership.ts b/sdk/constructive-react/src/public/orm/models/appMembership.ts new file mode 100644 index 000000000..2631ec415 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/appMembership.ts @@ -0,0 +1,236 @@ +/** + * AppMembership 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 { + AppMembership, + AppMembershipWithRelations, + AppMembershipSelect, + AppMembershipFilter, + AppMembershipOrderBy, + CreateAppMembershipInput, + UpdateAppMembershipInput, + AppMembershipPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AppMembershipModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appMemberships: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AppMembership', + 'appMemberships', + 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, + }, + 'AppMembershipFilter', + 'AppMembershipOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppMembership', + fieldName: 'appMemberships', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appMemberships: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'AppMembership', + 'appMemberships', + args.select, + { + where: args?.where, + }, + 'AppMembershipFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppMembership', + fieldName: 'appMemberships', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + appMembership: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AppMembership', + 'appMemberships', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AppMembershipFilter', + 'AppMembershipOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppMembership', + fieldName: 'appMembership', + document, + variables, + transform: (data: { + appMemberships?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appMembership: data.appMemberships?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAppMembership: { + appMembership: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AppMembership', + 'createAppMembership', + 'appMembership', + args.select, + args.data, + 'CreateAppMembershipInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppMembership', + fieldName: 'createAppMembership', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AppMembershipPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAppMembership: { + appMembership: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AppMembership', + 'updateAppMembership', + 'appMembership', + args.select, + args.where.id, + args.data, + 'UpdateAppMembershipInput', + 'id', + 'appMembershipPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppMembership', + fieldName: 'updateAppMembership', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAppMembership: { + appMembership: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AppMembership', + 'deleteAppMembership', + 'appMembership', + args.where.id, + 'DeleteAppMembershipInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppMembership', + fieldName: 'deleteAppMembership', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/appMembershipDefault.ts b/sdk/constructive-react/src/public/orm/models/appMembershipDefault.ts new file mode 100644 index 000000000..ba0c3ce53 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/appMembershipDefault.ts @@ -0,0 +1,238 @@ +/** + * AppMembershipDefault 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 { + AppMembershipDefault, + AppMembershipDefaultWithRelations, + AppMembershipDefaultSelect, + AppMembershipDefaultFilter, + AppMembershipDefaultOrderBy, + CreateAppMembershipDefaultInput, + UpdateAppMembershipDefaultInput, + AppMembershipDefaultPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AppMembershipDefaultModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appMembershipDefaults: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'AppMembershipDefault', + 'appMembershipDefaults', + 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, + }, + 'AppMembershipDefaultFilter', + 'AppMembershipDefaultOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppMembershipDefault', + fieldName: 'appMembershipDefaults', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appMembershipDefaults: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'AppMembershipDefault', + 'appMembershipDefaults', + args.select, + { + where: args?.where, + }, + 'AppMembershipDefaultFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppMembershipDefault', + fieldName: 'appMembershipDefaults', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + appMembershipDefault: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AppMembershipDefault', + 'appMembershipDefaults', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AppMembershipDefaultFilter', + 'AppMembershipDefaultOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppMembershipDefault', + fieldName: 'appMembershipDefault', + document, + variables, + transform: (data: { + appMembershipDefaults?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appMembershipDefault: data.appMembershipDefaults?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAppMembershipDefault: { + appMembershipDefault: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AppMembershipDefault', + 'createAppMembershipDefault', + 'appMembershipDefault', + args.select, + args.data, + 'CreateAppMembershipDefaultInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppMembershipDefault', + fieldName: 'createAppMembershipDefault', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AppMembershipDefaultPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAppMembershipDefault: { + appMembershipDefault: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AppMembershipDefault', + 'updateAppMembershipDefault', + 'appMembershipDefault', + args.select, + args.where.id, + args.data, + 'UpdateAppMembershipDefaultInput', + 'id', + 'appMembershipDefaultPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppMembershipDefault', + fieldName: 'updateAppMembershipDefault', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAppMembershipDefault: { + appMembershipDefault: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AppMembershipDefault', + 'deleteAppMembershipDefault', + 'appMembershipDefault', + args.where.id, + 'DeleteAppMembershipDefaultInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppMembershipDefault', + fieldName: 'deleteAppMembershipDefault', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/appOwnerGrant.ts b/sdk/constructive-react/src/public/orm/models/appOwnerGrant.ts new file mode 100644 index 000000000..a18dd21c4 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/appOwnerGrant.ts @@ -0,0 +1,236 @@ +/** + * AppOwnerGrant 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 { + AppOwnerGrant, + AppOwnerGrantWithRelations, + AppOwnerGrantSelect, + AppOwnerGrantFilter, + AppOwnerGrantOrderBy, + CreateAppOwnerGrantInput, + UpdateAppOwnerGrantInput, + AppOwnerGrantPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AppOwnerGrantModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appOwnerGrants: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AppOwnerGrant', + 'appOwnerGrants', + 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, + }, + 'AppOwnerGrantFilter', + 'AppOwnerGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppOwnerGrant', + fieldName: 'appOwnerGrants', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appOwnerGrants: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'AppOwnerGrant', + 'appOwnerGrants', + args.select, + { + where: args?.where, + }, + 'AppOwnerGrantFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppOwnerGrant', + fieldName: 'appOwnerGrants', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + appOwnerGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AppOwnerGrant', + 'appOwnerGrants', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AppOwnerGrantFilter', + 'AppOwnerGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppOwnerGrant', + fieldName: 'appOwnerGrant', + document, + variables, + transform: (data: { + appOwnerGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appOwnerGrant: data.appOwnerGrants?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAppOwnerGrant: { + appOwnerGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AppOwnerGrant', + 'createAppOwnerGrant', + 'appOwnerGrant', + args.select, + args.data, + 'CreateAppOwnerGrantInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppOwnerGrant', + fieldName: 'createAppOwnerGrant', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AppOwnerGrantPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAppOwnerGrant: { + appOwnerGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AppOwnerGrant', + 'updateAppOwnerGrant', + 'appOwnerGrant', + args.select, + args.where.id, + args.data, + 'UpdateAppOwnerGrantInput', + 'id', + 'appOwnerGrantPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppOwnerGrant', + fieldName: 'updateAppOwnerGrant', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAppOwnerGrant: { + appOwnerGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AppOwnerGrant', + 'deleteAppOwnerGrant', + 'appOwnerGrant', + args.where.id, + 'DeleteAppOwnerGrantInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppOwnerGrant', + fieldName: 'deleteAppOwnerGrant', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/appPermission.ts b/sdk/constructive-react/src/public/orm/models/appPermission.ts new file mode 100644 index 000000000..ab24d7bfc --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/appPermission.ts @@ -0,0 +1,236 @@ +/** + * AppPermission 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 { + AppPermission, + AppPermissionWithRelations, + AppPermissionSelect, + AppPermissionFilter, + AppPermissionOrderBy, + CreateAppPermissionInput, + UpdateAppPermissionInput, + AppPermissionPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AppPermissionModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appPermissions: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AppPermission', + 'appPermissions', + 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, + }, + 'AppPermissionFilter', + 'AppPermissionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppPermission', + fieldName: 'appPermissions', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appPermissions: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'AppPermission', + 'appPermissions', + args.select, + { + where: args?.where, + }, + 'AppPermissionFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppPermission', + fieldName: 'appPermissions', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + appPermission: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AppPermission', + 'appPermissions', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AppPermissionFilter', + 'AppPermissionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppPermission', + fieldName: 'appPermission', + document, + variables, + transform: (data: { + appPermissions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appPermission: data.appPermissions?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAppPermission: { + appPermission: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AppPermission', + 'createAppPermission', + 'appPermission', + args.select, + args.data, + 'CreateAppPermissionInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppPermission', + fieldName: 'createAppPermission', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AppPermissionPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAppPermission: { + appPermission: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AppPermission', + 'updateAppPermission', + 'appPermission', + args.select, + args.where.id, + args.data, + 'UpdateAppPermissionInput', + 'id', + 'appPermissionPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppPermission', + fieldName: 'updateAppPermission', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAppPermission: { + appPermission: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AppPermission', + 'deleteAppPermission', + 'appPermission', + args.where.id, + 'DeleteAppPermissionInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppPermission', + fieldName: 'deleteAppPermission', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/appPermissionDefault.ts b/sdk/constructive-react/src/public/orm/models/appPermissionDefault.ts new file mode 100644 index 000000000..3951ef4bb --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/appPermissionDefault.ts @@ -0,0 +1,238 @@ +/** + * AppPermissionDefault 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 { + AppPermissionDefault, + AppPermissionDefaultWithRelations, + AppPermissionDefaultSelect, + AppPermissionDefaultFilter, + AppPermissionDefaultOrderBy, + CreateAppPermissionDefaultInput, + UpdateAppPermissionDefaultInput, + AppPermissionDefaultPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AppPermissionDefaultModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appPermissionDefaults: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'AppPermissionDefault', + 'appPermissionDefaults', + 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, + }, + 'AppPermissionDefaultFilter', + 'AppPermissionDefaultOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppPermissionDefault', + fieldName: 'appPermissionDefaults', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appPermissionDefaults: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'AppPermissionDefault', + 'appPermissionDefaults', + args.select, + { + where: args?.where, + }, + 'AppPermissionDefaultFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppPermissionDefault', + fieldName: 'appPermissionDefaults', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + appPermissionDefault: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AppPermissionDefault', + 'appPermissionDefaults', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AppPermissionDefaultFilter', + 'AppPermissionDefaultOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppPermissionDefault', + fieldName: 'appPermissionDefault', + document, + variables, + transform: (data: { + appPermissionDefaults?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appPermissionDefault: data.appPermissionDefaults?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAppPermissionDefault: { + appPermissionDefault: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AppPermissionDefault', + 'createAppPermissionDefault', + 'appPermissionDefault', + args.select, + args.data, + 'CreateAppPermissionDefaultInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppPermissionDefault', + fieldName: 'createAppPermissionDefault', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AppPermissionDefaultPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAppPermissionDefault: { + appPermissionDefault: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AppPermissionDefault', + 'updateAppPermissionDefault', + 'appPermissionDefault', + args.select, + args.where.id, + args.data, + 'UpdateAppPermissionDefaultInput', + 'id', + 'appPermissionDefaultPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppPermissionDefault', + fieldName: 'updateAppPermissionDefault', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAppPermissionDefault: { + appPermissionDefault: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AppPermissionDefault', + 'deleteAppPermissionDefault', + 'appPermissionDefault', + args.where.id, + 'DeleteAppPermissionDefaultInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppPermissionDefault', + fieldName: 'deleteAppPermissionDefault', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/appStep.ts b/sdk/constructive-react/src/public/orm/models/appStep.ts new file mode 100644 index 000000000..7c4ab983c --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/appStep.ts @@ -0,0 +1,236 @@ +/** + * AppStep 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 { + AppStep, + AppStepWithRelations, + AppStepSelect, + AppStepFilter, + AppStepOrderBy, + CreateAppStepInput, + UpdateAppStepInput, + AppStepPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AppStepModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appSteps: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AppStep', + 'appSteps', + 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, + }, + 'AppStepFilter', + 'AppStepOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppStep', + fieldName: 'appSteps', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appSteps: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'AppStep', + 'appSteps', + args.select, + { + where: args?.where, + }, + 'AppStepFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppStep', + fieldName: 'appSteps', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + appStep: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AppStep', + 'appSteps', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AppStepFilter', + 'AppStepOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppStep', + fieldName: 'appStep', + document, + variables, + transform: (data: { + appSteps?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appStep: data.appSteps?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAppStep: { + appStep: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AppStep', + 'createAppStep', + 'appStep', + args.select, + args.data, + 'CreateAppStepInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppStep', + fieldName: 'createAppStep', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AppStepPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAppStep: { + appStep: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AppStep', + 'updateAppStep', + 'appStep', + args.select, + args.where.id, + args.data, + 'UpdateAppStepInput', + 'id', + 'appStepPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppStep', + fieldName: 'updateAppStep', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAppStep: { + appStep: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AppStep', + 'deleteAppStep', + 'appStep', + args.where.id, + 'DeleteAppStepInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppStep', + fieldName: 'deleteAppStep', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/astMigration.ts b/sdk/constructive-react/src/public/orm/models/astMigration.ts new file mode 100644 index 000000000..8bab8cfd0 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/astMigration.ts @@ -0,0 +1,167 @@ +/** + * AstMigration 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 { + AstMigration, + AstMigrationWithRelations, + AstMigrationSelect, + AstMigrationFilter, + AstMigrationOrderBy, + CreateAstMigrationInput, + UpdateAstMigrationInput, + AstMigrationPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AstMigrationModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + astMigrations: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AstMigration', + 'astMigrations', + 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, + }, + 'AstMigrationFilter', + 'AstMigrationOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AstMigration', + fieldName: 'astMigrations', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + astMigrations: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'AstMigration', + 'astMigrations', + args.select, + { + where: args?.where, + }, + 'AstMigrationFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AstMigration', + fieldName: 'astMigrations', + document, + variables, + }); + } + findOne( + args: { + id: number; + select: S; + } & StrictSelect + ): QueryBuilder<{ + astMigration: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AstMigration', + 'astMigrations', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AstMigrationFilter', + 'AstMigrationOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AstMigration', + fieldName: 'astMigration', + document, + variables, + transform: (data: { + astMigrations?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + astMigration: data.astMigrations?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAstMigration: { + astMigration: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AstMigration', + 'createAstMigration', + 'astMigration', + args.select, + args.data, + 'CreateAstMigrationInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AstMigration', + fieldName: 'createAstMigration', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/auditLog.ts b/sdk/constructive-react/src/public/orm/models/auditLog.ts new file mode 100644 index 000000000..3d6aacb4e --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/auditLog.ts @@ -0,0 +1,236 @@ +/** + * AuditLog 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 { + AuditLog, + AuditLogWithRelations, + AuditLogSelect, + AuditLogFilter, + AuditLogOrderBy, + CreateAuditLogInput, + UpdateAuditLogInput, + AuditLogPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AuditLogModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + auditLogs: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AuditLog', + 'auditLogs', + 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, + }, + 'AuditLogFilter', + 'AuditLogOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AuditLog', + fieldName: 'auditLogs', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + auditLogs: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'AuditLog', + 'auditLogs', + args.select, + { + where: args?.where, + }, + 'AuditLogFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AuditLog', + fieldName: 'auditLogs', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + auditLog: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AuditLog', + 'auditLogs', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AuditLogFilter', + 'AuditLogOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AuditLog', + fieldName: 'auditLog', + document, + variables, + transform: (data: { + auditLogs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + auditLog: data.auditLogs?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAuditLog: { + auditLog: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AuditLog', + 'createAuditLog', + 'auditLog', + args.select, + args.data, + 'CreateAuditLogInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AuditLog', + fieldName: 'createAuditLog', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AuditLogPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAuditLog: { + auditLog: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AuditLog', + 'updateAuditLog', + 'auditLog', + args.select, + args.where.id, + args.data, + 'UpdateAuditLogInput', + 'id', + 'auditLogPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AuditLog', + fieldName: 'updateAuditLog', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAuditLog: { + auditLog: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AuditLog', + 'deleteAuditLog', + 'auditLog', + args.where.id, + 'DeleteAuditLogInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AuditLog', + fieldName: 'deleteAuditLog', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/checkConstraint.ts b/sdk/constructive-react/src/public/orm/models/checkConstraint.ts new file mode 100644 index 000000000..3d789793d --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/checkConstraint.ts @@ -0,0 +1,236 @@ +/** + * CheckConstraint 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 { + CheckConstraint, + CheckConstraintWithRelations, + CheckConstraintSelect, + CheckConstraintFilter, + CheckConstraintOrderBy, + CreateCheckConstraintInput, + UpdateCheckConstraintInput, + CheckConstraintPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class CheckConstraintModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + checkConstraints: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'CheckConstraint', + 'checkConstraints', + 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, + }, + 'CheckConstraintFilter', + 'CheckConstraintOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'CheckConstraint', + fieldName: 'checkConstraints', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + checkConstraints: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'CheckConstraint', + 'checkConstraints', + args.select, + { + where: args?.where, + }, + 'CheckConstraintFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'CheckConstraint', + fieldName: 'checkConstraints', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + checkConstraint: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'CheckConstraint', + 'checkConstraints', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'CheckConstraintFilter', + 'CheckConstraintOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'CheckConstraint', + fieldName: 'checkConstraint', + document, + variables, + transform: (data: { + checkConstraints?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + checkConstraint: data.checkConstraints?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createCheckConstraint: { + checkConstraint: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'CheckConstraint', + 'createCheckConstraint', + 'checkConstraint', + args.select, + args.data, + 'CreateCheckConstraintInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'CheckConstraint', + fieldName: 'createCheckConstraint', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + CheckConstraintPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateCheckConstraint: { + checkConstraint: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'CheckConstraint', + 'updateCheckConstraint', + 'checkConstraint', + args.select, + args.where.id, + args.data, + 'UpdateCheckConstraintInput', + 'id', + 'checkConstraintPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'CheckConstraint', + fieldName: 'updateCheckConstraint', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteCheckConstraint: { + checkConstraint: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'CheckConstraint', + 'deleteCheckConstraint', + 'checkConstraint', + args.where.id, + 'DeleteCheckConstraintInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'CheckConstraint', + fieldName: 'deleteCheckConstraint', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/claimedInvite.ts b/sdk/constructive-react/src/public/orm/models/claimedInvite.ts new file mode 100644 index 000000000..9a679a488 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/claimedInvite.ts @@ -0,0 +1,236 @@ +/** + * ClaimedInvite 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 { + ClaimedInvite, + ClaimedInviteWithRelations, + ClaimedInviteSelect, + ClaimedInviteFilter, + ClaimedInviteOrderBy, + CreateClaimedInviteInput, + UpdateClaimedInviteInput, + ClaimedInvitePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ClaimedInviteModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + claimedInvites: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'ClaimedInvite', + 'claimedInvites', + 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, + }, + 'ClaimedInviteFilter', + 'ClaimedInviteOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ClaimedInvite', + fieldName: 'claimedInvites', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + claimedInvites: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'ClaimedInvite', + 'claimedInvites', + args.select, + { + where: args?.where, + }, + 'ClaimedInviteFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ClaimedInvite', + fieldName: 'claimedInvites', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + claimedInvite: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ClaimedInvite', + 'claimedInvites', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ClaimedInviteFilter', + 'ClaimedInviteOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ClaimedInvite', + fieldName: 'claimedInvite', + document, + variables, + transform: (data: { + claimedInvites?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + claimedInvite: data.claimedInvites?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createClaimedInvite: { + claimedInvite: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ClaimedInvite', + 'createClaimedInvite', + 'claimedInvite', + args.select, + args.data, + 'CreateClaimedInviteInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ClaimedInvite', + fieldName: 'createClaimedInvite', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ClaimedInvitePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateClaimedInvite: { + claimedInvite: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ClaimedInvite', + 'updateClaimedInvite', + 'claimedInvite', + args.select, + args.where.id, + args.data, + 'UpdateClaimedInviteInput', + 'id', + 'claimedInvitePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ClaimedInvite', + fieldName: 'updateClaimedInvite', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteClaimedInvite: { + claimedInvite: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ClaimedInvite', + 'deleteClaimedInvite', + 'claimedInvite', + args.where.id, + 'DeleteClaimedInviteInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ClaimedInvite', + fieldName: 'deleteClaimedInvite', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/commit.ts b/sdk/constructive-react/src/public/orm/models/commit.ts new file mode 100644 index 000000000..257e233ae --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/commit.ts @@ -0,0 +1,236 @@ +/** + * Commit 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 { + Commit, + CommitWithRelations, + CommitSelect, + CommitFilter, + CommitOrderBy, + CreateCommitInput, + UpdateCommitInput, + CommitPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class CommitModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + commits: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Commit', + 'commits', + 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, + }, + 'CommitFilter', + 'CommitOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Commit', + fieldName: 'commits', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + commits: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'Commit', + 'commits', + args.select, + { + where: args?.where, + }, + 'CommitFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Commit', + fieldName: 'commits', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + commit: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'Commit', + 'commits', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'CommitFilter', + 'CommitOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Commit', + fieldName: 'commit', + document, + variables, + transform: (data: { + commits?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + commit: data.commits?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createCommit: { + commit: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Commit', + 'createCommit', + 'commit', + args.select, + args.data, + 'CreateCommitInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Commit', + fieldName: 'createCommit', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + CommitPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateCommit: { + commit: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'Commit', + 'updateCommit', + 'commit', + args.select, + args.where.id, + args.data, + 'UpdateCommitInput', + 'id', + 'commitPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Commit', + fieldName: 'updateCommit', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteCommit: { + commit: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'Commit', + 'deleteCommit', + 'commit', + args.where.id, + 'DeleteCommitInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Commit', + fieldName: 'deleteCommit', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/connectedAccount.ts b/sdk/constructive-react/src/public/orm/models/connectedAccount.ts new file mode 100644 index 000000000..0f2523553 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/connectedAccount.ts @@ -0,0 +1,236 @@ +/** + * ConnectedAccount 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 { + ConnectedAccount, + ConnectedAccountWithRelations, + ConnectedAccountSelect, + ConnectedAccountFilter, + ConnectedAccountOrderBy, + CreateConnectedAccountInput, + UpdateConnectedAccountInput, + ConnectedAccountPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ConnectedAccountModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + connectedAccounts: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'ConnectedAccount', + 'connectedAccounts', + 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, + }, + 'ConnectedAccountFilter', + 'ConnectedAccountOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ConnectedAccount', + fieldName: 'connectedAccounts', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + connectedAccounts: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'ConnectedAccount', + 'connectedAccounts', + args.select, + { + where: args?.where, + }, + 'ConnectedAccountFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ConnectedAccount', + fieldName: 'connectedAccounts', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + connectedAccount: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ConnectedAccount', + 'connectedAccounts', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ConnectedAccountFilter', + 'ConnectedAccountOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ConnectedAccount', + fieldName: 'connectedAccount', + document, + variables, + transform: (data: { + connectedAccounts?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + connectedAccount: data.connectedAccounts?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createConnectedAccount: { + connectedAccount: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ConnectedAccount', + 'createConnectedAccount', + 'connectedAccount', + args.select, + args.data, + 'CreateConnectedAccountInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ConnectedAccount', + fieldName: 'createConnectedAccount', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ConnectedAccountPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateConnectedAccount: { + connectedAccount: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ConnectedAccount', + 'updateConnectedAccount', + 'connectedAccount', + args.select, + args.where.id, + args.data, + 'UpdateConnectedAccountInput', + 'id', + 'connectedAccountPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ConnectedAccount', + fieldName: 'updateConnectedAccount', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteConnectedAccount: { + connectedAccount: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ConnectedAccount', + 'deleteConnectedAccount', + 'connectedAccount', + args.where.id, + 'DeleteConnectedAccountInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ConnectedAccount', + fieldName: 'deleteConnectedAccount', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/connectedAccountsModule.ts b/sdk/constructive-react/src/public/orm/models/connectedAccountsModule.ts new file mode 100644 index 000000000..09cb420e5 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/connectedAccountsModule.ts @@ -0,0 +1,238 @@ +/** + * ConnectedAccountsModule 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 { + ConnectedAccountsModule, + ConnectedAccountsModuleWithRelations, + ConnectedAccountsModuleSelect, + ConnectedAccountsModuleFilter, + ConnectedAccountsModuleOrderBy, + CreateConnectedAccountsModuleInput, + UpdateConnectedAccountsModuleInput, + ConnectedAccountsModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ConnectedAccountsModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + connectedAccountsModules: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'ConnectedAccountsModule', + 'connectedAccountsModules', + 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, + }, + 'ConnectedAccountsModuleFilter', + 'ConnectedAccountsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ConnectedAccountsModule', + fieldName: 'connectedAccountsModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + connectedAccountsModules: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'ConnectedAccountsModule', + 'connectedAccountsModules', + args.select, + { + where: args?.where, + }, + 'ConnectedAccountsModuleFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ConnectedAccountsModule', + fieldName: 'connectedAccountsModules', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + connectedAccountsModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ConnectedAccountsModule', + 'connectedAccountsModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ConnectedAccountsModuleFilter', + 'ConnectedAccountsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ConnectedAccountsModule', + fieldName: 'connectedAccountsModule', + document, + variables, + transform: (data: { + connectedAccountsModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + connectedAccountsModule: data.connectedAccountsModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createConnectedAccountsModule: { + connectedAccountsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ConnectedAccountsModule', + 'createConnectedAccountsModule', + 'connectedAccountsModule', + args.select, + args.data, + 'CreateConnectedAccountsModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ConnectedAccountsModule', + fieldName: 'createConnectedAccountsModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ConnectedAccountsModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateConnectedAccountsModule: { + connectedAccountsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ConnectedAccountsModule', + 'updateConnectedAccountsModule', + 'connectedAccountsModule', + args.select, + args.where.id, + args.data, + 'UpdateConnectedAccountsModuleInput', + 'id', + 'connectedAccountsModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ConnectedAccountsModule', + fieldName: 'updateConnectedAccountsModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteConnectedAccountsModule: { + connectedAccountsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ConnectedAccountsModule', + 'deleteConnectedAccountsModule', + 'connectedAccountsModule', + args.where.id, + 'DeleteConnectedAccountsModuleInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ConnectedAccountsModule', + fieldName: 'deleteConnectedAccountsModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/cryptoAddress.ts b/sdk/constructive-react/src/public/orm/models/cryptoAddress.ts new file mode 100644 index 000000000..8d0c9b387 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/cryptoAddress.ts @@ -0,0 +1,236 @@ +/** + * CryptoAddress 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 { + CryptoAddress, + CryptoAddressWithRelations, + CryptoAddressSelect, + CryptoAddressFilter, + CryptoAddressOrderBy, + CreateCryptoAddressInput, + UpdateCryptoAddressInput, + CryptoAddressPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class CryptoAddressModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + cryptoAddresses: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'CryptoAddress', + 'cryptoAddresses', + 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, + }, + 'CryptoAddressFilter', + 'CryptoAddressOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'CryptoAddress', + fieldName: 'cryptoAddresses', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + cryptoAddresses: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'CryptoAddress', + 'cryptoAddresses', + args.select, + { + where: args?.where, + }, + 'CryptoAddressFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'CryptoAddress', + fieldName: 'cryptoAddresses', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + cryptoAddress: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'CryptoAddress', + 'cryptoAddresses', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'CryptoAddressFilter', + 'CryptoAddressOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'CryptoAddress', + fieldName: 'cryptoAddress', + document, + variables, + transform: (data: { + cryptoAddresses?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + cryptoAddress: data.cryptoAddresses?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createCryptoAddress: { + cryptoAddress: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'CryptoAddress', + 'createCryptoAddress', + 'cryptoAddress', + args.select, + args.data, + 'CreateCryptoAddressInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'CryptoAddress', + fieldName: 'createCryptoAddress', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + CryptoAddressPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateCryptoAddress: { + cryptoAddress: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'CryptoAddress', + 'updateCryptoAddress', + 'cryptoAddress', + args.select, + args.where.id, + args.data, + 'UpdateCryptoAddressInput', + 'id', + 'cryptoAddressPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'CryptoAddress', + fieldName: 'updateCryptoAddress', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteCryptoAddress: { + cryptoAddress: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'CryptoAddress', + 'deleteCryptoAddress', + 'cryptoAddress', + args.where.id, + 'DeleteCryptoAddressInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'CryptoAddress', + fieldName: 'deleteCryptoAddress', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/cryptoAddressesModule.ts b/sdk/constructive-react/src/public/orm/models/cryptoAddressesModule.ts new file mode 100644 index 000000000..5c1de3024 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/cryptoAddressesModule.ts @@ -0,0 +1,238 @@ +/** + * CryptoAddressesModule 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 { + CryptoAddressesModule, + CryptoAddressesModuleWithRelations, + CryptoAddressesModuleSelect, + CryptoAddressesModuleFilter, + CryptoAddressesModuleOrderBy, + CreateCryptoAddressesModuleInput, + UpdateCryptoAddressesModuleInput, + CryptoAddressesModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class CryptoAddressesModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + cryptoAddressesModules: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'CryptoAddressesModule', + 'cryptoAddressesModules', + 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, + }, + 'CryptoAddressesModuleFilter', + 'CryptoAddressesModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'CryptoAddressesModule', + fieldName: 'cryptoAddressesModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + cryptoAddressesModules: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'CryptoAddressesModule', + 'cryptoAddressesModules', + args.select, + { + where: args?.where, + }, + 'CryptoAddressesModuleFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'CryptoAddressesModule', + fieldName: 'cryptoAddressesModules', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + cryptoAddressesModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'CryptoAddressesModule', + 'cryptoAddressesModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'CryptoAddressesModuleFilter', + 'CryptoAddressesModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'CryptoAddressesModule', + fieldName: 'cryptoAddressesModule', + document, + variables, + transform: (data: { + cryptoAddressesModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + cryptoAddressesModule: data.cryptoAddressesModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createCryptoAddressesModule: { + cryptoAddressesModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'CryptoAddressesModule', + 'createCryptoAddressesModule', + 'cryptoAddressesModule', + args.select, + args.data, + 'CreateCryptoAddressesModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'CryptoAddressesModule', + fieldName: 'createCryptoAddressesModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + CryptoAddressesModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateCryptoAddressesModule: { + cryptoAddressesModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'CryptoAddressesModule', + 'updateCryptoAddressesModule', + 'cryptoAddressesModule', + args.select, + args.where.id, + args.data, + 'UpdateCryptoAddressesModuleInput', + 'id', + 'cryptoAddressesModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'CryptoAddressesModule', + fieldName: 'updateCryptoAddressesModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteCryptoAddressesModule: { + cryptoAddressesModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'CryptoAddressesModule', + 'deleteCryptoAddressesModule', + 'cryptoAddressesModule', + args.where.id, + 'DeleteCryptoAddressesModuleInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'CryptoAddressesModule', + fieldName: 'deleteCryptoAddressesModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/cryptoAuthModule.ts b/sdk/constructive-react/src/public/orm/models/cryptoAuthModule.ts new file mode 100644 index 000000000..ddaa749f8 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/cryptoAuthModule.ts @@ -0,0 +1,236 @@ +/** + * CryptoAuthModule 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 { + CryptoAuthModule, + CryptoAuthModuleWithRelations, + CryptoAuthModuleSelect, + CryptoAuthModuleFilter, + CryptoAuthModuleOrderBy, + CreateCryptoAuthModuleInput, + UpdateCryptoAuthModuleInput, + CryptoAuthModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class CryptoAuthModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + cryptoAuthModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'CryptoAuthModule', + 'cryptoAuthModules', + 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, + }, + 'CryptoAuthModuleFilter', + 'CryptoAuthModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'CryptoAuthModule', + fieldName: 'cryptoAuthModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + cryptoAuthModules: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'CryptoAuthModule', + 'cryptoAuthModules', + args.select, + { + where: args?.where, + }, + 'CryptoAuthModuleFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'CryptoAuthModule', + fieldName: 'cryptoAuthModules', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + cryptoAuthModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'CryptoAuthModule', + 'cryptoAuthModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'CryptoAuthModuleFilter', + 'CryptoAuthModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'CryptoAuthModule', + fieldName: 'cryptoAuthModule', + document, + variables, + transform: (data: { + cryptoAuthModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + cryptoAuthModule: data.cryptoAuthModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createCryptoAuthModule: { + cryptoAuthModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'CryptoAuthModule', + 'createCryptoAuthModule', + 'cryptoAuthModule', + args.select, + args.data, + 'CreateCryptoAuthModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'CryptoAuthModule', + fieldName: 'createCryptoAuthModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + CryptoAuthModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateCryptoAuthModule: { + cryptoAuthModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'CryptoAuthModule', + 'updateCryptoAuthModule', + 'cryptoAuthModule', + args.select, + args.where.id, + args.data, + 'UpdateCryptoAuthModuleInput', + 'id', + 'cryptoAuthModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'CryptoAuthModule', + fieldName: 'updateCryptoAuthModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteCryptoAuthModule: { + cryptoAuthModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'CryptoAuthModule', + 'deleteCryptoAuthModule', + 'cryptoAuthModule', + args.where.id, + 'DeleteCryptoAuthModuleInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'CryptoAuthModule', + fieldName: 'deleteCryptoAuthModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/database.ts b/sdk/constructive-react/src/public/orm/models/database.ts new file mode 100644 index 000000000..9bb0c871a --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/database.ts @@ -0,0 +1,236 @@ +/** + * Database 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 { + Database, + DatabaseWithRelations, + DatabaseSelect, + DatabaseFilter, + DatabaseOrderBy, + CreateDatabaseInput, + UpdateDatabaseInput, + DatabasePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class DatabaseModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databases: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Database', + 'databases', + 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, + }, + 'DatabaseFilter', + 'DatabaseOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Database', + fieldName: 'databases', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databases: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'Database', + 'databases', + args.select, + { + where: args?.where, + }, + 'DatabaseFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Database', + fieldName: 'databases', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + database: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'Database', + 'databases', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'DatabaseFilter', + 'DatabaseOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Database', + fieldName: 'database', + document, + variables, + transform: (data: { + databases?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + database: data.databases?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createDatabase: { + database: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Database', + 'createDatabase', + 'database', + args.select, + args.data, + 'CreateDatabaseInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Database', + fieldName: 'createDatabase', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + DatabasePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateDatabase: { + database: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'Database', + 'updateDatabase', + 'database', + args.select, + args.where.id, + args.data, + 'UpdateDatabaseInput', + 'id', + 'databasePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Database', + fieldName: 'updateDatabase', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteDatabase: { + database: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'Database', + 'deleteDatabase', + 'database', + args.where.id, + 'DeleteDatabaseInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Database', + fieldName: 'deleteDatabase', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/databaseProvisionModule.ts b/sdk/constructive-react/src/public/orm/models/databaseProvisionModule.ts new file mode 100644 index 000000000..31becee8c --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/databaseProvisionModule.ts @@ -0,0 +1,238 @@ +/** + * DatabaseProvisionModule 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 { + DatabaseProvisionModule, + DatabaseProvisionModuleWithRelations, + DatabaseProvisionModuleSelect, + DatabaseProvisionModuleFilter, + DatabaseProvisionModuleOrderBy, + CreateDatabaseProvisionModuleInput, + UpdateDatabaseProvisionModuleInput, + DatabaseProvisionModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class DatabaseProvisionModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseProvisionModules: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'DatabaseProvisionModule', + 'databaseProvisionModules', + 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, + }, + 'DatabaseProvisionModuleFilter', + 'DatabaseProvisionModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseProvisionModule', + fieldName: 'databaseProvisionModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseProvisionModules: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'DatabaseProvisionModule', + 'databaseProvisionModules', + args.select, + { + where: args?.where, + }, + 'DatabaseProvisionModuleFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseProvisionModule', + fieldName: 'databaseProvisionModules', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseProvisionModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'DatabaseProvisionModule', + 'databaseProvisionModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'DatabaseProvisionModuleFilter', + 'DatabaseProvisionModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseProvisionModule', + fieldName: 'databaseProvisionModule', + document, + variables, + transform: (data: { + databaseProvisionModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + databaseProvisionModule: data.databaseProvisionModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createDatabaseProvisionModule: { + databaseProvisionModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'DatabaseProvisionModule', + 'createDatabaseProvisionModule', + 'databaseProvisionModule', + args.select, + args.data, + 'CreateDatabaseProvisionModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseProvisionModule', + fieldName: 'createDatabaseProvisionModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + DatabaseProvisionModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateDatabaseProvisionModule: { + databaseProvisionModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'DatabaseProvisionModule', + 'updateDatabaseProvisionModule', + 'databaseProvisionModule', + args.select, + args.where.id, + args.data, + 'UpdateDatabaseProvisionModuleInput', + 'id', + 'databaseProvisionModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseProvisionModule', + fieldName: 'updateDatabaseProvisionModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteDatabaseProvisionModule: { + databaseProvisionModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'DatabaseProvisionModule', + 'deleteDatabaseProvisionModule', + 'databaseProvisionModule', + args.where.id, + 'DeleteDatabaseProvisionModuleInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseProvisionModule', + fieldName: 'deleteDatabaseProvisionModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/defaultIdsModule.ts b/sdk/constructive-react/src/public/orm/models/defaultIdsModule.ts new file mode 100644 index 000000000..665f3eb1e --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/defaultIdsModule.ts @@ -0,0 +1,236 @@ +/** + * DefaultIdsModule 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 { + DefaultIdsModule, + DefaultIdsModuleWithRelations, + DefaultIdsModuleSelect, + DefaultIdsModuleFilter, + DefaultIdsModuleOrderBy, + CreateDefaultIdsModuleInput, + UpdateDefaultIdsModuleInput, + DefaultIdsModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class DefaultIdsModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + defaultIdsModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'DefaultIdsModule', + 'defaultIdsModules', + 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, + }, + 'DefaultIdsModuleFilter', + 'DefaultIdsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DefaultIdsModule', + fieldName: 'defaultIdsModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + defaultIdsModules: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'DefaultIdsModule', + 'defaultIdsModules', + args.select, + { + where: args?.where, + }, + 'DefaultIdsModuleFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DefaultIdsModule', + fieldName: 'defaultIdsModules', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + defaultIdsModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'DefaultIdsModule', + 'defaultIdsModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'DefaultIdsModuleFilter', + 'DefaultIdsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DefaultIdsModule', + fieldName: 'defaultIdsModule', + document, + variables, + transform: (data: { + defaultIdsModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + defaultIdsModule: data.defaultIdsModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createDefaultIdsModule: { + defaultIdsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'DefaultIdsModule', + 'createDefaultIdsModule', + 'defaultIdsModule', + args.select, + args.data, + 'CreateDefaultIdsModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DefaultIdsModule', + fieldName: 'createDefaultIdsModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + DefaultIdsModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateDefaultIdsModule: { + defaultIdsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'DefaultIdsModule', + 'updateDefaultIdsModule', + 'defaultIdsModule', + args.select, + args.where.id, + args.data, + 'UpdateDefaultIdsModuleInput', + 'id', + 'defaultIdsModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DefaultIdsModule', + fieldName: 'updateDefaultIdsModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteDefaultIdsModule: { + defaultIdsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'DefaultIdsModule', + 'deleteDefaultIdsModule', + 'defaultIdsModule', + args.where.id, + 'DeleteDefaultIdsModuleInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DefaultIdsModule', + fieldName: 'deleteDefaultIdsModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/denormalizedTableField.ts b/sdk/constructive-react/src/public/orm/models/denormalizedTableField.ts new file mode 100644 index 000000000..111286e0e --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/denormalizedTableField.ts @@ -0,0 +1,238 @@ +/** + * DenormalizedTableField 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 { + DenormalizedTableField, + DenormalizedTableFieldWithRelations, + DenormalizedTableFieldSelect, + DenormalizedTableFieldFilter, + DenormalizedTableFieldOrderBy, + CreateDenormalizedTableFieldInput, + UpdateDenormalizedTableFieldInput, + DenormalizedTableFieldPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class DenormalizedTableFieldModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + denormalizedTableFields: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'DenormalizedTableField', + 'denormalizedTableFields', + 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, + }, + 'DenormalizedTableFieldFilter', + 'DenormalizedTableFieldOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DenormalizedTableField', + fieldName: 'denormalizedTableFields', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + denormalizedTableFields: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'DenormalizedTableField', + 'denormalizedTableFields', + args.select, + { + where: args?.where, + }, + 'DenormalizedTableFieldFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DenormalizedTableField', + fieldName: 'denormalizedTableFields', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + denormalizedTableField: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'DenormalizedTableField', + 'denormalizedTableFields', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'DenormalizedTableFieldFilter', + 'DenormalizedTableFieldOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DenormalizedTableField', + fieldName: 'denormalizedTableField', + document, + variables, + transform: (data: { + denormalizedTableFields?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + denormalizedTableField: data.denormalizedTableFields?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createDenormalizedTableField: { + denormalizedTableField: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'DenormalizedTableField', + 'createDenormalizedTableField', + 'denormalizedTableField', + args.select, + args.data, + 'CreateDenormalizedTableFieldInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DenormalizedTableField', + fieldName: 'createDenormalizedTableField', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + DenormalizedTableFieldPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateDenormalizedTableField: { + denormalizedTableField: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'DenormalizedTableField', + 'updateDenormalizedTableField', + 'denormalizedTableField', + args.select, + args.where.id, + args.data, + 'UpdateDenormalizedTableFieldInput', + 'id', + 'denormalizedTableFieldPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DenormalizedTableField', + fieldName: 'updateDenormalizedTableField', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteDenormalizedTableField: { + denormalizedTableField: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'DenormalizedTableField', + 'deleteDenormalizedTableField', + 'denormalizedTableField', + args.where.id, + 'DeleteDenormalizedTableFieldInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DenormalizedTableField', + fieldName: 'deleteDenormalizedTableField', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/domain.ts b/sdk/constructive-react/src/public/orm/models/domain.ts new file mode 100644 index 000000000..dcdb161a7 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/domain.ts @@ -0,0 +1,236 @@ +/** + * Domain 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 { + Domain, + DomainWithRelations, + DomainSelect, + DomainFilter, + DomainOrderBy, + CreateDomainInput, + UpdateDomainInput, + DomainPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class DomainModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + domains: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Domain', + 'domains', + 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, + }, + 'DomainFilter', + 'DomainOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Domain', + fieldName: 'domains', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + domains: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'Domain', + 'domains', + args.select, + { + where: args?.where, + }, + 'DomainFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Domain', + fieldName: 'domains', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + domain: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'Domain', + 'domains', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'DomainFilter', + 'DomainOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Domain', + fieldName: 'domain', + document, + variables, + transform: (data: { + domains?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + domain: data.domains?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createDomain: { + domain: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Domain', + 'createDomain', + 'domain', + args.select, + args.data, + 'CreateDomainInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Domain', + fieldName: 'createDomain', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + DomainPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateDomain: { + domain: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'Domain', + 'updateDomain', + 'domain', + args.select, + args.where.id, + args.data, + 'UpdateDomainInput', + 'id', + 'domainPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Domain', + fieldName: 'updateDomain', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteDomain: { + domain: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'Domain', + 'deleteDomain', + 'domain', + args.where.id, + 'DeleteDomainInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Domain', + fieldName: 'deleteDomain', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/email.ts b/sdk/constructive-react/src/public/orm/models/email.ts new file mode 100644 index 000000000..d03c2180b --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/email.ts @@ -0,0 +1,236 @@ +/** + * Email 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 { + Email, + EmailWithRelations, + EmailSelect, + EmailFilter, + EmailOrderBy, + CreateEmailInput, + UpdateEmailInput, + EmailPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class EmailModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + emails: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Email', + 'emails', + 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, + }, + 'EmailFilter', + 'EmailOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Email', + fieldName: 'emails', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + emails: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'Email', + 'emails', + args.select, + { + where: args?.where, + }, + 'EmailFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Email', + fieldName: 'emails', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + email: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'Email', + 'emails', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'EmailFilter', + 'EmailOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Email', + fieldName: 'email', + document, + variables, + transform: (data: { + emails?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + email: data.emails?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createEmail: { + email: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Email', + 'createEmail', + 'email', + args.select, + args.data, + 'CreateEmailInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Email', + fieldName: 'createEmail', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + EmailPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateEmail: { + email: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'Email', + 'updateEmail', + 'email', + args.select, + args.where.id, + args.data, + 'UpdateEmailInput', + 'id', + 'emailPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Email', + fieldName: 'updateEmail', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteEmail: { + email: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'Email', + 'deleteEmail', + 'email', + args.where.id, + 'DeleteEmailInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Email', + fieldName: 'deleteEmail', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/emailsModule.ts b/sdk/constructive-react/src/public/orm/models/emailsModule.ts new file mode 100644 index 000000000..ab8058dfe --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/emailsModule.ts @@ -0,0 +1,236 @@ +/** + * EmailsModule 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 { + EmailsModule, + EmailsModuleWithRelations, + EmailsModuleSelect, + EmailsModuleFilter, + EmailsModuleOrderBy, + CreateEmailsModuleInput, + UpdateEmailsModuleInput, + EmailsModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class EmailsModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + emailsModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'EmailsModule', + 'emailsModules', + 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, + }, + 'EmailsModuleFilter', + 'EmailsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'EmailsModule', + fieldName: 'emailsModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + emailsModules: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'EmailsModule', + 'emailsModules', + args.select, + { + where: args?.where, + }, + 'EmailsModuleFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'EmailsModule', + fieldName: 'emailsModules', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + emailsModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'EmailsModule', + 'emailsModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'EmailsModuleFilter', + 'EmailsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'EmailsModule', + fieldName: 'emailsModule', + document, + variables, + transform: (data: { + emailsModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + emailsModule: data.emailsModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createEmailsModule: { + emailsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'EmailsModule', + 'createEmailsModule', + 'emailsModule', + args.select, + args.data, + 'CreateEmailsModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'EmailsModule', + fieldName: 'createEmailsModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + EmailsModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateEmailsModule: { + emailsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'EmailsModule', + 'updateEmailsModule', + 'emailsModule', + args.select, + args.where.id, + args.data, + 'UpdateEmailsModuleInput', + 'id', + 'emailsModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'EmailsModule', + fieldName: 'updateEmailsModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteEmailsModule: { + emailsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'EmailsModule', + 'deleteEmailsModule', + 'emailsModule', + args.where.id, + 'DeleteEmailsModuleInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'EmailsModule', + fieldName: 'deleteEmailsModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/encryptedSecretsModule.ts b/sdk/constructive-react/src/public/orm/models/encryptedSecretsModule.ts new file mode 100644 index 000000000..d82b79a8e --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/encryptedSecretsModule.ts @@ -0,0 +1,238 @@ +/** + * EncryptedSecretsModule 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 { + EncryptedSecretsModule, + EncryptedSecretsModuleWithRelations, + EncryptedSecretsModuleSelect, + EncryptedSecretsModuleFilter, + EncryptedSecretsModuleOrderBy, + CreateEncryptedSecretsModuleInput, + UpdateEncryptedSecretsModuleInput, + EncryptedSecretsModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class EncryptedSecretsModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + encryptedSecretsModules: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'EncryptedSecretsModule', + 'encryptedSecretsModules', + 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, + }, + 'EncryptedSecretsModuleFilter', + 'EncryptedSecretsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'EncryptedSecretsModule', + fieldName: 'encryptedSecretsModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + encryptedSecretsModules: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'EncryptedSecretsModule', + 'encryptedSecretsModules', + args.select, + { + where: args?.where, + }, + 'EncryptedSecretsModuleFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'EncryptedSecretsModule', + fieldName: 'encryptedSecretsModules', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + encryptedSecretsModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'EncryptedSecretsModule', + 'encryptedSecretsModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'EncryptedSecretsModuleFilter', + 'EncryptedSecretsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'EncryptedSecretsModule', + fieldName: 'encryptedSecretsModule', + document, + variables, + transform: (data: { + encryptedSecretsModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + encryptedSecretsModule: data.encryptedSecretsModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createEncryptedSecretsModule: { + encryptedSecretsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'EncryptedSecretsModule', + 'createEncryptedSecretsModule', + 'encryptedSecretsModule', + args.select, + args.data, + 'CreateEncryptedSecretsModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'EncryptedSecretsModule', + fieldName: 'createEncryptedSecretsModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + EncryptedSecretsModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateEncryptedSecretsModule: { + encryptedSecretsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'EncryptedSecretsModule', + 'updateEncryptedSecretsModule', + 'encryptedSecretsModule', + args.select, + args.where.id, + args.data, + 'UpdateEncryptedSecretsModuleInput', + 'id', + 'encryptedSecretsModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'EncryptedSecretsModule', + fieldName: 'updateEncryptedSecretsModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteEncryptedSecretsModule: { + encryptedSecretsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'EncryptedSecretsModule', + 'deleteEncryptedSecretsModule', + 'encryptedSecretsModule', + args.where.id, + 'DeleteEncryptedSecretsModuleInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'EncryptedSecretsModule', + fieldName: 'deleteEncryptedSecretsModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/field.ts b/sdk/constructive-react/src/public/orm/models/field.ts new file mode 100644 index 000000000..6d54be6c0 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/field.ts @@ -0,0 +1,236 @@ +/** + * Field 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 { + Field, + FieldWithRelations, + FieldSelect, + FieldFilter, + FieldOrderBy, + CreateFieldInput, + UpdateFieldInput, + FieldPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class FieldModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + fields: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Field', + 'fields', + 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, + }, + 'FieldFilter', + 'FieldOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Field', + fieldName: 'fields', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + fields: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'Field', + 'fields', + args.select, + { + where: args?.where, + }, + 'FieldFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Field', + fieldName: 'fields', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + field: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'Field', + 'fields', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'FieldFilter', + 'FieldOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Field', + fieldName: 'field', + document, + variables, + transform: (data: { + fields?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + field: data.fields?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createField: { + field: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Field', + 'createField', + 'field', + args.select, + args.data, + 'CreateFieldInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Field', + fieldName: 'createField', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + FieldPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateField: { + field: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'Field', + 'updateField', + 'field', + args.select, + args.where.id, + args.data, + 'UpdateFieldInput', + 'id', + 'fieldPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Field', + fieldName: 'updateField', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteField: { + field: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'Field', + 'deleteField', + 'field', + args.where.id, + 'DeleteFieldInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Field', + fieldName: 'deleteField', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/fieldModule.ts b/sdk/constructive-react/src/public/orm/models/fieldModule.ts new file mode 100644 index 000000000..e4a646053 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/fieldModule.ts @@ -0,0 +1,236 @@ +/** + * FieldModule 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 { + FieldModule, + FieldModuleWithRelations, + FieldModuleSelect, + FieldModuleFilter, + FieldModuleOrderBy, + CreateFieldModuleInput, + UpdateFieldModuleInput, + FieldModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class FieldModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + fieldModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'FieldModule', + 'fieldModules', + 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, + }, + 'FieldModuleFilter', + 'FieldModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'FieldModule', + fieldName: 'fieldModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + fieldModules: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'FieldModule', + 'fieldModules', + args.select, + { + where: args?.where, + }, + 'FieldModuleFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'FieldModule', + fieldName: 'fieldModules', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + fieldModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'FieldModule', + 'fieldModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'FieldModuleFilter', + 'FieldModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'FieldModule', + fieldName: 'fieldModule', + document, + variables, + transform: (data: { + fieldModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + fieldModule: data.fieldModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createFieldModule: { + fieldModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'FieldModule', + 'createFieldModule', + 'fieldModule', + args.select, + args.data, + 'CreateFieldModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'FieldModule', + fieldName: 'createFieldModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + FieldModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateFieldModule: { + fieldModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'FieldModule', + 'updateFieldModule', + 'fieldModule', + args.select, + args.where.id, + args.data, + 'UpdateFieldModuleInput', + 'id', + 'fieldModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'FieldModule', + fieldName: 'updateFieldModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteFieldModule: { + fieldModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'FieldModule', + 'deleteFieldModule', + 'fieldModule', + args.where.id, + 'DeleteFieldModuleInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'FieldModule', + fieldName: 'deleteFieldModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/foreignKeyConstraint.ts b/sdk/constructive-react/src/public/orm/models/foreignKeyConstraint.ts new file mode 100644 index 000000000..725546cba --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/foreignKeyConstraint.ts @@ -0,0 +1,238 @@ +/** + * ForeignKeyConstraint 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 { + ForeignKeyConstraint, + ForeignKeyConstraintWithRelations, + ForeignKeyConstraintSelect, + ForeignKeyConstraintFilter, + ForeignKeyConstraintOrderBy, + CreateForeignKeyConstraintInput, + UpdateForeignKeyConstraintInput, + ForeignKeyConstraintPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ForeignKeyConstraintModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + foreignKeyConstraints: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'ForeignKeyConstraint', + 'foreignKeyConstraints', + 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, + }, + 'ForeignKeyConstraintFilter', + 'ForeignKeyConstraintOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ForeignKeyConstraint', + fieldName: 'foreignKeyConstraints', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + foreignKeyConstraints: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'ForeignKeyConstraint', + 'foreignKeyConstraints', + args.select, + { + where: args?.where, + }, + 'ForeignKeyConstraintFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ForeignKeyConstraint', + fieldName: 'foreignKeyConstraints', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + foreignKeyConstraint: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ForeignKeyConstraint', + 'foreignKeyConstraints', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ForeignKeyConstraintFilter', + 'ForeignKeyConstraintOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ForeignKeyConstraint', + fieldName: 'foreignKeyConstraint', + document, + variables, + transform: (data: { + foreignKeyConstraints?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + foreignKeyConstraint: data.foreignKeyConstraints?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createForeignKeyConstraint: { + foreignKeyConstraint: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ForeignKeyConstraint', + 'createForeignKeyConstraint', + 'foreignKeyConstraint', + args.select, + args.data, + 'CreateForeignKeyConstraintInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ForeignKeyConstraint', + fieldName: 'createForeignKeyConstraint', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ForeignKeyConstraintPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateForeignKeyConstraint: { + foreignKeyConstraint: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ForeignKeyConstraint', + 'updateForeignKeyConstraint', + 'foreignKeyConstraint', + args.select, + args.where.id, + args.data, + 'UpdateForeignKeyConstraintInput', + 'id', + 'foreignKeyConstraintPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ForeignKeyConstraint', + fieldName: 'updateForeignKeyConstraint', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteForeignKeyConstraint: { + foreignKeyConstraint: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ForeignKeyConstraint', + 'deleteForeignKeyConstraint', + 'foreignKeyConstraint', + args.where.id, + 'DeleteForeignKeyConstraintInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ForeignKeyConstraint', + fieldName: 'deleteForeignKeyConstraint', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/fullTextSearch.ts b/sdk/constructive-react/src/public/orm/models/fullTextSearch.ts new file mode 100644 index 000000000..ef372d194 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/fullTextSearch.ts @@ -0,0 +1,236 @@ +/** + * FullTextSearch 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 { + FullTextSearch, + FullTextSearchWithRelations, + FullTextSearchSelect, + FullTextSearchFilter, + FullTextSearchOrderBy, + CreateFullTextSearchInput, + UpdateFullTextSearchInput, + FullTextSearchPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class FullTextSearchModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + fullTextSearches: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'FullTextSearch', + 'fullTextSearches', + 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, + }, + 'FullTextSearchFilter', + 'FullTextSearchOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'FullTextSearch', + fieldName: 'fullTextSearches', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + fullTextSearches: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'FullTextSearch', + 'fullTextSearches', + args.select, + { + where: args?.where, + }, + 'FullTextSearchFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'FullTextSearch', + fieldName: 'fullTextSearches', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + fullTextSearch: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'FullTextSearch', + 'fullTextSearches', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'FullTextSearchFilter', + 'FullTextSearchOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'FullTextSearch', + fieldName: 'fullTextSearch', + document, + variables, + transform: (data: { + fullTextSearches?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + fullTextSearch: data.fullTextSearches?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createFullTextSearch: { + fullTextSearch: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'FullTextSearch', + 'createFullTextSearch', + 'fullTextSearch', + args.select, + args.data, + 'CreateFullTextSearchInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'FullTextSearch', + fieldName: 'createFullTextSearch', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + FullTextSearchPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateFullTextSearch: { + fullTextSearch: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'FullTextSearch', + 'updateFullTextSearch', + 'fullTextSearch', + args.select, + args.where.id, + args.data, + 'UpdateFullTextSearchInput', + 'id', + 'fullTextSearchPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'FullTextSearch', + fieldName: 'updateFullTextSearch', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteFullTextSearch: { + fullTextSearch: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'FullTextSearch', + 'deleteFullTextSearch', + 'fullTextSearch', + args.where.id, + 'DeleteFullTextSearchInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'FullTextSearch', + fieldName: 'deleteFullTextSearch', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/getAllRecord.ts b/sdk/constructive-react/src/public/orm/models/getAllRecord.ts new file mode 100644 index 000000000..53873a0f3 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/getAllRecord.ts @@ -0,0 +1,127 @@ +/** + * GetAllRecord 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 { + GetAllRecord, + GetAllRecordWithRelations, + GetAllRecordSelect, + GetAllRecordFilter, + GetAllRecordsOrderBy, + CreateGetAllRecordInput, + UpdateGetAllRecordInput, + GetAllRecordPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class GetAllRecordModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + getAll: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'GetAllRecord', + 'getAll', + 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, + }, + 'GetAllRecordFilter', + 'GetAllRecordsOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'GetAllRecord', + fieldName: 'getAll', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + getAll: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'GetAllRecord', + 'getAll', + args.select, + { + where: args?.where, + }, + 'GetAllRecordFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'GetAllRecord', + fieldName: 'getAll', + document, + variables, + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createGetAllRecord: { + getAllRecord: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'GetAllRecord', + 'createGetAllRecord', + 'getAllRecord', + args.select, + args.data, + 'CreateGetAllRecordInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'GetAllRecord', + fieldName: 'createGetAllRecord', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/hierarchyModule.ts b/sdk/constructive-react/src/public/orm/models/hierarchyModule.ts new file mode 100644 index 000000000..af2684505 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/hierarchyModule.ts @@ -0,0 +1,236 @@ +/** + * HierarchyModule 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 { + HierarchyModule, + HierarchyModuleWithRelations, + HierarchyModuleSelect, + HierarchyModuleFilter, + HierarchyModuleOrderBy, + CreateHierarchyModuleInput, + UpdateHierarchyModuleInput, + HierarchyModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class HierarchyModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + hierarchyModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'HierarchyModule', + 'hierarchyModules', + 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, + }, + 'HierarchyModuleFilter', + 'HierarchyModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'HierarchyModule', + fieldName: 'hierarchyModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + hierarchyModules: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'HierarchyModule', + 'hierarchyModules', + args.select, + { + where: args?.where, + }, + 'HierarchyModuleFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'HierarchyModule', + fieldName: 'hierarchyModules', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + hierarchyModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'HierarchyModule', + 'hierarchyModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'HierarchyModuleFilter', + 'HierarchyModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'HierarchyModule', + fieldName: 'hierarchyModule', + document, + variables, + transform: (data: { + hierarchyModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + hierarchyModule: data.hierarchyModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createHierarchyModule: { + hierarchyModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'HierarchyModule', + 'createHierarchyModule', + 'hierarchyModule', + args.select, + args.data, + 'CreateHierarchyModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'HierarchyModule', + fieldName: 'createHierarchyModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + HierarchyModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateHierarchyModule: { + hierarchyModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'HierarchyModule', + 'updateHierarchyModule', + 'hierarchyModule', + args.select, + args.where.id, + args.data, + 'UpdateHierarchyModuleInput', + 'id', + 'hierarchyModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'HierarchyModule', + fieldName: 'updateHierarchyModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteHierarchyModule: { + hierarchyModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'HierarchyModule', + 'deleteHierarchyModule', + 'hierarchyModule', + args.where.id, + 'DeleteHierarchyModuleInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'HierarchyModule', + fieldName: 'deleteHierarchyModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/index.ts b/sdk/constructive-react/src/public/orm/models/index.ts new file mode 100644 index 000000000..b76148dfe --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/index.ts @@ -0,0 +1,104 @@ +/** + * Models barrel export + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export { GetAllRecordModel } from './getAllRecord'; +export { AppPermissionModel } from './appPermission'; +export { OrgPermissionModel } from './orgPermission'; +export { ObjectModel } from './object'; +export { AppLevelRequirementModel } from './appLevelRequirement'; +export { DatabaseModel } from './database'; +export { SchemaModel } from './schema'; +export { TableModel } from './table'; +export { CheckConstraintModel } from './checkConstraint'; +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'; +export { TriggerModel } from './trigger'; +export { UniqueConstraintModel } from './uniqueConstraint'; +export { ViewModel } from './view'; +export { ViewTableModel } from './viewTable'; +export { ViewGrantModel } from './viewGrant'; +export { ViewRuleModel } from './viewRule'; +export { TableModuleModel } from './tableModule'; +export { TableTemplateModuleModel } from './tableTemplateModule'; +export { SchemaGrantModel } from './schemaGrant'; +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'; +export { AppModel } from './app'; +export { ConnectedAccountsModuleModel } from './connectedAccountsModule'; +export { CryptoAddressesModuleModel } from './cryptoAddressesModule'; +export { CryptoAuthModuleModel } from './cryptoAuthModule'; +export { DefaultIdsModuleModel } from './defaultIdsModule'; +export { DenormalizedTableFieldModel } from './denormalizedTableField'; +export { EmailsModuleModel } from './emailsModule'; +export { EncryptedSecretsModuleModel } from './encryptedSecretsModule'; +export { FieldModuleModel } from './fieldModule'; +export { InvitesModuleModel } from './invitesModule'; +export { LevelsModuleModel } from './levelsModule'; +export { LimitsModuleModel } from './limitsModule'; +export { MembershipTypesModuleModel } from './membershipTypesModule'; +export { MembershipsModuleModel } from './membershipsModule'; +export { PermissionsModuleModel } from './permissionsModule'; +export { PhoneNumbersModuleModel } from './phoneNumbersModule'; +export { ProfilesModuleModel } from './profilesModule'; +export { RlsModuleModel } from './rlsModule'; +export { SecretsModuleModel } from './secretsModule'; +export { SessionsModuleModel } from './sessionsModule'; +export { UserAuthModuleModel } from './userAuthModule'; +export { UsersModuleModel } from './usersModule'; +export { UuidModuleModel } from './uuidModule'; +export { DatabaseProvisionModuleModel } from './databaseProvisionModule'; +export { AppAdminGrantModel } from './appAdminGrant'; +export { AppOwnerGrantModel } from './appOwnerGrant'; +export { AppGrantModel } from './appGrant'; +export { OrgMembershipModel } from './orgMembership'; +export { OrgMemberModel } from './orgMember'; +export { OrgAdminGrantModel } from './orgAdminGrant'; +export { OrgOwnerGrantModel } from './orgOwnerGrant'; +export { OrgGrantModel } from './orgGrant'; +export { AppLimitModel } from './appLimit'; +export { OrgLimitModel } from './orgLimit'; +export { AppStepModel } from './appStep'; +export { AppAchievementModel } from './appAchievement'; +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 { RoleTypeModel } from './roleType'; +export { OrgPermissionDefaultModel } from './orgPermissionDefault'; +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 { NodeTypeRegistryModel } from './nodeTypeRegistry'; +export { CommitModel } from './commit'; +export { OrgMembershipDefaultModel } from './orgMembershipDefault'; +export { EmailModel } from './email'; +export { AuditLogModel } from './auditLog'; +export { AppLevelModel } from './appLevel'; +export { SqlMigrationModel } from './sqlMigration'; +export { AstMigrationModel } from './astMigration'; +export { AppMembershipModel } from './appMembership'; +export { UserModel } from './user'; +export { HierarchyModuleModel } from './hierarchyModule'; diff --git a/sdk/constructive-react/src/public/orm/models/indexModel.ts b/sdk/constructive-react/src/public/orm/models/indexModel.ts new file mode 100644 index 000000000..4db3f2083 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/indexModel.ts @@ -0,0 +1,236 @@ +/** + * Index 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 { + Index, + IndexWithRelations, + IndexSelect, + IndexFilter, + IndexOrderBy, + CreateIndexInput, + UpdateIndexInput, + IndexPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class IndexModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + indices: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Index', + 'indices', + 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, + }, + 'IndexFilter', + 'IndexOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Index', + fieldName: 'indices', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + indices: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'Index', + 'indices', + args.select, + { + where: args?.where, + }, + 'IndexFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Index', + fieldName: 'indices', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + index: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'Index', + 'indices', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'IndexFilter', + 'IndexOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Index', + fieldName: 'index', + document, + variables, + transform: (data: { + indices?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + index: data.indices?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createIndex: { + index: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Index', + 'createIndex', + 'index', + args.select, + args.data, + 'CreateIndexInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Index', + fieldName: 'createIndex', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + IndexPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateIndex: { + index: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'Index', + 'updateIndex', + 'index', + args.select, + args.where.id, + args.data, + 'UpdateIndexInput', + 'id', + 'indexPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Index', + fieldName: 'updateIndex', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteIndex: { + index: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'Index', + 'deleteIndex', + 'index', + args.where.id, + 'DeleteIndexInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Index', + fieldName: 'deleteIndex', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/invite.ts b/sdk/constructive-react/src/public/orm/models/invite.ts new file mode 100644 index 000000000..ffacfa690 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/invite.ts @@ -0,0 +1,236 @@ +/** + * Invite 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 { + Invite, + InviteWithRelations, + InviteSelect, + InviteFilter, + InviteOrderBy, + CreateInviteInput, + UpdateInviteInput, + InvitePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class InviteModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + invites: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Invite', + 'invites', + 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, + }, + 'InviteFilter', + 'InviteOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Invite', + fieldName: 'invites', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + invites: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'Invite', + 'invites', + args.select, + { + where: args?.where, + }, + 'InviteFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Invite', + fieldName: 'invites', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + invite: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'Invite', + 'invites', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'InviteFilter', + 'InviteOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Invite', + fieldName: 'invite', + document, + variables, + transform: (data: { + invites?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + invite: data.invites?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createInvite: { + invite: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Invite', + 'createInvite', + 'invite', + args.select, + args.data, + 'CreateInviteInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Invite', + fieldName: 'createInvite', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + InvitePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateInvite: { + invite: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'Invite', + 'updateInvite', + 'invite', + args.select, + args.where.id, + args.data, + 'UpdateInviteInput', + 'id', + 'invitePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Invite', + fieldName: 'updateInvite', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteInvite: { + invite: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'Invite', + 'deleteInvite', + 'invite', + args.where.id, + 'DeleteInviteInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Invite', + fieldName: 'deleteInvite', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/invitesModule.ts b/sdk/constructive-react/src/public/orm/models/invitesModule.ts new file mode 100644 index 000000000..8a25495cc --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/invitesModule.ts @@ -0,0 +1,236 @@ +/** + * InvitesModule 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 { + InvitesModule, + InvitesModuleWithRelations, + InvitesModuleSelect, + InvitesModuleFilter, + InvitesModuleOrderBy, + CreateInvitesModuleInput, + UpdateInvitesModuleInput, + InvitesModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class InvitesModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + invitesModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'InvitesModule', + 'invitesModules', + 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, + }, + 'InvitesModuleFilter', + 'InvitesModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InvitesModule', + fieldName: 'invitesModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + invitesModules: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'InvitesModule', + 'invitesModules', + args.select, + { + where: args?.where, + }, + 'InvitesModuleFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InvitesModule', + fieldName: 'invitesModules', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + invitesModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'InvitesModule', + 'invitesModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'InvitesModuleFilter', + 'InvitesModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InvitesModule', + fieldName: 'invitesModule', + document, + variables, + transform: (data: { + invitesModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + invitesModule: data.invitesModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createInvitesModule: { + invitesModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'InvitesModule', + 'createInvitesModule', + 'invitesModule', + args.select, + args.data, + 'CreateInvitesModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InvitesModule', + fieldName: 'createInvitesModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + InvitesModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateInvitesModule: { + invitesModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'InvitesModule', + 'updateInvitesModule', + 'invitesModule', + args.select, + args.where.id, + args.data, + 'UpdateInvitesModuleInput', + 'id', + 'invitesModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InvitesModule', + fieldName: 'updateInvitesModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteInvitesModule: { + invitesModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'InvitesModule', + 'deleteInvitesModule', + 'invitesModule', + args.where.id, + 'DeleteInvitesModuleInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InvitesModule', + fieldName: 'deleteInvitesModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/levelsModule.ts b/sdk/constructive-react/src/public/orm/models/levelsModule.ts new file mode 100644 index 000000000..4c0cedf16 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/levelsModule.ts @@ -0,0 +1,236 @@ +/** + * LevelsModule 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 { + LevelsModule, + LevelsModuleWithRelations, + LevelsModuleSelect, + LevelsModuleFilter, + LevelsModuleOrderBy, + CreateLevelsModuleInput, + UpdateLevelsModuleInput, + LevelsModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class LevelsModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + levelsModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'LevelsModule', + 'levelsModules', + 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, + }, + 'LevelsModuleFilter', + 'LevelsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'LevelsModule', + fieldName: 'levelsModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + levelsModules: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'LevelsModule', + 'levelsModules', + args.select, + { + where: args?.where, + }, + 'LevelsModuleFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'LevelsModule', + fieldName: 'levelsModules', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + levelsModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'LevelsModule', + 'levelsModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'LevelsModuleFilter', + 'LevelsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'LevelsModule', + fieldName: 'levelsModule', + document, + variables, + transform: (data: { + levelsModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + levelsModule: data.levelsModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createLevelsModule: { + levelsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'LevelsModule', + 'createLevelsModule', + 'levelsModule', + args.select, + args.data, + 'CreateLevelsModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'LevelsModule', + fieldName: 'createLevelsModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + LevelsModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateLevelsModule: { + levelsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'LevelsModule', + 'updateLevelsModule', + 'levelsModule', + args.select, + args.where.id, + args.data, + 'UpdateLevelsModuleInput', + 'id', + 'levelsModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'LevelsModule', + fieldName: 'updateLevelsModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteLevelsModule: { + levelsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'LevelsModule', + 'deleteLevelsModule', + 'levelsModule', + args.where.id, + 'DeleteLevelsModuleInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'LevelsModule', + fieldName: 'deleteLevelsModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/limitFunction.ts b/sdk/constructive-react/src/public/orm/models/limitFunction.ts new file mode 100644 index 000000000..9df58af2a --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/limitFunction.ts @@ -0,0 +1,236 @@ +/** + * 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/limitsModule.ts b/sdk/constructive-react/src/public/orm/models/limitsModule.ts new file mode 100644 index 000000000..a6976e0d3 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/limitsModule.ts @@ -0,0 +1,236 @@ +/** + * LimitsModule 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 { + LimitsModule, + LimitsModuleWithRelations, + LimitsModuleSelect, + LimitsModuleFilter, + LimitsModuleOrderBy, + CreateLimitsModuleInput, + UpdateLimitsModuleInput, + LimitsModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class LimitsModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + limitsModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'LimitsModule', + 'limitsModules', + 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, + }, + 'LimitsModuleFilter', + 'LimitsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'LimitsModule', + fieldName: 'limitsModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + limitsModules: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'LimitsModule', + 'limitsModules', + args.select, + { + where: args?.where, + }, + 'LimitsModuleFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'LimitsModule', + fieldName: 'limitsModules', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + limitsModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'LimitsModule', + 'limitsModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'LimitsModuleFilter', + 'LimitsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'LimitsModule', + fieldName: 'limitsModule', + document, + variables, + transform: (data: { + limitsModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + limitsModule: data.limitsModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createLimitsModule: { + limitsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'LimitsModule', + 'createLimitsModule', + 'limitsModule', + args.select, + args.data, + 'CreateLimitsModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'LimitsModule', + fieldName: 'createLimitsModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + LimitsModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateLimitsModule: { + limitsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'LimitsModule', + 'updateLimitsModule', + 'limitsModule', + args.select, + args.where.id, + args.data, + 'UpdateLimitsModuleInput', + 'id', + 'limitsModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'LimitsModule', + fieldName: 'updateLimitsModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteLimitsModule: { + limitsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'LimitsModule', + 'deleteLimitsModule', + 'limitsModule', + args.where.id, + 'DeleteLimitsModuleInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'LimitsModule', + fieldName: 'deleteLimitsModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/membershipType.ts b/sdk/constructive-react/src/public/orm/models/membershipType.ts new file mode 100644 index 000000000..c8f385b4e --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/membershipType.ts @@ -0,0 +1,236 @@ +/** + * MembershipType 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 { + MembershipType, + MembershipTypeWithRelations, + MembershipTypeSelect, + MembershipTypeFilter, + MembershipTypeOrderBy, + CreateMembershipTypeInput, + UpdateMembershipTypeInput, + MembershipTypePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class MembershipTypeModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + membershipTypes: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'MembershipType', + 'membershipTypes', + 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, + }, + 'MembershipTypeFilter', + 'MembershipTypeOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'MembershipType', + fieldName: 'membershipTypes', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + membershipTypes: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'MembershipType', + 'membershipTypes', + args.select, + { + where: args?.where, + }, + 'MembershipTypeFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'MembershipType', + fieldName: 'membershipTypes', + document, + variables, + }); + } + findOne( + args: { + id: number; + select: S; + } & StrictSelect + ): QueryBuilder<{ + membershipType: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'MembershipType', + 'membershipTypes', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'MembershipTypeFilter', + 'MembershipTypeOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'MembershipType', + fieldName: 'membershipType', + document, + variables, + transform: (data: { + membershipTypes?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + membershipType: data.membershipTypes?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createMembershipType: { + membershipType: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'MembershipType', + 'createMembershipType', + 'membershipType', + args.select, + args.data, + 'CreateMembershipTypeInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'MembershipType', + fieldName: 'createMembershipType', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: number; + }, + MembershipTypePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateMembershipType: { + membershipType: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'MembershipType', + 'updateMembershipType', + 'membershipType', + args.select, + args.where.id, + args.data, + 'UpdateMembershipTypeInput', + 'id', + 'membershipTypePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'MembershipType', + fieldName: 'updateMembershipType', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: number; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteMembershipType: { + membershipType: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'MembershipType', + 'deleteMembershipType', + 'membershipType', + args.where.id, + 'DeleteMembershipTypeInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'MembershipType', + fieldName: 'deleteMembershipType', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/membershipTypesModule.ts b/sdk/constructive-react/src/public/orm/models/membershipTypesModule.ts new file mode 100644 index 000000000..35e412956 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/membershipTypesModule.ts @@ -0,0 +1,238 @@ +/** + * MembershipTypesModule 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 { + MembershipTypesModule, + MembershipTypesModuleWithRelations, + MembershipTypesModuleSelect, + MembershipTypesModuleFilter, + MembershipTypesModuleOrderBy, + CreateMembershipTypesModuleInput, + UpdateMembershipTypesModuleInput, + MembershipTypesModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class MembershipTypesModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + membershipTypesModules: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'MembershipTypesModule', + 'membershipTypesModules', + 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, + }, + 'MembershipTypesModuleFilter', + 'MembershipTypesModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'MembershipTypesModule', + fieldName: 'membershipTypesModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + membershipTypesModules: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'MembershipTypesModule', + 'membershipTypesModules', + args.select, + { + where: args?.where, + }, + 'MembershipTypesModuleFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'MembershipTypesModule', + fieldName: 'membershipTypesModules', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + membershipTypesModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'MembershipTypesModule', + 'membershipTypesModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'MembershipTypesModuleFilter', + 'MembershipTypesModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'MembershipTypesModule', + fieldName: 'membershipTypesModule', + document, + variables, + transform: (data: { + membershipTypesModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + membershipTypesModule: data.membershipTypesModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createMembershipTypesModule: { + membershipTypesModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'MembershipTypesModule', + 'createMembershipTypesModule', + 'membershipTypesModule', + args.select, + args.data, + 'CreateMembershipTypesModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'MembershipTypesModule', + fieldName: 'createMembershipTypesModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + MembershipTypesModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateMembershipTypesModule: { + membershipTypesModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'MembershipTypesModule', + 'updateMembershipTypesModule', + 'membershipTypesModule', + args.select, + args.where.id, + args.data, + 'UpdateMembershipTypesModuleInput', + 'id', + 'membershipTypesModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'MembershipTypesModule', + fieldName: 'updateMembershipTypesModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteMembershipTypesModule: { + membershipTypesModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'MembershipTypesModule', + 'deleteMembershipTypesModule', + 'membershipTypesModule', + args.where.id, + 'DeleteMembershipTypesModuleInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'MembershipTypesModule', + fieldName: 'deleteMembershipTypesModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/membershipsModule.ts b/sdk/constructive-react/src/public/orm/models/membershipsModule.ts new file mode 100644 index 000000000..106924932 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/membershipsModule.ts @@ -0,0 +1,236 @@ +/** + * MembershipsModule 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 { + MembershipsModule, + MembershipsModuleWithRelations, + MembershipsModuleSelect, + MembershipsModuleFilter, + MembershipsModuleOrderBy, + CreateMembershipsModuleInput, + UpdateMembershipsModuleInput, + MembershipsModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class MembershipsModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + membershipsModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'MembershipsModule', + 'membershipsModules', + 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, + }, + 'MembershipsModuleFilter', + 'MembershipsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'MembershipsModule', + fieldName: 'membershipsModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + membershipsModules: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'MembershipsModule', + 'membershipsModules', + args.select, + { + where: args?.where, + }, + 'MembershipsModuleFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'MembershipsModule', + fieldName: 'membershipsModules', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + membershipsModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'MembershipsModule', + 'membershipsModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'MembershipsModuleFilter', + 'MembershipsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'MembershipsModule', + fieldName: 'membershipsModule', + document, + variables, + transform: (data: { + membershipsModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + membershipsModule: data.membershipsModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createMembershipsModule: { + membershipsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'MembershipsModule', + 'createMembershipsModule', + 'membershipsModule', + args.select, + args.data, + 'CreateMembershipsModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'MembershipsModule', + fieldName: 'createMembershipsModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + MembershipsModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateMembershipsModule: { + membershipsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'MembershipsModule', + 'updateMembershipsModule', + 'membershipsModule', + args.select, + args.where.id, + args.data, + 'UpdateMembershipsModuleInput', + 'id', + 'membershipsModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'MembershipsModule', + fieldName: 'updateMembershipsModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteMembershipsModule: { + membershipsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'MembershipsModule', + 'deleteMembershipsModule', + 'membershipsModule', + args.where.id, + 'DeleteMembershipsModuleInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'MembershipsModule', + fieldName: 'deleteMembershipsModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/nodeTypeRegistry.ts b/sdk/constructive-react/src/public/orm/models/nodeTypeRegistry.ts new file mode 100644 index 000000000..021587a23 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/nodeTypeRegistry.ts @@ -0,0 +1,236 @@ +/** + * NodeTypeRegistry 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 { + NodeTypeRegistry, + NodeTypeRegistryWithRelations, + NodeTypeRegistrySelect, + NodeTypeRegistryFilter, + NodeTypeRegistryOrderBy, + CreateNodeTypeRegistryInput, + UpdateNodeTypeRegistryInput, + NodeTypeRegistryPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class NodeTypeRegistryModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + nodeTypeRegistries: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'NodeTypeRegistry', + 'nodeTypeRegistries', + 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, + }, + 'NodeTypeRegistryFilter', + 'NodeTypeRegistryOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'NodeTypeRegistry', + fieldName: 'nodeTypeRegistries', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + nodeTypeRegistries: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'NodeTypeRegistry', + 'nodeTypeRegistries', + args.select, + { + where: args?.where, + }, + 'NodeTypeRegistryFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'NodeTypeRegistry', + fieldName: 'nodeTypeRegistries', + document, + variables, + }); + } + findOne( + args: { + name: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + nodeTypeRegistry: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'NodeTypeRegistry', + 'nodeTypeRegistries', + args.select, + { + where: { + name: { + equalTo: args.name, + }, + }, + first: 1, + }, + 'NodeTypeRegistryFilter', + 'NodeTypeRegistryOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'NodeTypeRegistry', + fieldName: 'nodeTypeRegistry', + document, + variables, + transform: (data: { + nodeTypeRegistries?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + nodeTypeRegistry: data.nodeTypeRegistries?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createNodeTypeRegistry: { + nodeTypeRegistry: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'NodeTypeRegistry', + 'createNodeTypeRegistry', + 'nodeTypeRegistry', + args.select, + args.data, + 'CreateNodeTypeRegistryInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'NodeTypeRegistry', + fieldName: 'createNodeTypeRegistry', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + name: string; + }, + NodeTypeRegistryPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateNodeTypeRegistry: { + nodeTypeRegistry: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'NodeTypeRegistry', + 'updateNodeTypeRegistry', + 'nodeTypeRegistry', + args.select, + args.where.name, + args.data, + 'UpdateNodeTypeRegistryInput', + 'name', + 'nodeTypeRegistryPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'NodeTypeRegistry', + fieldName: 'updateNodeTypeRegistry', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + name: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteNodeTypeRegistry: { + nodeTypeRegistry: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'NodeTypeRegistry', + 'deleteNodeTypeRegistry', + 'nodeTypeRegistry', + args.where.name, + 'DeleteNodeTypeRegistryInput', + 'name', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'NodeTypeRegistry', + fieldName: 'deleteNodeTypeRegistry', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/object.ts b/sdk/constructive-react/src/public/orm/models/object.ts new file mode 100644 index 000000000..72f7b0da4 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/object.ts @@ -0,0 +1,222 @@ +/** + * Object 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 { + Object, + ObjectWithRelations, + ObjectSelect, + ObjectFilter, + ObjectOrderBy, + CreateObjectInput, + UpdateObjectInput, + ObjectPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ObjectModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + objects: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Object', + 'objects', + 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, + }, + 'ObjectFilter', + 'ObjectOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Object', + fieldName: 'objects', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + objects: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'Object', + 'objects', + args.select, + { + where: args?.where, + }, + 'ObjectFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Object', + fieldName: 'objects', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + getNodeAtPath: InferSelectResult | null; + }> { + const { document, variables } = buildFindOneDocument( + 'Object', + 'getNodeAtPath', + args.id, + args.select, + 'id', + 'UUID!', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Object', + fieldName: 'getNodeAtPath', + document, + variables, + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createObject: { + object: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Object', + 'createObject', + 'object', + args.select, + args.data, + 'CreateObjectInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Object', + fieldName: 'createObject', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ObjectPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateObject: { + object: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'Object', + 'updateObject', + 'object', + args.select, + args.where.id, + args.data, + 'UpdateObjectInput', + 'id', + 'objectPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Object', + fieldName: 'updateObject', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteObject: { + object: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'Object', + 'deleteObject', + 'object', + args.where.id, + 'DeleteObjectInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Object', + fieldName: 'deleteObject', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/orgAdminGrant.ts b/sdk/constructive-react/src/public/orm/models/orgAdminGrant.ts new file mode 100644 index 000000000..ad34ec08c --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/orgAdminGrant.ts @@ -0,0 +1,236 @@ +/** + * OrgAdminGrant 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 { + OrgAdminGrant, + OrgAdminGrantWithRelations, + OrgAdminGrantSelect, + OrgAdminGrantFilter, + OrgAdminGrantOrderBy, + CreateOrgAdminGrantInput, + UpdateOrgAdminGrantInput, + OrgAdminGrantPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgAdminGrantModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgAdminGrants: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgAdminGrant', + 'orgAdminGrants', + 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, + }, + 'OrgAdminGrantFilter', + 'OrgAdminGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgAdminGrant', + fieldName: 'orgAdminGrants', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgAdminGrants: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgAdminGrant', + 'orgAdminGrants', + args.select, + { + where: args?.where, + }, + 'OrgAdminGrantFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgAdminGrant', + fieldName: 'orgAdminGrants', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgAdminGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgAdminGrant', + 'orgAdminGrants', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgAdminGrantFilter', + 'OrgAdminGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgAdminGrant', + fieldName: 'orgAdminGrant', + document, + variables, + transform: (data: { + orgAdminGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgAdminGrant: data.orgAdminGrants?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgAdminGrant: { + orgAdminGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgAdminGrant', + 'createOrgAdminGrant', + 'orgAdminGrant', + args.select, + args.data, + 'CreateOrgAdminGrantInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgAdminGrant', + fieldName: 'createOrgAdminGrant', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgAdminGrantPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgAdminGrant: { + orgAdminGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgAdminGrant', + 'updateOrgAdminGrant', + 'orgAdminGrant', + args.select, + args.where.id, + args.data, + 'UpdateOrgAdminGrantInput', + 'id', + 'orgAdminGrantPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgAdminGrant', + fieldName: 'updateOrgAdminGrant', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgAdminGrant: { + orgAdminGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgAdminGrant', + 'deleteOrgAdminGrant', + 'orgAdminGrant', + args.where.id, + 'DeleteOrgAdminGrantInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgAdminGrant', + fieldName: 'deleteOrgAdminGrant', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/orgClaimedInvite.ts b/sdk/constructive-react/src/public/orm/models/orgClaimedInvite.ts new file mode 100644 index 000000000..7b1a668ce --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/orgClaimedInvite.ts @@ -0,0 +1,236 @@ +/** + * OrgClaimedInvite 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 { + OrgClaimedInvite, + OrgClaimedInviteWithRelations, + OrgClaimedInviteSelect, + OrgClaimedInviteFilter, + OrgClaimedInviteOrderBy, + CreateOrgClaimedInviteInput, + UpdateOrgClaimedInviteInput, + OrgClaimedInvitePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgClaimedInviteModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgClaimedInvites: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgClaimedInvite', + 'orgClaimedInvites', + 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, + }, + 'OrgClaimedInviteFilter', + 'OrgClaimedInviteOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgClaimedInvite', + fieldName: 'orgClaimedInvites', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgClaimedInvites: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgClaimedInvite', + 'orgClaimedInvites', + args.select, + { + where: args?.where, + }, + 'OrgClaimedInviteFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgClaimedInvite', + fieldName: 'orgClaimedInvites', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgClaimedInvite: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgClaimedInvite', + 'orgClaimedInvites', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgClaimedInviteFilter', + 'OrgClaimedInviteOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgClaimedInvite', + fieldName: 'orgClaimedInvite', + document, + variables, + transform: (data: { + orgClaimedInvites?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgClaimedInvite: data.orgClaimedInvites?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgClaimedInvite: { + orgClaimedInvite: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgClaimedInvite', + 'createOrgClaimedInvite', + 'orgClaimedInvite', + args.select, + args.data, + 'CreateOrgClaimedInviteInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgClaimedInvite', + fieldName: 'createOrgClaimedInvite', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgClaimedInvitePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgClaimedInvite: { + orgClaimedInvite: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgClaimedInvite', + 'updateOrgClaimedInvite', + 'orgClaimedInvite', + args.select, + args.where.id, + args.data, + 'UpdateOrgClaimedInviteInput', + 'id', + 'orgClaimedInvitePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgClaimedInvite', + fieldName: 'updateOrgClaimedInvite', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgClaimedInvite: { + orgClaimedInvite: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgClaimedInvite', + 'deleteOrgClaimedInvite', + 'orgClaimedInvite', + args.where.id, + 'DeleteOrgClaimedInviteInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgClaimedInvite', + fieldName: 'deleteOrgClaimedInvite', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/orgGrant.ts b/sdk/constructive-react/src/public/orm/models/orgGrant.ts new file mode 100644 index 000000000..51ffe25e0 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/orgGrant.ts @@ -0,0 +1,236 @@ +/** + * OrgGrant 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 { + OrgGrant, + OrgGrantWithRelations, + OrgGrantSelect, + OrgGrantFilter, + OrgGrantOrderBy, + CreateOrgGrantInput, + UpdateOrgGrantInput, + OrgGrantPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgGrantModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgGrants: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgGrant', + 'orgGrants', + 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, + }, + 'OrgGrantFilter', + 'OrgGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgGrant', + fieldName: 'orgGrants', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgGrants: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgGrant', + 'orgGrants', + args.select, + { + where: args?.where, + }, + 'OrgGrantFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgGrant', + fieldName: 'orgGrants', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgGrant', + 'orgGrants', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgGrantFilter', + 'OrgGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgGrant', + fieldName: 'orgGrant', + document, + variables, + transform: (data: { + orgGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgGrant: data.orgGrants?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgGrant: { + orgGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgGrant', + 'createOrgGrant', + 'orgGrant', + args.select, + args.data, + 'CreateOrgGrantInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgGrant', + fieldName: 'createOrgGrant', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgGrantPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgGrant: { + orgGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgGrant', + 'updateOrgGrant', + 'orgGrant', + args.select, + args.where.id, + args.data, + 'UpdateOrgGrantInput', + 'id', + 'orgGrantPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgGrant', + fieldName: 'updateOrgGrant', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgGrant: { + orgGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgGrant', + 'deleteOrgGrant', + 'orgGrant', + args.where.id, + 'DeleteOrgGrantInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgGrant', + fieldName: 'deleteOrgGrant', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/orgInvite.ts b/sdk/constructive-react/src/public/orm/models/orgInvite.ts new file mode 100644 index 000000000..351f866ab --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/orgInvite.ts @@ -0,0 +1,236 @@ +/** + * OrgInvite 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 { + OrgInvite, + OrgInviteWithRelations, + OrgInviteSelect, + OrgInviteFilter, + OrgInviteOrderBy, + CreateOrgInviteInput, + UpdateOrgInviteInput, + OrgInvitePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgInviteModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgInvites: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgInvite', + 'orgInvites', + 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, + }, + 'OrgInviteFilter', + 'OrgInviteOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgInvite', + fieldName: 'orgInvites', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgInvites: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgInvite', + 'orgInvites', + args.select, + { + where: args?.where, + }, + 'OrgInviteFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgInvite', + fieldName: 'orgInvites', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgInvite: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgInvite', + 'orgInvites', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgInviteFilter', + 'OrgInviteOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgInvite', + fieldName: 'orgInvite', + document, + variables, + transform: (data: { + orgInvites?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgInvite: data.orgInvites?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgInvite: { + orgInvite: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgInvite', + 'createOrgInvite', + 'orgInvite', + args.select, + args.data, + 'CreateOrgInviteInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgInvite', + fieldName: 'createOrgInvite', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgInvitePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgInvite: { + orgInvite: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgInvite', + 'updateOrgInvite', + 'orgInvite', + args.select, + args.where.id, + args.data, + 'UpdateOrgInviteInput', + 'id', + 'orgInvitePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgInvite', + fieldName: 'updateOrgInvite', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgInvite: { + orgInvite: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgInvite', + 'deleteOrgInvite', + 'orgInvite', + args.where.id, + 'DeleteOrgInviteInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgInvite', + fieldName: 'deleteOrgInvite', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/orgLimit.ts b/sdk/constructive-react/src/public/orm/models/orgLimit.ts new file mode 100644 index 000000000..787dd2e18 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/orgLimit.ts @@ -0,0 +1,236 @@ +/** + * OrgLimit 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 { + OrgLimit, + OrgLimitWithRelations, + OrgLimitSelect, + OrgLimitFilter, + OrgLimitOrderBy, + CreateOrgLimitInput, + UpdateOrgLimitInput, + OrgLimitPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgLimitModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgLimits: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgLimit', + 'orgLimits', + 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, + }, + 'OrgLimitFilter', + 'OrgLimitOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgLimit', + fieldName: 'orgLimits', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgLimits: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgLimit', + 'orgLimits', + args.select, + { + where: args?.where, + }, + 'OrgLimitFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgLimit', + fieldName: 'orgLimits', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgLimit: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgLimit', + 'orgLimits', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgLimitFilter', + 'OrgLimitOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgLimit', + fieldName: 'orgLimit', + document, + variables, + transform: (data: { + orgLimits?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgLimit: data.orgLimits?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgLimit: { + orgLimit: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgLimit', + 'createOrgLimit', + 'orgLimit', + args.select, + args.data, + 'CreateOrgLimitInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgLimit', + fieldName: 'createOrgLimit', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgLimitPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgLimit: { + orgLimit: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgLimit', + 'updateOrgLimit', + 'orgLimit', + args.select, + args.where.id, + args.data, + 'UpdateOrgLimitInput', + 'id', + 'orgLimitPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgLimit', + fieldName: 'updateOrgLimit', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgLimit: { + orgLimit: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgLimit', + 'deleteOrgLimit', + 'orgLimit', + args.where.id, + 'DeleteOrgLimitInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgLimit', + fieldName: 'deleteOrgLimit', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/orgLimitDefault.ts b/sdk/constructive-react/src/public/orm/models/orgLimitDefault.ts new file mode 100644 index 000000000..b66e270b4 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/orgLimitDefault.ts @@ -0,0 +1,236 @@ +/** + * OrgLimitDefault 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 { + OrgLimitDefault, + OrgLimitDefaultWithRelations, + OrgLimitDefaultSelect, + OrgLimitDefaultFilter, + OrgLimitDefaultOrderBy, + CreateOrgLimitDefaultInput, + UpdateOrgLimitDefaultInput, + OrgLimitDefaultPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgLimitDefaultModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgLimitDefaults: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgLimitDefault', + 'orgLimitDefaults', + 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, + }, + 'OrgLimitDefaultFilter', + 'OrgLimitDefaultOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgLimitDefault', + fieldName: 'orgLimitDefaults', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgLimitDefaults: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgLimitDefault', + 'orgLimitDefaults', + args.select, + { + where: args?.where, + }, + 'OrgLimitDefaultFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgLimitDefault', + fieldName: 'orgLimitDefaults', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgLimitDefault: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgLimitDefault', + 'orgLimitDefaults', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgLimitDefaultFilter', + 'OrgLimitDefaultOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgLimitDefault', + fieldName: 'orgLimitDefault', + document, + variables, + transform: (data: { + orgLimitDefaults?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgLimitDefault: data.orgLimitDefaults?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgLimitDefault: { + orgLimitDefault: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgLimitDefault', + 'createOrgLimitDefault', + 'orgLimitDefault', + args.select, + args.data, + 'CreateOrgLimitDefaultInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgLimitDefault', + fieldName: 'createOrgLimitDefault', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgLimitDefaultPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgLimitDefault: { + orgLimitDefault: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgLimitDefault', + 'updateOrgLimitDefault', + 'orgLimitDefault', + args.select, + args.where.id, + args.data, + 'UpdateOrgLimitDefaultInput', + 'id', + 'orgLimitDefaultPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgLimitDefault', + fieldName: 'updateOrgLimitDefault', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgLimitDefault: { + orgLimitDefault: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgLimitDefault', + 'deleteOrgLimitDefault', + 'orgLimitDefault', + args.where.id, + 'DeleteOrgLimitDefaultInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgLimitDefault', + fieldName: 'deleteOrgLimitDefault', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/orgMember.ts b/sdk/constructive-react/src/public/orm/models/orgMember.ts new file mode 100644 index 000000000..9045b10e0 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/orgMember.ts @@ -0,0 +1,236 @@ +/** + * OrgMember 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 { + OrgMember, + OrgMemberWithRelations, + OrgMemberSelect, + OrgMemberFilter, + OrgMemberOrderBy, + CreateOrgMemberInput, + UpdateOrgMemberInput, + OrgMemberPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgMemberModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgMembers: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgMember', + 'orgMembers', + 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, + }, + 'OrgMemberFilter', + 'OrgMemberOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgMember', + fieldName: 'orgMembers', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgMembers: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgMember', + 'orgMembers', + args.select, + { + where: args?.where, + }, + 'OrgMemberFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgMember', + fieldName: 'orgMembers', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgMember: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgMember', + 'orgMembers', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgMemberFilter', + 'OrgMemberOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgMember', + fieldName: 'orgMember', + document, + variables, + transform: (data: { + orgMembers?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgMember: data.orgMembers?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgMember: { + orgMember: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgMember', + 'createOrgMember', + 'orgMember', + args.select, + args.data, + 'CreateOrgMemberInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgMember', + fieldName: 'createOrgMember', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgMemberPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgMember: { + orgMember: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgMember', + 'updateOrgMember', + 'orgMember', + args.select, + args.where.id, + args.data, + 'UpdateOrgMemberInput', + 'id', + 'orgMemberPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgMember', + fieldName: 'updateOrgMember', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgMember: { + orgMember: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgMember', + 'deleteOrgMember', + 'orgMember', + args.where.id, + 'DeleteOrgMemberInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgMember', + fieldName: 'deleteOrgMember', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/orgMembership.ts b/sdk/constructive-react/src/public/orm/models/orgMembership.ts new file mode 100644 index 000000000..7c5133b07 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/orgMembership.ts @@ -0,0 +1,236 @@ +/** + * OrgMembership 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 { + OrgMembership, + OrgMembershipWithRelations, + OrgMembershipSelect, + OrgMembershipFilter, + OrgMembershipOrderBy, + CreateOrgMembershipInput, + UpdateOrgMembershipInput, + OrgMembershipPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgMembershipModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgMemberships: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgMembership', + 'orgMemberships', + 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, + }, + 'OrgMembershipFilter', + 'OrgMembershipOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgMembership', + fieldName: 'orgMemberships', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgMemberships: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgMembership', + 'orgMemberships', + args.select, + { + where: args?.where, + }, + 'OrgMembershipFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgMembership', + fieldName: 'orgMemberships', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgMembership: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgMembership', + 'orgMemberships', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgMembershipFilter', + 'OrgMembershipOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgMembership', + fieldName: 'orgMembership', + document, + variables, + transform: (data: { + orgMemberships?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgMembership: data.orgMemberships?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgMembership: { + orgMembership: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgMembership', + 'createOrgMembership', + 'orgMembership', + args.select, + args.data, + 'CreateOrgMembershipInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgMembership', + fieldName: 'createOrgMembership', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgMembershipPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgMembership: { + orgMembership: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgMembership', + 'updateOrgMembership', + 'orgMembership', + args.select, + args.where.id, + args.data, + 'UpdateOrgMembershipInput', + 'id', + 'orgMembershipPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgMembership', + fieldName: 'updateOrgMembership', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgMembership: { + orgMembership: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgMembership', + 'deleteOrgMembership', + 'orgMembership', + args.where.id, + 'DeleteOrgMembershipInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgMembership', + fieldName: 'deleteOrgMembership', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/orgMembershipDefault.ts b/sdk/constructive-react/src/public/orm/models/orgMembershipDefault.ts new file mode 100644 index 000000000..c4863e35b --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/orgMembershipDefault.ts @@ -0,0 +1,238 @@ +/** + * OrgMembershipDefault 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 { + OrgMembershipDefault, + OrgMembershipDefaultWithRelations, + OrgMembershipDefaultSelect, + OrgMembershipDefaultFilter, + OrgMembershipDefaultOrderBy, + CreateOrgMembershipDefaultInput, + UpdateOrgMembershipDefaultInput, + OrgMembershipDefaultPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgMembershipDefaultModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgMembershipDefaults: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgMembershipDefault', + 'orgMembershipDefaults', + 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, + }, + 'OrgMembershipDefaultFilter', + 'OrgMembershipDefaultOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgMembershipDefault', + fieldName: 'orgMembershipDefaults', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgMembershipDefaults: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgMembershipDefault', + 'orgMembershipDefaults', + args.select, + { + where: args?.where, + }, + 'OrgMembershipDefaultFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgMembershipDefault', + fieldName: 'orgMembershipDefaults', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgMembershipDefault: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgMembershipDefault', + 'orgMembershipDefaults', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgMembershipDefaultFilter', + 'OrgMembershipDefaultOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgMembershipDefault', + fieldName: 'orgMembershipDefault', + document, + variables, + transform: (data: { + orgMembershipDefaults?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgMembershipDefault: data.orgMembershipDefaults?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgMembershipDefault: { + orgMembershipDefault: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgMembershipDefault', + 'createOrgMembershipDefault', + 'orgMembershipDefault', + args.select, + args.data, + 'CreateOrgMembershipDefaultInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgMembershipDefault', + fieldName: 'createOrgMembershipDefault', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgMembershipDefaultPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgMembershipDefault: { + orgMembershipDefault: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgMembershipDefault', + 'updateOrgMembershipDefault', + 'orgMembershipDefault', + args.select, + args.where.id, + args.data, + 'UpdateOrgMembershipDefaultInput', + 'id', + 'orgMembershipDefaultPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgMembershipDefault', + fieldName: 'updateOrgMembershipDefault', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgMembershipDefault: { + orgMembershipDefault: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgMembershipDefault', + 'deleteOrgMembershipDefault', + 'orgMembershipDefault', + args.where.id, + 'DeleteOrgMembershipDefaultInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgMembershipDefault', + fieldName: 'deleteOrgMembershipDefault', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/orgOwnerGrant.ts b/sdk/constructive-react/src/public/orm/models/orgOwnerGrant.ts new file mode 100644 index 000000000..57596aecd --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/orgOwnerGrant.ts @@ -0,0 +1,236 @@ +/** + * OrgOwnerGrant 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 { + OrgOwnerGrant, + OrgOwnerGrantWithRelations, + OrgOwnerGrantSelect, + OrgOwnerGrantFilter, + OrgOwnerGrantOrderBy, + CreateOrgOwnerGrantInput, + UpdateOrgOwnerGrantInput, + OrgOwnerGrantPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgOwnerGrantModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgOwnerGrants: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgOwnerGrant', + 'orgOwnerGrants', + 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, + }, + 'OrgOwnerGrantFilter', + 'OrgOwnerGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgOwnerGrant', + fieldName: 'orgOwnerGrants', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgOwnerGrants: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgOwnerGrant', + 'orgOwnerGrants', + args.select, + { + where: args?.where, + }, + 'OrgOwnerGrantFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgOwnerGrant', + fieldName: 'orgOwnerGrants', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgOwnerGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgOwnerGrant', + 'orgOwnerGrants', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgOwnerGrantFilter', + 'OrgOwnerGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgOwnerGrant', + fieldName: 'orgOwnerGrant', + document, + variables, + transform: (data: { + orgOwnerGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgOwnerGrant: data.orgOwnerGrants?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgOwnerGrant: { + orgOwnerGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgOwnerGrant', + 'createOrgOwnerGrant', + 'orgOwnerGrant', + args.select, + args.data, + 'CreateOrgOwnerGrantInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgOwnerGrant', + fieldName: 'createOrgOwnerGrant', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgOwnerGrantPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgOwnerGrant: { + orgOwnerGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgOwnerGrant', + 'updateOrgOwnerGrant', + 'orgOwnerGrant', + args.select, + args.where.id, + args.data, + 'UpdateOrgOwnerGrantInput', + 'id', + 'orgOwnerGrantPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgOwnerGrant', + fieldName: 'updateOrgOwnerGrant', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgOwnerGrant: { + orgOwnerGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgOwnerGrant', + 'deleteOrgOwnerGrant', + 'orgOwnerGrant', + args.where.id, + 'DeleteOrgOwnerGrantInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgOwnerGrant', + fieldName: 'deleteOrgOwnerGrant', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/orgPermission.ts b/sdk/constructive-react/src/public/orm/models/orgPermission.ts new file mode 100644 index 000000000..9a2c0461f --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/orgPermission.ts @@ -0,0 +1,236 @@ +/** + * OrgPermission 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 { + OrgPermission, + OrgPermissionWithRelations, + OrgPermissionSelect, + OrgPermissionFilter, + OrgPermissionOrderBy, + CreateOrgPermissionInput, + UpdateOrgPermissionInput, + OrgPermissionPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgPermissionModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgPermissions: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgPermission', + 'orgPermissions', + 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, + }, + 'OrgPermissionFilter', + 'OrgPermissionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgPermission', + fieldName: 'orgPermissions', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgPermissions: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgPermission', + 'orgPermissions', + args.select, + { + where: args?.where, + }, + 'OrgPermissionFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgPermission', + fieldName: 'orgPermissions', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgPermission: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgPermission', + 'orgPermissions', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgPermissionFilter', + 'OrgPermissionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgPermission', + fieldName: 'orgPermission', + document, + variables, + transform: (data: { + orgPermissions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgPermission: data.orgPermissions?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgPermission: { + orgPermission: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgPermission', + 'createOrgPermission', + 'orgPermission', + args.select, + args.data, + 'CreateOrgPermissionInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgPermission', + fieldName: 'createOrgPermission', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgPermissionPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgPermission: { + orgPermission: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgPermission', + 'updateOrgPermission', + 'orgPermission', + args.select, + args.where.id, + args.data, + 'UpdateOrgPermissionInput', + 'id', + 'orgPermissionPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgPermission', + fieldName: 'updateOrgPermission', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgPermission: { + orgPermission: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgPermission', + 'deleteOrgPermission', + 'orgPermission', + args.where.id, + 'DeleteOrgPermissionInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgPermission', + fieldName: 'deleteOrgPermission', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/orgPermissionDefault.ts b/sdk/constructive-react/src/public/orm/models/orgPermissionDefault.ts new file mode 100644 index 000000000..d6c204515 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/orgPermissionDefault.ts @@ -0,0 +1,238 @@ +/** + * OrgPermissionDefault 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 { + OrgPermissionDefault, + OrgPermissionDefaultWithRelations, + OrgPermissionDefaultSelect, + OrgPermissionDefaultFilter, + OrgPermissionDefaultOrderBy, + CreateOrgPermissionDefaultInput, + UpdateOrgPermissionDefaultInput, + OrgPermissionDefaultPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgPermissionDefaultModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgPermissionDefaults: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgPermissionDefault', + 'orgPermissionDefaults', + 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, + }, + 'OrgPermissionDefaultFilter', + 'OrgPermissionDefaultOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgPermissionDefault', + fieldName: 'orgPermissionDefaults', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgPermissionDefaults: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgPermissionDefault', + 'orgPermissionDefaults', + args.select, + { + where: args?.where, + }, + 'OrgPermissionDefaultFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgPermissionDefault', + fieldName: 'orgPermissionDefaults', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgPermissionDefault: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgPermissionDefault', + 'orgPermissionDefaults', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgPermissionDefaultFilter', + 'OrgPermissionDefaultOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgPermissionDefault', + fieldName: 'orgPermissionDefault', + document, + variables, + transform: (data: { + orgPermissionDefaults?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgPermissionDefault: data.orgPermissionDefaults?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgPermissionDefault: { + orgPermissionDefault: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgPermissionDefault', + 'createOrgPermissionDefault', + 'orgPermissionDefault', + args.select, + args.data, + 'CreateOrgPermissionDefaultInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgPermissionDefault', + fieldName: 'createOrgPermissionDefault', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgPermissionDefaultPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgPermissionDefault: { + orgPermissionDefault: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgPermissionDefault', + 'updateOrgPermissionDefault', + 'orgPermissionDefault', + args.select, + args.where.id, + args.data, + 'UpdateOrgPermissionDefaultInput', + 'id', + 'orgPermissionDefaultPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgPermissionDefault', + fieldName: 'updateOrgPermissionDefault', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgPermissionDefault: { + orgPermissionDefault: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgPermissionDefault', + 'deleteOrgPermissionDefault', + 'orgPermissionDefault', + args.where.id, + 'DeleteOrgPermissionDefaultInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgPermissionDefault', + fieldName: 'deleteOrgPermissionDefault', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/permissionsModule.ts b/sdk/constructive-react/src/public/orm/models/permissionsModule.ts new file mode 100644 index 000000000..5f30fad1e --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/permissionsModule.ts @@ -0,0 +1,236 @@ +/** + * PermissionsModule 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 { + PermissionsModule, + PermissionsModuleWithRelations, + PermissionsModuleSelect, + PermissionsModuleFilter, + PermissionsModuleOrderBy, + CreatePermissionsModuleInput, + UpdatePermissionsModuleInput, + PermissionsModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PermissionsModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + permissionsModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PermissionsModule', + 'permissionsModules', + 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, + }, + 'PermissionsModuleFilter', + 'PermissionsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PermissionsModule', + fieldName: 'permissionsModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + permissionsModules: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'PermissionsModule', + 'permissionsModules', + args.select, + { + where: args?.where, + }, + 'PermissionsModuleFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PermissionsModule', + fieldName: 'permissionsModules', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + permissionsModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PermissionsModule', + 'permissionsModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PermissionsModuleFilter', + 'PermissionsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PermissionsModule', + fieldName: 'permissionsModule', + document, + variables, + transform: (data: { + permissionsModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + permissionsModule: data.permissionsModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPermissionsModule: { + permissionsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PermissionsModule', + 'createPermissionsModule', + 'permissionsModule', + args.select, + args.data, + 'CreatePermissionsModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PermissionsModule', + fieldName: 'createPermissionsModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PermissionsModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePermissionsModule: { + permissionsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PermissionsModule', + 'updatePermissionsModule', + 'permissionsModule', + args.select, + args.where.id, + args.data, + 'UpdatePermissionsModuleInput', + 'id', + 'permissionsModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PermissionsModule', + fieldName: 'updatePermissionsModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePermissionsModule: { + permissionsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PermissionsModule', + 'deletePermissionsModule', + 'permissionsModule', + args.where.id, + 'DeletePermissionsModuleInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PermissionsModule', + fieldName: 'deletePermissionsModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/phoneNumber.ts b/sdk/constructive-react/src/public/orm/models/phoneNumber.ts new file mode 100644 index 000000000..8122dff00 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/phoneNumber.ts @@ -0,0 +1,236 @@ +/** + * PhoneNumber 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 { + PhoneNumber, + PhoneNumberWithRelations, + PhoneNumberSelect, + PhoneNumberFilter, + PhoneNumberOrderBy, + CreatePhoneNumberInput, + UpdatePhoneNumberInput, + PhoneNumberPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PhoneNumberModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + phoneNumbers: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PhoneNumber', + 'phoneNumbers', + 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, + }, + 'PhoneNumberFilter', + 'PhoneNumberOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PhoneNumber', + fieldName: 'phoneNumbers', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + phoneNumbers: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'PhoneNumber', + 'phoneNumbers', + args.select, + { + where: args?.where, + }, + 'PhoneNumberFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PhoneNumber', + fieldName: 'phoneNumbers', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + phoneNumber: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PhoneNumber', + 'phoneNumbers', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PhoneNumberFilter', + 'PhoneNumberOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PhoneNumber', + fieldName: 'phoneNumber', + document, + variables, + transform: (data: { + phoneNumbers?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + phoneNumber: data.phoneNumbers?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPhoneNumber: { + phoneNumber: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PhoneNumber', + 'createPhoneNumber', + 'phoneNumber', + args.select, + args.data, + 'CreatePhoneNumberInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PhoneNumber', + fieldName: 'createPhoneNumber', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PhoneNumberPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePhoneNumber: { + phoneNumber: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PhoneNumber', + 'updatePhoneNumber', + 'phoneNumber', + args.select, + args.where.id, + args.data, + 'UpdatePhoneNumberInput', + 'id', + 'phoneNumberPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PhoneNumber', + fieldName: 'updatePhoneNumber', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePhoneNumber: { + phoneNumber: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PhoneNumber', + 'deletePhoneNumber', + 'phoneNumber', + args.where.id, + 'DeletePhoneNumberInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PhoneNumber', + fieldName: 'deletePhoneNumber', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/phoneNumbersModule.ts b/sdk/constructive-react/src/public/orm/models/phoneNumbersModule.ts new file mode 100644 index 000000000..26fdcfd2e --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/phoneNumbersModule.ts @@ -0,0 +1,236 @@ +/** + * PhoneNumbersModule 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 { + PhoneNumbersModule, + PhoneNumbersModuleWithRelations, + PhoneNumbersModuleSelect, + PhoneNumbersModuleFilter, + PhoneNumbersModuleOrderBy, + CreatePhoneNumbersModuleInput, + UpdatePhoneNumbersModuleInput, + PhoneNumbersModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PhoneNumbersModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + phoneNumbersModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PhoneNumbersModule', + 'phoneNumbersModules', + 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, + }, + 'PhoneNumbersModuleFilter', + 'PhoneNumbersModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PhoneNumbersModule', + fieldName: 'phoneNumbersModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + phoneNumbersModules: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'PhoneNumbersModule', + 'phoneNumbersModules', + args.select, + { + where: args?.where, + }, + 'PhoneNumbersModuleFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PhoneNumbersModule', + fieldName: 'phoneNumbersModules', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + phoneNumbersModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PhoneNumbersModule', + 'phoneNumbersModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PhoneNumbersModuleFilter', + 'PhoneNumbersModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PhoneNumbersModule', + fieldName: 'phoneNumbersModule', + document, + variables, + transform: (data: { + phoneNumbersModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + phoneNumbersModule: data.phoneNumbersModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPhoneNumbersModule: { + phoneNumbersModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PhoneNumbersModule', + 'createPhoneNumbersModule', + 'phoneNumbersModule', + args.select, + args.data, + 'CreatePhoneNumbersModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PhoneNumbersModule', + fieldName: 'createPhoneNumbersModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PhoneNumbersModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePhoneNumbersModule: { + phoneNumbersModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PhoneNumbersModule', + 'updatePhoneNumbersModule', + 'phoneNumbersModule', + args.select, + args.where.id, + args.data, + 'UpdatePhoneNumbersModuleInput', + 'id', + 'phoneNumbersModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PhoneNumbersModule', + fieldName: 'updatePhoneNumbersModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePhoneNumbersModule: { + phoneNumbersModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PhoneNumbersModule', + 'deletePhoneNumbersModule', + 'phoneNumbersModule', + args.where.id, + 'DeletePhoneNumbersModuleInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PhoneNumbersModule', + fieldName: 'deletePhoneNumbersModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/policy.ts b/sdk/constructive-react/src/public/orm/models/policy.ts new file mode 100644 index 000000000..146ac30f5 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/policy.ts @@ -0,0 +1,236 @@ +/** + * Policy 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 { + Policy, + PolicyWithRelations, + PolicySelect, + PolicyFilter, + PolicyOrderBy, + CreatePolicyInput, + UpdatePolicyInput, + PolicyPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PolicyModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + policies: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Policy', + 'policies', + 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, + }, + 'PolicyFilter', + 'PolicyOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Policy', + fieldName: 'policies', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + policies: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'Policy', + 'policies', + args.select, + { + where: args?.where, + }, + 'PolicyFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Policy', + fieldName: 'policies', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + policy: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'Policy', + 'policies', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PolicyFilter', + 'PolicyOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Policy', + fieldName: 'policy', + document, + variables, + transform: (data: { + policies?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + policy: data.policies?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPolicy: { + policy: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Policy', + 'createPolicy', + 'policy', + args.select, + args.data, + 'CreatePolicyInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Policy', + fieldName: 'createPolicy', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PolicyPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePolicy: { + policy: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'Policy', + 'updatePolicy', + 'policy', + args.select, + args.where.id, + args.data, + 'UpdatePolicyInput', + 'id', + 'policyPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Policy', + fieldName: 'updatePolicy', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePolicy: { + policy: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'Policy', + 'deletePolicy', + 'policy', + args.where.id, + 'DeletePolicyInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Policy', + fieldName: 'deletePolicy', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/primaryKeyConstraint.ts b/sdk/constructive-react/src/public/orm/models/primaryKeyConstraint.ts new file mode 100644 index 000000000..296ec2848 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/primaryKeyConstraint.ts @@ -0,0 +1,238 @@ +/** + * PrimaryKeyConstraint 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 { + PrimaryKeyConstraint, + PrimaryKeyConstraintWithRelations, + PrimaryKeyConstraintSelect, + PrimaryKeyConstraintFilter, + PrimaryKeyConstraintOrderBy, + CreatePrimaryKeyConstraintInput, + UpdatePrimaryKeyConstraintInput, + PrimaryKeyConstraintPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PrimaryKeyConstraintModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + primaryKeyConstraints: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'PrimaryKeyConstraint', + 'primaryKeyConstraints', + 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, + }, + 'PrimaryKeyConstraintFilter', + 'PrimaryKeyConstraintOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PrimaryKeyConstraint', + fieldName: 'primaryKeyConstraints', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + primaryKeyConstraints: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'PrimaryKeyConstraint', + 'primaryKeyConstraints', + args.select, + { + where: args?.where, + }, + 'PrimaryKeyConstraintFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PrimaryKeyConstraint', + fieldName: 'primaryKeyConstraints', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + primaryKeyConstraint: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PrimaryKeyConstraint', + 'primaryKeyConstraints', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PrimaryKeyConstraintFilter', + 'PrimaryKeyConstraintOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PrimaryKeyConstraint', + fieldName: 'primaryKeyConstraint', + document, + variables, + transform: (data: { + primaryKeyConstraints?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + primaryKeyConstraint: data.primaryKeyConstraints?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPrimaryKeyConstraint: { + primaryKeyConstraint: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PrimaryKeyConstraint', + 'createPrimaryKeyConstraint', + 'primaryKeyConstraint', + args.select, + args.data, + 'CreatePrimaryKeyConstraintInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PrimaryKeyConstraint', + fieldName: 'createPrimaryKeyConstraint', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PrimaryKeyConstraintPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePrimaryKeyConstraint: { + primaryKeyConstraint: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PrimaryKeyConstraint', + 'updatePrimaryKeyConstraint', + 'primaryKeyConstraint', + args.select, + args.where.id, + args.data, + 'UpdatePrimaryKeyConstraintInput', + 'id', + 'primaryKeyConstraintPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PrimaryKeyConstraint', + fieldName: 'updatePrimaryKeyConstraint', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePrimaryKeyConstraint: { + primaryKeyConstraint: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PrimaryKeyConstraint', + 'deletePrimaryKeyConstraint', + 'primaryKeyConstraint', + args.where.id, + 'DeletePrimaryKeyConstraintInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PrimaryKeyConstraint', + fieldName: 'deletePrimaryKeyConstraint', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/procedure.ts b/sdk/constructive-react/src/public/orm/models/procedure.ts new file mode 100644 index 000000000..6725b1577 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/procedure.ts @@ -0,0 +1,236 @@ +/** + * 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/profilesModule.ts b/sdk/constructive-react/src/public/orm/models/profilesModule.ts new file mode 100644 index 000000000..2970a1f49 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/profilesModule.ts @@ -0,0 +1,236 @@ +/** + * ProfilesModule 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 { + ProfilesModule, + ProfilesModuleWithRelations, + ProfilesModuleSelect, + ProfilesModuleFilter, + ProfilesModuleOrderBy, + CreateProfilesModuleInput, + UpdateProfilesModuleInput, + ProfilesModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ProfilesModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + profilesModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'ProfilesModule', + 'profilesModules', + 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, + }, + 'ProfilesModuleFilter', + 'ProfilesModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ProfilesModule', + fieldName: 'profilesModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + profilesModules: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'ProfilesModule', + 'profilesModules', + args.select, + { + where: args?.where, + }, + 'ProfilesModuleFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ProfilesModule', + fieldName: 'profilesModules', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + profilesModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ProfilesModule', + 'profilesModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ProfilesModuleFilter', + 'ProfilesModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ProfilesModule', + fieldName: 'profilesModule', + document, + variables, + transform: (data: { + profilesModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + profilesModule: data.profilesModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createProfilesModule: { + profilesModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ProfilesModule', + 'createProfilesModule', + 'profilesModule', + args.select, + args.data, + 'CreateProfilesModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ProfilesModule', + fieldName: 'createProfilesModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ProfilesModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateProfilesModule: { + profilesModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ProfilesModule', + 'updateProfilesModule', + 'profilesModule', + args.select, + args.where.id, + args.data, + 'UpdateProfilesModuleInput', + 'id', + 'profilesModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ProfilesModule', + fieldName: 'updateProfilesModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteProfilesModule: { + profilesModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ProfilesModule', + 'deleteProfilesModule', + 'profilesModule', + args.where.id, + 'DeleteProfilesModuleInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ProfilesModule', + fieldName: 'deleteProfilesModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/ref.ts b/sdk/constructive-react/src/public/orm/models/ref.ts new file mode 100644 index 000000000..ec666a8e7 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/ref.ts @@ -0,0 +1,236 @@ +/** + * Ref 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 { + Ref, + RefWithRelations, + RefSelect, + RefFilter, + RefOrderBy, + CreateRefInput, + UpdateRefInput, + RefPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class RefModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + refs: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Ref', + 'refs', + 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, + }, + 'RefFilter', + 'RefOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Ref', + fieldName: 'refs', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + refs: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'Ref', + 'refs', + args.select, + { + where: args?.where, + }, + 'RefFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Ref', + fieldName: 'refs', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + ref: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'Ref', + 'refs', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'RefFilter', + 'RefOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Ref', + fieldName: 'ref', + document, + variables, + transform: (data: { + refs?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + ref: data.refs?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createRef: { + ref: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Ref', + 'createRef', + 'ref', + args.select, + args.data, + 'CreateRefInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Ref', + fieldName: 'createRef', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + RefPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateRef: { + ref: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'Ref', + 'updateRef', + 'ref', + args.select, + args.where.id, + args.data, + 'UpdateRefInput', + 'id', + 'refPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Ref', + fieldName: 'updateRef', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteRef: { + ref: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'Ref', + 'deleteRef', + 'ref', + args.where.id, + 'DeleteRefInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Ref', + fieldName: 'deleteRef', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/rlsModule.ts b/sdk/constructive-react/src/public/orm/models/rlsModule.ts new file mode 100644 index 000000000..4729eb1b3 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/rlsModule.ts @@ -0,0 +1,236 @@ +/** + * RlsModule 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 { + RlsModule, + RlsModuleWithRelations, + RlsModuleSelect, + RlsModuleFilter, + RlsModuleOrderBy, + CreateRlsModuleInput, + UpdateRlsModuleInput, + RlsModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class RlsModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + rlsModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'RlsModule', + 'rlsModules', + 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, + }, + 'RlsModuleFilter', + 'RlsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RlsModule', + fieldName: 'rlsModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + rlsModules: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'RlsModule', + 'rlsModules', + args.select, + { + where: args?.where, + }, + 'RlsModuleFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RlsModule', + fieldName: 'rlsModules', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + rlsModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'RlsModule', + 'rlsModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'RlsModuleFilter', + 'RlsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RlsModule', + fieldName: 'rlsModule', + document, + variables, + transform: (data: { + rlsModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + rlsModule: data.rlsModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createRlsModule: { + rlsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'RlsModule', + 'createRlsModule', + 'rlsModule', + args.select, + args.data, + 'CreateRlsModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RlsModule', + fieldName: 'createRlsModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + RlsModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateRlsModule: { + rlsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'RlsModule', + 'updateRlsModule', + 'rlsModule', + args.select, + args.where.id, + args.data, + 'UpdateRlsModuleInput', + 'id', + 'rlsModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RlsModule', + fieldName: 'updateRlsModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteRlsModule: { + rlsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'RlsModule', + 'deleteRlsModule', + 'rlsModule', + args.where.id, + 'DeleteRlsModuleInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RlsModule', + fieldName: 'deleteRlsModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/roleType.ts b/sdk/constructive-react/src/public/orm/models/roleType.ts new file mode 100644 index 000000000..dce555ddb --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/roleType.ts @@ -0,0 +1,236 @@ +/** + * RoleType 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 { + RoleType, + RoleTypeWithRelations, + RoleTypeSelect, + RoleTypeFilter, + RoleTypeOrderBy, + CreateRoleTypeInput, + UpdateRoleTypeInput, + RoleTypePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class RoleTypeModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + roleTypes: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'RoleType', + 'roleTypes', + 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, + }, + 'RoleTypeFilter', + 'RoleTypeOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RoleType', + fieldName: 'roleTypes', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + roleTypes: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'RoleType', + 'roleTypes', + args.select, + { + where: args?.where, + }, + 'RoleTypeFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RoleType', + fieldName: 'roleTypes', + document, + variables, + }); + } + findOne( + args: { + id: number; + select: S; + } & StrictSelect + ): QueryBuilder<{ + roleType: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'RoleType', + 'roleTypes', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'RoleTypeFilter', + 'RoleTypeOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'RoleType', + fieldName: 'roleType', + document, + variables, + transform: (data: { + roleTypes?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + roleType: data.roleTypes?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createRoleType: { + roleType: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'RoleType', + 'createRoleType', + 'roleType', + args.select, + args.data, + 'CreateRoleTypeInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RoleType', + fieldName: 'createRoleType', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: number; + }, + RoleTypePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateRoleType: { + roleType: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'RoleType', + 'updateRoleType', + 'roleType', + args.select, + args.where.id, + args.data, + 'UpdateRoleTypeInput', + 'id', + 'roleTypePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RoleType', + fieldName: 'updateRoleType', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: number; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteRoleType: { + roleType: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'RoleType', + 'deleteRoleType', + 'roleType', + args.where.id, + 'DeleteRoleTypeInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'RoleType', + fieldName: 'deleteRoleType', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/schema.ts b/sdk/constructive-react/src/public/orm/models/schema.ts new file mode 100644 index 000000000..e930fee2b --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/schema.ts @@ -0,0 +1,236 @@ +/** + * Schema 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 { + Schema, + SchemaWithRelations, + SchemaSelect, + SchemaFilter, + SchemaOrderBy, + CreateSchemaInput, + UpdateSchemaInput, + SchemaPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class SchemaModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + schemas: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Schema', + 'schemas', + 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, + }, + 'SchemaFilter', + 'SchemaOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Schema', + fieldName: 'schemas', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + schemas: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'Schema', + 'schemas', + args.select, + { + where: args?.where, + }, + 'SchemaFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Schema', + fieldName: 'schemas', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + schema: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'Schema', + 'schemas', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'SchemaFilter', + 'SchemaOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Schema', + fieldName: 'schema', + document, + variables, + transform: (data: { + schemas?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + schema: data.schemas?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createSchema: { + schema: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Schema', + 'createSchema', + 'schema', + args.select, + args.data, + 'CreateSchemaInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Schema', + fieldName: 'createSchema', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + SchemaPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateSchema: { + schema: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'Schema', + 'updateSchema', + 'schema', + args.select, + args.where.id, + args.data, + 'UpdateSchemaInput', + 'id', + 'schemaPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Schema', + fieldName: 'updateSchema', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteSchema: { + schema: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'Schema', + 'deleteSchema', + 'schema', + args.where.id, + 'DeleteSchemaInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Schema', + fieldName: 'deleteSchema', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/schemaGrant.ts b/sdk/constructive-react/src/public/orm/models/schemaGrant.ts new file mode 100644 index 000000000..7a311cdb9 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/schemaGrant.ts @@ -0,0 +1,236 @@ +/** + * SchemaGrant 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 { + SchemaGrant, + SchemaGrantWithRelations, + SchemaGrantSelect, + SchemaGrantFilter, + SchemaGrantOrderBy, + CreateSchemaGrantInput, + UpdateSchemaGrantInput, + SchemaGrantPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class SchemaGrantModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + schemaGrants: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'SchemaGrant', + 'schemaGrants', + 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, + }, + 'SchemaGrantFilter', + 'SchemaGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'SchemaGrant', + fieldName: 'schemaGrants', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + schemaGrants: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'SchemaGrant', + 'schemaGrants', + args.select, + { + where: args?.where, + }, + 'SchemaGrantFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'SchemaGrant', + fieldName: 'schemaGrants', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + schemaGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'SchemaGrant', + 'schemaGrants', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'SchemaGrantFilter', + 'SchemaGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'SchemaGrant', + fieldName: 'schemaGrant', + document, + variables, + transform: (data: { + schemaGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + schemaGrant: data.schemaGrants?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createSchemaGrant: { + schemaGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'SchemaGrant', + 'createSchemaGrant', + 'schemaGrant', + args.select, + args.data, + 'CreateSchemaGrantInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'SchemaGrant', + fieldName: 'createSchemaGrant', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + SchemaGrantPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateSchemaGrant: { + schemaGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'SchemaGrant', + 'updateSchemaGrant', + 'schemaGrant', + args.select, + args.where.id, + args.data, + 'UpdateSchemaGrantInput', + 'id', + 'schemaGrantPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'SchemaGrant', + fieldName: 'updateSchemaGrant', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteSchemaGrant: { + schemaGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'SchemaGrant', + 'deleteSchemaGrant', + 'schemaGrant', + args.where.id, + 'DeleteSchemaGrantInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'SchemaGrant', + fieldName: 'deleteSchemaGrant', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/secretsModule.ts b/sdk/constructive-react/src/public/orm/models/secretsModule.ts new file mode 100644 index 000000000..55d75dad4 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/secretsModule.ts @@ -0,0 +1,236 @@ +/** + * SecretsModule 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 { + SecretsModule, + SecretsModuleWithRelations, + SecretsModuleSelect, + SecretsModuleFilter, + SecretsModuleOrderBy, + CreateSecretsModuleInput, + UpdateSecretsModuleInput, + SecretsModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class SecretsModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + secretsModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'SecretsModule', + 'secretsModules', + 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, + }, + 'SecretsModuleFilter', + 'SecretsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'SecretsModule', + fieldName: 'secretsModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + secretsModules: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'SecretsModule', + 'secretsModules', + args.select, + { + where: args?.where, + }, + 'SecretsModuleFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'SecretsModule', + fieldName: 'secretsModules', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + secretsModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'SecretsModule', + 'secretsModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'SecretsModuleFilter', + 'SecretsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'SecretsModule', + fieldName: 'secretsModule', + document, + variables, + transform: (data: { + secretsModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + secretsModule: data.secretsModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createSecretsModule: { + secretsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'SecretsModule', + 'createSecretsModule', + 'secretsModule', + args.select, + args.data, + 'CreateSecretsModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'SecretsModule', + fieldName: 'createSecretsModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + SecretsModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateSecretsModule: { + secretsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'SecretsModule', + 'updateSecretsModule', + 'secretsModule', + args.select, + args.where.id, + args.data, + 'UpdateSecretsModuleInput', + 'id', + 'secretsModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'SecretsModule', + fieldName: 'updateSecretsModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteSecretsModule: { + secretsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'SecretsModule', + 'deleteSecretsModule', + 'secretsModule', + args.where.id, + 'DeleteSecretsModuleInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'SecretsModule', + fieldName: 'deleteSecretsModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/sessionsModule.ts b/sdk/constructive-react/src/public/orm/models/sessionsModule.ts new file mode 100644 index 000000000..5245d808b --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/sessionsModule.ts @@ -0,0 +1,236 @@ +/** + * SessionsModule 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 { + SessionsModule, + SessionsModuleWithRelations, + SessionsModuleSelect, + SessionsModuleFilter, + SessionsModuleOrderBy, + CreateSessionsModuleInput, + UpdateSessionsModuleInput, + SessionsModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class SessionsModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + sessionsModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'SessionsModule', + 'sessionsModules', + 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, + }, + 'SessionsModuleFilter', + 'SessionsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'SessionsModule', + fieldName: 'sessionsModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + sessionsModules: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'SessionsModule', + 'sessionsModules', + args.select, + { + where: args?.where, + }, + 'SessionsModuleFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'SessionsModule', + fieldName: 'sessionsModules', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + sessionsModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'SessionsModule', + 'sessionsModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'SessionsModuleFilter', + 'SessionsModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'SessionsModule', + fieldName: 'sessionsModule', + document, + variables, + transform: (data: { + sessionsModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + sessionsModule: data.sessionsModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createSessionsModule: { + sessionsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'SessionsModule', + 'createSessionsModule', + 'sessionsModule', + args.select, + args.data, + 'CreateSessionsModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'SessionsModule', + fieldName: 'createSessionsModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + SessionsModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateSessionsModule: { + sessionsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'SessionsModule', + 'updateSessionsModule', + 'sessionsModule', + args.select, + args.where.id, + args.data, + 'UpdateSessionsModuleInput', + 'id', + 'sessionsModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'SessionsModule', + fieldName: 'updateSessionsModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteSessionsModule: { + sessionsModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'SessionsModule', + 'deleteSessionsModule', + 'sessionsModule', + args.where.id, + 'DeleteSessionsModuleInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'SessionsModule', + fieldName: 'deleteSessionsModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/site.ts b/sdk/constructive-react/src/public/orm/models/site.ts new file mode 100644 index 000000000..83b54cc55 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/site.ts @@ -0,0 +1,236 @@ +/** + * Site 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 { + Site, + SiteWithRelations, + SiteSelect, + SiteFilter, + SiteOrderBy, + CreateSiteInput, + UpdateSiteInput, + SitePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class SiteModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + sites: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Site', + 'sites', + 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, + }, + 'SiteFilter', + 'SiteOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Site', + fieldName: 'sites', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + sites: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'Site', + 'sites', + args.select, + { + where: args?.where, + }, + 'SiteFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Site', + fieldName: 'sites', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + site: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'Site', + 'sites', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'SiteFilter', + 'SiteOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Site', + fieldName: 'site', + document, + variables, + transform: (data: { + sites?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + site: data.sites?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createSite: { + site: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Site', + 'createSite', + 'site', + args.select, + args.data, + 'CreateSiteInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Site', + fieldName: 'createSite', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + SitePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateSite: { + site: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'Site', + 'updateSite', + 'site', + args.select, + args.where.id, + args.data, + 'UpdateSiteInput', + 'id', + 'sitePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Site', + fieldName: 'updateSite', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteSite: { + site: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'Site', + 'deleteSite', + 'site', + args.where.id, + 'DeleteSiteInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Site', + fieldName: 'deleteSite', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/siteMetadatum.ts b/sdk/constructive-react/src/public/orm/models/siteMetadatum.ts new file mode 100644 index 000000000..38353bdd3 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/siteMetadatum.ts @@ -0,0 +1,236 @@ +/** + * SiteMetadatum 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 { + SiteMetadatum, + SiteMetadatumWithRelations, + SiteMetadatumSelect, + SiteMetadatumFilter, + SiteMetadatumOrderBy, + CreateSiteMetadatumInput, + UpdateSiteMetadatumInput, + SiteMetadatumPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class SiteMetadatumModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + siteMetadata: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'SiteMetadatum', + 'siteMetadata', + 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, + }, + 'SiteMetadatumFilter', + 'SiteMetadatumOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'SiteMetadatum', + fieldName: 'siteMetadata', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + siteMetadata: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'SiteMetadatum', + 'siteMetadata', + args.select, + { + where: args?.where, + }, + 'SiteMetadatumFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'SiteMetadatum', + fieldName: 'siteMetadata', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + siteMetadatum: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'SiteMetadatum', + 'siteMetadata', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'SiteMetadatumFilter', + 'SiteMetadatumOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'SiteMetadatum', + fieldName: 'siteMetadatum', + document, + variables, + transform: (data: { + siteMetadata?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + siteMetadatum: data.siteMetadata?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createSiteMetadatum: { + siteMetadatum: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'SiteMetadatum', + 'createSiteMetadatum', + 'siteMetadatum', + args.select, + args.data, + 'CreateSiteMetadatumInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'SiteMetadatum', + fieldName: 'createSiteMetadatum', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + SiteMetadatumPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateSiteMetadatum: { + siteMetadatum: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'SiteMetadatum', + 'updateSiteMetadatum', + 'siteMetadatum', + args.select, + args.where.id, + args.data, + 'UpdateSiteMetadatumInput', + 'id', + 'siteMetadatumPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'SiteMetadatum', + fieldName: 'updateSiteMetadatum', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteSiteMetadatum: { + siteMetadatum: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'SiteMetadatum', + 'deleteSiteMetadatum', + 'siteMetadatum', + args.where.id, + 'DeleteSiteMetadatumInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'SiteMetadatum', + fieldName: 'deleteSiteMetadatum', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/siteModule.ts b/sdk/constructive-react/src/public/orm/models/siteModule.ts new file mode 100644 index 000000000..59ee85477 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/siteModule.ts @@ -0,0 +1,236 @@ +/** + * SiteModule 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 { + SiteModule, + SiteModuleWithRelations, + SiteModuleSelect, + SiteModuleFilter, + SiteModuleOrderBy, + CreateSiteModuleInput, + UpdateSiteModuleInput, + SiteModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class SiteModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + siteModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'SiteModule', + 'siteModules', + 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, + }, + 'SiteModuleFilter', + 'SiteModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'SiteModule', + fieldName: 'siteModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + siteModules: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'SiteModule', + 'siteModules', + args.select, + { + where: args?.where, + }, + 'SiteModuleFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'SiteModule', + fieldName: 'siteModules', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + siteModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'SiteModule', + 'siteModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'SiteModuleFilter', + 'SiteModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'SiteModule', + fieldName: 'siteModule', + document, + variables, + transform: (data: { + siteModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + siteModule: data.siteModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createSiteModule: { + siteModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'SiteModule', + 'createSiteModule', + 'siteModule', + args.select, + args.data, + 'CreateSiteModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'SiteModule', + fieldName: 'createSiteModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + SiteModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateSiteModule: { + siteModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'SiteModule', + 'updateSiteModule', + 'siteModule', + args.select, + args.where.id, + args.data, + 'UpdateSiteModuleInput', + 'id', + 'siteModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'SiteModule', + fieldName: 'updateSiteModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteSiteModule: { + siteModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'SiteModule', + 'deleteSiteModule', + 'siteModule', + args.where.id, + 'DeleteSiteModuleInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'SiteModule', + fieldName: 'deleteSiteModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/siteTheme.ts b/sdk/constructive-react/src/public/orm/models/siteTheme.ts new file mode 100644 index 000000000..e9222e3c5 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/siteTheme.ts @@ -0,0 +1,236 @@ +/** + * SiteTheme 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 { + SiteTheme, + SiteThemeWithRelations, + SiteThemeSelect, + SiteThemeFilter, + SiteThemeOrderBy, + CreateSiteThemeInput, + UpdateSiteThemeInput, + SiteThemePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class SiteThemeModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + siteThemes: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'SiteTheme', + 'siteThemes', + 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, + }, + 'SiteThemeFilter', + 'SiteThemeOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'SiteTheme', + fieldName: 'siteThemes', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + siteThemes: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'SiteTheme', + 'siteThemes', + args.select, + { + where: args?.where, + }, + 'SiteThemeFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'SiteTheme', + fieldName: 'siteThemes', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + siteTheme: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'SiteTheme', + 'siteThemes', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'SiteThemeFilter', + 'SiteThemeOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'SiteTheme', + fieldName: 'siteTheme', + document, + variables, + transform: (data: { + siteThemes?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + siteTheme: data.siteThemes?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createSiteTheme: { + siteTheme: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'SiteTheme', + 'createSiteTheme', + 'siteTheme', + args.select, + args.data, + 'CreateSiteThemeInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'SiteTheme', + fieldName: 'createSiteTheme', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + SiteThemePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateSiteTheme: { + siteTheme: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'SiteTheme', + 'updateSiteTheme', + 'siteTheme', + args.select, + args.where.id, + args.data, + 'UpdateSiteThemeInput', + 'id', + 'siteThemePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'SiteTheme', + fieldName: 'updateSiteTheme', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteSiteTheme: { + siteTheme: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'SiteTheme', + 'deleteSiteTheme', + 'siteTheme', + args.where.id, + 'DeleteSiteThemeInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'SiteTheme', + fieldName: 'deleteSiteTheme', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/sqlMigration.ts b/sdk/constructive-react/src/public/orm/models/sqlMigration.ts new file mode 100644 index 000000000..07bba36b7 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/sqlMigration.ts @@ -0,0 +1,167 @@ +/** + * SqlMigration 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 { + SqlMigration, + SqlMigrationWithRelations, + SqlMigrationSelect, + SqlMigrationFilter, + SqlMigrationOrderBy, + CreateSqlMigrationInput, + UpdateSqlMigrationInput, + SqlMigrationPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class SqlMigrationModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + sqlMigrations: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'SqlMigration', + 'sqlMigrations', + 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, + }, + 'SqlMigrationFilter', + 'SqlMigrationOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'SqlMigration', + fieldName: 'sqlMigrations', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + sqlMigrations: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'SqlMigration', + 'sqlMigrations', + args.select, + { + where: args?.where, + }, + 'SqlMigrationFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'SqlMigration', + fieldName: 'sqlMigrations', + document, + variables, + }); + } + findOne( + args: { + id: number; + select: S; + } & StrictSelect + ): QueryBuilder<{ + sqlMigration: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'SqlMigration', + 'sqlMigrations', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'SqlMigrationFilter', + 'SqlMigrationOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'SqlMigration', + fieldName: 'sqlMigration', + document, + variables, + transform: (data: { + sqlMigrations?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + sqlMigration: data.sqlMigrations?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createSqlMigration: { + sqlMigration: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'SqlMigration', + 'createSqlMigration', + 'sqlMigration', + args.select, + args.data, + 'CreateSqlMigrationInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'SqlMigration', + fieldName: 'createSqlMigration', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/store.ts b/sdk/constructive-react/src/public/orm/models/store.ts new file mode 100644 index 000000000..d6f5e0450 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/store.ts @@ -0,0 +1,236 @@ +/** + * Store 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 { + Store, + StoreWithRelations, + StoreSelect, + StoreFilter, + StoreOrderBy, + CreateStoreInput, + UpdateStoreInput, + StorePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class StoreModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + stores: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Store', + 'stores', + 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, + }, + 'StoreFilter', + 'StoreOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Store', + fieldName: 'stores', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + stores: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'Store', + 'stores', + args.select, + { + where: args?.where, + }, + 'StoreFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Store', + fieldName: 'stores', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + store: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'Store', + 'stores', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'StoreFilter', + 'StoreOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Store', + fieldName: 'store', + document, + variables, + transform: (data: { + stores?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + store: data.stores?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createStore: { + store: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Store', + 'createStore', + 'store', + args.select, + args.data, + 'CreateStoreInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Store', + fieldName: 'createStore', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + StorePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateStore: { + store: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'Store', + 'updateStore', + 'store', + args.select, + args.where.id, + args.data, + 'UpdateStoreInput', + 'id', + 'storePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Store', + fieldName: 'updateStore', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteStore: { + store: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'Store', + 'deleteStore', + 'store', + args.where.id, + 'DeleteStoreInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Store', + fieldName: 'deleteStore', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/table.ts b/sdk/constructive-react/src/public/orm/models/table.ts new file mode 100644 index 000000000..25f1ac127 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/table.ts @@ -0,0 +1,236 @@ +/** + * Table 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 { + Table, + TableWithRelations, + TableSelect, + TableFilter, + TableOrderBy, + CreateTableInput, + UpdateTableInput, + TablePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class TableModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + tables: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Table', + 'tables', + 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, + }, + 'TableFilter', + 'TableOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Table', + fieldName: 'tables', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + tables: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'Table', + 'tables', + args.select, + { + where: args?.where, + }, + 'TableFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Table', + fieldName: 'tables', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + table: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'Table', + 'tables', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'TableFilter', + 'TableOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Table', + fieldName: 'table', + document, + variables, + transform: (data: { + tables?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + table: data.tables?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createTable: { + table: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Table', + 'createTable', + 'table', + args.select, + args.data, + 'CreateTableInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Table', + fieldName: 'createTable', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + TablePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateTable: { + table: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'Table', + 'updateTable', + 'table', + args.select, + args.where.id, + args.data, + 'UpdateTableInput', + 'id', + 'tablePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Table', + fieldName: 'updateTable', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteTable: { + table: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'Table', + 'deleteTable', + 'table', + args.where.id, + 'DeleteTableInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Table', + fieldName: 'deleteTable', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/tableGrant.ts b/sdk/constructive-react/src/public/orm/models/tableGrant.ts new file mode 100644 index 000000000..bdd257b1e --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/tableGrant.ts @@ -0,0 +1,236 @@ +/** + * TableGrant 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 { + TableGrant, + TableGrantWithRelations, + TableGrantSelect, + TableGrantFilter, + TableGrantOrderBy, + CreateTableGrantInput, + UpdateTableGrantInput, + TableGrantPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class TableGrantModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + tableGrants: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'TableGrant', + 'tableGrants', + 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, + }, + 'TableGrantFilter', + 'TableGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'TableGrant', + fieldName: 'tableGrants', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + tableGrants: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'TableGrant', + 'tableGrants', + args.select, + { + where: args?.where, + }, + 'TableGrantFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'TableGrant', + fieldName: 'tableGrants', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + tableGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'TableGrant', + 'tableGrants', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'TableGrantFilter', + 'TableGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'TableGrant', + fieldName: 'tableGrant', + document, + variables, + transform: (data: { + tableGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + tableGrant: data.tableGrants?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createTableGrant: { + tableGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'TableGrant', + 'createTableGrant', + 'tableGrant', + args.select, + args.data, + 'CreateTableGrantInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'TableGrant', + fieldName: 'createTableGrant', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + TableGrantPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateTableGrant: { + tableGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'TableGrant', + 'updateTableGrant', + 'tableGrant', + args.select, + args.where.id, + args.data, + 'UpdateTableGrantInput', + 'id', + 'tableGrantPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'TableGrant', + fieldName: 'updateTableGrant', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteTableGrant: { + tableGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'TableGrant', + 'deleteTableGrant', + 'tableGrant', + args.where.id, + 'DeleteTableGrantInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'TableGrant', + fieldName: 'deleteTableGrant', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/tableModule.ts b/sdk/constructive-react/src/public/orm/models/tableModule.ts new file mode 100644 index 000000000..708e7a4c5 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/tableModule.ts @@ -0,0 +1,236 @@ +/** + * TableModule 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 { + TableModule, + TableModuleWithRelations, + TableModuleSelect, + TableModuleFilter, + TableModuleOrderBy, + CreateTableModuleInput, + UpdateTableModuleInput, + TableModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class TableModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + tableModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'TableModule', + 'tableModules', + 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, + }, + 'TableModuleFilter', + 'TableModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'TableModule', + fieldName: 'tableModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + tableModules: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'TableModule', + 'tableModules', + args.select, + { + where: args?.where, + }, + 'TableModuleFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'TableModule', + fieldName: 'tableModules', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + tableModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'TableModule', + 'tableModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'TableModuleFilter', + 'TableModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'TableModule', + fieldName: 'tableModule', + document, + variables, + transform: (data: { + tableModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + tableModule: data.tableModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createTableModule: { + tableModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'TableModule', + 'createTableModule', + 'tableModule', + args.select, + args.data, + 'CreateTableModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'TableModule', + fieldName: 'createTableModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + TableModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateTableModule: { + tableModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'TableModule', + 'updateTableModule', + 'tableModule', + args.select, + args.where.id, + args.data, + 'UpdateTableModuleInput', + 'id', + 'tableModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'TableModule', + fieldName: 'updateTableModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteTableModule: { + tableModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'TableModule', + 'deleteTableModule', + 'tableModule', + args.where.id, + 'DeleteTableModuleInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'TableModule', + fieldName: 'deleteTableModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/tableTemplateModule.ts b/sdk/constructive-react/src/public/orm/models/tableTemplateModule.ts new file mode 100644 index 000000000..7438901cc --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/tableTemplateModule.ts @@ -0,0 +1,236 @@ +/** + * TableTemplateModule 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 { + TableTemplateModule, + TableTemplateModuleWithRelations, + TableTemplateModuleSelect, + TableTemplateModuleFilter, + TableTemplateModuleOrderBy, + CreateTableTemplateModuleInput, + UpdateTableTemplateModuleInput, + TableTemplateModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class TableTemplateModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + tableTemplateModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'TableTemplateModule', + 'tableTemplateModules', + 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, + }, + 'TableTemplateModuleFilter', + 'TableTemplateModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'TableTemplateModule', + fieldName: 'tableTemplateModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + tableTemplateModules: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'TableTemplateModule', + 'tableTemplateModules', + args.select, + { + where: args?.where, + }, + 'TableTemplateModuleFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'TableTemplateModule', + fieldName: 'tableTemplateModules', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + tableTemplateModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'TableTemplateModule', + 'tableTemplateModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'TableTemplateModuleFilter', + 'TableTemplateModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'TableTemplateModule', + fieldName: 'tableTemplateModule', + document, + variables, + transform: (data: { + tableTemplateModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + tableTemplateModule: data.tableTemplateModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createTableTemplateModule: { + tableTemplateModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'TableTemplateModule', + 'createTableTemplateModule', + 'tableTemplateModule', + args.select, + args.data, + 'CreateTableTemplateModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'TableTemplateModule', + fieldName: 'createTableTemplateModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + TableTemplateModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateTableTemplateModule: { + tableTemplateModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'TableTemplateModule', + 'updateTableTemplateModule', + 'tableTemplateModule', + args.select, + args.where.id, + args.data, + 'UpdateTableTemplateModuleInput', + 'id', + 'tableTemplateModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'TableTemplateModule', + fieldName: 'updateTableTemplateModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteTableTemplateModule: { + tableTemplateModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'TableTemplateModule', + 'deleteTableTemplateModule', + 'tableTemplateModule', + args.where.id, + 'DeleteTableTemplateModuleInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'TableTemplateModule', + fieldName: 'deleteTableTemplateModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/trigger.ts b/sdk/constructive-react/src/public/orm/models/trigger.ts new file mode 100644 index 000000000..3ad1cf6ad --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/trigger.ts @@ -0,0 +1,236 @@ +/** + * Trigger 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 { + Trigger, + TriggerWithRelations, + TriggerSelect, + TriggerFilter, + TriggerOrderBy, + CreateTriggerInput, + UpdateTriggerInput, + TriggerPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class TriggerModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + triggers: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Trigger', + 'triggers', + 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, + }, + 'TriggerFilter', + 'TriggerOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Trigger', + fieldName: 'triggers', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + triggers: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'Trigger', + 'triggers', + args.select, + { + where: args?.where, + }, + 'TriggerFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Trigger', + fieldName: 'triggers', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + trigger: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'Trigger', + 'triggers', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'TriggerFilter', + 'TriggerOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Trigger', + fieldName: 'trigger', + document, + variables, + transform: (data: { + triggers?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + trigger: data.triggers?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createTrigger: { + trigger: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Trigger', + 'createTrigger', + 'trigger', + args.select, + args.data, + 'CreateTriggerInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Trigger', + fieldName: 'createTrigger', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + TriggerPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateTrigger: { + trigger: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'Trigger', + 'updateTrigger', + 'trigger', + args.select, + args.where.id, + args.data, + 'UpdateTriggerInput', + 'id', + 'triggerPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Trigger', + fieldName: 'updateTrigger', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteTrigger: { + trigger: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'Trigger', + 'deleteTrigger', + 'trigger', + args.where.id, + 'DeleteTriggerInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Trigger', + fieldName: 'deleteTrigger', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/triggerFunction.ts b/sdk/constructive-react/src/public/orm/models/triggerFunction.ts new file mode 100644 index 000000000..7e93572c1 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/triggerFunction.ts @@ -0,0 +1,236 @@ +/** + * TriggerFunction 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 { + TriggerFunction, + TriggerFunctionWithRelations, + TriggerFunctionSelect, + TriggerFunctionFilter, + TriggerFunctionOrderBy, + CreateTriggerFunctionInput, + UpdateTriggerFunctionInput, + TriggerFunctionPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class TriggerFunctionModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + triggerFunctions: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'TriggerFunction', + 'triggerFunctions', + 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, + }, + 'TriggerFunctionFilter', + 'TriggerFunctionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'TriggerFunction', + fieldName: 'triggerFunctions', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + triggerFunctions: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'TriggerFunction', + 'triggerFunctions', + args.select, + { + where: args?.where, + }, + 'TriggerFunctionFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'TriggerFunction', + fieldName: 'triggerFunctions', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + triggerFunction: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'TriggerFunction', + 'triggerFunctions', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'TriggerFunctionFilter', + 'TriggerFunctionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'TriggerFunction', + fieldName: 'triggerFunction', + document, + variables, + transform: (data: { + triggerFunctions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + triggerFunction: data.triggerFunctions?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createTriggerFunction: { + triggerFunction: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'TriggerFunction', + 'createTriggerFunction', + 'triggerFunction', + args.select, + args.data, + 'CreateTriggerFunctionInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'TriggerFunction', + fieldName: 'createTriggerFunction', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + TriggerFunctionPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateTriggerFunction: { + triggerFunction: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'TriggerFunction', + 'updateTriggerFunction', + 'triggerFunction', + args.select, + args.where.id, + args.data, + 'UpdateTriggerFunctionInput', + 'id', + 'triggerFunctionPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'TriggerFunction', + fieldName: 'updateTriggerFunction', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteTriggerFunction: { + triggerFunction: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'TriggerFunction', + 'deleteTriggerFunction', + 'triggerFunction', + args.where.id, + 'DeleteTriggerFunctionInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'TriggerFunction', + fieldName: 'deleteTriggerFunction', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/uniqueConstraint.ts b/sdk/constructive-react/src/public/orm/models/uniqueConstraint.ts new file mode 100644 index 000000000..ad935fcca --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/uniqueConstraint.ts @@ -0,0 +1,236 @@ +/** + * UniqueConstraint 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 { + UniqueConstraint, + UniqueConstraintWithRelations, + UniqueConstraintSelect, + UniqueConstraintFilter, + UniqueConstraintOrderBy, + CreateUniqueConstraintInput, + UpdateUniqueConstraintInput, + UniqueConstraintPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class UniqueConstraintModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + uniqueConstraints: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'UniqueConstraint', + 'uniqueConstraints', + 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, + }, + 'UniqueConstraintFilter', + 'UniqueConstraintOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'UniqueConstraint', + fieldName: 'uniqueConstraints', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + uniqueConstraints: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'UniqueConstraint', + 'uniqueConstraints', + args.select, + { + where: args?.where, + }, + 'UniqueConstraintFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'UniqueConstraint', + fieldName: 'uniqueConstraints', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + uniqueConstraint: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'UniqueConstraint', + 'uniqueConstraints', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'UniqueConstraintFilter', + 'UniqueConstraintOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'UniqueConstraint', + fieldName: 'uniqueConstraint', + document, + variables, + transform: (data: { + uniqueConstraints?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + uniqueConstraint: data.uniqueConstraints?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createUniqueConstraint: { + uniqueConstraint: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'UniqueConstraint', + 'createUniqueConstraint', + 'uniqueConstraint', + args.select, + args.data, + 'CreateUniqueConstraintInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'UniqueConstraint', + fieldName: 'createUniqueConstraint', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + UniqueConstraintPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateUniqueConstraint: { + uniqueConstraint: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'UniqueConstraint', + 'updateUniqueConstraint', + 'uniqueConstraint', + args.select, + args.where.id, + args.data, + 'UpdateUniqueConstraintInput', + 'id', + 'uniqueConstraintPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'UniqueConstraint', + fieldName: 'updateUniqueConstraint', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteUniqueConstraint: { + uniqueConstraint: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'UniqueConstraint', + 'deleteUniqueConstraint', + 'uniqueConstraint', + args.where.id, + 'DeleteUniqueConstraintInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'UniqueConstraint', + fieldName: 'deleteUniqueConstraint', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/user.ts b/sdk/constructive-react/src/public/orm/models/user.ts new file mode 100644 index 000000000..7adeca16a --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/user.ts @@ -0,0 +1,236 @@ +/** + * User 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 { + User, + UserWithRelations, + UserSelect, + UserFilter, + UserOrderBy, + CreateUserInput, + UpdateUserInput, + UserPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class UserModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + users: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'User', + 'users', + 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, + }, + 'UserFilter', + 'UserOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'User', + fieldName: 'users', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + users: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'User', + 'users', + args.select, + { + where: args?.where, + }, + 'UserFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'User', + fieldName: 'users', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + user: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'User', + 'users', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'UserFilter', + 'UserOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'User', + fieldName: 'user', + document, + variables, + transform: (data: { + users?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + user: data.users?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createUser: { + user: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'User', + 'createUser', + 'user', + args.select, + args.data, + 'CreateUserInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'User', + fieldName: 'createUser', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + UserPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateUser: { + user: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'User', + 'updateUser', + 'user', + args.select, + args.where.id, + args.data, + 'UpdateUserInput', + 'id', + 'userPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'User', + fieldName: 'updateUser', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteUser: { + user: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'User', + 'deleteUser', + 'user', + args.where.id, + 'DeleteUserInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'User', + fieldName: 'deleteUser', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/userAuthModule.ts b/sdk/constructive-react/src/public/orm/models/userAuthModule.ts new file mode 100644 index 000000000..59b3f7d69 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/userAuthModule.ts @@ -0,0 +1,236 @@ +/** + * UserAuthModule 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 { + UserAuthModule, + UserAuthModuleWithRelations, + UserAuthModuleSelect, + UserAuthModuleFilter, + UserAuthModuleOrderBy, + CreateUserAuthModuleInput, + UpdateUserAuthModuleInput, + UserAuthModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class UserAuthModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + userAuthModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'UserAuthModule', + 'userAuthModules', + 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, + }, + 'UserAuthModuleFilter', + 'UserAuthModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'UserAuthModule', + fieldName: 'userAuthModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + userAuthModules: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'UserAuthModule', + 'userAuthModules', + args.select, + { + where: args?.where, + }, + 'UserAuthModuleFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'UserAuthModule', + fieldName: 'userAuthModules', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + userAuthModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'UserAuthModule', + 'userAuthModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'UserAuthModuleFilter', + 'UserAuthModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'UserAuthModule', + fieldName: 'userAuthModule', + document, + variables, + transform: (data: { + userAuthModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + userAuthModule: data.userAuthModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createUserAuthModule: { + userAuthModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'UserAuthModule', + 'createUserAuthModule', + 'userAuthModule', + args.select, + args.data, + 'CreateUserAuthModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'UserAuthModule', + fieldName: 'createUserAuthModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + UserAuthModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateUserAuthModule: { + userAuthModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'UserAuthModule', + 'updateUserAuthModule', + 'userAuthModule', + args.select, + args.where.id, + args.data, + 'UpdateUserAuthModuleInput', + 'id', + 'userAuthModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'UserAuthModule', + fieldName: 'updateUserAuthModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteUserAuthModule: { + userAuthModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'UserAuthModule', + 'deleteUserAuthModule', + 'userAuthModule', + args.where.id, + 'DeleteUserAuthModuleInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'UserAuthModule', + fieldName: 'deleteUserAuthModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/usersModule.ts b/sdk/constructive-react/src/public/orm/models/usersModule.ts new file mode 100644 index 000000000..c61a00ff1 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/usersModule.ts @@ -0,0 +1,236 @@ +/** + * UsersModule 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 { + UsersModule, + UsersModuleWithRelations, + UsersModuleSelect, + UsersModuleFilter, + UsersModuleOrderBy, + CreateUsersModuleInput, + UpdateUsersModuleInput, + UsersModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class UsersModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + usersModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'UsersModule', + 'usersModules', + 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, + }, + 'UsersModuleFilter', + 'UsersModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'UsersModule', + fieldName: 'usersModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + usersModules: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'UsersModule', + 'usersModules', + args.select, + { + where: args?.where, + }, + 'UsersModuleFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'UsersModule', + fieldName: 'usersModules', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + usersModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'UsersModule', + 'usersModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'UsersModuleFilter', + 'UsersModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'UsersModule', + fieldName: 'usersModule', + document, + variables, + transform: (data: { + usersModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + usersModule: data.usersModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createUsersModule: { + usersModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'UsersModule', + 'createUsersModule', + 'usersModule', + args.select, + args.data, + 'CreateUsersModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'UsersModule', + fieldName: 'createUsersModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + UsersModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateUsersModule: { + usersModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'UsersModule', + 'updateUsersModule', + 'usersModule', + args.select, + args.where.id, + args.data, + 'UpdateUsersModuleInput', + 'id', + 'usersModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'UsersModule', + fieldName: 'updateUsersModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteUsersModule: { + usersModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'UsersModule', + 'deleteUsersModule', + 'usersModule', + args.where.id, + 'DeleteUsersModuleInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'UsersModule', + fieldName: 'deleteUsersModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/uuidModule.ts b/sdk/constructive-react/src/public/orm/models/uuidModule.ts new file mode 100644 index 000000000..1b2f60f23 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/uuidModule.ts @@ -0,0 +1,236 @@ +/** + * UuidModule 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 { + UuidModule, + UuidModuleWithRelations, + UuidModuleSelect, + UuidModuleFilter, + UuidModuleOrderBy, + CreateUuidModuleInput, + UpdateUuidModuleInput, + UuidModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class UuidModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + uuidModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'UuidModule', + 'uuidModules', + 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, + }, + 'UuidModuleFilter', + 'UuidModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'UuidModule', + fieldName: 'uuidModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + uuidModules: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'UuidModule', + 'uuidModules', + args.select, + { + where: args?.where, + }, + 'UuidModuleFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'UuidModule', + fieldName: 'uuidModules', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + uuidModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'UuidModule', + 'uuidModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'UuidModuleFilter', + 'UuidModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'UuidModule', + fieldName: 'uuidModule', + document, + variables, + transform: (data: { + uuidModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + uuidModule: data.uuidModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createUuidModule: { + uuidModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'UuidModule', + 'createUuidModule', + 'uuidModule', + args.select, + args.data, + 'CreateUuidModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'UuidModule', + fieldName: 'createUuidModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + UuidModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateUuidModule: { + uuidModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'UuidModule', + 'updateUuidModule', + 'uuidModule', + args.select, + args.where.id, + args.data, + 'UpdateUuidModuleInput', + 'id', + 'uuidModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'UuidModule', + fieldName: 'updateUuidModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteUuidModule: { + uuidModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'UuidModule', + 'deleteUuidModule', + 'uuidModule', + args.where.id, + 'DeleteUuidModuleInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'UuidModule', + fieldName: 'deleteUuidModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/view.ts b/sdk/constructive-react/src/public/orm/models/view.ts new file mode 100644 index 000000000..d28154954 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/view.ts @@ -0,0 +1,236 @@ +/** + * View 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 { + View, + ViewWithRelations, + ViewSelect, + ViewFilter, + ViewOrderBy, + CreateViewInput, + UpdateViewInput, + ViewPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ViewModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + views: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'View', + 'views', + 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, + }, + 'ViewFilter', + 'ViewOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'View', + fieldName: 'views', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + views: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'View', + 'views', + args.select, + { + where: args?.where, + }, + 'ViewFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'View', + fieldName: 'views', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + view: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'View', + 'views', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ViewFilter', + 'ViewOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'View', + fieldName: 'view', + document, + variables, + transform: (data: { + views?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + view: data.views?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createView: { + view: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'View', + 'createView', + 'view', + args.select, + args.data, + 'CreateViewInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'View', + fieldName: 'createView', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ViewPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateView: { + view: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'View', + 'updateView', + 'view', + args.select, + args.where.id, + args.data, + 'UpdateViewInput', + 'id', + 'viewPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'View', + fieldName: 'updateView', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteView: { + view: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'View', + 'deleteView', + 'view', + args.where.id, + 'DeleteViewInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'View', + fieldName: 'deleteView', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/viewGrant.ts b/sdk/constructive-react/src/public/orm/models/viewGrant.ts new file mode 100644 index 000000000..e63ef2382 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/viewGrant.ts @@ -0,0 +1,236 @@ +/** + * ViewGrant 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 { + ViewGrant, + ViewGrantWithRelations, + ViewGrantSelect, + ViewGrantFilter, + ViewGrantOrderBy, + CreateViewGrantInput, + UpdateViewGrantInput, + ViewGrantPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ViewGrantModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + viewGrants: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'ViewGrant', + 'viewGrants', + 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, + }, + 'ViewGrantFilter', + 'ViewGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ViewGrant', + fieldName: 'viewGrants', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + viewGrants: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'ViewGrant', + 'viewGrants', + args.select, + { + where: args?.where, + }, + 'ViewGrantFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ViewGrant', + fieldName: 'viewGrants', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + viewGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ViewGrant', + 'viewGrants', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ViewGrantFilter', + 'ViewGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ViewGrant', + fieldName: 'viewGrant', + document, + variables, + transform: (data: { + viewGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + viewGrant: data.viewGrants?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createViewGrant: { + viewGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ViewGrant', + 'createViewGrant', + 'viewGrant', + args.select, + args.data, + 'CreateViewGrantInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ViewGrant', + fieldName: 'createViewGrant', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ViewGrantPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateViewGrant: { + viewGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ViewGrant', + 'updateViewGrant', + 'viewGrant', + args.select, + args.where.id, + args.data, + 'UpdateViewGrantInput', + 'id', + 'viewGrantPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ViewGrant', + fieldName: 'updateViewGrant', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteViewGrant: { + viewGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ViewGrant', + 'deleteViewGrant', + 'viewGrant', + args.where.id, + 'DeleteViewGrantInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ViewGrant', + fieldName: 'deleteViewGrant', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/viewRule.ts b/sdk/constructive-react/src/public/orm/models/viewRule.ts new file mode 100644 index 000000000..4bf9c2cca --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/viewRule.ts @@ -0,0 +1,236 @@ +/** + * ViewRule 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 { + ViewRule, + ViewRuleWithRelations, + ViewRuleSelect, + ViewRuleFilter, + ViewRuleOrderBy, + CreateViewRuleInput, + UpdateViewRuleInput, + ViewRulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ViewRuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + viewRules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'ViewRule', + 'viewRules', + 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, + }, + 'ViewRuleFilter', + 'ViewRuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ViewRule', + fieldName: 'viewRules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + viewRules: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'ViewRule', + 'viewRules', + args.select, + { + where: args?.where, + }, + 'ViewRuleFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ViewRule', + fieldName: 'viewRules', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + viewRule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ViewRule', + 'viewRules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ViewRuleFilter', + 'ViewRuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ViewRule', + fieldName: 'viewRule', + document, + variables, + transform: (data: { + viewRules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + viewRule: data.viewRules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createViewRule: { + viewRule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ViewRule', + 'createViewRule', + 'viewRule', + args.select, + args.data, + 'CreateViewRuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ViewRule', + fieldName: 'createViewRule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ViewRulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateViewRule: { + viewRule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ViewRule', + 'updateViewRule', + 'viewRule', + args.select, + args.where.id, + args.data, + 'UpdateViewRuleInput', + 'id', + 'viewRulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ViewRule', + fieldName: 'updateViewRule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteViewRule: { + viewRule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ViewRule', + 'deleteViewRule', + 'viewRule', + args.where.id, + 'DeleteViewRuleInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ViewRule', + fieldName: 'deleteViewRule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/viewTable.ts b/sdk/constructive-react/src/public/orm/models/viewTable.ts new file mode 100644 index 000000000..f976d31af --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/viewTable.ts @@ -0,0 +1,236 @@ +/** + * ViewTable 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 { + ViewTable, + ViewTableWithRelations, + ViewTableSelect, + ViewTableFilter, + ViewTableOrderBy, + CreateViewTableInput, + UpdateViewTableInput, + ViewTablePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ViewTableModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + viewTables: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'ViewTable', + 'viewTables', + 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, + }, + 'ViewTableFilter', + 'ViewTableOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ViewTable', + fieldName: 'viewTables', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + viewTables: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'ViewTable', + 'viewTables', + args.select, + { + where: args?.where, + }, + 'ViewTableFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ViewTable', + fieldName: 'viewTables', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + viewTable: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ViewTable', + 'viewTables', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ViewTableFilter', + 'ViewTableOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ViewTable', + fieldName: 'viewTable', + document, + variables, + transform: (data: { + viewTables?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + viewTable: data.viewTables?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createViewTable: { + viewTable: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ViewTable', + 'createViewTable', + 'viewTable', + args.select, + args.data, + 'CreateViewTableInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ViewTable', + fieldName: 'createViewTable', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ViewTablePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateViewTable: { + viewTable: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ViewTable', + 'updateViewTable', + 'viewTable', + args.select, + args.where.id, + args.data, + 'UpdateViewTableInput', + 'id', + 'viewTablePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ViewTable', + fieldName: 'updateViewTable', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteViewTable: { + viewTable: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ViewTable', + 'deleteViewTable', + 'viewTable', + args.where.id, + 'DeleteViewTableInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ViewTable', + fieldName: 'deleteViewTable', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/mutation/index.ts b/sdk/constructive-react/src/public/orm/mutation/index.ts new file mode 100644 index 000000000..f8ef22b51 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/mutation/index.ts @@ -0,0 +1,1119 @@ +/** + * Custom mutation operations + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { QueryBuilder, buildCustomDocument } from '../query-builder'; +import type { InferSelectResult, StrictSelect } from '../select-types'; +import type { + SignOutInput, + SendAccountDeletionEmailInput, + CheckPasswordInput, + SubmitInviteCodeInput, + SubmitOrgInviteCodeInput, + FreezeObjectsInput, + InitEmptyRepoInput, + ConfirmDeleteAccountInput, + SetPasswordInput, + VerifyEmailInput, + ResetPasswordInput, + RemoveNodeAtPathInput, + BootstrapUserInput, + SetDataAtPathInput, + SetPropsAndCommitInput, + ProvisionDatabaseWithUserInput, + SignInOneTimeTokenInput, + CreateUserDatabaseInput, + ExtendTokenExpiresInput, + SignInInput, + SignUpInput, + SetFieldOrderInput, + OneTimeTokenInput, + InsertNodeAtPathInput, + UpdateNodeAtPathInput, + SetAndCommitInput, + ApplyRlsInput, + ForgotPasswordInput, + SendVerificationEmailInput, + VerifyPasswordInput, + VerifyTotpInput, + SignOutPayload, + SendAccountDeletionEmailPayload, + CheckPasswordPayload, + SubmitInviteCodePayload, + SubmitOrgInviteCodePayload, + FreezeObjectsPayload, + InitEmptyRepoPayload, + ConfirmDeleteAccountPayload, + SetPasswordPayload, + VerifyEmailPayload, + ResetPasswordPayload, + RemoveNodeAtPathPayload, + BootstrapUserPayload, + SetDataAtPathPayload, + SetPropsAndCommitPayload, + ProvisionDatabaseWithUserPayload, + SignInOneTimeTokenPayload, + CreateUserDatabasePayload, + ExtendTokenExpiresPayload, + SignInPayload, + SignUpPayload, + SetFieldOrderPayload, + OneTimeTokenPayload, + InsertNodeAtPathPayload, + UpdateNodeAtPathPayload, + SetAndCommitPayload, + ApplyRlsPayload, + ForgotPasswordPayload, + SendVerificationEmailPayload, + VerifyPasswordPayload, + VerifyTotpPayload, + SignOutPayloadSelect, + SendAccountDeletionEmailPayloadSelect, + CheckPasswordPayloadSelect, + SubmitInviteCodePayloadSelect, + SubmitOrgInviteCodePayloadSelect, + FreezeObjectsPayloadSelect, + InitEmptyRepoPayloadSelect, + ConfirmDeleteAccountPayloadSelect, + SetPasswordPayloadSelect, + VerifyEmailPayloadSelect, + ResetPasswordPayloadSelect, + RemoveNodeAtPathPayloadSelect, + BootstrapUserPayloadSelect, + SetDataAtPathPayloadSelect, + SetPropsAndCommitPayloadSelect, + ProvisionDatabaseWithUserPayloadSelect, + SignInOneTimeTokenPayloadSelect, + CreateUserDatabasePayloadSelect, + ExtendTokenExpiresPayloadSelect, + SignInPayloadSelect, + SignUpPayloadSelect, + SetFieldOrderPayloadSelect, + OneTimeTokenPayloadSelect, + InsertNodeAtPathPayloadSelect, + UpdateNodeAtPathPayloadSelect, + SetAndCommitPayloadSelect, + ApplyRlsPayloadSelect, + ForgotPasswordPayloadSelect, + SendVerificationEmailPayloadSelect, + VerifyPasswordPayloadSelect, + VerifyTotpPayloadSelect, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export interface SignOutVariables { + input: SignOutInput; +} +export interface SendAccountDeletionEmailVariables { + input: SendAccountDeletionEmailInput; +} +export interface CheckPasswordVariables { + input: CheckPasswordInput; +} +export interface SubmitInviteCodeVariables { + input: SubmitInviteCodeInput; +} +export interface SubmitOrgInviteCodeVariables { + input: SubmitOrgInviteCodeInput; +} +export interface FreezeObjectsVariables { + input: FreezeObjectsInput; +} +export interface InitEmptyRepoVariables { + input: InitEmptyRepoInput; +} +export interface ConfirmDeleteAccountVariables { + input: ConfirmDeleteAccountInput; +} +export interface SetPasswordVariables { + input: SetPasswordInput; +} +export interface VerifyEmailVariables { + input: VerifyEmailInput; +} +export interface ResetPasswordVariables { + input: ResetPasswordInput; +} +export interface RemoveNodeAtPathVariables { + input: RemoveNodeAtPathInput; +} +export interface BootstrapUserVariables { + input: BootstrapUserInput; +} +export interface SetDataAtPathVariables { + input: SetDataAtPathInput; +} +export interface SetPropsAndCommitVariables { + input: SetPropsAndCommitInput; +} +export interface ProvisionDatabaseWithUserVariables { + input: ProvisionDatabaseWithUserInput; +} +export interface SignInOneTimeTokenVariables { + input: SignInOneTimeTokenInput; +} +/** + * Variables for 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 + */ +export interface CreateUserDatabaseVariables { + input: CreateUserDatabaseInput; +} +export interface ExtendTokenExpiresVariables { + input: ExtendTokenExpiresInput; +} +export interface SignInVariables { + input: SignInInput; +} +export interface SignUpVariables { + input: SignUpInput; +} +export interface SetFieldOrderVariables { + input: SetFieldOrderInput; +} +export interface OneTimeTokenVariables { + input: OneTimeTokenInput; +} +export interface InsertNodeAtPathVariables { + input: InsertNodeAtPathInput; +} +export interface UpdateNodeAtPathVariables { + input: UpdateNodeAtPathInput; +} +export interface SetAndCommitVariables { + input: SetAndCommitInput; +} +export interface ApplyRlsVariables { + input: ApplyRlsInput; +} +export interface ForgotPasswordVariables { + input: ForgotPasswordInput; +} +export interface SendVerificationEmailVariables { + input: SendVerificationEmailInput; +} +export interface VerifyPasswordVariables { + input: VerifyPasswordInput; +} +export interface VerifyTotpVariables { + input: VerifyTotpInput; +} +export function createMutationOperations(client: OrmClient) { + return { + signOut: ( + args: SignOutVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + signOut: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SignOut', + fieldName: 'signOut', + ...buildCustomDocument( + 'mutation', + 'SignOut', + 'signOut', + options.select, + args, + [ + { + name: 'input', + type: 'SignOutInput!', + }, + ], + connectionFieldsMap, + 'SignOutPayload' + ), + }), + sendAccountDeletionEmail: ( + args: SendAccountDeletionEmailVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + sendAccountDeletionEmail: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SendAccountDeletionEmail', + fieldName: 'sendAccountDeletionEmail', + ...buildCustomDocument( + 'mutation', + 'SendAccountDeletionEmail', + 'sendAccountDeletionEmail', + options.select, + args, + [ + { + name: 'input', + type: 'SendAccountDeletionEmailInput!', + }, + ], + connectionFieldsMap, + 'SendAccountDeletionEmailPayload' + ), + }), + checkPassword: ( + args: CheckPasswordVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + checkPassword: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'CheckPassword', + fieldName: 'checkPassword', + ...buildCustomDocument( + 'mutation', + 'CheckPassword', + 'checkPassword', + options.select, + args, + [ + { + name: 'input', + type: 'CheckPasswordInput!', + }, + ], + connectionFieldsMap, + 'CheckPasswordPayload' + ), + }), + submitInviteCode: ( + args: SubmitInviteCodeVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + submitInviteCode: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SubmitInviteCode', + fieldName: 'submitInviteCode', + ...buildCustomDocument( + 'mutation', + 'SubmitInviteCode', + 'submitInviteCode', + options.select, + args, + [ + { + name: 'input', + type: 'SubmitInviteCodeInput!', + }, + ], + connectionFieldsMap, + 'SubmitInviteCodePayload' + ), + }), + submitOrgInviteCode: ( + args: SubmitOrgInviteCodeVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + submitOrgInviteCode: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SubmitOrgInviteCode', + fieldName: 'submitOrgInviteCode', + ...buildCustomDocument( + 'mutation', + 'SubmitOrgInviteCode', + 'submitOrgInviteCode', + options.select, + args, + [ + { + name: 'input', + type: 'SubmitOrgInviteCodeInput!', + }, + ], + connectionFieldsMap, + 'SubmitOrgInviteCodePayload' + ), + }), + freezeObjects: ( + args: FreezeObjectsVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + freezeObjects: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'FreezeObjects', + fieldName: 'freezeObjects', + ...buildCustomDocument( + 'mutation', + 'FreezeObjects', + 'freezeObjects', + options.select, + args, + [ + { + name: 'input', + type: 'FreezeObjectsInput!', + }, + ], + connectionFieldsMap, + 'FreezeObjectsPayload' + ), + }), + initEmptyRepo: ( + args: InitEmptyRepoVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + initEmptyRepo: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'InitEmptyRepo', + fieldName: 'initEmptyRepo', + ...buildCustomDocument( + 'mutation', + 'InitEmptyRepo', + 'initEmptyRepo', + options.select, + args, + [ + { + name: 'input', + type: 'InitEmptyRepoInput!', + }, + ], + connectionFieldsMap, + 'InitEmptyRepoPayload' + ), + }), + confirmDeleteAccount: ( + args: ConfirmDeleteAccountVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + confirmDeleteAccount: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ConfirmDeleteAccount', + fieldName: 'confirmDeleteAccount', + ...buildCustomDocument( + 'mutation', + 'ConfirmDeleteAccount', + 'confirmDeleteAccount', + options.select, + args, + [ + { + name: 'input', + type: 'ConfirmDeleteAccountInput!', + }, + ], + connectionFieldsMap, + 'ConfirmDeleteAccountPayload' + ), + }), + setPassword: ( + args: SetPasswordVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + setPassword: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SetPassword', + fieldName: 'setPassword', + ...buildCustomDocument( + 'mutation', + 'SetPassword', + 'setPassword', + options.select, + args, + [ + { + name: 'input', + type: 'SetPasswordInput!', + }, + ], + connectionFieldsMap, + 'SetPasswordPayload' + ), + }), + verifyEmail: ( + args: VerifyEmailVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + verifyEmail: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'VerifyEmail', + fieldName: 'verifyEmail', + ...buildCustomDocument( + 'mutation', + 'VerifyEmail', + 'verifyEmail', + options.select, + args, + [ + { + name: 'input', + type: 'VerifyEmailInput!', + }, + ], + connectionFieldsMap, + 'VerifyEmailPayload' + ), + }), + resetPassword: ( + args: ResetPasswordVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + resetPassword: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ResetPassword', + fieldName: 'resetPassword', + ...buildCustomDocument( + 'mutation', + 'ResetPassword', + 'resetPassword', + options.select, + args, + [ + { + name: 'input', + type: 'ResetPasswordInput!', + }, + ], + connectionFieldsMap, + 'ResetPasswordPayload' + ), + }), + removeNodeAtPath: ( + args: RemoveNodeAtPathVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + removeNodeAtPath: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'RemoveNodeAtPath', + fieldName: 'removeNodeAtPath', + ...buildCustomDocument( + 'mutation', + 'RemoveNodeAtPath', + 'removeNodeAtPath', + options.select, + args, + [ + { + name: 'input', + type: 'RemoveNodeAtPathInput!', + }, + ], + connectionFieldsMap, + 'RemoveNodeAtPathPayload' + ), + }), + bootstrapUser: ( + args: BootstrapUserVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + bootstrapUser: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'BootstrapUser', + fieldName: 'bootstrapUser', + ...buildCustomDocument( + 'mutation', + 'BootstrapUser', + 'bootstrapUser', + options.select, + args, + [ + { + name: 'input', + type: 'BootstrapUserInput!', + }, + ], + connectionFieldsMap, + 'BootstrapUserPayload' + ), + }), + setDataAtPath: ( + args: SetDataAtPathVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + setDataAtPath: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SetDataAtPath', + fieldName: 'setDataAtPath', + ...buildCustomDocument( + 'mutation', + 'SetDataAtPath', + 'setDataAtPath', + options.select, + args, + [ + { + name: 'input', + type: 'SetDataAtPathInput!', + }, + ], + connectionFieldsMap, + 'SetDataAtPathPayload' + ), + }), + setPropsAndCommit: ( + args: SetPropsAndCommitVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + setPropsAndCommit: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SetPropsAndCommit', + fieldName: 'setPropsAndCommit', + ...buildCustomDocument( + 'mutation', + 'SetPropsAndCommit', + 'setPropsAndCommit', + options.select, + args, + [ + { + name: 'input', + type: 'SetPropsAndCommitInput!', + }, + ], + connectionFieldsMap, + 'SetPropsAndCommitPayload' + ), + }), + provisionDatabaseWithUser: ( + args: ProvisionDatabaseWithUserVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + provisionDatabaseWithUser: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ProvisionDatabaseWithUser', + fieldName: 'provisionDatabaseWithUser', + ...buildCustomDocument( + 'mutation', + 'ProvisionDatabaseWithUser', + 'provisionDatabaseWithUser', + options.select, + args, + [ + { + name: 'input', + type: 'ProvisionDatabaseWithUserInput!', + }, + ], + connectionFieldsMap, + 'ProvisionDatabaseWithUserPayload' + ), + }), + signInOneTimeToken: ( + args: SignInOneTimeTokenVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + signInOneTimeToken: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SignInOneTimeToken', + fieldName: 'signInOneTimeToken', + ...buildCustomDocument( + 'mutation', + 'SignInOneTimeToken', + 'signInOneTimeToken', + options.select, + args, + [ + { + name: 'input', + type: 'SignInOneTimeTokenInput!', + }, + ], + connectionFieldsMap, + 'SignInOneTimeTokenPayload' + ), + }), + createUserDatabase: ( + args: CreateUserDatabaseVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + createUserDatabase: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'CreateUserDatabase', + fieldName: 'createUserDatabase', + ...buildCustomDocument( + 'mutation', + 'CreateUserDatabase', + 'createUserDatabase', + options.select, + args, + [ + { + name: 'input', + type: 'CreateUserDatabaseInput!', + }, + ], + connectionFieldsMap, + 'CreateUserDatabasePayload' + ), + }), + extendTokenExpires: ( + args: ExtendTokenExpiresVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + extendTokenExpires: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ExtendTokenExpires', + fieldName: 'extendTokenExpires', + ...buildCustomDocument( + 'mutation', + 'ExtendTokenExpires', + 'extendTokenExpires', + options.select, + args, + [ + { + name: 'input', + type: 'ExtendTokenExpiresInput!', + }, + ], + connectionFieldsMap, + 'ExtendTokenExpiresPayload' + ), + }), + signIn: ( + args: SignInVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + signIn: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SignIn', + fieldName: 'signIn', + ...buildCustomDocument( + 'mutation', + 'SignIn', + 'signIn', + options.select, + args, + [ + { + name: 'input', + type: 'SignInInput!', + }, + ], + connectionFieldsMap, + 'SignInPayload' + ), + }), + signUp: ( + args: SignUpVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + signUp: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SignUp', + fieldName: 'signUp', + ...buildCustomDocument( + 'mutation', + 'SignUp', + 'signUp', + options.select, + args, + [ + { + name: 'input', + type: 'SignUpInput!', + }, + ], + connectionFieldsMap, + 'SignUpPayload' + ), + }), + setFieldOrder: ( + args: SetFieldOrderVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + setFieldOrder: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SetFieldOrder', + fieldName: 'setFieldOrder', + ...buildCustomDocument( + 'mutation', + 'SetFieldOrder', + 'setFieldOrder', + options.select, + args, + [ + { + name: 'input', + type: 'SetFieldOrderInput!', + }, + ], + connectionFieldsMap, + 'SetFieldOrderPayload' + ), + }), + oneTimeToken: ( + args: OneTimeTokenVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + oneTimeToken: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'OneTimeToken', + fieldName: 'oneTimeToken', + ...buildCustomDocument( + 'mutation', + 'OneTimeToken', + 'oneTimeToken', + options.select, + args, + [ + { + name: 'input', + type: 'OneTimeTokenInput!', + }, + ], + connectionFieldsMap, + 'OneTimeTokenPayload' + ), + }), + insertNodeAtPath: ( + args: InsertNodeAtPathVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + insertNodeAtPath: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'InsertNodeAtPath', + fieldName: 'insertNodeAtPath', + ...buildCustomDocument( + 'mutation', + 'InsertNodeAtPath', + 'insertNodeAtPath', + options.select, + args, + [ + { + name: 'input', + type: 'InsertNodeAtPathInput!', + }, + ], + connectionFieldsMap, + 'InsertNodeAtPathPayload' + ), + }), + updateNodeAtPath: ( + args: UpdateNodeAtPathVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + updateNodeAtPath: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'UpdateNodeAtPath', + fieldName: 'updateNodeAtPath', + ...buildCustomDocument( + 'mutation', + 'UpdateNodeAtPath', + 'updateNodeAtPath', + options.select, + args, + [ + { + name: 'input', + type: 'UpdateNodeAtPathInput!', + }, + ], + connectionFieldsMap, + 'UpdateNodeAtPathPayload' + ), + }), + setAndCommit: ( + args: SetAndCommitVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + setAndCommit: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SetAndCommit', + fieldName: 'setAndCommit', + ...buildCustomDocument( + 'mutation', + 'SetAndCommit', + 'setAndCommit', + options.select, + args, + [ + { + name: 'input', + type: 'SetAndCommitInput!', + }, + ], + connectionFieldsMap, + 'SetAndCommitPayload' + ), + }), + applyRls: ( + args: ApplyRlsVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + applyRls: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ApplyRls', + fieldName: 'applyRls', + ...buildCustomDocument( + 'mutation', + 'ApplyRls', + 'applyRls', + options.select, + args, + [ + { + name: 'input', + type: 'ApplyRlsInput!', + }, + ], + connectionFieldsMap, + 'ApplyRlsPayload' + ), + }), + forgotPassword: ( + args: ForgotPasswordVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + forgotPassword: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ForgotPassword', + fieldName: 'forgotPassword', + ...buildCustomDocument( + 'mutation', + 'ForgotPassword', + 'forgotPassword', + options.select, + args, + [ + { + name: 'input', + type: 'ForgotPasswordInput!', + }, + ], + connectionFieldsMap, + 'ForgotPasswordPayload' + ), + }), + sendVerificationEmail: ( + args: SendVerificationEmailVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + sendVerificationEmail: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SendVerificationEmail', + fieldName: 'sendVerificationEmail', + ...buildCustomDocument( + 'mutation', + 'SendVerificationEmail', + 'sendVerificationEmail', + options.select, + args, + [ + { + name: 'input', + type: 'SendVerificationEmailInput!', + }, + ], + connectionFieldsMap, + 'SendVerificationEmailPayload' + ), + }), + verifyPassword: ( + args: VerifyPasswordVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + verifyPassword: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'VerifyPassword', + fieldName: 'verifyPassword', + ...buildCustomDocument( + 'mutation', + 'VerifyPassword', + 'verifyPassword', + options.select, + args, + [ + { + name: 'input', + type: 'VerifyPasswordInput!', + }, + ], + connectionFieldsMap, + 'VerifyPasswordPayload' + ), + }), + verifyTotp: ( + args: VerifyTotpVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + verifyTotp: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'VerifyTotp', + fieldName: 'verifyTotp', + ...buildCustomDocument( + 'mutation', + 'VerifyTotp', + 'verifyTotp', + options.select, + args, + [ + { + name: 'input', + type: 'VerifyTotpInput!', + }, + ], + connectionFieldsMap, + 'VerifyTotpPayload' + ), + }), + }; +} diff --git a/sdk/constructive-react/src/public/orm/query-builder.ts b/sdk/constructive-react/src/public/orm/query-builder.ts new file mode 100644 index 000000000..67c3992b5 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/query-builder.ts @@ -0,0 +1,847 @@ +/** + * Query Builder - Builds and executes GraphQL operations + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { parseType, print } from '@0no-co/graphql.web'; +import * as t from 'gql-ast'; +import type { ArgumentNode, EnumValueNode, FieldNode, VariableDefinitionNode } from 'graphql'; + +import { GraphQLRequestError, OrmClient, QueryResult } from './client'; + +export interface QueryBuilderConfig { + client: OrmClient; + operation: 'query' | 'mutation'; + operationName: string; + fieldName: string; + document: string; + variables?: Record; + transform?: (data: any) => TResult; +} + +export class QueryBuilder { + private config: QueryBuilderConfig; + + constructor(config: QueryBuilderConfig) { + this.config = config; + } + + /** + * Execute the query and return a discriminated union result + * Use result.ok to check success, or .unwrap() to throw on error + */ + async execute(): Promise> { + const rawResult = await this.config.client.execute( + this.config.document, + this.config.variables + ); + if (!rawResult.ok) { + return rawResult; + } + if (!this.config.transform) { + return rawResult as unknown as QueryResult; + } + return { + ok: true, + data: this.config.transform(rawResult.data), + errors: undefined, + }; + } + + /** + * Execute and unwrap the result, throwing GraphQLRequestError on failure + * @throws {GraphQLRequestError} If the query returns errors + */ + async unwrap(): Promise { + const result = await this.execute(); + if (!result.ok) { + throw new GraphQLRequestError(result.errors, result.data); + } + return result.data; + } + + /** + * Execute and unwrap, returning defaultValue on error instead of throwing + */ + async unwrapOr(defaultValue: D): Promise { + const result = await this.execute(); + if (!result.ok) { + return defaultValue; + } + return result.data; + } + + /** + * Execute and unwrap, calling onError callback on failure + */ + async unwrapOrElse( + onError: (errors: import('./client').GraphQLError[]) => D + ): Promise { + const result = await this.execute(); + if (!result.ok) { + return onError(result.errors); + } + return result.data; + } + + toGraphQL(): string { + return this.config.document; + } + + getVariables(): Record | undefined { + return this.config.variables; + } +} + +const OP_QUERY = 'query' as unknown as import('graphql').OperationTypeNode; +const OP_MUTATION = 'mutation' as unknown as import('graphql').OperationTypeNode; +const ENUM_VALUE_KIND = 'EnumValue' as unknown as EnumValueNode['kind']; + +// ============================================================================ +// Selection Builders +// ============================================================================ + +export function buildSelections( + select: Record | undefined, + connectionFieldsMap?: Record>, + entityType?: string +): FieldNode[] { + if (!select) { + return []; + } + + const fields: FieldNode[] = []; + const entityConnections = entityType ? connectionFieldsMap?.[entityType] : undefined; + + for (const [key, value] of Object.entries(select)) { + if (value === false || value === undefined) { + continue; + } + + if (value === true) { + fields.push(t.field({ name: key })); + continue; + } + + if (typeof value === 'object' && value !== null) { + const nested = value as { + select?: Record; + first?: number; + filter?: Record; + orderBy?: string[]; + connection?: boolean; + }; + + if (!nested.select || typeof nested.select !== 'object') { + throw new Error( + `Invalid selection for field "${key}": nested selections must include a "select" object.` + ); + } + + const relatedEntityType = entityConnections?.[key]; + const nestedSelections = buildSelections( + nested.select, + connectionFieldsMap, + relatedEntityType + ); + const isConnection = + nested.connection === true || + nested.first !== undefined || + nested.filter !== undefined || + relatedEntityType !== undefined; + const args = buildArgs([ + buildOptionalArg('first', nested.first), + nested.filter + ? t.argument({ + name: 'filter', + value: buildValueAst(nested.filter), + }) + : null, + buildEnumListArg('orderBy', nested.orderBy), + ]); + + if (isConnection) { + fields.push( + t.field({ + name: key, + args, + selectionSet: t.selectionSet({ + selections: buildConnectionSelections(nestedSelections), + }), + }) + ); + } else { + fields.push( + t.field({ + name: key, + args, + selectionSet: t.selectionSet({ selections: nestedSelections }), + }) + ); + } + } + } + + return fields; +} + +// ============================================================================ +// Document Builders +// ============================================================================ + +export function buildFindManyDocument( + operationName: string, + queryField: string, + select: TSelect, + args: { + where?: TWhere; + orderBy?: string[]; + first?: number; + last?: number; + after?: string; + before?: string; + offset?: number; + }, + filterTypeName: string, + orderByTypeName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + const variableDefinitions: VariableDefinitionNode[] = []; + const queryArgs: ArgumentNode[] = []; + const variables: Record = {}; + + addVariable( + { + varName: 'where', + argName: 'filter', + typeName: filterTypeName, + value: args.where, + }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { + varName: 'orderBy', + typeName: '[' + orderByTypeName + '!]', + value: args.orderBy?.length ? args.orderBy : undefined, + }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { varName: 'first', typeName: 'Int', value: args.first }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { varName: 'last', typeName: 'Int', value: args.last }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { varName: 'after', typeName: 'Cursor', value: args.after }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { varName: 'before', typeName: 'Cursor', value: args.before }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { varName: 'offset', typeName: 'Int', value: args.offset }, + variableDefinitions, + queryArgs, + variables + ); + + const document = t.document({ + definitions: [ + t.operationDefinition({ + operation: OP_QUERY, + name: operationName + 'Query', + variableDefinitions: variableDefinitions.length ? variableDefinitions : undefined, + selectionSet: t.selectionSet({ + selections: [ + t.field({ + name: queryField, + args: queryArgs.length ? queryArgs : undefined, + selectionSet: t.selectionSet({ + selections: buildConnectionSelections(selections), + }), + }), + ], + }), + }), + ], + }); + + return { document: print(document), variables }; +} + +export function buildFindFirstDocument( + operationName: string, + queryField: string, + select: TSelect, + args: { where?: TWhere }, + filterTypeName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + const variableDefinitions: VariableDefinitionNode[] = []; + const queryArgs: ArgumentNode[] = []; + const variables: Record = {}; + + // Always add first: 1 for findFirst + addVariable( + { varName: 'first', typeName: 'Int', value: 1 }, + variableDefinitions, + queryArgs, + variables + ); + addVariable( + { + varName: 'where', + argName: 'filter', + typeName: filterTypeName, + value: args.where, + }, + variableDefinitions, + queryArgs, + variables + ); + + const document = t.document({ + definitions: [ + t.operationDefinition({ + operation: OP_QUERY, + name: operationName + 'Query', + variableDefinitions, + selectionSet: t.selectionSet({ + selections: [ + t.field({ + name: queryField, + args: queryArgs, + selectionSet: t.selectionSet({ + selections: [ + t.field({ + name: 'nodes', + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + }), + ], + }), + }), + ], + }); + + return { document: print(document), variables }; +} + +export function buildCreateDocument( + operationName: string, + mutationField: string, + entityField: string, + select: TSelect, + data: TData, + inputTypeName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ + name: entityField, + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + variables: { + input: { + [entityField]: data, + }, + }, + }; +} + +export function buildUpdateDocument( + operationName: string, + mutationField: string, + entityField: string, + select: TSelect, + where: TWhere, + data: TData, + inputTypeName: string, + patchFieldName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ + name: entityField, + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + variables: { + input: { + id: where.id, + [patchFieldName]: data, + }, + }, + }; +} + +export function buildUpdateByPkDocument( + operationName: string, + mutationField: string, + entityField: string, + select: TSelect, + id: string | number, + data: TData, + inputTypeName: string, + idFieldName: string, + patchFieldName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ + name: entityField, + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + variables: { + input: { + [idFieldName]: id, + [patchFieldName]: data, + }, + }, + }; +} + +export function buildFindOneDocument( + operationName: string, + queryField: string, + id: string | number, + select: TSelect, + idArgName: string, + idTypeName: string, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const selections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + const variableDefinitions: VariableDefinitionNode[] = [ + t.variableDefinition({ + variable: t.variable({ name: idArgName }), + type: parseType(idTypeName), + }), + ]; + + const queryArgs: ArgumentNode[] = [ + t.argument({ + name: idArgName, + value: t.variable({ name: idArgName }), + }), + ]; + + const document = t.document({ + definitions: [ + t.operationDefinition({ + operation: OP_QUERY, + name: operationName + 'Query', + variableDefinitions, + selectionSet: t.selectionSet({ + selections: [ + t.field({ + name: queryField, + args: queryArgs, + selectionSet: t.selectionSet({ selections }), + }), + ], + }), + }), + ], + }); + + return { + document: print(document), + variables: { [idArgName]: id }, + }; +} + +export function buildDeleteDocument( + operationName: string, + mutationField: string, + entityField: string, + where: TWhere, + inputTypeName: string, + select?: TSelect, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const entitySelections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ + name: entityField, + selectionSet: t.selectionSet({ + selections: entitySelections, + }), + }), + ], + }), + variables: { + input: { + id: where.id, + }, + }, + }; +} + +export function buildDeleteByPkDocument( + operationName: string, + mutationField: string, + entityField: string, + id: string | number, + inputTypeName: string, + idFieldName: string, + select?: TSelect, + connectionFieldsMap?: Record> +): { document: string; variables: Record } { + const entitySelections = select + ? buildSelections(select as Record, connectionFieldsMap, operationName) + : [t.field({ name: 'id' })]; + + return { + document: buildInputMutationDocument({ + operationName, + mutationField, + inputTypeName, + resultSelections: [ + t.field({ + name: entityField, + selectionSet: t.selectionSet({ selections: entitySelections }), + }), + ], + }), + variables: { + input: { + [idFieldName]: id, + }, + }, + }; +} + +export function buildCustomDocument( + operationType: 'query' | 'mutation', + operationName: string, + fieldName: string, + select: TSelect, + args: TArgs, + variableDefinitions: Array<{ name: string; type: string }>, + connectionFieldsMap?: Record>, + entityType?: string +): { document: string; variables: Record } { + let actualSelect: TSelect = select; + let isConnection = false; + + if (isCustomSelectionWrapper(select)) { + actualSelect = select.select as TSelect; + isConnection = select.connection === true; + } + + const selections = actualSelect + ? buildSelections(actualSelect as Record, connectionFieldsMap, entityType) + : []; + + const variableDefs = variableDefinitions.map((definition) => + t.variableDefinition({ + variable: t.variable({ name: definition.name }), + type: parseType(definition.type), + }) + ); + const fieldArgs = variableDefinitions.map((definition) => + t.argument({ + name: definition.name, + value: t.variable({ name: definition.name }), + }) + ); + + const fieldSelections = isConnection ? buildConnectionSelections(selections) : selections; + + const document = t.document({ + definitions: [ + t.operationDefinition({ + operation: operationType === 'mutation' ? OP_MUTATION : OP_QUERY, + name: operationName, + variableDefinitions: variableDefs.length ? variableDefs : undefined, + selectionSet: t.selectionSet({ + selections: [ + t.field({ + name: fieldName, + args: fieldArgs.length ? fieldArgs : undefined, + selectionSet: fieldSelections.length + ? t.selectionSet({ selections: fieldSelections }) + : undefined, + }), + ], + }), + }), + ], + }); + + return { + document: print(document), + variables: (args ?? {}) as Record, + }; +} + +function isCustomSelectionWrapper( + value: unknown +): value is { select: Record; connection?: boolean } { + if (!value || typeof value !== 'object' || Array.isArray(value)) { + return false; + } + + const record = value as Record; + const keys = Object.keys(record); + + if (!keys.includes('select') || !keys.includes('connection')) { + return false; + } + + if (keys.some((key) => key !== 'select' && key !== 'connection')) { + return false; + } + + return !!record.select && typeof record.select === 'object' && !Array.isArray(record.select); +} + +// ============================================================================ +// Helper Functions +// ============================================================================ + +function buildArgs(args: Array): ArgumentNode[] { + return args.filter((arg): arg is ArgumentNode => arg !== null); +} + +function buildOptionalArg(name: string, value: number | string | undefined): ArgumentNode | null { + if (value === undefined) { + return null; + } + const valueNode = + typeof value === 'number' ? t.intValue({ value: value.toString() }) : t.stringValue({ value }); + return t.argument({ name, value: valueNode }); +} + +function buildEnumListArg(name: string, values: string[] | undefined): ArgumentNode | null { + if (!values || values.length === 0) { + return null; + } + return t.argument({ + name, + value: t.listValue({ + values: values.map((value) => buildEnumValue(value)), + }), + }); +} + +function buildEnumValue(value: string): EnumValueNode { + return { + kind: ENUM_VALUE_KIND, + value, + }; +} + +function buildPageInfoSelections(): FieldNode[] { + return [ + t.field({ name: 'hasNextPage' }), + t.field({ name: 'hasPreviousPage' }), + t.field({ name: 'startCursor' }), + t.field({ name: 'endCursor' }), + ]; +} + +function buildConnectionSelections(nodeSelections: FieldNode[]): FieldNode[] { + return [ + t.field({ + name: 'nodes', + selectionSet: t.selectionSet({ selections: nodeSelections }), + }), + t.field({ name: 'totalCount' }), + t.field({ + name: 'pageInfo', + selectionSet: t.selectionSet({ selections: buildPageInfoSelections() }), + }), + ]; +} + +interface VariableSpec { + varName: string; + argName?: string; + typeName: string; + value: unknown; +} + +interface InputMutationConfig { + operationName: string; + mutationField: string; + inputTypeName: string; + resultSelections: FieldNode[]; +} + +function buildInputMutationDocument(config: InputMutationConfig): string { + const document = t.document({ + definitions: [ + t.operationDefinition({ + operation: OP_MUTATION, + name: config.operationName + 'Mutation', + variableDefinitions: [ + t.variableDefinition({ + variable: t.variable({ name: 'input' }), + type: parseType(config.inputTypeName + '!'), + }), + ], + selectionSet: t.selectionSet({ + selections: [ + t.field({ + name: config.mutationField, + args: [ + t.argument({ + name: 'input', + value: t.variable({ name: 'input' }), + }), + ], + selectionSet: t.selectionSet({ + selections: config.resultSelections, + }), + }), + ], + }), + }), + ], + }); + return print(document); +} + +function addVariable( + spec: VariableSpec, + definitions: VariableDefinitionNode[], + args: ArgumentNode[], + variables: Record +): void { + if (spec.value === undefined) return; + + definitions.push( + t.variableDefinition({ + variable: t.variable({ name: spec.varName }), + type: parseType(spec.typeName), + }) + ); + args.push( + t.argument({ + name: spec.argName ?? spec.varName, + value: t.variable({ name: spec.varName }), + }) + ); + variables[spec.varName] = spec.value; +} + +function buildValueAst( + value: unknown +): + | ReturnType + | ReturnType + | ReturnType + | ReturnType + | ReturnType + | ReturnType + | ReturnType + | EnumValueNode { + if (value === null) { + return t.nullValue(); + } + + if (typeof value === 'boolean') { + return t.booleanValue({ value }); + } + + if (typeof value === 'number') { + return Number.isInteger(value) + ? t.intValue({ value: value.toString() }) + : t.floatValue({ value: value.toString() }); + } + + if (typeof value === 'string') { + return t.stringValue({ value }); + } + + if (Array.isArray(value)) { + return t.listValue({ + values: value.map((item) => buildValueAst(item)), + }); + } + + if (typeof value === 'object' && value !== null) { + const obj = value as Record; + return t.objectValue({ + fields: Object.entries(obj).map(([key, val]) => + t.objectField({ + name: key, + value: buildValueAst(val), + }) + ), + }); + } + + throw new Error('Unsupported value type: ' + typeof value); +} diff --git a/sdk/constructive-react/src/public/orm/query/index.ts b/sdk/constructive-react/src/public/orm/query/index.ts new file mode 100644 index 000000000..468211e98 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/query/index.ts @@ -0,0 +1,706 @@ +/** + * Custom query operations + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { QueryBuilder, buildCustomDocument } from '../query-builder'; +import type { InferSelectResult, StrictSelect } from '../select-types'; +import type { + Object, + User, + ObjectSelect, + UserSelect, + AppPermissionConnection, + OrgPermissionConnection, + ObjectConnection, + AppLevelRequirementConnection, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export interface AppPermissionsGetPaddedMaskVariables { + mask?: string; +} +export interface OrgPermissionsGetPaddedMaskVariables { + mask?: string; +} +export interface StepsAchievedVariables { + vlevel?: string; + vroleId?: string; +} +export interface RevParseVariables { + dbId?: string; + storeId?: string; + refname?: string; +} +export interface AppPermissionsGetMaskVariables { + ids?: string[]; +} +export interface OrgPermissionsGetMaskVariables { + ids?: string[]; +} +export interface AppPermissionsGetMaskByNamesVariables { + names?: string[]; +} +export interface OrgPermissionsGetMaskByNamesVariables { + names?: string[]; +} +export interface AppPermissionsGetByMaskVariables { + mask?: string; + /** Only read the first `n` values of the set. */ + first?: number; + /** + * Skip the first `n` values from our `after` cursor, an alternative to cursor + * based pagination. May not be used with `last`. + */ + offset?: number; + /** Read all values in the set after (below) this cursor. */ + after?: string; +} +export interface OrgPermissionsGetByMaskVariables { + mask?: string; + /** Only read the first `n` values of the set. */ + first?: number; + /** + * Skip the first `n` values from our `after` cursor, an alternative to cursor + * based pagination. May not be used with `last`. + */ + offset?: number; + /** Read all values in the set after (below) this cursor. */ + after?: string; +} +export interface GetAllObjectsFromRootVariables { + databaseId?: string; + id?: string; + /** Only read the first `n` values of the set. */ + first?: number; + /** + * Skip the first `n` values from our `after` cursor, an alternative to cursor + * based pagination. May not be used with `last`. + */ + offset?: number; + /** Read all values in the set after (below) this cursor. */ + after?: string; +} +export interface GetPathObjectsFromRootVariables { + databaseId?: string; + id?: string; + path?: string[]; + /** Only read the first `n` values of the set. */ + first?: number; + /** + * Skip the first `n` values from our `after` cursor, an alternative to cursor + * based pagination. May not be used with `last`. + */ + offset?: number; + /** Read all values in the set after (below) this cursor. */ + after?: string; +} +export interface GetObjectAtPathVariables { + dbId?: string; + storeId?: string; + path?: string[]; + refname?: string; +} +export interface StepsRequiredVariables { + vlevel?: string; + vroleId?: string; + /** Only read the first `n` values of the set. */ + first?: number; + /** + * Skip the first `n` values from our `after` cursor, an alternative to cursor + * based pagination. May not be used with `last`. + */ + offset?: number; + /** Read all values in the set after (below) this cursor. */ + after?: string; +} +export function createQueryOperations(client: OrmClient) { + return { + currentUserId: (options?: { select?: Record }) => + new QueryBuilder<{ + currentUserId: string | null; + }>({ + client, + operation: 'query', + operationName: 'CurrentUserId', + fieldName: 'currentUserId', + ...buildCustomDocument( + 'query', + 'CurrentUserId', + 'currentUserId', + options?.select, + undefined, + [], + connectionFieldsMap, + undefined + ), + }), + currentIpAddress: (options?: { select?: Record }) => + new QueryBuilder<{ + currentIpAddress: string | null; + }>({ + client, + operation: 'query', + operationName: 'CurrentIpAddress', + fieldName: 'currentIpAddress', + ...buildCustomDocument( + 'query', + 'CurrentIpAddress', + 'currentIpAddress', + options?.select, + undefined, + [], + connectionFieldsMap, + undefined + ), + }), + currentUserAgent: (options?: { select?: Record }) => + new QueryBuilder<{ + currentUserAgent: string | null; + }>({ + client, + operation: 'query', + operationName: 'CurrentUserAgent', + fieldName: 'currentUserAgent', + ...buildCustomDocument( + 'query', + 'CurrentUserAgent', + 'currentUserAgent', + options?.select, + undefined, + [], + connectionFieldsMap, + undefined + ), + }), + appPermissionsGetPaddedMask: ( + args: AppPermissionsGetPaddedMaskVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + appPermissionsGetPaddedMask: string | null; + }>({ + client, + operation: 'query', + operationName: 'AppPermissionsGetPaddedMask', + fieldName: 'appPermissionsGetPaddedMask', + ...buildCustomDocument( + 'query', + 'AppPermissionsGetPaddedMask', + 'appPermissionsGetPaddedMask', + options?.select, + args, + [ + { + name: 'mask', + type: 'BitString', + }, + ], + connectionFieldsMap, + undefined + ), + }), + orgPermissionsGetPaddedMask: ( + args: OrgPermissionsGetPaddedMaskVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + orgPermissionsGetPaddedMask: string | null; + }>({ + client, + operation: 'query', + operationName: 'OrgPermissionsGetPaddedMask', + fieldName: 'orgPermissionsGetPaddedMask', + ...buildCustomDocument( + 'query', + 'OrgPermissionsGetPaddedMask', + 'orgPermissionsGetPaddedMask', + options?.select, + args, + [ + { + name: 'mask', + type: 'BitString', + }, + ], + connectionFieldsMap, + undefined + ), + }), + stepsAchieved: ( + args: StepsAchievedVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + stepsAchieved: boolean | null; + }>({ + client, + operation: 'query', + operationName: 'StepsAchieved', + fieldName: 'stepsAchieved', + ...buildCustomDocument( + 'query', + 'StepsAchieved', + 'stepsAchieved', + options?.select, + args, + [ + { + name: 'vlevel', + type: 'String', + }, + { + name: 'vroleId', + type: 'UUID', + }, + ], + connectionFieldsMap, + undefined + ), + }), + revParse: ( + args: RevParseVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + revParse: string | null; + }>({ + client, + operation: 'query', + operationName: 'RevParse', + fieldName: 'revParse', + ...buildCustomDocument( + 'query', + 'RevParse', + 'revParse', + options?.select, + args, + [ + { + name: 'dbId', + type: 'UUID', + }, + { + name: 'storeId', + type: 'UUID', + }, + { + name: 'refname', + type: 'String', + }, + ], + connectionFieldsMap, + undefined + ), + }), + appPermissionsGetMask: ( + args: AppPermissionsGetMaskVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + appPermissionsGetMask: string | null; + }>({ + client, + operation: 'query', + operationName: 'AppPermissionsGetMask', + fieldName: 'appPermissionsGetMask', + ...buildCustomDocument( + 'query', + 'AppPermissionsGetMask', + 'appPermissionsGetMask', + options?.select, + args, + [ + { + name: 'ids', + type: '[UUID]', + }, + ], + connectionFieldsMap, + undefined + ), + }), + orgPermissionsGetMask: ( + args: OrgPermissionsGetMaskVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + orgPermissionsGetMask: string | null; + }>({ + client, + operation: 'query', + operationName: 'OrgPermissionsGetMask', + fieldName: 'orgPermissionsGetMask', + ...buildCustomDocument( + 'query', + 'OrgPermissionsGetMask', + 'orgPermissionsGetMask', + options?.select, + args, + [ + { + name: 'ids', + type: '[UUID]', + }, + ], + connectionFieldsMap, + undefined + ), + }), + appPermissionsGetMaskByNames: ( + args: AppPermissionsGetMaskByNamesVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + appPermissionsGetMaskByNames: string | null; + }>({ + client, + operation: 'query', + operationName: 'AppPermissionsGetMaskByNames', + fieldName: 'appPermissionsGetMaskByNames', + ...buildCustomDocument( + 'query', + 'AppPermissionsGetMaskByNames', + 'appPermissionsGetMaskByNames', + options?.select, + args, + [ + { + name: 'names', + type: '[String]', + }, + ], + connectionFieldsMap, + undefined + ), + }), + orgPermissionsGetMaskByNames: ( + args: OrgPermissionsGetMaskByNamesVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + orgPermissionsGetMaskByNames: string | null; + }>({ + client, + operation: 'query', + operationName: 'OrgPermissionsGetMaskByNames', + fieldName: 'orgPermissionsGetMaskByNames', + ...buildCustomDocument( + 'query', + 'OrgPermissionsGetMaskByNames', + 'orgPermissionsGetMaskByNames', + options?.select, + args, + [ + { + name: 'names', + type: '[String]', + }, + ], + connectionFieldsMap, + undefined + ), + }), + appPermissionsGetByMask: ( + args: AppPermissionsGetByMaskVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + appPermissionsGetByMask: AppPermissionConnection | null; + }>({ + client, + operation: 'query', + operationName: 'AppPermissionsGetByMask', + fieldName: 'appPermissionsGetByMask', + ...buildCustomDocument( + 'query', + 'AppPermissionsGetByMask', + 'appPermissionsGetByMask', + options?.select, + args, + [ + { + name: 'mask', + type: 'BitString', + }, + { + name: 'first', + type: 'Int', + }, + { + name: 'offset', + type: 'Int', + }, + { + name: 'after', + type: 'Cursor', + }, + ], + connectionFieldsMap, + undefined + ), + }), + orgPermissionsGetByMask: ( + args: OrgPermissionsGetByMaskVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + orgPermissionsGetByMask: OrgPermissionConnection | null; + }>({ + client, + operation: 'query', + operationName: 'OrgPermissionsGetByMask', + fieldName: 'orgPermissionsGetByMask', + ...buildCustomDocument( + 'query', + 'OrgPermissionsGetByMask', + 'orgPermissionsGetByMask', + options?.select, + args, + [ + { + name: 'mask', + type: 'BitString', + }, + { + name: 'first', + type: 'Int', + }, + { + name: 'offset', + type: 'Int', + }, + { + name: 'after', + type: 'Cursor', + }, + ], + connectionFieldsMap, + undefined + ), + }), + getAllObjectsFromRoot: ( + args: GetAllObjectsFromRootVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + getAllObjectsFromRoot: ObjectConnection | null; + }>({ + client, + operation: 'query', + operationName: 'GetAllObjectsFromRoot', + fieldName: 'getAllObjectsFromRoot', + ...buildCustomDocument( + 'query', + 'GetAllObjectsFromRoot', + 'getAllObjectsFromRoot', + options?.select, + args, + [ + { + name: 'databaseId', + type: 'UUID', + }, + { + name: 'id', + type: 'UUID', + }, + { + name: 'first', + type: 'Int', + }, + { + name: 'offset', + type: 'Int', + }, + { + name: 'after', + type: 'Cursor', + }, + ], + connectionFieldsMap, + undefined + ), + }), + getPathObjectsFromRoot: ( + args: GetPathObjectsFromRootVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + getPathObjectsFromRoot: ObjectConnection | null; + }>({ + client, + operation: 'query', + operationName: 'GetPathObjectsFromRoot', + fieldName: 'getPathObjectsFromRoot', + ...buildCustomDocument( + 'query', + 'GetPathObjectsFromRoot', + 'getPathObjectsFromRoot', + options?.select, + args, + [ + { + name: 'databaseId', + type: 'UUID', + }, + { + name: 'id', + type: 'UUID', + }, + { + name: 'path', + type: '[String]', + }, + { + name: 'first', + type: 'Int', + }, + { + name: 'offset', + type: 'Int', + }, + { + name: 'after', + type: 'Cursor', + }, + ], + connectionFieldsMap, + undefined + ), + }), + getObjectAtPath: ( + args: GetObjectAtPathVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + getObjectAtPath: InferSelectResult | null; + }>({ + client, + operation: 'query', + operationName: 'GetObjectAtPath', + fieldName: 'getObjectAtPath', + ...buildCustomDocument( + 'query', + 'GetObjectAtPath', + 'getObjectAtPath', + options.select, + args, + [ + { + name: 'dbId', + type: 'UUID', + }, + { + name: 'storeId', + type: 'UUID', + }, + { + name: 'path', + type: '[String]', + }, + { + name: 'refname', + type: 'String', + }, + ], + connectionFieldsMap, + 'Object' + ), + }), + stepsRequired: ( + args: StepsRequiredVariables, + options?: { + select?: Record; + } + ) => + new QueryBuilder<{ + stepsRequired: AppLevelRequirementConnection | null; + }>({ + client, + operation: 'query', + operationName: 'StepsRequired', + fieldName: 'stepsRequired', + ...buildCustomDocument( + 'query', + 'StepsRequired', + 'stepsRequired', + options?.select, + args, + [ + { + name: 'vlevel', + type: 'String', + }, + { + name: 'vroleId', + type: 'UUID', + }, + { + name: 'first', + type: 'Int', + }, + { + name: 'offset', + type: 'Int', + }, + { + name: 'after', + type: 'Cursor', + }, + ], + connectionFieldsMap, + undefined + ), + }), + currentUser: ( + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + currentUser: InferSelectResult | null; + }>({ + client, + operation: 'query', + operationName: 'CurrentUser', + fieldName: 'currentUser', + ...buildCustomDocument( + 'query', + 'CurrentUser', + 'currentUser', + options.select, + undefined, + [], + connectionFieldsMap, + 'User' + ), + }), + }; +} diff --git a/sdk/constructive-react/src/public/orm/select-types.ts b/sdk/constructive-react/src/public/orm/select-types.ts new file mode 100644 index 000000000..80165efa6 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/select-types.ts @@ -0,0 +1,140 @@ +/** + * Type utilities for select inference + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +export interface ConnectionResult { + nodes: T[]; + totalCount: number; + pageInfo: PageInfo; +} + +export interface PageInfo { + hasNextPage: boolean; + hasPreviousPage: boolean; + startCursor?: string | null; + endCursor?: string | null; +} + +export interface FindManyArgs { + select?: TSelect; + where?: TWhere; + orderBy?: TOrderBy[]; + first?: number; + last?: number; + after?: string; + before?: string; + offset?: number; +} + +export interface FindFirstArgs { + select?: TSelect; + where?: TWhere; +} + +export interface CreateArgs { + data: TData; + select?: TSelect; +} + +export interface UpdateArgs { + where: TWhere; + data: TData; + select?: TSelect; +} + +export type FindOneArgs = { + select?: TSelect; +} & Record; + +export interface DeleteArgs { + where: TWhere; + select?: TSelect; +} + +type DepthLevel = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10; +type DecrementDepth = { + 0: 0; + 1: 0; + 2: 1; + 3: 2; + 4: 3; + 5: 4; + 6: 5; + 7: 6; + 8: 7; + 9: 8; + 10: 9; +}; + +/** + * Recursively validates select objects, rejecting unknown keys. + * + * NOTE: Depth is intentionally capped to avoid circular-instantiation issues + * in very large cyclic schemas. + */ +export type DeepExact = Depth extends 0 + ? T extends Shape + ? T + : never + : T extends Shape + ? Exclude extends never + ? { + [K in keyof T]: K extends keyof Shape + ? T[K] extends { select: infer NS } + ? Extract extends { + select?: infer ShapeNS; + } + ? DeepExact< + Omit & { + select: DeepExact, DecrementDepth[Depth]>; + }, + Extract, + DecrementDepth[Depth] + > + : never + : T[K] + : never; + } + : never + : never; + +/** + * Enforces exact select shape while keeping contextual typing on `S extends XxxSelect`. + * Use this as an intersection in overloads: + * `{ select: S } & StrictSelect`. + */ +export type StrictSelect = S extends DeepExact ? {} : never; + +/** + * Hook-optimized strict select variant. + * + * Uses a shallower recursion depth to keep editor autocomplete responsive + * in large schemas while still validating common nested-select mistakes. + */ +export type HookStrictSelect = S extends DeepExact ? {} : never; + +/** + * Infer result type from select configuration + */ +export type InferSelectResult = TSelect extends undefined + ? TEntity + : { + [K in keyof TSelect as TSelect[K] extends false | undefined + ? never + : K]: TSelect[K] extends true + ? K extends keyof TEntity + ? TEntity[K] + : never + : TSelect[K] extends { select: infer NestedSelect } + ? K extends keyof TEntity + ? NonNullable extends ConnectionResult + ? ConnectionResult> + : + | InferSelectResult, NestedSelect> + | (null extends TEntity[K] ? null : never) + : never + : K extends keyof TEntity + ? TEntity[K] + : never; + }; diff --git a/sdk/constructive-react/src/public/orm/skills/api.md b/sdk/constructive-react/src/public/orm/skills/api.md new file mode 100644 index 000000000..4fbea1f24 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/api.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..bc5e1a7b6 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/apiModule.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..965a1cded --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/apiSchema.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..aa0d12b64 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/app.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..3e7b712a8 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/appAchievement.md @@ -0,0 +1,34 @@ +# orm-appAchievement + + + +ORM operations for AppAchievement records + +## 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 new file mode 100644 index 000000000..6b585abee --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/appAdminGrant.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..017771262 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/appGrant.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..b9c1a83b0 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/appLevel.md @@ -0,0 +1,34 @@ +# orm-appLevel + + + +ORM operations for AppLevel records + +## 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 new file mode 100644 index 000000000..10cfc240d --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/appLevelRequirement.md @@ -0,0 +1,34 @@ +# orm-appLevelRequirement + + + +ORM operations for AppLevelRequirement records + +## 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 new file mode 100644 index 000000000..50fa2b37f --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/appLimit.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..eb070a028 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/appLimitDefault.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..07e8f9763 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/appMembership.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..82c322958 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/appMembershipDefault.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..89c574dd7 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/appOwnerGrant.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..a497f7b8a --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/appPermission.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..ef8289183 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/appPermissionDefault.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..369df9f26 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/appPermissionsGetByMask.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..ceca5548f --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/appPermissionsGetMask.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..c3f40dddc --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/appPermissionsGetMaskByNames.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..accce0eed --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/appPermissionsGetPaddedMask.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..840537361 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/appStep.md @@ -0,0 +1,34 @@ +# orm-appStep + + + +ORM operations for AppStep records + +## 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 new file mode 100644 index 000000000..4716da759 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/applyRls.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..96c82138c --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/astMigration.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..d7eed269a --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/auditLog.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..08fff3805 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/bootstrapUser.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..1e13d4f10 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/checkConstraint.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..1c5c3d8ba --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/checkPassword.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..3d5de6b3b --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/claimedInvite.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..ee1b9fea4 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/commit.md @@ -0,0 +1,34 @@ +# orm-commit + + + +ORM operations for Commit records + +## 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 new file mode 100644 index 000000000..4d76c3194 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/confirmDeleteAccount.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..ff7e10281 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/connectedAccount.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..5a0a95552 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/connectedAccountsModule.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..aeaeb3f50 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/createUserDatabase.md @@ -0,0 +1,35 @@ +# 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 new file mode 100644 index 000000000..70e896572 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/cryptoAddress.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..1eb3867b9 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/cryptoAddressesModule.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..2cb20a2ec --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/cryptoAuthModule.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..63d2d9969 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/currentIpAddress.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..ca907fcb4 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/currentUser.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..e5ba1e850 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/currentUserAgent.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..c27ebc8c5 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/currentUserId.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..cc4593c1d --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/database.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..1b340f51f --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/databaseProvisionModule.md @@ -0,0 +1,34 @@ +# orm-databaseProvisionModule + + + +ORM operations for DatabaseProvisionModule records + +## 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 new file mode 100644 index 000000000..23189ab90 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/defaultIdsModule.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..4d81ed52e --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/denormalizedTableField.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..382a92135 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/domain.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..9bc21e74f --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/email.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..2634c1661 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/emailsModule.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..af02ae8c9 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/encryptedSecretsModule.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..d587afacb --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/extendTokenExpires.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..e22588cfc --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/field.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..c4cbbbce9 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/fieldModule.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..fa445e8f4 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/foreignKeyConstraint.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..38c59f662 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/forgotPassword.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..b3f195547 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/freezeObjects.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..996c517da --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/fullTextSearch.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..71c5db4db --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/getAllObjectsFromRoot.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..9c61daad2 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/getAllRecord.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..820b6d5fc --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/getObjectAtPath.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..954943d90 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/getPathObjectsFromRoot.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..c6ba413a2 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/hierarchyModule.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..0a848a2e1 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/index.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..43a46841f --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/initEmptyRepo.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..2e9db15a0 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/insertNodeAtPath.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..727a2107e --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/invite.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..64bdeacaa --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/invitesModule.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..50a907813 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/levelsModule.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..7db5044ee --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/limitFunction.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..6f9cccea1 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/limitsModule.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..898d85107 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/membershipType.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..17b77bb4b --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/membershipTypesModule.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..6851144a5 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/membershipsModule.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..e9f175902 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/nodeTypeRegistry.md @@ -0,0 +1,34 @@ +# orm-nodeTypeRegistry + + + +ORM operations for NodeTypeRegistry records + +## 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 new file mode 100644 index 000000000..e006a0b5a --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/object.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..2ac3f962d --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/oneTimeToken.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..675b76741 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/orgAdminGrant.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..5693e2856 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/orgClaimedInvite.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..ac4c4b896 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/orgGrant.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..ea7ff346d --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/orgInvite.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..19681fddf --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/orgLimit.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..4a4e505bd --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/orgLimitDefault.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..2aadbafd3 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/orgMember.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..b98b850b2 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/orgMembership.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..cd8146f14 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/orgMembershipDefault.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..8a490261b --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/orgOwnerGrant.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..1f18add5d --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/orgPermission.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..8d8e20afc --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/orgPermissionDefault.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..437f5c98b --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/orgPermissionsGetByMask.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..c626883ad --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/orgPermissionsGetMask.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..f67397dcc --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/orgPermissionsGetMaskByNames.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..a67198a29 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/orgPermissionsGetPaddedMask.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..4b11e8d55 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/permissionsModule.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..2a77480fa --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/phoneNumber.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..309f0bc88 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/phoneNumbersModule.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..c31b2d4dd --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/policy.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..65e798742 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/primaryKeyConstraint.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..838b474d3 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/procedure.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..b6a9caa1a --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/profilesModule.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..447ffb844 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/provisionDatabaseWithUser.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..bf392da9b --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/ref.md @@ -0,0 +1,34 @@ +# orm-ref + + + +ORM operations for Ref records + +## 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 new file mode 100644 index 000000000..116c41c0a --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/removeNodeAtPath.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..fe676ada5 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/resetPassword.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..0a1830ff8 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/revParse.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..2d97f0fe6 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/rlsModule.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..261296f03 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/roleType.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..d02fb12ca --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/schema.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..296f97ae4 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/schemaGrant.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..e2e1a03a7 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/secretsModule.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..aaf0470b5 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/sendAccountDeletionEmail.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..2f0cfea9a --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/sendVerificationEmail.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..df8c99266 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/sessionsModule.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..a5fa6e0d9 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/setAndCommit.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..7f09dab97 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/setDataAtPath.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..7a221b219 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/setFieldOrder.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..bbf15b68d --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/setPassword.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..7248c0e1c --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/setPropsAndCommit.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..d49334136 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/signIn.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..9a87fd088 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/signInOneTimeToken.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..7ada67374 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/signOut.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..8c999d2b8 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/signUp.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..93aa35cdd --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/site.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..b1aaf8017 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/siteMetadatum.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..94a650431 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/siteModule.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..4b58181c8 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/siteTheme.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..f02f86fd5 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/sqlMigration.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..bce806fd4 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/stepsAchieved.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..8ea0ad638 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/stepsRequired.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..95a5a7054 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/store.md @@ -0,0 +1,34 @@ +# orm-store + + + +ORM operations for Store records + +## 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 new file mode 100644 index 000000000..ae946fe75 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/submitInviteCode.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..0ceff0ee1 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/submitOrgInviteCode.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..eae9607ea --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/table.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..e31fcb8ff --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/tableGrant.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..38fa64d39 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/tableModule.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..f829a0de9 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/tableTemplateModule.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..ef4d73ecc --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/trigger.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..739e3f267 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/triggerFunction.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..8724c6983 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/uniqueConstraint.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..d1a7bbf95 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/updateNodeAtPath.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..e80b99583 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/user.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..4b022d732 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/userAuthModule.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..320d49201 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/usersModule.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..3f2a19a32 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/uuidModule.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..c9a3f4ac1 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/verifyEmail.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..10b75c518 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/verifyPassword.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..5541069f3 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/verifyTotp.md @@ -0,0 +1,19 @@ +# 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 new file mode 100644 index 000000000..c2db2a347 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/view.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..062399792 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/viewGrant.md @@ -0,0 +1,34 @@ +# 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 new file mode 100644 index 000000000..6844b1cb2 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/viewRule.md @@ -0,0 +1,34 @@ +# orm-viewRule + + + +ORM operations for ViewRule records + +## 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 new file mode 100644 index 000000000..4e99263c0 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/skills/viewTable.md @@ -0,0 +1,34 @@ +# orm-viewTable + + + +ORM operations for ViewTable records + +## 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/orm/types.ts b/sdk/constructive-react/src/public/orm/types.ts new file mode 100644 index 000000000..7c1120bcd --- /dev/null +++ b/sdk/constructive-react/src/public/orm/types.ts @@ -0,0 +1,8 @@ +/** + * Types re-export + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +// Re-export all types from input-types +export * from './input-types'; diff --git a/sdk/constructive-react/src/public/schema-types.ts b/sdk/constructive-react/src/public/schema-types.ts new file mode 100644 index 000000000..26e9be0bd --- /dev/null +++ b/sdk/constructive-react/src/public/schema-types.ts @@ -0,0 +1,14482 @@ +/** + * GraphQL schema types for custom operations + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import type { + Api, + ApiModule, + ApiSchema, + App, + AppAchievement, + AppAdminGrant, + AppGrant, + AppLevel, + AppLevelRequirement, + AppLimit, + AppLimitDefault, + AppMembership, + AppMembershipDefault, + AppOwnerGrant, + AppPermission, + AppPermissionDefault, + AppStep, + AstMigration, + AuditLog, + CheckConstraint, + ClaimedInvite, + Commit, + ConnectedAccount, + ConnectedAccountsModule, + CryptoAddress, + CryptoAddressesModule, + CryptoAuthModule, + Database, + DatabaseProvisionModule, + DefaultIdsModule, + DenormalizedTableField, + Domain, + Email, + EmailsModule, + EncryptedSecretsModule, + Field, + FieldModule, + ForeignKeyConstraint, + FullTextSearch, + GetAllRecord, + HierarchyModule, + Index, + Invite, + InvitesModule, + LevelsModule, + LimitFunction, + LimitsModule, + MembershipType, + MembershipTypesModule, + MembershipsModule, + NodeTypeRegistry, + Object, + OrgAdminGrant, + OrgClaimedInvite, + OrgGrant, + OrgInvite, + OrgLimit, + OrgLimitDefault, + OrgMember, + OrgMembership, + OrgMembershipDefault, + OrgOwnerGrant, + OrgPermission, + OrgPermissionDefault, + PermissionsModule, + PhoneNumber, + PhoneNumbersModule, + Policy, + PrimaryKeyConstraint, + Procedure, + ProfilesModule, + Ref, + RlsModule, + RoleType, + Schema, + SchemaGrant, + SecretsModule, + SessionsModule, + Site, + SiteMetadatum, + SiteModule, + SiteTheme, + SqlMigration, + Store, + Table, + TableGrant, + TableModule, + TableTemplateModule, + Trigger, + TriggerFunction, + UniqueConstraint, + User, + UserAuthModule, + UsersModule, + UuidModule, + View, + ViewGrant, + ViewRule, + ViewTable, + BigFloatFilter, + BigIntFilter, + BitStringFilter, + BooleanFilter, + DateFilter, + DatetimeFilter, + FloatFilter, + FullTextFilter, + IntFilter, + IntListFilter, + InternetAddressFilter, + JSONFilter, + StringFilter, + StringListFilter, + UUIDFilter, + UUIDListFilter, +} from './types'; +export type ConstructiveInternalTypeAttachment = unknown; +export type ConstructiveInternalTypeEmail = unknown; +export type ConstructiveInternalTypeHostname = unknown; +export type ConstructiveInternalTypeImage = unknown; +export type ConstructiveInternalTypeOrigin = unknown; +export type ConstructiveInternalTypeUrl = unknown; +export type ObjectCategory = 'CORE' | 'MODULE' | 'APP'; +/** Methods to use when ordering `CheckConstraint`. */ +export type CheckConstraintOrderBy = + | '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' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `Field`. */ +export type FieldOrderBy = + | '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' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `ForeignKeyConstraint`. */ +export type ForeignKeyConstraintOrderBy = + | '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' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `FullTextSearch`. */ +export type FullTextSearchOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `Index`. */ +export type IndexOrderBy = + | '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' + | 'CREATED_AT_ASC' + | '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' + | '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' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `PrimaryKeyConstraint`. */ +export type PrimaryKeyConstraintOrderBy = + | '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' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `TableGrant`. */ +export type TableGrantOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `Trigger`. */ +export type TriggerOrderBy = + | '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' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `UniqueConstraint`. */ +export type UniqueConstraintOrderBy = + | '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' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `ViewTable`. */ +export type ViewTableOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'VIEW_ID_ASC' + | 'VIEW_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC'; +/** Methods to use when ordering `ViewGrant`. */ +export type ViewGrantOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'VIEW_ID_ASC' + | 'VIEW_ID_DESC' + | 'ROLE_NAME_ASC' + | 'ROLE_NAME_DESC' + | 'PRIVILEGE_ASC' + | 'PRIVILEGE_DESC'; +/** Methods to use when ordering `ViewRule`. */ +export type ViewRuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'VIEW_ID_ASC' + | 'VIEW_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC'; +/** Methods to use when ordering `View`. */ +export type ViewOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC'; +/** Methods to use when ordering `TableModule`. */ +export type TableModuleOrderBy = + | '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 `TableTemplateModule`. */ +export type TableTemplateModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'OWNER_TABLE_ID_ASC' + | 'OWNER_TABLE_ID_DESC' + | 'NODE_TYPE_ASC' + | 'NODE_TYPE_DESC'; +/** Methods to use when ordering `Table`. */ +export type TableOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `SchemaGrant`. */ +export type SchemaGrantOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `ApiModule`. */ +export type ApiModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'API_ID_ASC' + | 'API_ID_DESC'; +/** Methods to use when ordering `ApiSchema`. */ +export type ApiSchemaOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'API_ID_ASC' + | 'API_ID_DESC'; +/** Methods to use when ordering `Domain`. */ +export type DomainOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'API_ID_ASC' + | 'API_ID_DESC' + | 'SITE_ID_ASC' + | 'SITE_ID_DESC' + | 'SUBDOMAIN_ASC' + | 'SUBDOMAIN_DESC' + | 'DOMAIN_ASC' + | 'DOMAIN_DESC'; +/** Methods to use when ordering `SiteMetadatum`. */ +export type SiteMetadatumOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SITE_ID_ASC' + | 'SITE_ID_DESC'; +/** Methods to use when ordering `SiteModule`. */ +export type SiteModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SITE_ID_ASC' + | 'SITE_ID_DESC'; +/** Methods to use when ordering `SiteTheme`. */ +export type SiteThemeOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SITE_ID_ASC' + | 'SITE_ID_DESC'; +/** Methods to use when ordering `Schema`. */ +export type SchemaOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'SCHEMA_NAME_ASC' + | 'SCHEMA_NAME_DESC' + | 'CREATED_AT_ASC' + | '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' + | '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 `Api`. */ +export type ApiOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC'; +/** Methods to use when ordering `Site`. */ +export type SiteOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +/** Methods to use when ordering `App`. */ +export type AppOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SITE_ID_ASC' + | 'SITE_ID_DESC'; +/** Methods to use when ordering `ConnectedAccountsModule`. */ +export type ConnectedAccountsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +/** Methods to use when ordering `CryptoAddressesModule`. */ +export type CryptoAddressesModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +/** Methods to use when ordering `CryptoAuthModule`. */ +export type CryptoAuthModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +/** Methods to use when ordering `DefaultIdsModule`. */ +export type DefaultIdsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +/** Methods to use when ordering `DenormalizedTableField`. */ +export type DenormalizedTableFieldOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +/** Methods to use when ordering `EmailsModule`. */ +export type EmailsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +/** Methods to use when ordering `EncryptedSecretsModule`. */ +export type EncryptedSecretsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +/** Methods to use when ordering `FieldModule`. */ +export type FieldModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'NODE_TYPE_ASC' + | 'NODE_TYPE_DESC'; +/** Methods to use when ordering `InvitesModule`. */ +export type InvitesModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +/** Methods to use when ordering `LevelsModule`. */ +export type LevelsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +/** Methods to use when ordering `LimitsModule`. */ +export type LimitsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +/** Methods to use when ordering `MembershipTypesModule`. */ +export type MembershipTypesModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +/** Methods to use when ordering `MembershipsModule`. */ +export type MembershipsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +/** Methods to use when ordering `PermissionsModule`. */ +export type PermissionsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +/** Methods to use when ordering `PhoneNumbersModule`. */ +export type PhoneNumbersModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +/** Methods to use when ordering `ProfilesModule`. */ +export type ProfilesModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'MEMBERSHIP_TYPE_ASC' + | 'MEMBERSHIP_TYPE_DESC'; +/** Methods to use when ordering `RlsModule`. */ +export type RlsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'API_ID_ASC' + | 'API_ID_DESC'; +/** Methods to use when ordering `SecretsModule`. */ +export type SecretsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +/** Methods to use when ordering `SessionsModule`. */ +export type SessionsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +/** Methods to use when ordering `UserAuthModule`. */ +export type UserAuthModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +/** Methods to use when ordering `UsersModule`. */ +export type UsersModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +/** Methods to use when ordering `UuidModule`. */ +export type UuidModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +/** Methods to use when ordering `DatabaseProvisionModule`. */ +export type DatabaseProvisionModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +/** Methods to use when ordering `Database`. */ +export type DatabaseOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'SCHEMA_HASH_ASC' + | 'SCHEMA_HASH_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `AppAdminGrant`. */ +export type AppAdminGrantOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `AppOwnerGrant`. */ +export type AppOwnerGrantOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `AppGrant`. */ +export type AppGrantOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `OrgMembership`. */ +export type OrgMembershipOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | '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_OWNER_ASC' + | 'IS_OWNER_DESC' + | 'IS_ADMIN_ASC' + | 'IS_ADMIN_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; +/** Methods to use when ordering `OrgMember`. */ +export type OrgMemberOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_ADMIN_ASC' + | 'IS_ADMIN_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; +/** Methods to use when ordering `OrgAdminGrant`. */ +export type OrgAdminGrantOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `OrgOwnerGrant`. */ +export type OrgOwnerGrantOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `OrgGrant`. */ +export type OrgGrantOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `AppLimit`. */ +export type AppLimitOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC'; +/** Methods to use when ordering `OrgLimit`. */ +export type OrgLimitOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; +/** Methods to use when ordering `AppStep`. */ +export type AppStepOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `AppAchievement`. */ +export type AppAchievementOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_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' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'EMAIL_ASC' + | 'EMAIL_DESC' + | 'SENDER_ID_ASC' + | 'SENDER_ID_DESC' + | 'INVITE_TOKEN_ASC' + | 'INVITE_TOKEN_DESC' + | 'INVITE_VALID_ASC' + | 'INVITE_VALID_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `ClaimedInvite`. */ +export type ClaimedInviteOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'SENDER_ID_ASC' + | 'SENDER_ID_DESC' + | 'RECEIVER_ID_ASC' + | 'RECEIVER_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `OrgInvite`. */ +export type OrgInviteOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'EMAIL_ASC' + | 'EMAIL_DESC' + | 'SENDER_ID_ASC' + | 'SENDER_ID_DESC' + | 'INVITE_TOKEN_ASC' + | 'INVITE_TOKEN_DESC' + | 'INVITE_VALID_ASC' + | 'INVITE_VALID_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; +/** Methods to use when ordering `OrgClaimedInvite`. */ +export type OrgClaimedInviteOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'SENDER_ID_ASC' + | 'SENDER_ID_DESC' + | 'RECEIVER_ID_ASC' + | 'RECEIVER_ID_DESC' + | 'CREATED_AT_ASC' + | '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' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC'; +/** Methods to use when ordering `Store`. */ +export type StoreOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | '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 = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_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 `CryptoAddress`. */ +export type CryptoAddressOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'ADDRESS_ASC' + | 'ADDRESS_DESC' + | 'CREATED_AT_ASC' + | '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 `ConnectedAccount`. */ +export type ConnectedAccountOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'SERVICE_ASC' + | 'SERVICE_DESC' + | 'IDENTIFIER_ASC' + | 'IDENTIFIER_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `PhoneNumber`. */ +export type PhoneNumberOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NUMBER_ASC' + | 'NUMBER_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `AppPermission`. */ +export type AppPermissionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'BITNUM_ASC' + | 'BITNUM_DESC'; +/** Methods to use when ordering `OrgPermission`. */ +export type OrgPermissionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'BITNUM_ASC' + | 'BITNUM_DESC'; +/** Methods to use when ordering `AppMembershipDefault`. */ +export type AppMembershipDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | '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'; +/** 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' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'FRZN_ASC' + | 'FRZN_DESC'; +/** Methods to use when ordering `Commit`. */ +export type CommitOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +/** Methods to use when ordering `OrgMembershipDefault`. */ +export type OrgMembershipDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | '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' + | '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' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'LEVEL_ASC' + | 'LEVEL_DESC' + | 'PRIORITY_ASC' + | 'PRIORITY_DESC' + | 'CREATED_AT_ASC' + | '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 `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 `SqlMigration`. */ +export type SqlMigrationOrderBy = + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'DEPLOY_ASC' + | 'DEPLOY_DESC' + | 'CONTENT_ASC' + | 'CONTENT_DESC' + | 'REVERT_ASC' + | 'REVERT_DESC' + | 'VERIFY_ASC' + | 'VERIFY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ACTION_ASC' + | 'ACTION_DESC' + | 'ACTION_ID_ASC' + | 'ACTION_ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC'; +/** Methods to use when ordering `AstMigration`. */ +export type AstMigrationOrderBy = + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'DEPLOYS_ASC' + | 'DEPLOYS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ACTION_ASC' + | 'ACTION_DESC' + | 'ACTION_ID_ASC' + | 'ACTION_ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC'; +/** Methods to use when ordering `AppMembership`. */ +export type AppMembershipOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | '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_OWNER_ASC' + | 'IS_OWNER_DESC' + | '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'; +/** Methods to use when ordering `HierarchyModule`. */ +export type HierarchyModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +/** + * A condition to be used against `CheckConstraint` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface CheckConstraintCondition { + /** 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 `type` field. */ + type?: string; + /** Checks for equality with the object’s `fieldIds` field. */ + fieldIds?: string[]; + /** Checks for equality with the object’s `expr` field. */ + expr?: unknown; + /** 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 `CheckConstraint` object types. All fields are combined with a logical ‘and.’ */ +export interface CheckConstraintFilter { + /** 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 `type` field. */ + type?: StringFilter; + /** Filter by the object’s `fieldIds` field. */ + fieldIds?: UUIDListFilter; + /** Filter by the object’s `expr` field. */ + expr?: JSONFilter; + /** 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?: CheckConstraintFilter[]; + /** Checks for any expressions in this list. */ + or?: CheckConstraintFilter[]; + /** Negates the expression. */ + not?: CheckConstraintFilter; +} +/** A filter to be used against ObjectCategory fields. All fields are combined with a logical ‘and.’ */ +export interface ObjectCategoryFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: ObjectCategory; + /** Not equal to the specified value. */ + notEqualTo?: ObjectCategory; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: ObjectCategory; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: ObjectCategory; + /** Included in the specified list. */ + in?: ObjectCategory[]; + /** Not included in the specified list. */ + notIn?: ObjectCategory[]; + /** Less than the specified value. */ + lessThan?: ObjectCategory; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: ObjectCategory; + /** Greater than the specified value. */ + greaterThan?: ObjectCategory; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: ObjectCategory; +} +/** A condition to be used against `Field` object types. All fields are tested for equality and combined with a logical ‘and.’ */ +export interface FieldCondition { + /** 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 `smartTags` field. */ + smartTags?: unknown; + /** Checks for equality with the object’s `isRequired` field. */ + isRequired?: boolean; + /** Checks for equality with the object’s `defaultValue` field. */ + defaultValue?: string; + /** Checks for equality with the object’s `defaultValueAst` field. */ + defaultValueAst?: unknown; + /** Checks for equality with the object’s `isHidden` field. */ + isHidden?: boolean; + /** Checks for equality with the object’s `type` field. */ + type?: string; + /** Checks for equality with the object’s `fieldOrder` field. */ + fieldOrder?: number; + /** Checks for equality with the object’s `regexp` field. */ + regexp?: string; + /** Checks for equality with the object’s `chk` field. */ + chk?: unknown; + /** Checks for equality with the object’s `chkExpr` field. */ + chkExpr?: unknown; + /** Checks for equality with the object’s `min` field. */ + min?: number; + /** Checks for equality with the object’s `max` field. */ + max?: number; + /** Checks for equality with the object’s `tags` field. */ + tags?: string[]; + /** 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 `createdAt` field. */ + createdAt?: string; + /** Checks for equality with the object’s `updatedAt` field. */ + updatedAt?: string; +} +/** A filter to be used against `Field` object types. All fields are combined with a logical ‘and.’ */ +export interface FieldFilter { + /** 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 `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `isRequired` field. */ + isRequired?: BooleanFilter; + /** Filter by the object’s `defaultValue` field. */ + defaultValue?: StringFilter; + /** Filter by the object’s `defaultValueAst` field. */ + defaultValueAst?: JSONFilter; + /** Filter by the object’s `isHidden` field. */ + isHidden?: BooleanFilter; + /** Filter by the object’s `type` field. */ + type?: StringFilter; + /** Filter by the object’s `fieldOrder` field. */ + fieldOrder?: IntFilter; + /** Filter by the object’s `regexp` field. */ + regexp?: StringFilter; + /** Filter by the object’s `chk` field. */ + chk?: JSONFilter; + /** Filter by the object’s `chkExpr` field. */ + chkExpr?: JSONFilter; + /** Filter by the object’s `min` field. */ + min?: FloatFilter; + /** Filter by the object’s `max` field. */ + max?: FloatFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** 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 `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: FieldFilter[]; + /** Checks for any expressions in this list. */ + or?: FieldFilter[]; + /** Negates the expression. */ + not?: FieldFilter; +} +/** + * A condition to be used against `ForeignKeyConstraint` object types. All fields + * are tested for equality and combined with a logical ‘and.’ + */ +export interface ForeignKeyConstraintCondition { + /** 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 `description` field. */ + description?: string; + /** Checks for equality with the object’s `smartTags` field. */ + smartTags?: unknown; + /** Checks for equality with the object’s `type` field. */ + type?: string; + /** Checks for equality with the object’s `fieldIds` field. */ + fieldIds?: string[]; + /** Checks for equality with the object’s `refTableId` field. */ + refTableId?: string; + /** Checks for equality with the object’s `refFieldIds` field. */ + refFieldIds?: string[]; + /** Checks for equality with the object’s `deleteAction` field. */ + deleteAction?: string; + /** Checks for equality with the object’s `updateAction` field. */ + updateAction?: string; + /** 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 `ForeignKeyConstraint` object types. All fields are combined with a logical ‘and.’ */ +export interface ForeignKeyConstraintFilter { + /** 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 `description` field. */ + description?: StringFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `type` field. */ + type?: StringFilter; + /** Filter by the object’s `fieldIds` field. */ + fieldIds?: UUIDListFilter; + /** Filter by the object’s `refTableId` field. */ + refTableId?: UUIDFilter; + /** Filter by the object’s `refFieldIds` field. */ + refFieldIds?: UUIDListFilter; + /** Filter by the object’s `deleteAction` field. */ + deleteAction?: StringFilter; + /** Filter by the object’s `updateAction` field. */ + updateAction?: StringFilter; + /** 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?: ForeignKeyConstraintFilter[]; + /** Checks for any expressions in this list. */ + or?: ForeignKeyConstraintFilter[]; + /** Negates the expression. */ + not?: ForeignKeyConstraintFilter; +} +/** + * A condition to be used against `FullTextSearch` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface FullTextSearchCondition { + /** 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 `fieldId` field. */ + fieldId?: string; + /** Checks for equality with the object’s `fieldIds` field. */ + fieldIds?: string[]; + /** Checks for equality with the object’s `weights` field. */ + weights?: string[]; + /** Checks for equality with the object’s `langs` field. */ + langs?: 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 `FullTextSearch` object types. All fields are combined with a logical ‘and.’ */ +export interface FullTextSearchFilter { + /** 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 `fieldId` field. */ + fieldId?: UUIDFilter; + /** Filter by the object’s `fieldIds` field. */ + fieldIds?: UUIDListFilter; + /** Filter by the object’s `weights` field. */ + weights?: StringListFilter; + /** Filter by the object’s `langs` field. */ + langs?: 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?: FullTextSearchFilter[]; + /** Checks for any expressions in this list. */ + or?: FullTextSearchFilter[]; + /** Negates the expression. */ + not?: FullTextSearchFilter; +} +/** A condition to be used against `Index` object types. All fields are tested for equality and combined with a logical ‘and.’ */ +export interface IndexCondition { + /** 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 `fieldIds` field. */ + fieldIds?: string[]; + /** Checks for equality with the object’s `includeFieldIds` field. */ + includeFieldIds?: string[]; + /** Checks for equality with the object’s `accessMethod` field. */ + accessMethod?: string; + /** Checks for equality with the object’s `indexParams` field. */ + indexParams?: unknown; + /** Checks for equality with the object’s `whereClause` field. */ + whereClause?: unknown; + /** Checks for equality with the object’s `isUnique` field. */ + isUnique?: boolean; + /** 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 `Index` object types. All fields are combined with a logical ‘and.’ */ +export interface IndexFilter { + /** 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 `fieldIds` field. */ + fieldIds?: UUIDListFilter; + /** Filter by the object’s `includeFieldIds` field. */ + includeFieldIds?: UUIDListFilter; + /** Filter by the object’s `accessMethod` field. */ + accessMethod?: StringFilter; + /** Filter by the object’s `indexParams` field. */ + indexParams?: JSONFilter; + /** Filter by the object’s `whereClause` field. */ + whereClause?: JSONFilter; + /** Filter by the object’s `isUnique` field. */ + isUnique?: BooleanFilter; + /** 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?: IndexFilter[]; + /** Checks for any expressions in this list. */ + or?: 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. */ + 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 `roleName` field. */ + roleName?: string; + /** Checks for equality with the object’s `privilege` field. */ + privilege?: string; + /** Checks for equality with the object’s `permissive` field. */ + permissive?: boolean; + /** Checks for equality with the object’s `disabled` field. */ + disabled?: boolean; + /** Checks for equality with the object’s `policyType` field. */ + policyType?: string; + /** Checks for equality with the object’s `data` field. */ + data?: unknown; + /** 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 `Policy` object types. All fields are combined with a logical ‘and.’ */ +export interface PolicyFilter { + /** 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 `roleName` field. */ + roleName?: StringFilter; + /** Filter by the object’s `privilege` field. */ + privilege?: StringFilter; + /** Filter by the object’s `permissive` field. */ + permissive?: BooleanFilter; + /** Filter by the object’s `disabled` field. */ + disabled?: BooleanFilter; + /** Filter by the object’s `policyType` field. */ + policyType?: StringFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; + /** 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?: PolicyFilter[]; + /** Checks for any expressions in this list. */ + or?: PolicyFilter[]; + /** Negates the expression. */ + not?: PolicyFilter; +} +/** + * A condition to be used against `PrimaryKeyConstraint` object types. All fields + * are tested for equality and combined with a logical ‘and.’ + */ +export interface PrimaryKeyConstraintCondition { + /** 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 `type` field. */ + type?: string; + /** Checks for equality with the object’s `fieldIds` field. */ + fieldIds?: 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 `PrimaryKeyConstraint` object types. All fields are combined with a logical ‘and.’ */ +export interface PrimaryKeyConstraintFilter { + /** 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 `type` field. */ + type?: StringFilter; + /** Filter by the object’s `fieldIds` field. */ + fieldIds?: UUIDListFilter; + /** 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?: PrimaryKeyConstraintFilter[]; + /** Checks for any expressions in this list. */ + or?: PrimaryKeyConstraintFilter[]; + /** Negates the expression. */ + not?: PrimaryKeyConstraintFilter; +} +/** + * A condition to be used against `TableGrant` object types. All fields are tested + * for equality and combined with a logical ‘and.’ + */ +export interface TableGrantCondition { + /** 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 `privilege` field. */ + privilege?: string; + /** Checks for equality with the object’s `roleName` field. */ + roleName?: string; + /** Checks for equality with the object’s `fieldIds` field. */ + fieldIds?: 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 `TableGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface TableGrantFilter { + /** 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 `privilege` field. */ + privilege?: StringFilter; + /** Filter by the object’s `roleName` field. */ + roleName?: StringFilter; + /** Filter by the object’s `fieldIds` field. */ + fieldIds?: UUIDListFilter; + /** 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?: TableGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: TableGrantFilter[]; + /** Negates the expression. */ + not?: TableGrantFilter; +} +/** A condition to be used against `Trigger` object types. All fields are tested for equality and combined with a logical ‘and.’ */ +export interface TriggerCondition { + /** 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 `event` field. */ + event?: string; + /** Checks for equality with the object’s `functionName` field. */ + functionName?: 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 `Trigger` object types. All fields are combined with a logical ‘and.’ */ +export interface TriggerFilter { + /** 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 `event` field. */ + event?: StringFilter; + /** Filter by the object’s `functionName` field. */ + functionName?: 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?: TriggerFilter[]; + /** Checks for any expressions in this list. */ + or?: TriggerFilter[]; + /** Negates the expression. */ + not?: TriggerFilter; +} +/** + * A condition to be used against `UniqueConstraint` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface UniqueConstraintCondition { + /** 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 `description` field. */ + description?: string; + /** Checks for equality with the object’s `smartTags` field. */ + smartTags?: unknown; + /** Checks for equality with the object’s `type` field. */ + type?: string; + /** Checks for equality with the object’s `fieldIds` field. */ + fieldIds?: string[]; + /** 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 `UniqueConstraint` object types. All fields are combined with a logical ‘and.’ */ +export interface UniqueConstraintFilter { + /** 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 `description` field. */ + description?: StringFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `type` field. */ + type?: StringFilter; + /** Filter by the object’s `fieldIds` field. */ + fieldIds?: UUIDListFilter; + /** 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?: UniqueConstraintFilter[]; + /** Checks for any expressions in this list. */ + or?: UniqueConstraintFilter[]; + /** Negates the expression. */ + not?: UniqueConstraintFilter; +} +/** + * A condition to be used against `ViewTable` object types. All fields are tested + * for equality and combined with a logical ‘and.’ + */ +export interface ViewTableCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `viewId` field. */ + viewId?: string; + /** Checks for equality with the object’s `tableId` field. */ + tableId?: string; + /** Checks for equality with the object’s `joinOrder` field. */ + joinOrder?: number; +} +/** A filter to be used against `ViewTable` object types. All fields are combined with a logical ‘and.’ */ +export interface ViewTableFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `viewId` field. */ + viewId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `joinOrder` field. */ + joinOrder?: IntFilter; + /** Checks for all expressions in this list. */ + and?: ViewTableFilter[]; + /** Checks for any expressions in this list. */ + or?: ViewTableFilter[]; + /** Negates the expression. */ + not?: ViewTableFilter; +} +/** + * A condition to be used against `ViewGrant` object types. All fields are tested + * for equality and combined with a logical ‘and.’ + */ +export interface ViewGrantCondition { + /** 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 `viewId` field. */ + viewId?: string; + /** Checks for equality with the object’s `roleName` field. */ + roleName?: string; + /** Checks for equality with the object’s `privilege` field. */ + privilege?: string; + /** Checks for equality with the object’s `withGrantOption` field. */ + withGrantOption?: boolean; +} +/** A filter to be used against `ViewGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface ViewGrantFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + 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 `privilege` field. */ + privilege?: StringFilter; + /** Filter by the object’s `withGrantOption` field. */ + withGrantOption?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: ViewGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: ViewGrantFilter[]; + /** Negates the expression. */ + not?: ViewGrantFilter; +} +/** + * A condition to be used against `ViewRule` object types. All fields are tested + * for equality and combined with a logical ‘and.’ + */ +export interface ViewRuleCondition { + /** 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 `viewId` field. */ + viewId?: string; + /** Checks for equality with the object’s `name` field. */ + name?: string; + /** Checks for equality with the object’s `event` field. */ + event?: string; + /** Checks for equality with the object’s `action` field. */ + action?: string; +} +/** A filter to be used against `ViewRule` object types. All fields are combined with a logical ‘and.’ */ +export interface ViewRuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `viewId` field. */ + viewId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `event` field. */ + event?: StringFilter; + /** Filter by the object’s `action` field. */ + action?: StringFilter; + /** Checks for all expressions in this list. */ + and?: ViewRuleFilter[]; + /** Checks for any expressions in this list. */ + or?: ViewRuleFilter[]; + /** Negates the expression. */ + not?: ViewRuleFilter; +} +/** A condition to be used against `View` object types. All fields are tested for equality and combined with a logical ‘and.’ */ +export interface ViewCondition { + /** 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 `name` field. */ + name?: string; + /** Checks for equality with the object’s `tableId` field. */ + tableId?: string; + /** Checks for equality with the object’s `viewType` field. */ + viewType?: string; + /** Checks for equality with the object’s `data` field. */ + data?: unknown; + /** Checks for equality with the object’s `filterType` field. */ + filterType?: string; + /** Checks for equality with the object’s `filterData` field. */ + filterData?: unknown; + /** Checks for equality with the object’s `securityInvoker` field. */ + securityInvoker?: boolean; + /** Checks for equality with the object’s `isReadOnly` field. */ + isReadOnly?: boolean; + /** 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[]; +} +/** A filter to be used against `View` object types. All fields are combined with a logical ‘and.’ */ +export interface ViewFilter { + /** 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 `name` field. */ + name?: StringFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `viewType` field. */ + viewType?: StringFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; + /** Filter by the object’s `filterType` field. */ + filterType?: StringFilter; + /** Filter by the object’s `filterData` field. */ + filterData?: JSONFilter; + /** Filter by the object’s `securityInvoker` field. */ + securityInvoker?: BooleanFilter; + /** Filter by the object’s `isReadOnly` field. */ + isReadOnly?: BooleanFilter; + /** 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; + /** Checks for all expressions in this list. */ + and?: ViewFilter[]; + /** Checks for any expressions in this list. */ + or?: ViewFilter[]; + /** Negates the expression. */ + not?: ViewFilter; +} +/** + * A condition to be used against `TableModule` object types. All fields are tested + * for equality and combined with a logical ‘and.’ + */ +export interface TableModuleCondition { + /** 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 `privateSchemaId` field. */ + privateSchemaId?: string; + /** Checks for equality with the object’s `tableId` field. */ + tableId?: string; + /** Checks for equality with the object’s `nodeType` field. */ + nodeType?: string; + /** Checks for equality with the object’s `data` field. */ + data?: unknown; + /** Checks for equality with the object’s `fields` field. */ + fields?: string[]; +} +/** A filter to be used against `TableModule` object types. All fields are combined with a logical ‘and.’ */ +export interface TableModuleFilter { + /** Filter by the object’s `id` field. */ + 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 `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `nodeType` field. */ + nodeType?: StringFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; + /** Filter by the object’s `fields` field. */ + fields?: UUIDListFilter; + /** Checks for all expressions in this list. */ + and?: TableModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: TableModuleFilter[]; + /** Negates the expression. */ + not?: TableModuleFilter; +} +/** + * A condition to be used against `TableTemplateModule` object types. All fields + * are tested for equality and combined with a logical ‘and.’ + */ +export interface TableTemplateModuleCondition { + /** 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 `privateSchemaId` field. */ + privateSchemaId?: string; + /** Checks for equality with the object’s `tableId` field. */ + tableId?: string; + /** Checks for equality with the object’s `ownerTableId` field. */ + ownerTableId?: 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 `data` field. */ + data?: unknown; +} +/** A filter to be used against `TableTemplateModule` object types. All fields are combined with a logical ‘and.’ */ +export interface TableTemplateModuleFilter { + /** 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 `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `ownerTableId` field. */ + ownerTableId?: UUIDFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; + /** Filter by the object’s `nodeType` field. */ + nodeType?: StringFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: TableTemplateModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: TableTemplateModuleFilter[]; + /** Negates the expression. */ + not?: TableTemplateModuleFilter; +} +/** 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. */ + 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 `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 `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 `useRls` field. */ + useRls?: boolean; + /** Checks for equality with the object’s `timestamps` field. */ + timestamps?: boolean; + /** Checks for equality with the object’s `peoplestamps` field. */ + peoplestamps?: boolean; + /** Checks for equality with the object’s `pluralName` field. */ + pluralName?: string; + /** Checks for equality with the object’s `singularName` field. */ + singularName?: string; + /** Checks for equality with the object’s `tags` field. */ + tags?: string[]; + /** Checks for equality with the object’s `inheritsId` field. */ + inheritsId?: 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 `Table` object types. All fields are combined with a logical ‘and.’ */ +export interface TableFilter { + /** 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 `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 `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 `useRls` field. */ + useRls?: BooleanFilter; + /** Filter by the object’s `timestamps` field. */ + timestamps?: BooleanFilter; + /** Filter by the object’s `peoplestamps` field. */ + peoplestamps?: BooleanFilter; + /** Filter by the object’s `pluralName` field. */ + pluralName?: StringFilter; + /** Filter by the object’s `singularName` field. */ + singularName?: StringFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `inheritsId` field. */ + inheritsId?: 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?: TableFilter[]; + /** Checks for any expressions in this list. */ + or?: TableFilter[]; + /** Negates the expression. */ + not?: TableFilter; +} +/** + * A condition to be used against `SchemaGrant` object types. All fields are tested + * for equality and combined with a logical ‘and.’ + */ +export interface SchemaGrantCondition { + /** 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 `granteeName` field. */ + granteeName?: 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 `SchemaGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface SchemaGrantFilter { + /** 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 `granteeName` field. */ + granteeName?: StringFilter; + /** 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?: SchemaGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: SchemaGrantFilter[]; + /** Negates the expression. */ + not?: SchemaGrantFilter; +} +/** + * A condition to be used against `ApiModule` object types. All fields are tested + * for equality and combined with a logical ‘and.’ + */ +export interface ApiModuleCondition { + /** 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 `apiId` field. */ + apiId?: string; + /** Checks for equality with the object’s `name` field. */ + name?: string; + /** Checks for equality with the object’s `data` field. */ + data?: unknown; +} +/** A filter to be used against `ApiModule` object types. All fields are combined with a logical ‘and.’ */ +export interface ApiModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `apiId` field. */ + apiId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Checks for all expressions in this list. */ + and?: ApiModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: ApiModuleFilter[]; + /** Negates the expression. */ + not?: ApiModuleFilter; +} +/** + * A condition to be used against `ApiSchema` object types. All fields are tested + * for equality and combined with a logical ‘and.’ + */ +export interface ApiSchemaCondition { + /** 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 `apiId` field. */ + apiId?: string; +} +/** A filter to be used against `ApiSchema` object types. All fields are combined with a logical ‘and.’ */ +export interface ApiSchemaFilter { + /** 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 `apiId` field. */ + apiId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: ApiSchemaFilter[]; + /** Checks for any expressions in this list. */ + or?: ApiSchemaFilter[]; + /** Negates the expression. */ + not?: ApiSchemaFilter; +} +/** A condition to be used against `Domain` object types. All fields are tested for equality and combined with a logical ‘and.’ */ +export interface DomainCondition { + /** 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 `apiId` field. */ + apiId?: string; + /** Checks for equality with the object’s `siteId` field. */ + siteId?: string; + /** Checks for equality with the object’s `subdomain` field. */ + subdomain?: ConstructiveInternalTypeHostname; + /** Checks for equality with the object’s `domain` field. */ + domain?: ConstructiveInternalTypeHostname; +} +/** A filter to be used against `Domain` object types. All fields are combined with a logical ‘and.’ */ +export interface DomainFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `apiId` field. */ + apiId?: UUIDFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `subdomain` field. */ + subdomain?: ConstructiveInternalTypeHostnameFilter; + /** Filter by the object’s `domain` field. */ + domain?: ConstructiveInternalTypeHostnameFilter; + /** Checks for all expressions in this list. */ + and?: DomainFilter[]; + /** Checks for any expressions in this list. */ + or?: DomainFilter[]; + /** Negates the expression. */ + not?: DomainFilter; +} +/** A filter to be used against ConstructiveInternalTypeHostname fields. All fields are combined with a logical ‘and.’ */ +export interface ConstructiveInternalTypeHostnameFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: ConstructiveInternalTypeHostname; + /** Not equal to the specified value. */ + notEqualTo?: ConstructiveInternalTypeHostname; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: ConstructiveInternalTypeHostname; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: ConstructiveInternalTypeHostname; + /** Included in the specified list. */ + in?: ConstructiveInternalTypeHostname[]; + /** Not included in the specified list. */ + notIn?: ConstructiveInternalTypeHostname[]; + /** Less than the specified value. */ + lessThan?: ConstructiveInternalTypeHostname; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: ConstructiveInternalTypeHostname; + /** Greater than the specified value. */ + greaterThan?: ConstructiveInternalTypeHostname; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: ConstructiveInternalTypeHostname; + /** Contains the specified string (case-sensitive). */ + includes?: ConstructiveInternalTypeHostname; + /** Does not contain the specified string (case-sensitive). */ + notIncludes?: ConstructiveInternalTypeHostname; + /** Contains the specified string (case-insensitive). */ + includesInsensitive?: ConstructiveInternalTypeHostname; + /** Does not contain the specified string (case-insensitive). */ + notIncludesInsensitive?: ConstructiveInternalTypeHostname; + /** Starts with the specified string (case-sensitive). */ + startsWith?: ConstructiveInternalTypeHostname; + /** Does not start with the specified string (case-sensitive). */ + notStartsWith?: ConstructiveInternalTypeHostname; + /** Starts with the specified string (case-insensitive). */ + startsWithInsensitive?: ConstructiveInternalTypeHostname; + /** Does not start with the specified string (case-insensitive). */ + notStartsWithInsensitive?: ConstructiveInternalTypeHostname; + /** Ends with the specified string (case-sensitive). */ + endsWith?: ConstructiveInternalTypeHostname; + /** Does not end with the specified string (case-sensitive). */ + notEndsWith?: ConstructiveInternalTypeHostname; + /** Ends with the specified string (case-insensitive). */ + endsWithInsensitive?: ConstructiveInternalTypeHostname; + /** Does not end with the specified string (case-insensitive). */ + notEndsWithInsensitive?: ConstructiveInternalTypeHostname; + /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + like?: ConstructiveInternalTypeHostname; + /** 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?: ConstructiveInternalTypeHostname; + /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + likeInsensitive?: ConstructiveInternalTypeHostname; + /** 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?: ConstructiveInternalTypeHostname; + /** Equal to the specified value (case-insensitive). */ + equalToInsensitive?: string; + /** Not equal to the specified value (case-insensitive). */ + notEqualToInsensitive?: string; + /** Not equal to the specified value, treating null like an ordinary value (case-insensitive). */ + distinctFromInsensitive?: string; + /** Equal to the specified value, treating null like an ordinary value (case-insensitive). */ + notDistinctFromInsensitive?: string; + /** Included in the specified list (case-insensitive). */ + inInsensitive?: string[]; + /** Not included in the specified list (case-insensitive). */ + notInInsensitive?: string[]; + /** Less than the specified value (case-insensitive). */ + lessThanInsensitive?: string; + /** Less than or equal to the specified value (case-insensitive). */ + lessThanOrEqualToInsensitive?: string; + /** Greater than the specified value (case-insensitive). */ + greaterThanInsensitive?: string; + /** Greater than or equal to the specified value (case-insensitive). */ + greaterThanOrEqualToInsensitive?: string; +} +/** + * A condition to be used against `SiteMetadatum` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface SiteMetadatumCondition { + /** 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 `siteId` field. */ + siteId?: string; + /** Checks for equality with the object’s `title` field. */ + title?: string; + /** Checks for equality with the object’s `description` field. */ + description?: string; + /** Checks for equality with the object’s `ogImage` field. */ + ogImage?: ConstructiveInternalTypeImage; +} +/** A filter to be used against `SiteMetadatum` object types. All fields are combined with a logical ‘and.’ */ +export interface SiteMetadatumFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `ogImage` field. */ + ogImage?: ConstructiveInternalTypeImageFilter; + /** Checks for all expressions in this list. */ + and?: SiteMetadatumFilter[]; + /** Checks for any expressions in this list. */ + or?: SiteMetadatumFilter[]; + /** Negates the expression. */ + not?: SiteMetadatumFilter; +} +/** 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 `SiteModule` object types. All fields are tested + * for equality and combined with a logical ‘and.’ + */ +export interface SiteModuleCondition { + /** 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 `siteId` field. */ + siteId?: string; + /** Checks for equality with the object’s `name` field. */ + name?: string; + /** Checks for equality with the object’s `data` field. */ + data?: unknown; +} +/** A filter to be used against `SiteModule` object types. All fields are combined with a logical ‘and.’ */ +export interface SiteModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Checks for all expressions in this list. */ + and?: SiteModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: SiteModuleFilter[]; + /** Negates the expression. */ + not?: SiteModuleFilter; +} +/** + * A condition to be used against `SiteTheme` object types. All fields are tested + * for equality and combined with a logical ‘and.’ + */ +export interface SiteThemeCondition { + /** 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 `siteId` field. */ + siteId?: string; + /** Checks for equality with the object’s `theme` field. */ + theme?: unknown; +} +/** A filter to be used against `SiteTheme` object types. All fields are combined with a logical ‘and.’ */ +export interface SiteThemeFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `theme` field. */ + theme?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: SiteThemeFilter[]; + /** Checks for any expressions in this list. */ + or?: SiteThemeFilter[]; + /** Negates the expression. */ + not?: SiteThemeFilter; +} +/** A condition to be used against `Schema` object types. All fields are tested for equality and combined with a logical ‘and.’ */ +export interface SchemaCondition { + /** 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 `schemaName` field. */ + schemaName?: 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 `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 `isPublic` field. */ + isPublic?: 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 `Schema` object types. All fields are combined with a logical ‘and.’ */ +export interface SchemaFilter { + /** 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 `schemaName` field. */ + schemaName?: StringFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: 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 `isPublic` field. */ + isPublic?: 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?: SchemaFilter[]; + /** Checks for any expressions in this list. */ + or?: 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.’ + */ +export interface TriggerFunctionCondition { + /** 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 `code` field. */ + code?: 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 `TriggerFunction` object types. All fields are combined with a logical ‘and.’ */ +export interface TriggerFunctionFilter { + /** 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 `code` field. */ + code?: StringFilter; + /** 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?: TriggerFunctionFilter[]; + /** Checks for any expressions in this list. */ + or?: TriggerFunctionFilter[]; + /** Negates the expression. */ + not?: TriggerFunctionFilter; +} +/** A condition to be used against `Api` object types. All fields are tested for equality and combined with a logical ‘and.’ */ +export interface ApiCondition { + /** 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 `dbname` field. */ + dbname?: string; + /** Checks for equality with the object’s `roleName` field. */ + roleName?: string; + /** Checks for equality with the object’s `anonRole` field. */ + anonRole?: string; + /** Checks for equality with the object’s `isPublic` field. */ + isPublic?: boolean; +} +/** A filter to be used against `Api` object types. All fields are combined with a logical ‘and.’ */ +export interface ApiFilter { + /** 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 `dbname` field. */ + dbname?: StringFilter; + /** Filter by the object’s `roleName` field. */ + roleName?: StringFilter; + /** Filter by the object’s `anonRole` field. */ + anonRole?: StringFilter; + /** Filter by the object’s `isPublic` field. */ + isPublic?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: ApiFilter[]; + /** Checks for any expressions in this list. */ + or?: ApiFilter[]; + /** Negates the expression. */ + not?: ApiFilter; +} +/** A condition to be used against `Site` object types. All fields are tested for equality and combined with a logical ‘and.’ */ +export interface SiteCondition { + /** 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 `title` field. */ + title?: string; + /** Checks for equality with the object’s `description` field. */ + description?: string; + /** Checks for equality with the object’s `ogImage` field. */ + ogImage?: ConstructiveInternalTypeImage; + /** Checks for equality with the object’s `favicon` field. */ + favicon?: ConstructiveInternalTypeAttachment; + /** Checks for equality with the object’s `appleTouchIcon` field. */ + appleTouchIcon?: ConstructiveInternalTypeImage; + /** Checks for equality with the object’s `logo` field. */ + logo?: ConstructiveInternalTypeImage; + /** Checks for equality with the object’s `dbname` field. */ + dbname?: string; +} +/** A filter to be used against `Site` object types. All fields are combined with a logical ‘and.’ */ +export interface SiteFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `ogImage` field. */ + ogImage?: ConstructiveInternalTypeImageFilter; + /** Filter by the object’s `favicon` field. */ + favicon?: ConstructiveInternalTypeAttachmentFilter; + /** Filter by the object’s `appleTouchIcon` field. */ + appleTouchIcon?: ConstructiveInternalTypeImageFilter; + /** Filter by the object’s `logo` field. */ + logo?: ConstructiveInternalTypeImageFilter; + /** Filter by the object’s `dbname` field. */ + dbname?: StringFilter; + /** Checks for all expressions in this list. */ + and?: SiteFilter[]; + /** Checks for any expressions in this list. */ + or?: SiteFilter[]; + /** Negates the expression. */ + not?: SiteFilter; +} +/** A filter to be used against ConstructiveInternalTypeAttachment fields. All fields are combined with a logical ‘and.’ */ +export interface ConstructiveInternalTypeAttachmentFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: ConstructiveInternalTypeAttachment; + /** Not equal to the specified value. */ + notEqualTo?: ConstructiveInternalTypeAttachment; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: ConstructiveInternalTypeAttachment; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: ConstructiveInternalTypeAttachment; + /** Included in the specified list. */ + in?: ConstructiveInternalTypeAttachment[]; + /** Not included in the specified list. */ + notIn?: ConstructiveInternalTypeAttachment[]; + /** Less than the specified value. */ + lessThan?: ConstructiveInternalTypeAttachment; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: ConstructiveInternalTypeAttachment; + /** Greater than the specified value. */ + greaterThan?: ConstructiveInternalTypeAttachment; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: ConstructiveInternalTypeAttachment; + /** Contains the specified string (case-sensitive). */ + includes?: ConstructiveInternalTypeAttachment; + /** Does not contain the specified string (case-sensitive). */ + notIncludes?: ConstructiveInternalTypeAttachment; + /** Contains the specified string (case-insensitive). */ + includesInsensitive?: ConstructiveInternalTypeAttachment; + /** Does not contain the specified string (case-insensitive). */ + notIncludesInsensitive?: ConstructiveInternalTypeAttachment; + /** Starts with the specified string (case-sensitive). */ + startsWith?: ConstructiveInternalTypeAttachment; + /** Does not start with the specified string (case-sensitive). */ + notStartsWith?: ConstructiveInternalTypeAttachment; + /** Starts with the specified string (case-insensitive). */ + startsWithInsensitive?: ConstructiveInternalTypeAttachment; + /** Does not start with the specified string (case-insensitive). */ + notStartsWithInsensitive?: ConstructiveInternalTypeAttachment; + /** Ends with the specified string (case-sensitive). */ + endsWith?: ConstructiveInternalTypeAttachment; + /** Does not end with the specified string (case-sensitive). */ + notEndsWith?: ConstructiveInternalTypeAttachment; + /** Ends with the specified string (case-insensitive). */ + endsWithInsensitive?: ConstructiveInternalTypeAttachment; + /** Does not end with the specified string (case-insensitive). */ + notEndsWithInsensitive?: ConstructiveInternalTypeAttachment; + /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + like?: ConstructiveInternalTypeAttachment; + /** 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?: ConstructiveInternalTypeAttachment; + /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + likeInsensitive?: ConstructiveInternalTypeAttachment; + /** 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?: ConstructiveInternalTypeAttachment; + /** Equal to the specified value (case-insensitive). */ + equalToInsensitive?: string; + /** Not equal to the specified value (case-insensitive). */ + notEqualToInsensitive?: string; + /** Not equal to the specified value, treating null like an ordinary value (case-insensitive). */ + distinctFromInsensitive?: string; + /** Equal to the specified value, treating null like an ordinary value (case-insensitive). */ + notDistinctFromInsensitive?: string; + /** Included in the specified list (case-insensitive). */ + inInsensitive?: string[]; + /** Not included in the specified list (case-insensitive). */ + notInInsensitive?: string[]; + /** Less than the specified value (case-insensitive). */ + lessThanInsensitive?: string; + /** Less than or equal to the specified value (case-insensitive). */ + lessThanOrEqualToInsensitive?: string; + /** Greater than the specified value (case-insensitive). */ + greaterThanInsensitive?: string; + /** Greater than or equal to the specified value (case-insensitive). */ + greaterThanOrEqualToInsensitive?: string; +} +/** A condition to be used against `App` object types. All fields are tested for equality and combined with a logical ‘and.’ */ +export interface AppCondition { + /** 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 `siteId` field. */ + siteId?: string; + /** Checks for equality with the object’s `name` field. */ + name?: string; + /** Checks for equality with the object’s `appImage` field. */ + appImage?: ConstructiveInternalTypeImage; + /** Checks for equality with the object’s `appStoreLink` field. */ + appStoreLink?: ConstructiveInternalTypeUrl; + /** Checks for equality with the object’s `appStoreId` field. */ + appStoreId?: string; + /** Checks for equality with the object’s `appIdPrefix` field. */ + appIdPrefix?: string; + /** Checks for equality with the object’s `playStoreLink` field. */ + playStoreLink?: ConstructiveInternalTypeUrl; +} +/** A filter to be used against `App` object types. All fields are combined with a logical ‘and.’ */ +export interface AppFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `siteId` field. */ + siteId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `appImage` field. */ + appImage?: ConstructiveInternalTypeImageFilter; + /** Filter by the object’s `appStoreLink` field. */ + appStoreLink?: ConstructiveInternalTypeUrlFilter; + /** Filter by the object’s `appStoreId` field. */ + appStoreId?: StringFilter; + /** Filter by the object’s `appIdPrefix` field. */ + appIdPrefix?: StringFilter; + /** Filter by the object’s `playStoreLink` field. */ + playStoreLink?: ConstructiveInternalTypeUrlFilter; + /** Checks for all expressions in this list. */ + and?: AppFilter[]; + /** Checks for any expressions in this list. */ + or?: AppFilter[]; + /** Negates the expression. */ + not?: AppFilter; +} +/** A filter to be used against ConstructiveInternalTypeUrl fields. All fields are combined with a logical ‘and.’ */ +export interface ConstructiveInternalTypeUrlFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: ConstructiveInternalTypeUrl; + /** Not equal to the specified value. */ + notEqualTo?: ConstructiveInternalTypeUrl; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: ConstructiveInternalTypeUrl; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: ConstructiveInternalTypeUrl; + /** Included in the specified list. */ + in?: ConstructiveInternalTypeUrl[]; + /** Not included in the specified list. */ + notIn?: ConstructiveInternalTypeUrl[]; + /** Less than the specified value. */ + lessThan?: ConstructiveInternalTypeUrl; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: ConstructiveInternalTypeUrl; + /** Greater than the specified value. */ + greaterThan?: ConstructiveInternalTypeUrl; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: ConstructiveInternalTypeUrl; + /** Contains the specified string (case-sensitive). */ + includes?: ConstructiveInternalTypeUrl; + /** Does not contain the specified string (case-sensitive). */ + notIncludes?: ConstructiveInternalTypeUrl; + /** Contains the specified string (case-insensitive). */ + includesInsensitive?: ConstructiveInternalTypeUrl; + /** Does not contain the specified string (case-insensitive). */ + notIncludesInsensitive?: ConstructiveInternalTypeUrl; + /** Starts with the specified string (case-sensitive). */ + startsWith?: ConstructiveInternalTypeUrl; + /** Does not start with the specified string (case-sensitive). */ + notStartsWith?: ConstructiveInternalTypeUrl; + /** Starts with the specified string (case-insensitive). */ + startsWithInsensitive?: ConstructiveInternalTypeUrl; + /** Does not start with the specified string (case-insensitive). */ + notStartsWithInsensitive?: ConstructiveInternalTypeUrl; + /** Ends with the specified string (case-sensitive). */ + endsWith?: ConstructiveInternalTypeUrl; + /** Does not end with the specified string (case-sensitive). */ + notEndsWith?: ConstructiveInternalTypeUrl; + /** Ends with the specified string (case-insensitive). */ + endsWithInsensitive?: ConstructiveInternalTypeUrl; + /** Does not end with the specified string (case-insensitive). */ + notEndsWithInsensitive?: ConstructiveInternalTypeUrl; + /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + like?: ConstructiveInternalTypeUrl; + /** 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?: ConstructiveInternalTypeUrl; + /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + likeInsensitive?: ConstructiveInternalTypeUrl; + /** 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?: ConstructiveInternalTypeUrl; + /** Equal to the specified value (case-insensitive). */ + equalToInsensitive?: string; + /** Not equal to the specified value (case-insensitive). */ + notEqualToInsensitive?: string; + /** Not equal to the specified value, treating null like an ordinary value (case-insensitive). */ + distinctFromInsensitive?: string; + /** Equal to the specified value, treating null like an ordinary value (case-insensitive). */ + notDistinctFromInsensitive?: string; + /** Included in the specified list (case-insensitive). */ + inInsensitive?: string[]; + /** Not included in the specified list (case-insensitive). */ + notInInsensitive?: string[]; + /** Less than the specified value (case-insensitive). */ + lessThanInsensitive?: string; + /** Less than or equal to the specified value (case-insensitive). */ + lessThanOrEqualToInsensitive?: string; + /** Greater than the specified value (case-insensitive). */ + greaterThanInsensitive?: string; + /** Greater than or equal to the specified value (case-insensitive). */ + greaterThanOrEqualToInsensitive?: string; +} +/** + * A condition to be used against `ConnectedAccountsModule` object types. All + * fields are tested for equality and combined with a logical ‘and.’ + */ +export interface ConnectedAccountsModuleCondition { + /** 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 `privateSchemaId` field. */ + privateSchemaId?: string; + /** Checks for equality with the object’s `tableId` field. */ + tableId?: string; + /** Checks for equality with the object’s `ownerTableId` field. */ + ownerTableId?: string; + /** Checks for equality with the object’s `tableName` field. */ + tableName?: string; +} +/** A filter to be used against `ConnectedAccountsModule` object types. All fields are combined with a logical ‘and.’ */ +export interface ConnectedAccountsModuleFilter { + /** 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 `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `ownerTableId` field. */ + ownerTableId?: UUIDFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: ConnectedAccountsModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: ConnectedAccountsModuleFilter[]; + /** Negates the expression. */ + not?: ConnectedAccountsModuleFilter; +} +/** + * A condition to be used against `CryptoAddressesModule` object types. All fields + * are tested for equality and combined with a logical ‘and.’ + */ +export interface CryptoAddressesModuleCondition { + /** 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 `privateSchemaId` field. */ + privateSchemaId?: string; + /** Checks for equality with the object’s `tableId` field. */ + tableId?: string; + /** Checks for equality with the object’s `ownerTableId` field. */ + ownerTableId?: string; + /** Checks for equality with the object’s `tableName` field. */ + tableName?: string; + /** Checks for equality with the object’s `cryptoNetwork` field. */ + cryptoNetwork?: string; +} +/** A filter to be used against `CryptoAddressesModule` object types. All fields are combined with a logical ‘and.’ */ +export interface CryptoAddressesModuleFilter { + /** 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 `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `ownerTableId` field. */ + ownerTableId?: UUIDFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; + /** Filter by the object’s `cryptoNetwork` field. */ + cryptoNetwork?: StringFilter; + /** Checks for all expressions in this list. */ + and?: CryptoAddressesModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: CryptoAddressesModuleFilter[]; + /** Negates the expression. */ + not?: CryptoAddressesModuleFilter; +} +/** + * A condition to be used against `CryptoAuthModule` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface CryptoAuthModuleCondition { + /** 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 `usersTableId` field. */ + usersTableId?: string; + /** Checks for equality with the object’s `secretsTableId` field. */ + secretsTableId?: string; + /** Checks for equality with the object’s `sessionsTableId` field. */ + sessionsTableId?: string; + /** Checks for equality with the object’s `sessionCredentialsTableId` field. */ + sessionCredentialsTableId?: string; + /** Checks for equality with the object’s `addressesTableId` field. */ + addressesTableId?: string; + /** Checks for equality with the object’s `userField` field. */ + userField?: string; + /** Checks for equality with the object’s `cryptoNetwork` field. */ + cryptoNetwork?: string; + /** Checks for equality with the object’s `signInRequestChallenge` field. */ + signInRequestChallenge?: string; + /** Checks for equality with the object’s `signInRecordFailure` field. */ + signInRecordFailure?: string; + /** Checks for equality with the object’s `signUpWithKey` field. */ + signUpWithKey?: string; + /** Checks for equality with the object’s `signInWithChallenge` field. */ + signInWithChallenge?: string; +} +/** A filter to be used against `CryptoAuthModule` object types. All fields are combined with a logical ‘and.’ */ +export interface CryptoAuthModuleFilter { + /** 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 `usersTableId` field. */ + usersTableId?: UUIDFilter; + /** Filter by the object’s `secretsTableId` field. */ + secretsTableId?: UUIDFilter; + /** Filter by the object’s `sessionsTableId` field. */ + sessionsTableId?: UUIDFilter; + /** Filter by the object’s `sessionCredentialsTableId` field. */ + sessionCredentialsTableId?: UUIDFilter; + /** Filter by the object’s `addressesTableId` field. */ + addressesTableId?: UUIDFilter; + /** Filter by the object’s `userField` field. */ + userField?: StringFilter; + /** Filter by the object’s `cryptoNetwork` field. */ + cryptoNetwork?: StringFilter; + /** Filter by the object’s `signInRequestChallenge` field. */ + signInRequestChallenge?: StringFilter; + /** Filter by the object’s `signInRecordFailure` field. */ + signInRecordFailure?: StringFilter; + /** Filter by the object’s `signUpWithKey` field. */ + signUpWithKey?: StringFilter; + /** Filter by the object’s `signInWithChallenge` field. */ + signInWithChallenge?: StringFilter; + /** Checks for all expressions in this list. */ + and?: CryptoAuthModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: CryptoAuthModuleFilter[]; + /** Negates the expression. */ + not?: CryptoAuthModuleFilter; +} +/** + * A condition to be used against `DefaultIdsModule` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface DefaultIdsModuleCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `databaseId` field. */ + databaseId?: string; +} +/** A filter to be used against `DefaultIdsModule` object types. All fields are combined with a logical ‘and.’ */ +export interface DefaultIdsModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: DefaultIdsModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: DefaultIdsModuleFilter[]; + /** Negates the expression. */ + not?: DefaultIdsModuleFilter; +} +/** + * A condition to be used against `DenormalizedTableField` object types. All fields + * are tested for equality and combined with a logical ‘and.’ + */ +export interface DenormalizedTableFieldCondition { + /** 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 `fieldId` field. */ + fieldId?: string; + /** Checks for equality with the object’s `setIds` field. */ + setIds?: string[]; + /** Checks for equality with the object’s `refTableId` field. */ + refTableId?: string; + /** Checks for equality with the object’s `refFieldId` field. */ + refFieldId?: string; + /** Checks for equality with the object’s `refIds` field. */ + refIds?: string[]; + /** Checks for equality with the object’s `useUpdates` field. */ + useUpdates?: boolean; + /** Checks for equality with the object’s `updateDefaults` field. */ + updateDefaults?: boolean; + /** Checks for equality with the object’s `funcName` field. */ + funcName?: string; + /** Checks for equality with the object’s `funcOrder` field. */ + funcOrder?: number; +} +/** A filter to be used against `DenormalizedTableField` object types. All fields are combined with a logical ‘and.’ */ +export interface DenormalizedTableFieldFilter { + /** 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 `fieldId` field. */ + fieldId?: UUIDFilter; + /** Filter by the object’s `setIds` field. */ + setIds?: UUIDListFilter; + /** Filter by the object’s `refTableId` field. */ + refTableId?: UUIDFilter; + /** Filter by the object’s `refFieldId` field. */ + refFieldId?: UUIDFilter; + /** Filter by the object’s `refIds` field. */ + refIds?: UUIDListFilter; + /** Filter by the object’s `useUpdates` field. */ + useUpdates?: BooleanFilter; + /** Filter by the object’s `updateDefaults` field. */ + updateDefaults?: BooleanFilter; + /** Filter by the object’s `funcName` field. */ + funcName?: StringFilter; + /** Filter by the object’s `funcOrder` field. */ + funcOrder?: IntFilter; + /** Checks for all expressions in this list. */ + and?: DenormalizedTableFieldFilter[]; + /** Checks for any expressions in this list. */ + or?: DenormalizedTableFieldFilter[]; + /** Negates the expression. */ + not?: DenormalizedTableFieldFilter; +} +/** + * A condition to be used against `EmailsModule` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface EmailsModuleCondition { + /** 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 `privateSchemaId` field. */ + privateSchemaId?: string; + /** Checks for equality with the object’s `tableId` field. */ + tableId?: string; + /** Checks for equality with the object’s `ownerTableId` field. */ + ownerTableId?: string; + /** Checks for equality with the object’s `tableName` field. */ + tableName?: string; +} +/** A filter to be used against `EmailsModule` object types. All fields are combined with a logical ‘and.’ */ +export interface EmailsModuleFilter { + /** 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 `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `ownerTableId` field. */ + ownerTableId?: UUIDFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: EmailsModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: EmailsModuleFilter[]; + /** Negates the expression. */ + not?: EmailsModuleFilter; +} +/** + * A condition to be used against `EncryptedSecretsModule` object types. All fields + * are tested for equality and combined with a logical ‘and.’ + */ +export interface EncryptedSecretsModuleCondition { + /** 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; +} +/** A filter to be used against `EncryptedSecretsModule` object types. All fields are combined with a logical ‘and.’ */ +export interface EncryptedSecretsModuleFilter { + /** 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; + /** Checks for all expressions in this list. */ + and?: EncryptedSecretsModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: EncryptedSecretsModuleFilter[]; + /** Negates the expression. */ + not?: EncryptedSecretsModuleFilter; +} +/** + * A condition to be used against `FieldModule` object types. All fields are tested + * for equality and combined with a logical ‘and.’ + */ +export interface FieldModuleCondition { + /** 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 `privateSchemaId` field. */ + privateSchemaId?: string; + /** Checks for equality with the object’s `tableId` field. */ + tableId?: string; + /** Checks for equality with the object’s `fieldId` field. */ + fieldId?: string; + /** Checks for equality with the object’s `nodeType` field. */ + nodeType?: string; + /** Checks for equality with the object’s `data` field. */ + data?: unknown; + /** Checks for equality with the object’s `triggers` field. */ + triggers?: string[]; + /** Checks for equality with the object’s `functions` field. */ + functions?: string[]; +} +/** A filter to be used against `FieldModule` object types. All fields are combined with a logical ‘and.’ */ +export interface FieldModuleFilter { + /** Filter by the object’s `id` field. */ + 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 `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `fieldId` field. */ + fieldId?: UUIDFilter; + /** Filter by the object’s `nodeType` field. */ + nodeType?: StringFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; + /** Filter by the object’s `triggers` field. */ + triggers?: StringListFilter; + /** Filter by the object’s `functions` field. */ + functions?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: FieldModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: FieldModuleFilter[]; + /** Negates the expression. */ + not?: FieldModuleFilter; +} +/** + * A condition to be used against `InvitesModule` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface InvitesModuleCondition { + /** 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 `privateSchemaId` field. */ + privateSchemaId?: string; + /** Checks for equality with the object’s `emailsTableId` field. */ + emailsTableId?: string; + /** Checks for equality with the object’s `usersTableId` field. */ + usersTableId?: string; + /** Checks for equality with the object’s `invitesTableId` field. */ + invitesTableId?: string; + /** Checks for equality with the object’s `claimedInvitesTableId` field. */ + claimedInvitesTableId?: string; + /** Checks for equality with the object’s `invitesTableName` field. */ + invitesTableName?: string; + /** Checks for equality with the object’s `claimedInvitesTableName` field. */ + claimedInvitesTableName?: string; + /** Checks for equality with the object’s `submitInviteCodeFunction` field. */ + submitInviteCodeFunction?: string; + /** Checks for equality with the object’s `prefix` field. */ + prefix?: string; + /** Checks for equality with the object’s `membershipType` field. */ + membershipType?: number; + /** Checks for equality with the object’s `entityTableId` field. */ + entityTableId?: string; +} +/** A filter to be used against `InvitesModule` object types. All fields are combined with a logical ‘and.’ */ +export interface InvitesModuleFilter { + /** 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 `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `emailsTableId` field. */ + emailsTableId?: UUIDFilter; + /** Filter by the object’s `usersTableId` field. */ + usersTableId?: UUIDFilter; + /** Filter by the object’s `invitesTableId` field. */ + invitesTableId?: UUIDFilter; + /** Filter by the object’s `claimedInvitesTableId` field. */ + claimedInvitesTableId?: UUIDFilter; + /** Filter by the object’s `invitesTableName` field. */ + invitesTableName?: StringFilter; + /** Filter by the object’s `claimedInvitesTableName` field. */ + claimedInvitesTableName?: StringFilter; + /** Filter by the object’s `submitInviteCodeFunction` field. */ + submitInviteCodeFunction?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `membershipType` field. */ + membershipType?: IntFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: InvitesModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: InvitesModuleFilter[]; + /** Negates the expression. */ + not?: InvitesModuleFilter; +} +/** + * A condition to be used against `LevelsModule` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface LevelsModuleCondition { + /** 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 `privateSchemaId` field. */ + privateSchemaId?: string; + /** Checks for equality with the object’s `stepsTableId` field. */ + stepsTableId?: string; + /** Checks for equality with the object’s `stepsTableName` field. */ + stepsTableName?: string; + /** Checks for equality with the object’s `achievementsTableId` field. */ + achievementsTableId?: string; + /** Checks for equality with the object’s `achievementsTableName` field. */ + achievementsTableName?: string; + /** Checks for equality with the object’s `levelsTableId` field. */ + levelsTableId?: string; + /** Checks for equality with the object’s `levelsTableName` field. */ + levelsTableName?: string; + /** Checks for equality with the object’s `levelRequirementsTableId` field. */ + levelRequirementsTableId?: string; + /** Checks for equality with the object’s `levelRequirementsTableName` field. */ + levelRequirementsTableName?: string; + /** Checks for equality with the object’s `completedStep` field. */ + completedStep?: string; + /** Checks for equality with the object’s `incompletedStep` field. */ + incompletedStep?: string; + /** Checks for equality with the object’s `tgAchievement` field. */ + tgAchievement?: string; + /** Checks for equality with the object’s `tgAchievementToggle` field. */ + tgAchievementToggle?: string; + /** Checks for equality with the object’s `tgAchievementToggleBoolean` field. */ + tgAchievementToggleBoolean?: string; + /** Checks for equality with the object’s `tgAchievementBoolean` field. */ + tgAchievementBoolean?: string; + /** Checks for equality with the object’s `upsertAchievement` field. */ + upsertAchievement?: string; + /** Checks for equality with the object’s `tgUpdateAchievements` field. */ + tgUpdateAchievements?: string; + /** Checks for equality with the object’s `stepsRequired` field. */ + stepsRequired?: string; + /** Checks for equality with the object’s `levelAchieved` field. */ + levelAchieved?: string; + /** Checks for equality with the object’s `prefix` field. */ + prefix?: string; + /** Checks for equality with the object’s `membershipType` field. */ + membershipType?: number; + /** Checks for equality with the object’s `entityTableId` field. */ + entityTableId?: string; + /** Checks for equality with the object’s `actorTableId` field. */ + actorTableId?: string; +} +/** A filter to be used against `LevelsModule` object types. All fields are combined with a logical ‘and.’ */ +export interface LevelsModuleFilter { + /** 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 `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `stepsTableId` field. */ + stepsTableId?: UUIDFilter; + /** Filter by the object’s `stepsTableName` field. */ + stepsTableName?: StringFilter; + /** Filter by the object’s `achievementsTableId` field. */ + achievementsTableId?: UUIDFilter; + /** Filter by the object’s `achievementsTableName` field. */ + achievementsTableName?: StringFilter; + /** Filter by the object’s `levelsTableId` field. */ + levelsTableId?: UUIDFilter; + /** Filter by the object’s `levelsTableName` field. */ + levelsTableName?: StringFilter; + /** Filter by the object’s `levelRequirementsTableId` field. */ + levelRequirementsTableId?: UUIDFilter; + /** Filter by the object’s `levelRequirementsTableName` field. */ + levelRequirementsTableName?: StringFilter; + /** Filter by the object’s `completedStep` field. */ + completedStep?: StringFilter; + /** Filter by the object’s `incompletedStep` field. */ + incompletedStep?: StringFilter; + /** Filter by the object’s `tgAchievement` field. */ + tgAchievement?: StringFilter; + /** Filter by the object’s `tgAchievementToggle` field. */ + tgAchievementToggle?: StringFilter; + /** Filter by the object’s `tgAchievementToggleBoolean` field. */ + tgAchievementToggleBoolean?: StringFilter; + /** Filter by the object’s `tgAchievementBoolean` field. */ + tgAchievementBoolean?: StringFilter; + /** Filter by the object’s `upsertAchievement` field. */ + upsertAchievement?: StringFilter; + /** Filter by the object’s `tgUpdateAchievements` field. */ + tgUpdateAchievements?: StringFilter; + /** Filter by the object’s `stepsRequired` field. */ + stepsRequired?: StringFilter; + /** Filter by the object’s `levelAchieved` field. */ + levelAchieved?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `membershipType` field. */ + membershipType?: IntFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `actorTableId` field. */ + actorTableId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: LevelsModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: LevelsModuleFilter[]; + /** Negates the expression. */ + not?: LevelsModuleFilter; +} +/** + * A condition to be used against `LimitsModule` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface LimitsModuleCondition { + /** 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 `privateSchemaId` field. */ + privateSchemaId?: 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 `defaultTableId` field. */ + defaultTableId?: string; + /** Checks for equality with the object’s `defaultTableName` field. */ + defaultTableName?: string; + /** Checks for equality with the object’s `limitIncrementFunction` field. */ + limitIncrementFunction?: string; + /** Checks for equality with the object’s `limitDecrementFunction` field. */ + limitDecrementFunction?: string; + /** Checks for equality with the object’s `limitIncrementTrigger` field. */ + limitIncrementTrigger?: string; + /** Checks for equality with the object’s `limitDecrementTrigger` field. */ + limitDecrementTrigger?: string; + /** Checks for equality with the object’s `limitUpdateTrigger` field. */ + limitUpdateTrigger?: string; + /** Checks for equality with the object’s `limitCheckFunction` field. */ + limitCheckFunction?: string; + /** Checks for equality with the object’s `prefix` field. */ + prefix?: string; + /** Checks for equality with the object’s `membershipType` field. */ + membershipType?: number; + /** Checks for equality with the object’s `entityTableId` field. */ + entityTableId?: string; + /** Checks for equality with the object’s `actorTableId` field. */ + actorTableId?: string; +} +/** A filter to be used against `LimitsModule` object types. All fields are combined with a logical ‘and.’ */ +export interface LimitsModuleFilter { + /** 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 `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; + /** Filter by the object’s `defaultTableId` field. */ + defaultTableId?: UUIDFilter; + /** Filter by the object’s `defaultTableName` field. */ + defaultTableName?: StringFilter; + /** Filter by the object’s `limitIncrementFunction` field. */ + limitIncrementFunction?: StringFilter; + /** Filter by the object’s `limitDecrementFunction` field. */ + limitDecrementFunction?: StringFilter; + /** Filter by the object’s `limitIncrementTrigger` field. */ + limitIncrementTrigger?: StringFilter; + /** Filter by the object’s `limitDecrementTrigger` field. */ + limitDecrementTrigger?: StringFilter; + /** Filter by the object’s `limitUpdateTrigger` field. */ + limitUpdateTrigger?: StringFilter; + /** Filter by the object’s `limitCheckFunction` field. */ + limitCheckFunction?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `membershipType` field. */ + membershipType?: IntFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `actorTableId` field. */ + actorTableId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: LimitsModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: LimitsModuleFilter[]; + /** Negates the expression. */ + not?: LimitsModuleFilter; +} +/** + * A condition to be used against `MembershipTypesModule` object types. All fields + * are tested for equality and combined with a logical ‘and.’ + */ +export interface MembershipTypesModuleCondition { + /** 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; +} +/** A filter to be used against `MembershipTypesModule` object types. All fields are combined with a logical ‘and.’ */ +export interface MembershipTypesModuleFilter { + /** 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; + /** Checks for all expressions in this list. */ + and?: MembershipTypesModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: MembershipTypesModuleFilter[]; + /** Negates the expression. */ + not?: MembershipTypesModuleFilter; +} +/** + * A condition to be used against `MembershipsModule` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface MembershipsModuleCondition { + /** 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 `privateSchemaId` field. */ + privateSchemaId?: string; + /** Checks for equality with the object’s `membershipsTableId` field. */ + membershipsTableId?: string; + /** Checks for equality with the object’s `membershipsTableName` field. */ + membershipsTableName?: string; + /** Checks for equality with the object’s `membersTableId` field. */ + membersTableId?: string; + /** Checks for equality with the object’s `membersTableName` field. */ + membersTableName?: string; + /** Checks for equality with the object’s `membershipDefaultsTableId` field. */ + membershipDefaultsTableId?: string; + /** Checks for equality with the object’s `membershipDefaultsTableName` field. */ + membershipDefaultsTableName?: string; + /** Checks for equality with the object’s `grantsTableId` field. */ + grantsTableId?: string; + /** Checks for equality with the object’s `grantsTableName` field. */ + grantsTableName?: string; + /** Checks for equality with the object’s `actorTableId` field. */ + actorTableId?: string; + /** Checks for equality with the object’s `limitsTableId` field. */ + limitsTableId?: string; + /** Checks for equality with the object’s `defaultLimitsTableId` field. */ + defaultLimitsTableId?: string; + /** Checks for equality with the object’s `permissionsTableId` field. */ + permissionsTableId?: string; + /** Checks for equality with the object’s `defaultPermissionsTableId` field. */ + defaultPermissionsTableId?: string; + /** Checks for equality with the object’s `sprtTableId` field. */ + sprtTableId?: string; + /** Checks for equality with the object’s `adminGrantsTableId` field. */ + adminGrantsTableId?: string; + /** Checks for equality with the object’s `adminGrantsTableName` field. */ + adminGrantsTableName?: string; + /** Checks for equality with the object’s `ownerGrantsTableId` field. */ + ownerGrantsTableId?: string; + /** Checks for equality with the object’s `ownerGrantsTableName` field. */ + ownerGrantsTableName?: string; + /** Checks for equality with the object’s `membershipType` field. */ + membershipType?: number; + /** Checks for equality with the object’s `entityTableId` field. */ + entityTableId?: string; + /** Checks for equality with the object’s `entityTableOwnerId` field. */ + entityTableOwnerId?: string; + /** Checks for equality with the object’s `prefix` field. */ + prefix?: string; + /** Checks for equality with the object’s `actorMaskCheck` field. */ + actorMaskCheck?: string; + /** Checks for equality with the object’s `actorPermCheck` field. */ + actorPermCheck?: string; + /** Checks for equality with the object’s `entityIdsByMask` field. */ + entityIdsByMask?: string; + /** Checks for equality with the object’s `entityIdsByPerm` field. */ + entityIdsByPerm?: string; + /** Checks for equality with the object’s `entityIdsFunction` field. */ + entityIdsFunction?: string; +} +/** A filter to be used against `MembershipsModule` object types. All fields are combined with a logical ‘and.’ */ +export interface MembershipsModuleFilter { + /** 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 `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `membershipsTableId` field. */ + membershipsTableId?: UUIDFilter; + /** Filter by the object’s `membershipsTableName` field. */ + membershipsTableName?: StringFilter; + /** Filter by the object’s `membersTableId` field. */ + membersTableId?: UUIDFilter; + /** Filter by the object’s `membersTableName` field. */ + membersTableName?: StringFilter; + /** Filter by the object’s `membershipDefaultsTableId` field. */ + membershipDefaultsTableId?: UUIDFilter; + /** Filter by the object’s `membershipDefaultsTableName` field. */ + membershipDefaultsTableName?: StringFilter; + /** Filter by the object’s `grantsTableId` field. */ + grantsTableId?: UUIDFilter; + /** Filter by the object’s `grantsTableName` field. */ + grantsTableName?: StringFilter; + /** Filter by the object’s `actorTableId` field. */ + actorTableId?: UUIDFilter; + /** Filter by the object’s `limitsTableId` field. */ + limitsTableId?: UUIDFilter; + /** Filter by the object’s `defaultLimitsTableId` field. */ + defaultLimitsTableId?: UUIDFilter; + /** Filter by the object’s `permissionsTableId` field. */ + permissionsTableId?: UUIDFilter; + /** Filter by the object’s `defaultPermissionsTableId` field. */ + defaultPermissionsTableId?: UUIDFilter; + /** Filter by the object’s `sprtTableId` field. */ + sprtTableId?: UUIDFilter; + /** Filter by the object’s `adminGrantsTableId` field. */ + adminGrantsTableId?: UUIDFilter; + /** Filter by the object’s `adminGrantsTableName` field. */ + adminGrantsTableName?: StringFilter; + /** Filter by the object’s `ownerGrantsTableId` field. */ + ownerGrantsTableId?: UUIDFilter; + /** Filter by the object’s `ownerGrantsTableName` field. */ + ownerGrantsTableName?: StringFilter; + /** Filter by the object’s `membershipType` field. */ + membershipType?: IntFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `entityTableOwnerId` field. */ + entityTableOwnerId?: UUIDFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `actorMaskCheck` field. */ + actorMaskCheck?: StringFilter; + /** Filter by the object’s `actorPermCheck` field. */ + actorPermCheck?: StringFilter; + /** Filter by the object’s `entityIdsByMask` field. */ + entityIdsByMask?: StringFilter; + /** Filter by the object’s `entityIdsByPerm` field. */ + entityIdsByPerm?: StringFilter; + /** Filter by the object’s `entityIdsFunction` field. */ + entityIdsFunction?: StringFilter; + /** Checks for all expressions in this list. */ + and?: MembershipsModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: MembershipsModuleFilter[]; + /** Negates the expression. */ + not?: MembershipsModuleFilter; +} +/** + * A condition to be used against `PermissionsModule` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface PermissionsModuleCondition { + /** 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 `privateSchemaId` field. */ + privateSchemaId?: 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 `defaultTableId` field. */ + defaultTableId?: string; + /** Checks for equality with the object’s `defaultTableName` field. */ + defaultTableName?: 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. */ + entityTableId?: string; + /** Checks for equality with the object’s `actorTableId` field. */ + actorTableId?: string; + /** Checks for equality with the object’s `prefix` field. */ + prefix?: string; + /** Checks for equality with the object’s `getPaddedMask` field. */ + getPaddedMask?: string; + /** Checks for equality with the object’s `getMask` field. */ + getMask?: string; + /** Checks for equality with the object’s `getByMask` field. */ + getByMask?: string; + /** Checks for equality with the object’s `getMaskByName` field. */ + getMaskByName?: string; +} +/** A filter to be used against `PermissionsModule` object types. All fields are combined with a logical ‘and.’ */ +export interface PermissionsModuleFilter { + /** 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 `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; + /** Filter by the object’s `defaultTableId` field. */ + defaultTableId?: UUIDFilter; + /** Filter by the object’s `defaultTableName` field. */ + defaultTableName?: 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. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `actorTableId` field. */ + actorTableId?: UUIDFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `getPaddedMask` field. */ + getPaddedMask?: StringFilter; + /** Filter by the object’s `getMask` field. */ + getMask?: StringFilter; + /** Filter by the object’s `getByMask` field. */ + getByMask?: StringFilter; + /** Filter by the object’s `getMaskByName` field. */ + getMaskByName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: PermissionsModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: PermissionsModuleFilter[]; + /** Negates the expression. */ + not?: PermissionsModuleFilter; +} +/** + * A condition to be used against `PhoneNumbersModule` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface PhoneNumbersModuleCondition { + /** 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 `privateSchemaId` field. */ + privateSchemaId?: string; + /** Checks for equality with the object’s `tableId` field. */ + tableId?: string; + /** Checks for equality with the object’s `ownerTableId` field. */ + ownerTableId?: string; + /** Checks for equality with the object’s `tableName` field. */ + tableName?: string; +} +/** A filter to be used against `PhoneNumbersModule` object types. All fields are combined with a logical ‘and.’ */ +export interface PhoneNumbersModuleFilter { + /** 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 `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `ownerTableId` field. */ + ownerTableId?: UUIDFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: PhoneNumbersModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: PhoneNumbersModuleFilter[]; + /** Negates the expression. */ + not?: PhoneNumbersModuleFilter; +} +/** + * A condition to be used against `ProfilesModule` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface ProfilesModuleCondition { + /** 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 `privateSchemaId` field. */ + privateSchemaId?: 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 `profilePermissionsTableId` field. */ + profilePermissionsTableId?: string; + /** Checks for equality with the object’s `profilePermissionsTableName` field. */ + profilePermissionsTableName?: string; + /** Checks for equality with the object’s `profileGrantsTableId` field. */ + profileGrantsTableId?: string; + /** Checks for equality with the object’s `profileGrantsTableName` field. */ + profileGrantsTableName?: string; + /** Checks for equality with the object’s `profileDefinitionGrantsTableId` field. */ + 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. */ + entityTableId?: string; + /** Checks for equality with the object’s `actorTableId` field. */ + actorTableId?: string; + /** Checks for equality with the object’s `permissionsTableId` field. */ + permissionsTableId?: string; + /** Checks for equality with the object’s `membershipsTableId` field. */ + membershipsTableId?: string; + /** Checks for equality with the object’s `prefix` field. */ + prefix?: string; +} +/** A filter to be used against `ProfilesModule` object types. All fields are combined with a logical ‘and.’ */ +export interface ProfilesModuleFilter { + /** 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 `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; + /** Filter by the object’s `profilePermissionsTableId` field. */ + profilePermissionsTableId?: UUIDFilter; + /** Filter by the object’s `profilePermissionsTableName` field. */ + profilePermissionsTableName?: StringFilter; + /** Filter by the object’s `profileGrantsTableId` field. */ + profileGrantsTableId?: UUIDFilter; + /** Filter by the object’s `profileGrantsTableName` field. */ + profileGrantsTableName?: StringFilter; + /** Filter by the object’s `profileDefinitionGrantsTableId` field. */ + 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. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `actorTableId` field. */ + actorTableId?: UUIDFilter; + /** Filter by the object’s `permissionsTableId` field. */ + permissionsTableId?: UUIDFilter; + /** Filter by the object’s `membershipsTableId` field. */ + membershipsTableId?: UUIDFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: ProfilesModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: ProfilesModuleFilter[]; + /** Negates the expression. */ + not?: ProfilesModuleFilter; +} +/** + * A condition to be used against `RlsModule` object types. All fields are tested + * for equality and combined with a logical ‘and.’ + */ +export interface RlsModuleCondition { + /** 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 `apiId` field. */ + apiId?: string; + /** Checks for equality with the object’s `schemaId` field. */ + schemaId?: string; + /** Checks for equality with the object’s `privateSchemaId` field. */ + privateSchemaId?: string; + /** Checks for equality with the object’s `sessionCredentialsTableId` field. */ + sessionCredentialsTableId?: string; + /** Checks for equality with the object’s `sessionsTableId` field. */ + sessionsTableId?: string; + /** Checks for equality with the object’s `usersTableId` field. */ + usersTableId?: string; + /** Checks for equality with the object’s `authenticate` field. */ + authenticate?: string; + /** Checks for equality with the object’s `authenticateStrict` field. */ + authenticateStrict?: string; + /** Checks for equality with the object’s `currentRole` field. */ + currentRole?: string; + /** Checks for equality with the object’s `currentRoleId` field. */ + currentRoleId?: string; +} +/** A filter to be used against `RlsModule` object types. All fields are combined with a logical ‘and.’ */ +export interface RlsModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `apiId` field. */ + apiId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `sessionCredentialsTableId` field. */ + sessionCredentialsTableId?: UUIDFilter; + /** Filter by the object’s `sessionsTableId` field. */ + sessionsTableId?: UUIDFilter; + /** Filter by the object’s `usersTableId` field. */ + usersTableId?: UUIDFilter; + /** Filter by the object’s `authenticate` field. */ + authenticate?: StringFilter; + /** Filter by the object’s `authenticateStrict` field. */ + authenticateStrict?: StringFilter; + /** Filter by the object’s `currentRole` field. */ + currentRole?: StringFilter; + /** Filter by the object’s `currentRoleId` field. */ + currentRoleId?: StringFilter; + /** Checks for all expressions in this list. */ + and?: RlsModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: RlsModuleFilter[]; + /** Negates the expression. */ + not?: RlsModuleFilter; +} +/** + * A condition to be used against `SecretsModule` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface SecretsModuleCondition { + /** 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; +} +/** A filter to be used against `SecretsModule` object types. All fields are combined with a logical ‘and.’ */ +export interface SecretsModuleFilter { + /** 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; + /** Checks for all expressions in this list. */ + and?: SecretsModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: SecretsModuleFilter[]; + /** Negates the expression. */ + not?: SecretsModuleFilter; +} +/** + * A condition to be used against `SessionsModule` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface SessionsModuleCondition { + /** 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 `sessionsTableId` field. */ + sessionsTableId?: string; + /** Checks for equality with the object’s `sessionCredentialsTableId` field. */ + sessionCredentialsTableId?: string; + /** Checks for equality with the object’s `authSettingsTableId` field. */ + authSettingsTableId?: string; + /** Checks for equality with the object’s `usersTableId` field. */ + usersTableId?: string; + /** Checks for equality with the object’s `sessionsDefaultExpiration` field. */ + sessionsDefaultExpiration?: IntervalInput; + /** Checks for equality with the object’s `sessionsTable` field. */ + sessionsTable?: string; + /** Checks for equality with the object’s `sessionCredentialsTable` field. */ + sessionCredentialsTable?: string; + /** Checks for equality with the object’s `authSettingsTable` field. */ + authSettingsTable?: string; +} +/** An interval of time that has passed where the smallest distinct unit is a second. */ +export interface IntervalInput { + /** + * A quantity of seconds. This is the only non-integer field, as all the other + * fields will dump their overflow into a smaller unit of time. Intervals don’t + * have a smaller unit than seconds. + */ + seconds?: number; + /** A quantity of minutes. */ + minutes?: number; + /** A quantity of hours. */ + hours?: number; + /** A quantity of days. */ + days?: number; + /** A quantity of months. */ + months?: number; + /** A quantity of years. */ + years?: number; +} +/** A filter to be used against `SessionsModule` object types. All fields are combined with a logical ‘and.’ */ +export interface SessionsModuleFilter { + /** 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 `sessionsTableId` field. */ + sessionsTableId?: UUIDFilter; + /** Filter by the object’s `sessionCredentialsTableId` field. */ + sessionCredentialsTableId?: UUIDFilter; + /** Filter by the object’s `authSettingsTableId` field. */ + authSettingsTableId?: UUIDFilter; + /** Filter by the object’s `usersTableId` field. */ + usersTableId?: UUIDFilter; + /** Filter by the object’s `sessionsDefaultExpiration` field. */ + sessionsDefaultExpiration?: IntervalFilter; + /** Filter by the object’s `sessionsTable` field. */ + sessionsTable?: StringFilter; + /** Filter by the object’s `sessionCredentialsTable` field. */ + sessionCredentialsTable?: StringFilter; + /** Filter by the object’s `authSettingsTable` field. */ + authSettingsTable?: StringFilter; + /** Checks for all expressions in this list. */ + and?: SessionsModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: SessionsModuleFilter[]; + /** Negates the expression. */ + not?: SessionsModuleFilter; +} +/** A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ */ +export interface IntervalFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: IntervalInput; + /** Not equal to the specified value. */ + notEqualTo?: IntervalInput; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: IntervalInput; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: IntervalInput; + /** Included in the specified list. */ + in?: IntervalInput[]; + /** Not included in the specified list. */ + notIn?: IntervalInput[]; + /** Less than the specified value. */ + lessThan?: IntervalInput; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: IntervalInput; + /** Greater than the specified value. */ + greaterThan?: IntervalInput; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: IntervalInput; +} +/** + * A condition to be used against `UserAuthModule` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface UserAuthModuleCondition { + /** 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 `emailsTableId` field. */ + emailsTableId?: string; + /** Checks for equality with the object’s `usersTableId` field. */ + usersTableId?: string; + /** Checks for equality with the object’s `secretsTableId` field. */ + secretsTableId?: string; + /** Checks for equality with the object’s `encryptedTableId` field. */ + encryptedTableId?: string; + /** Checks for equality with the object’s `sessionsTableId` field. */ + sessionsTableId?: string; + /** Checks for equality with the object’s `sessionCredentialsTableId` field. */ + sessionCredentialsTableId?: string; + /** Checks for equality with the object’s `auditsTableId` field. */ + auditsTableId?: string; + /** Checks for equality with the object’s `auditsTableName` field. */ + auditsTableName?: string; + /** Checks for equality with the object’s `signInFunction` field. */ + signInFunction?: string; + /** Checks for equality with the object’s `signUpFunction` field. */ + signUpFunction?: string; + /** Checks for equality with the object’s `signOutFunction` field. */ + signOutFunction?: string; + /** Checks for equality with the object’s `setPasswordFunction` field. */ + setPasswordFunction?: string; + /** Checks for equality with the object’s `resetPasswordFunction` field. */ + resetPasswordFunction?: string; + /** Checks for equality with the object’s `forgotPasswordFunction` field. */ + forgotPasswordFunction?: string; + /** Checks for equality with the object’s `sendVerificationEmailFunction` field. */ + sendVerificationEmailFunction?: string; + /** Checks for equality with the object’s `verifyEmailFunction` field. */ + verifyEmailFunction?: string; + /** Checks for equality with the object’s `verifyPasswordFunction` field. */ + verifyPasswordFunction?: string; + /** Checks for equality with the object’s `checkPasswordFunction` field. */ + checkPasswordFunction?: string; + /** Checks for equality with the object’s `sendAccountDeletionEmailFunction` field. */ + sendAccountDeletionEmailFunction?: string; + /** Checks for equality with the object’s `deleteAccountFunction` field. */ + deleteAccountFunction?: string; + /** Checks for equality with the object’s `signInOneTimeTokenFunction` field. */ + signInOneTimeTokenFunction?: string; + /** Checks for equality with the object’s `oneTimeTokenFunction` field. */ + oneTimeTokenFunction?: string; + /** Checks for equality with the object’s `extendTokenExpires` field. */ + extendTokenExpires?: string; +} +/** A filter to be used against `UserAuthModule` object types. All fields are combined with a logical ‘and.’ */ +export interface UserAuthModuleFilter { + /** 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 `emailsTableId` field. */ + emailsTableId?: UUIDFilter; + /** Filter by the object’s `usersTableId` field. */ + usersTableId?: UUIDFilter; + /** Filter by the object’s `secretsTableId` field. */ + secretsTableId?: UUIDFilter; + /** Filter by the object’s `encryptedTableId` field. */ + encryptedTableId?: UUIDFilter; + /** Filter by the object’s `sessionsTableId` field. */ + sessionsTableId?: UUIDFilter; + /** Filter by the object’s `sessionCredentialsTableId` field. */ + sessionCredentialsTableId?: UUIDFilter; + /** Filter by the object’s `auditsTableId` field. */ + auditsTableId?: UUIDFilter; + /** Filter by the object’s `auditsTableName` field. */ + auditsTableName?: StringFilter; + /** Filter by the object’s `signInFunction` field. */ + signInFunction?: StringFilter; + /** Filter by the object’s `signUpFunction` field. */ + signUpFunction?: StringFilter; + /** Filter by the object’s `signOutFunction` field. */ + signOutFunction?: StringFilter; + /** Filter by the object’s `setPasswordFunction` field. */ + setPasswordFunction?: StringFilter; + /** Filter by the object’s `resetPasswordFunction` field. */ + resetPasswordFunction?: StringFilter; + /** Filter by the object’s `forgotPasswordFunction` field. */ + forgotPasswordFunction?: StringFilter; + /** Filter by the object’s `sendVerificationEmailFunction` field. */ + sendVerificationEmailFunction?: StringFilter; + /** Filter by the object’s `verifyEmailFunction` field. */ + verifyEmailFunction?: StringFilter; + /** Filter by the object’s `verifyPasswordFunction` field. */ + verifyPasswordFunction?: StringFilter; + /** Filter by the object’s `checkPasswordFunction` field. */ + checkPasswordFunction?: StringFilter; + /** Filter by the object’s `sendAccountDeletionEmailFunction` field. */ + sendAccountDeletionEmailFunction?: StringFilter; + /** Filter by the object’s `deleteAccountFunction` field. */ + deleteAccountFunction?: StringFilter; + /** Filter by the object’s `signInOneTimeTokenFunction` field. */ + signInOneTimeTokenFunction?: StringFilter; + /** Filter by the object’s `oneTimeTokenFunction` field. */ + oneTimeTokenFunction?: StringFilter; + /** Filter by the object’s `extendTokenExpires` field. */ + extendTokenExpires?: StringFilter; + /** Checks for all expressions in this list. */ + and?: UserAuthModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: UserAuthModuleFilter[]; + /** Negates the expression. */ + not?: UserAuthModuleFilter; +} +/** + * A condition to be used against `UsersModule` object types. All fields are tested + * for equality and combined with a logical ‘and.’ + */ +export interface UsersModuleCondition { + /** 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 `typeTableId` field. */ + typeTableId?: string; + /** Checks for equality with the object’s `typeTableName` field. */ + typeTableName?: string; +} +/** A filter to be used against `UsersModule` object types. All fields are combined with a logical ‘and.’ */ +export interface UsersModuleFilter { + /** 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 `typeTableId` field. */ + typeTableId?: UUIDFilter; + /** Filter by the object’s `typeTableName` field. */ + typeTableName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: UsersModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: UsersModuleFilter[]; + /** Negates the expression. */ + not?: UsersModuleFilter; +} +/** + * A condition to be used against `UuidModule` object types. All fields are tested + * for equality and combined with a logical ‘and.’ + */ +export interface UuidModuleCondition { + /** 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 `uuidFunction` field. */ + uuidFunction?: string; + /** Checks for equality with the object’s `uuidSeed` field. */ + uuidSeed?: string; +} +/** A filter to be used against `UuidModule` object types. All fields are combined with a logical ‘and.’ */ +export interface UuidModuleFilter { + /** 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 `uuidFunction` field. */ + uuidFunction?: StringFilter; + /** Filter by the object’s `uuidSeed` field. */ + uuidSeed?: StringFilter; + /** Checks for all expressions in this list. */ + and?: UuidModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: UuidModuleFilter[]; + /** Negates the expression. */ + not?: UuidModuleFilter; +} +/** + * A condition to be used against `DatabaseProvisionModule` object types. All + * fields are tested for equality and combined with a logical ‘and.’ + */ +export interface DatabaseProvisionModuleCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `databaseName` field. */ + databaseName?: string; + /** Checks for equality with the object’s `ownerId` field. */ + ownerId?: string; + /** Checks for equality with the object’s `subdomain` field. */ + subdomain?: string; + /** Checks for equality with the object’s `domain` field. */ + domain?: string; + /** Checks for equality with the object’s `modules` field. */ + modules?: string[]; + /** Checks for equality with the object’s `options` field. */ + options?: unknown; + /** Checks for equality with the object’s `bootstrapUser` field. */ + bootstrapUser?: boolean; + /** Checks for equality with the object’s `status` field. */ + status?: string; + /** Checks for equality with the object’s `errorMessage` field. */ + errorMessage?: string; + /** Checks for equality with the object’s `databaseId` field. */ + databaseId?: 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 `completedAt` field. */ + completedAt?: string; +} +/** A filter to be used against `DatabaseProvisionModule` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseProvisionModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseName` field. */ + databaseName?: StringFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `subdomain` field. */ + subdomain?: StringFilter; + /** Filter by the object’s `domain` field. */ + domain?: StringFilter; + /** Filter by the object’s `modules` field. */ + modules?: StringListFilter; + /** Filter by the object’s `options` field. */ + options?: JSONFilter; + /** Filter by the object’s `bootstrapUser` field. */ + bootstrapUser?: BooleanFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `errorMessage` field. */ + errorMessage?: StringFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: DatabaseProvisionModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: DatabaseProvisionModuleFilter[]; + /** Negates the expression. */ + not?: DatabaseProvisionModuleFilter; +} +/** + * A condition to be used against `Database` object types. All fields are tested + * for equality and combined with a logical ‘and.’ + */ +export interface DatabaseCondition { + /** 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 `schemaHash` field. */ + schemaHash?: 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 `hash` field. */ + hash?: 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 `Database` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `schemaHash` field. */ + schemaHash?: StringFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `hash` field. */ + hash?: 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?: DatabaseFilter[]; + /** Checks for any expressions in this list. */ + or?: DatabaseFilter[]; + /** Negates the expression. */ + not?: DatabaseFilter; +} +/** + * A condition to be used against `AppAdminGrant` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface AppAdminGrantCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `isGrant` field. */ + isGrant?: boolean; + /** Checks for equality with the object’s `actorId` field. */ + actorId?: string; + /** Checks for equality with the object’s `grantorId` field. */ + grantorId?: 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 `AppAdminGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface AppAdminGrantFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `grantorId` field. */ + grantorId?: 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?: AppAdminGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: AppAdminGrantFilter[]; + /** Negates the expression. */ + not?: AppAdminGrantFilter; +} +/** + * A condition to be used against `AppOwnerGrant` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface AppOwnerGrantCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `isGrant` field. */ + isGrant?: boolean; + /** Checks for equality with the object’s `actorId` field. */ + actorId?: string; + /** Checks for equality with the object’s `grantorId` field. */ + grantorId?: 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 `AppOwnerGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface AppOwnerGrantFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `grantorId` field. */ + grantorId?: 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?: AppOwnerGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: AppOwnerGrantFilter[]; + /** Negates the expression. */ + not?: AppOwnerGrantFilter; +} +/** + * A condition to be used against `AppGrant` object types. All fields are tested + * for equality and combined with a logical ‘and.’ + */ +export interface AppGrantCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `permissions` field. */ + permissions?: string; + /** Checks for equality with the object’s `isGrant` field. */ + isGrant?: boolean; + /** Checks for equality with the object’s `actorId` field. */ + actorId?: string; + /** Checks for equality with the object’s `grantorId` field. */ + grantorId?: 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 `AppGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface AppGrantFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `permissions` field. */ + permissions?: BitStringFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `grantorId` field. */ + grantorId?: 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?: AppGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: AppGrantFilter[]; + /** Negates the expression. */ + not?: AppGrantFilter; +} +/** + * A condition to be used against `OrgMembership` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface OrgMembershipCondition { + /** 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 `createdBy` field. */ + createdBy?: string; + /** Checks for equality with the object’s `updatedBy` field. */ + updatedBy?: string; + /** Checks for equality with the object’s `isApproved` field. */ + isApproved?: boolean; + /** Checks for equality with the object’s `isBanned` field. */ + isBanned?: boolean; + /** Checks for equality with the object’s `isDisabled` field. */ + isDisabled?: boolean; + /** Checks for equality with the object’s `isActive` field. */ + isActive?: boolean; + /** Checks for equality with the object’s `isOwner` field. */ + isOwner?: boolean; + /** Checks for equality with the object’s `isAdmin` field. */ + isAdmin?: boolean; + /** Checks for equality with the object’s `permissions` field. */ + permissions?: string; + /** Checks for equality with the object’s `granted` field. */ + granted?: string; + /** Checks for equality with the object’s `actorId` field. */ + actorId?: string; + /** Checks for equality with the object’s `entityId` field. */ + entityId?: string; +} +/** A filter to be used against `OrgMembership` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgMembershipFilter { + /** 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 `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `isApproved` field. */ + isApproved?: BooleanFilter; + /** Filter by the object’s `isBanned` field. */ + isBanned?: BooleanFilter; + /** Filter by the object’s `isDisabled` field. */ + isDisabled?: BooleanFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `isOwner` field. */ + isOwner?: BooleanFilter; + /** Filter by the object’s `isAdmin` field. */ + isAdmin?: BooleanFilter; + /** Filter by the object’s `permissions` field. */ + permissions?: BitStringFilter; + /** Filter by the object’s `granted` field. */ + granted?: BitStringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: OrgMembershipFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgMembershipFilter[]; + /** Negates the expression. */ + not?: OrgMembershipFilter; +} +/** + * A condition to be used against `OrgMember` object types. All fields are tested + * for equality and combined with a logical ‘and.’ + */ +export interface OrgMemberCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `isAdmin` field. */ + isAdmin?: boolean; + /** Checks for equality with the object’s `actorId` field. */ + actorId?: string; + /** Checks for equality with the object’s `entityId` field. */ + entityId?: string; +} +/** A filter to be used against `OrgMember` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgMemberFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isAdmin` field. */ + isAdmin?: BooleanFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: OrgMemberFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgMemberFilter[]; + /** Negates the expression. */ + not?: OrgMemberFilter; +} +/** + * A condition to be used against `OrgAdminGrant` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface OrgAdminGrantCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `isGrant` field. */ + isGrant?: boolean; + /** Checks for equality with the object’s `actorId` field. */ + actorId?: string; + /** Checks for equality with the object’s `entityId` field. */ + entityId?: string; + /** Checks for equality with the object’s `grantorId` field. */ + grantorId?: 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 `OrgAdminGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgAdminGrantFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `grantorId` field. */ + grantorId?: 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?: OrgAdminGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgAdminGrantFilter[]; + /** Negates the expression. */ + not?: OrgAdminGrantFilter; +} +/** + * A condition to be used against `OrgOwnerGrant` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface OrgOwnerGrantCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `isGrant` field. */ + isGrant?: boolean; + /** Checks for equality with the object’s `actorId` field. */ + actorId?: string; + /** Checks for equality with the object’s `entityId` field. */ + entityId?: string; + /** Checks for equality with the object’s `grantorId` field. */ + grantorId?: 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 `OrgOwnerGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgOwnerGrantFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `grantorId` field. */ + grantorId?: 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?: OrgOwnerGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgOwnerGrantFilter[]; + /** Negates the expression. */ + not?: OrgOwnerGrantFilter; +} +/** + * A condition to be used against `OrgGrant` object types. All fields are tested + * for equality and combined with a logical ‘and.’ + */ +export interface OrgGrantCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `permissions` field. */ + permissions?: string; + /** Checks for equality with the object’s `isGrant` field. */ + isGrant?: boolean; + /** Checks for equality with the object’s `actorId` field. */ + actorId?: string; + /** Checks for equality with the object’s `entityId` field. */ + entityId?: string; + /** Checks for equality with the object’s `grantorId` field. */ + grantorId?: 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 `OrgGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgGrantFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `permissions` field. */ + permissions?: BitStringFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `grantorId` field. */ + grantorId?: 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?: OrgGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgGrantFilter[]; + /** Negates the expression. */ + not?: OrgGrantFilter; +} +/** + * A condition to be used against `AppLimit` object types. All fields are tested + * for equality and combined with a logical ‘and.’ + */ +export interface AppLimitCondition { + /** 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 `actorId` field. */ + actorId?: string; + /** Checks for equality with the object’s `num` field. */ + num?: number; + /** Checks for equality with the object’s `max` field. */ + max?: number; +} +/** A filter to be used against `AppLimit` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `num` field. */ + num?: IntFilter; + /** Filter by the object’s `max` field. */ + max?: IntFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitFilter[]; + /** Negates the expression. */ + not?: AppLimitFilter; +} +/** + * A condition to be used against `OrgLimit` object types. All fields are tested + * for equality and combined with a logical ‘and.’ + */ +export interface OrgLimitCondition { + /** 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 `actorId` field. */ + actorId?: string; + /** Checks for equality with the object’s `num` field. */ + num?: number; + /** Checks for equality with the object’s `max` field. */ + max?: number; + /** Checks for equality with the object’s `entityId` field. */ + entityId?: string; +} +/** A filter to be used against `OrgLimit` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgLimitFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `num` field. */ + num?: IntFilter; + /** Filter by the object’s `max` field. */ + max?: IntFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitFilter[]; + /** Negates the expression. */ + not?: OrgLimitFilter; +} +/** A condition to be used against `AppStep` object types. All fields are tested for equality and combined with a logical ‘and.’ */ +export interface AppStepCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `actorId` field. */ + actorId?: string; + /** Checks for equality with the object’s `name` field. */ + name?: string; + /** Checks for equality with the object’s `count` field. */ + count?: number; + /** 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 `AppStep` object types. All fields are combined with a logical ‘and.’ */ +export interface AppStepFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `count` field. */ + count?: 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?: AppStepFilter[]; + /** Checks for any expressions in this list. */ + or?: AppStepFilter[]; + /** Negates the expression. */ + not?: AppStepFilter; +} +/** + * A condition to be used against `AppAchievement` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface AppAchievementCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `actorId` field. */ + actorId?: string; + /** Checks for equality with the object’s `name` field. */ + name?: string; + /** Checks for equality with the object’s `count` field. */ + count?: number; + /** 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 `AppAchievement` object types. All fields are combined with a logical ‘and.’ */ +export interface AppAchievementFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `count` field. */ + count?: 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?: AppAchievementFilter[]; + /** Checks for any expressions in this list. */ + or?: AppAchievementFilter[]; + /** Negates the expression. */ + not?: AppAchievementFilter; +} +/** 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. */ + email?: ConstructiveInternalTypeEmail; + /** Checks for equality with the object’s `senderId` field. */ + senderId?: string; + /** Checks for equality with the object’s `inviteToken` field. */ + inviteToken?: string; + /** Checks for equality with the object’s `inviteValid` field. */ + inviteValid?: boolean; + /** Checks for equality with the object’s `inviteLimit` field. */ + inviteLimit?: number; + /** Checks for equality with the object’s `inviteCount` field. */ + inviteCount?: number; + /** Checks for equality with the object’s `multiple` field. */ + multiple?: boolean; + /** Checks for equality with the object’s `data` field. */ + data?: unknown; + /** Checks for equality with the object’s `expiresAt` field. */ + expiresAt?: 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 `Invite` object types. All fields are combined with a logical ‘and.’ */ +export interface InviteFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `email` field. */ + email?: ConstructiveInternalTypeEmailFilter; + /** Filter by the object’s `senderId` field. */ + senderId?: UUIDFilter; + /** Filter by the object’s `inviteToken` field. */ + inviteToken?: StringFilter; + /** Filter by the object’s `inviteValid` field. */ + inviteValid?: BooleanFilter; + /** Filter by the object’s `inviteLimit` field. */ + inviteLimit?: IntFilter; + /** Filter by the object’s `inviteCount` field. */ + inviteCount?: IntFilter; + /** Filter by the object’s `multiple` field. */ + multiple?: BooleanFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** 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?: InviteFilter[]; + /** Checks for any expressions in this list. */ + or?: InviteFilter[]; + /** Negates the expression. */ + not?: InviteFilter; +} +/** 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 `ClaimedInvite` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface ClaimedInviteCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `data` field. */ + data?: unknown; + /** Checks for equality with the object’s `senderId` field. */ + senderId?: string; + /** Checks for equality with the object’s `receiverId` field. */ + receiverId?: 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 `ClaimedInvite` object types. All fields are combined with a logical ‘and.’ */ +export interface ClaimedInviteFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `senderId` field. */ + senderId?: UUIDFilter; + /** Filter by the object’s `receiverId` field. */ + receiverId?: 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?: ClaimedInviteFilter[]; + /** Checks for any expressions in this list. */ + or?: ClaimedInviteFilter[]; + /** Negates the expression. */ + not?: ClaimedInviteFilter; +} +/** + * A condition to be used against `OrgInvite` object types. All fields are tested + * for equality and combined with a logical ‘and.’ + */ +export interface OrgInviteCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `email` field. */ + email?: ConstructiveInternalTypeEmail; + /** Checks for equality with the object’s `senderId` field. */ + senderId?: string; + /** Checks for equality with the object’s `receiverId` field. */ + receiverId?: string; + /** Checks for equality with the object’s `inviteToken` field. */ + inviteToken?: string; + /** Checks for equality with the object’s `inviteValid` field. */ + inviteValid?: boolean; + /** Checks for equality with the object’s `inviteLimit` field. */ + inviteLimit?: number; + /** Checks for equality with the object’s `inviteCount` field. */ + inviteCount?: number; + /** Checks for equality with the object’s `multiple` field. */ + multiple?: boolean; + /** Checks for equality with the object’s `data` field. */ + data?: unknown; + /** Checks for equality with the object’s `expiresAt` field. */ + expiresAt?: 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; +} +/** A filter to be used against `OrgInvite` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgInviteFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `email` field. */ + email?: ConstructiveInternalTypeEmailFilter; + /** Filter by the object’s `senderId` field. */ + senderId?: UUIDFilter; + /** Filter by the object’s `receiverId` field. */ + receiverId?: UUIDFilter; + /** Filter by the object’s `inviteToken` field. */ + inviteToken?: StringFilter; + /** Filter by the object’s `inviteValid` field. */ + inviteValid?: BooleanFilter; + /** Filter by the object’s `inviteLimit` field. */ + inviteLimit?: IntFilter; + /** Filter by the object’s `inviteCount` field. */ + inviteCount?: IntFilter; + /** Filter by the object’s `multiple` field. */ + multiple?: BooleanFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** 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; + /** Checks for all expressions in this list. */ + and?: OrgInviteFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgInviteFilter[]; + /** Negates the expression. */ + not?: OrgInviteFilter; +} +/** + * A condition to be used against `OrgClaimedInvite` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface OrgClaimedInviteCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `data` field. */ + data?: unknown; + /** Checks for equality with the object’s `senderId` field. */ + senderId?: string; + /** Checks for equality with the object’s `receiverId` field. */ + receiverId?: 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; +} +/** A filter to be used against `OrgClaimedInvite` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgClaimedInviteFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `senderId` field. */ + senderId?: UUIDFilter; + /** Filter by the object’s `receiverId` field. */ + receiverId?: 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; + /** Checks for all expressions in this list. */ + and?: OrgClaimedInviteFilter[]; + /** Checks for any expressions in this list. */ + or?: 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 { + /** 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 `databaseId` field. */ + databaseId?: string; + /** Checks for equality with the object’s `storeId` field. */ + storeId?: string; + /** Checks for equality with the object’s `commitId` field. */ + commitId?: string; +} +/** A filter to be used against `Ref` object types. All fields are combined with a logical ‘and.’ */ +export interface RefFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `commitId` field. */ + commitId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: RefFilter[]; + /** Checks for any expressions in this list. */ + or?: RefFilter[]; + /** Negates the expression. */ + not?: RefFilter; +} +/** A condition to be used against `Store` object types. All fields are tested for equality and combined with a logical ‘and.’ */ +export interface StoreCondition { + /** 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 `databaseId` field. */ + databaseId?: string; + /** Checks for equality with the object’s `hash` field. */ + hash?: string; + /** Checks for equality with the object’s `createdAt` field. */ + createdAt?: string; +} +/** A filter to be used against `Store` object types. All fields are combined with a logical ‘and.’ */ +export interface StoreFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `hash` field. */ + hash?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: StoreFilter[]; + /** Checks for any expressions in this list. */ + or?: StoreFilter[]; + /** Negates the expression. */ + not?: StoreFilter; +} +/** + * A condition to be used against `RoleType` object types. All fields are tested + * for equality and combined with a logical ‘and.’ + */ +export interface RoleTypeCondition { + /** Checks for equality with the object’s `id` field. */ + id?: number; + /** Checks for equality with the object’s `name` field. */ + name?: string; +} +/** A filter to be used against `RoleType` object types. All fields are combined with a logical ‘and.’ */ +export interface RoleTypeFilter { + /** Filter by the object’s `id` field. */ + id?: IntFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Checks for all expressions in this list. */ + and?: RoleTypeFilter[]; + /** Checks for any expressions in this list. */ + or?: RoleTypeFilter[]; + /** Negates the expression. */ + not?: RoleTypeFilter; +} +/** + * A condition to be used against `OrgPermissionDefault` object types. All fields + * are tested for equality and combined with a logical ‘and.’ + */ +export interface OrgPermissionDefaultCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `permissions` field. */ + permissions?: string; + /** Checks for equality with the object’s `entityId` field. */ + entityId?: string; +} +/** A filter to be used against `OrgPermissionDefault` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgPermissionDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `permissions` field. */ + permissions?: BitStringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: OrgPermissionDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: 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.’ + */ +export interface CryptoAddressCondition { + /** 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 `address` field. */ + address?: string; + /** 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 `CryptoAddress` object types. All fields are combined with a logical ‘and.’ */ +export interface CryptoAddressFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `address` field. */ + address?: StringFilter; + /** 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?: CryptoAddressFilter[]; + /** Checks for any expressions in this list. */ + or?: CryptoAddressFilter[]; + /** Negates the expression. */ + not?: CryptoAddressFilter; +} +/** + * 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 `ConnectedAccount` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface ConnectedAccountCondition { + /** 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 `service` field. */ + service?: string; + /** Checks for equality with the object’s `identifier` field. */ + identifier?: string; + /** Checks for equality with the object’s `details` field. */ + details?: unknown; + /** Checks for equality with the object’s `isVerified` field. */ + isVerified?: 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 `ConnectedAccount` object types. All fields are combined with a logical ‘and.’ */ +export interface ConnectedAccountFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `service` field. */ + service?: StringFilter; + /** Filter by the object’s `identifier` field. */ + identifier?: StringFilter; + /** Filter by the object’s `details` field. */ + details?: JSONFilter; + /** Filter by the object’s `isVerified` field. */ + isVerified?: 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?: ConnectedAccountFilter[]; + /** Checks for any expressions in this list. */ + or?: ConnectedAccountFilter[]; + /** Negates the expression. */ + not?: ConnectedAccountFilter; +} +/** + * A condition to be used against `PhoneNumber` object types. All fields are tested + * for equality and combined with a logical ‘and.’ + */ +export interface PhoneNumberCondition { + /** 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 `cc` field. */ + cc?: string; + /** Checks for equality with the object’s `number` field. */ + number?: string; + /** 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 `PhoneNumber` object types. All fields are combined with a logical ‘and.’ */ +export interface PhoneNumberFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `cc` field. */ + cc?: StringFilter; + /** Filter by the object’s `number` field. */ + number?: StringFilter; + /** 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?: PhoneNumberFilter[]; + /** Checks for any expressions in this list. */ + or?: PhoneNumberFilter[]; + /** Negates the expression. */ + not?: PhoneNumberFilter; +} +/** + * A condition to be used against `AppPermission` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface AppPermissionCondition { + /** 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 `bitnum` field. */ + bitnum?: number; + /** Checks for equality with the object’s `bitstr` field. */ + bitstr?: string; + /** Checks for equality with the object’s `description` field. */ + description?: string; +} +/** A filter to be used against `AppPermission` object types. All fields are combined with a logical ‘and.’ */ +export interface AppPermissionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `bitnum` field. */ + bitnum?: IntFilter; + /** Filter by the object’s `bitstr` field. */ + bitstr?: BitStringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AppPermissionFilter[]; + /** Checks for any expressions in this list. */ + or?: AppPermissionFilter[]; + /** Negates the expression. */ + not?: AppPermissionFilter; +} +/** + * A condition to be used against `OrgPermission` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface OrgPermissionCondition { + /** 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 `bitnum` field. */ + bitnum?: number; + /** Checks for equality with the object’s `bitstr` field. */ + bitstr?: string; + /** Checks for equality with the object’s `description` field. */ + description?: string; +} +/** A filter to be used against `OrgPermission` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgPermissionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `bitnum` field. */ + bitnum?: IntFilter; + /** Filter by the object’s `bitstr` field. */ + bitstr?: BitStringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Checks for all expressions in this list. */ + and?: OrgPermissionFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgPermissionFilter[]; + /** Negates the expression. */ + not?: OrgPermissionFilter; +} +/** + * A condition to be used against `AppMembershipDefault` object types. All fields + * are tested for equality and combined with a logical ‘and.’ + */ +export interface AppMembershipDefaultCondition { + /** 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 `createdBy` field. */ + createdBy?: string; + /** Checks for equality with the object’s `updatedBy` field. */ + updatedBy?: string; + /** Checks for equality with the object’s `isApproved` field. */ + isApproved?: boolean; + /** Checks for equality with the object’s `isVerified` field. */ + isVerified?: boolean; +} +/** A filter to be used against `AppMembershipDefault` object types. All fields are combined with a logical ‘and.’ */ +export interface AppMembershipDefaultFilter { + /** 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 `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `isApproved` field. */ + isApproved?: BooleanFilter; + /** Filter by the object’s `isVerified` field. */ + isVerified?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: AppMembershipDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: 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. */ + id?: string; + /** Checks for equality with the object’s `databaseId` field. */ + databaseId?: string; + /** Checks for equality with the object’s `kids` field. */ + kids?: string[]; + /** Checks for equality with the object’s `ktree` field. */ + ktree?: string[]; + /** Checks for equality with the object’s `data` field. */ + data?: unknown; + /** Checks for equality with the object’s `frzn` field. */ + frzn?: boolean; + /** Checks for equality with the object’s `createdAt` field. */ + createdAt?: string; +} +/** A filter to be used against `Object` object types. All fields are combined with a logical ‘and.’ */ +export interface ObjectFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `kids` field. */ + kids?: UUIDListFilter; + /** Filter by the object’s `ktree` field. */ + ktree?: StringListFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; + /** Filter by the object’s `frzn` field. */ + frzn?: BooleanFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: ObjectFilter[]; + /** Checks for any expressions in this list. */ + or?: ObjectFilter[]; + /** Negates the expression. */ + not?: ObjectFilter; +} +/** A condition to be used against `Commit` object types. All fields are tested for equality and combined with a logical ‘and.’ */ +export interface CommitCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `message` field. */ + message?: string; + /** Checks for equality with the object’s `databaseId` field. */ + databaseId?: string; + /** Checks for equality with the object’s `storeId` field. */ + storeId?: string; + /** Checks for equality with the object’s `parentIds` field. */ + parentIds?: string[]; + /** Checks for equality with the object’s `authorId` field. */ + authorId?: string; + /** Checks for equality with the object’s `committerId` field. */ + committerId?: string; + /** Checks for equality with the object’s `treeId` field. */ + treeId?: string; + /** Checks for equality with the object’s `date` field. */ + date?: string; +} +/** A filter to be used against `Commit` object types. All fields are combined with a logical ‘and.’ */ +export interface CommitFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `message` field. */ + message?: StringFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `parentIds` field. */ + parentIds?: UUIDListFilter; + /** Filter by the object’s `authorId` field. */ + authorId?: UUIDFilter; + /** Filter by the object’s `committerId` field. */ + committerId?: UUIDFilter; + /** Filter by the object’s `treeId` field. */ + treeId?: UUIDFilter; + /** Filter by the object’s `date` field. */ + date?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: CommitFilter[]; + /** Checks for any expressions in this list. */ + or?: CommitFilter[]; + /** Negates the expression. */ + not?: CommitFilter; +} +/** + * A condition to be used against `OrgMembershipDefault` object types. All fields + * are tested for equality and combined with a logical ‘and.’ + */ +export interface OrgMembershipDefaultCondition { + /** 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 `createdBy` field. */ + createdBy?: string; + /** Checks for equality with the object’s `updatedBy` field. */ + updatedBy?: string; + /** Checks for equality with the object’s `isApproved` field. */ + isApproved?: boolean; + /** Checks for equality with the object’s `entityId` field. */ + entityId?: string; + /** Checks for equality with the object’s `deleteMemberCascadeGroups` field. */ + deleteMemberCascadeGroups?: boolean; + /** Checks for equality with the object’s `createGroupsCascadeMembers` field. */ + createGroupsCascadeMembers?: boolean; +} +/** A filter to be used against `OrgMembershipDefault` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgMembershipDefaultFilter { + /** 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 `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `isApproved` field. */ + isApproved?: BooleanFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `deleteMemberCascadeGroups` field. */ + deleteMemberCascadeGroups?: BooleanFilter; + /** Filter by the object’s `createGroupsCascadeMembers` field. */ + createGroupsCascadeMembers?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: OrgMembershipDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: 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.’ + */ +export interface AppLevelRequirementCondition { + /** 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 `level` field. */ + level?: string; + /** Checks for equality with the object’s `description` field. */ + description?: string; + /** Checks for equality with the object’s `requiredCount` field. */ + requiredCount?: number; + /** Checks for equality with the object’s `priority` field. */ + priority?: number; + /** 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 `AppLevelRequirement` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLevelRequirementFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `level` field. */ + level?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `requiredCount` field. */ + requiredCount?: IntFilter; + /** Filter by the object’s `priority` field. */ + priority?: 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?: AppLevelRequirementFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLevelRequirementFilter[]; + /** Negates the expression. */ + not?: AppLevelRequirementFilter; +} +/** + * A condition to be used against `AuditLog` object types. All fields are tested + * for equality and combined with a logical ‘and.’ + */ +export interface AuditLogCondition { + /** Checks for equality with the object’s `id` field. */ + id?: string; + /** Checks for equality with the object’s `event` field. */ + event?: string; + /** Checks for equality with the object’s `actorId` field. */ + actorId?: string; + /** Checks for equality with the object’s `origin` field. */ + origin?: ConstructiveInternalTypeOrigin; + /** Checks for equality with the object’s `userAgent` field. */ + userAgent?: string; + /** Checks for equality with the object’s `ipAddress` field. */ + ipAddress?: string; + /** Checks for equality with the object’s `success` field. */ + success?: boolean; + /** Checks for equality with the object’s `createdAt` field. */ + createdAt?: string; +} +/** A filter to be used against `AuditLog` object types. All fields are combined with a logical ‘and.’ */ +export interface AuditLogFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `event` field. */ + event?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `origin` field. */ + origin?: ConstructiveInternalTypeOriginFilter; + /** Filter by the object’s `userAgent` field. */ + userAgent?: StringFilter; + /** Filter by the object’s `ipAddress` field. */ + ipAddress?: InternetAddressFilter; + /** Filter by the object’s `success` field. */ + success?: BooleanFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: AuditLogFilter[]; + /** Checks for any expressions in this list. */ + or?: AuditLogFilter[]; + /** Negates the expression. */ + not?: AuditLogFilter; +} +/** A filter to be used against ConstructiveInternalTypeOrigin fields. All fields are combined with a logical ‘and.’ */ +export interface ConstructiveInternalTypeOriginFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: ConstructiveInternalTypeOrigin; + /** Not equal to the specified value. */ + notEqualTo?: ConstructiveInternalTypeOrigin; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: ConstructiveInternalTypeOrigin; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: ConstructiveInternalTypeOrigin; + /** Included in the specified list. */ + in?: ConstructiveInternalTypeOrigin[]; + /** Not included in the specified list. */ + notIn?: ConstructiveInternalTypeOrigin[]; + /** Less than the specified value. */ + lessThan?: ConstructiveInternalTypeOrigin; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: ConstructiveInternalTypeOrigin; + /** Greater than the specified value. */ + greaterThan?: ConstructiveInternalTypeOrigin; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: ConstructiveInternalTypeOrigin; + /** Contains the specified string (case-sensitive). */ + includes?: ConstructiveInternalTypeOrigin; + /** Does not contain the specified string (case-sensitive). */ + notIncludes?: ConstructiveInternalTypeOrigin; + /** Contains the specified string (case-insensitive). */ + includesInsensitive?: ConstructiveInternalTypeOrigin; + /** Does not contain the specified string (case-insensitive). */ + notIncludesInsensitive?: ConstructiveInternalTypeOrigin; + /** Starts with the specified string (case-sensitive). */ + startsWith?: ConstructiveInternalTypeOrigin; + /** Does not start with the specified string (case-sensitive). */ + notStartsWith?: ConstructiveInternalTypeOrigin; + /** Starts with the specified string (case-insensitive). */ + startsWithInsensitive?: ConstructiveInternalTypeOrigin; + /** Does not start with the specified string (case-insensitive). */ + notStartsWithInsensitive?: ConstructiveInternalTypeOrigin; + /** Ends with the specified string (case-sensitive). */ + endsWith?: ConstructiveInternalTypeOrigin; + /** Does not end with the specified string (case-sensitive). */ + notEndsWith?: ConstructiveInternalTypeOrigin; + /** Ends with the specified string (case-insensitive). */ + endsWithInsensitive?: ConstructiveInternalTypeOrigin; + /** Does not end with the specified string (case-insensitive). */ + notEndsWithInsensitive?: ConstructiveInternalTypeOrigin; + /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + like?: ConstructiveInternalTypeOrigin; + /** 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?: ConstructiveInternalTypeOrigin; + /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + likeInsensitive?: ConstructiveInternalTypeOrigin; + /** 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?: ConstructiveInternalTypeOrigin; + /** Equal to the specified value (case-insensitive). */ + equalToInsensitive?: string; + /** Not equal to the specified value (case-insensitive). */ + notEqualToInsensitive?: string; + /** Not equal to the specified value, treating null like an ordinary value (case-insensitive). */ + distinctFromInsensitive?: string; + /** Equal to the specified value, treating null like an ordinary value (case-insensitive). */ + notDistinctFromInsensitive?: string; + /** Included in the specified list (case-insensitive). */ + inInsensitive?: string[]; + /** Not included in the specified list (case-insensitive). */ + notInInsensitive?: string[]; + /** Less than the specified value (case-insensitive). */ + lessThanInsensitive?: string; + /** Less than or equal to the specified value (case-insensitive). */ + lessThanOrEqualToInsensitive?: string; + /** Greater than the specified value (case-insensitive). */ + greaterThanInsensitive?: string; + /** Greater than or equal to the specified value (case-insensitive). */ + greaterThanOrEqualToInsensitive?: string; +} +/** + * 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 condition to be used against `SqlMigration` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface SqlMigrationCondition { + /** 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 `databaseId` field. */ + databaseId?: string; + /** Checks for equality with the object’s `deploy` field. */ + deploy?: string; + /** Checks for equality with the object’s `deps` field. */ + deps?: string[]; + /** Checks for equality with the object’s `payload` field. */ + payload?: unknown; + /** Checks for equality with the object’s `content` field. */ + content?: string; + /** Checks for equality with the object’s `revert` field. */ + revert?: string; + /** Checks for equality with the object’s `verify` field. */ + verify?: string; + /** Checks for equality with the object’s `createdAt` field. */ + createdAt?: string; + /** Checks for equality with the object’s `action` field. */ + action?: string; + /** Checks for equality with the object’s `actionId` field. */ + actionId?: string; + /** Checks for equality with the object’s `actorId` field. */ + actorId?: string; +} +/** A filter to be used against `SqlMigration` object types. All fields are combined with a logical ‘and.’ */ +export interface SqlMigrationFilter { + /** Filter by the object’s `id` field. */ + id?: IntFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `deploy` field. */ + deploy?: StringFilter; + /** Filter by the object’s `deps` field. */ + deps?: StringListFilter; + /** Filter by the object’s `content` field. */ + content?: StringFilter; + /** Filter by the object’s `revert` field. */ + revert?: StringFilter; + /** Filter by the object’s `verify` field. */ + verify?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `action` field. */ + action?: StringFilter; + /** Filter by the object’s `actionId` field. */ + actionId?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: SqlMigrationFilter[]; + /** Checks for any expressions in this list. */ + or?: SqlMigrationFilter[]; + /** Negates the expression. */ + not?: SqlMigrationFilter; +} +/** + * A condition to be used against `AstMigration` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface AstMigrationCondition { + /** Checks for equality with the object’s `id` field. */ + id?: number; + /** 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 `requires` field. */ + requires?: string[]; + /** Checks for equality with the object’s `payload` field. */ + payload?: unknown; + /** Checks for equality with the object’s `deploys` field. */ + deploys?: string; + /** Checks for equality with the object’s `deploy` field. */ + deploy?: unknown; + /** Checks for equality with the object’s `revert` field. */ + revert?: unknown; + /** Checks for equality with the object’s `verify` field. */ + verify?: unknown; + /** Checks for equality with the object’s `createdAt` field. */ + createdAt?: string; + /** Checks for equality with the object’s `action` field. */ + action?: string; + /** Checks for equality with the object’s `actionId` field. */ + actionId?: string; + /** Checks for equality with the object’s `actorId` field. */ + actorId?: string; +} +/** A filter to be used against `AstMigration` object types. All fields are combined with a logical ‘and.’ */ +export interface AstMigrationFilter { + /** Filter by the object’s `id` field. */ + id?: IntFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `requires` field. */ + requires?: StringListFilter; + /** Filter by the object’s `payload` field. */ + payload?: JSONFilter; + /** Filter by the object’s `deploys` field. */ + deploys?: StringFilter; + /** Filter by the object’s `deploy` field. */ + deploy?: JSONFilter; + /** Filter by the object’s `revert` field. */ + revert?: JSONFilter; + /** Filter by the object’s `verify` field. */ + verify?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `action` field. */ + action?: StringFilter; + /** Filter by the object’s `actionId` field. */ + actionId?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: AstMigrationFilter[]; + /** Checks for any expressions in this list. */ + or?: AstMigrationFilter[]; + /** Negates the expression. */ + not?: AstMigrationFilter; +} +/** + * A condition to be used against `AppMembership` object types. All fields are + * tested for equality and combined with a logical ‘and.’ + */ +export interface AppMembershipCondition { + /** 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 `createdBy` field. */ + createdBy?: string; + /** Checks for equality with the object’s `updatedBy` field. */ + updatedBy?: string; + /** Checks for equality with the object’s `isApproved` field. */ + isApproved?: boolean; + /** Checks for equality with the object’s `isBanned` field. */ + isBanned?: boolean; + /** Checks for equality with the object’s `isDisabled` field. */ + isDisabled?: boolean; + /** Checks for equality with the object’s `isVerified` field. */ + isVerified?: boolean; + /** Checks for equality with the object’s `isActive` field. */ + isActive?: boolean; + /** Checks for equality with the object’s `isOwner` field. */ + isOwner?: boolean; + /** Checks for equality with the object’s `isAdmin` field. */ + isAdmin?: boolean; + /** Checks for equality with the object’s `permissions` field. */ + permissions?: string; + /** Checks for equality with the object’s `granted` field. */ + granted?: string; + /** Checks for equality with the object’s `actorId` field. */ + actorId?: string; +} +/** A filter to be used against `AppMembership` object types. All fields are combined with a logical ‘and.’ */ +export interface AppMembershipFilter { + /** 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 `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `isApproved` field. */ + isApproved?: BooleanFilter; + /** Filter by the object’s `isBanned` field. */ + isBanned?: BooleanFilter; + /** Filter by the object’s `isDisabled` field. */ + isDisabled?: BooleanFilter; + /** Filter by the object’s `isVerified` field. */ + isVerified?: BooleanFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `isOwner` field. */ + isOwner?: BooleanFilter; + /** Filter by the object’s `isAdmin` field. */ + isAdmin?: BooleanFilter; + /** Filter by the object’s `permissions` field. */ + permissions?: BitStringFilter; + /** Filter by the object’s `granted` field. */ + granted?: BitStringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: AppMembershipFilter[]; + /** Checks for any expressions in this list. */ + or?: 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.’ + */ +export interface HierarchyModuleCondition { + /** 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 `privateSchemaId` field. */ + privateSchemaId?: string; + /** Checks for equality with the object’s `chartEdgesTableId` field. */ + chartEdgesTableId?: string; + /** Checks for equality with the object’s `chartEdgesTableName` field. */ + chartEdgesTableName?: string; + /** Checks for equality with the object’s `hierarchySprtTableId` field. */ + hierarchySprtTableId?: string; + /** Checks for equality with the object’s `hierarchySprtTableName` field. */ + hierarchySprtTableName?: string; + /** Checks for equality with the object’s `chartEdgeGrantsTableId` field. */ + chartEdgeGrantsTableId?: string; + /** Checks for equality with the object’s `chartEdgeGrantsTableName` field. */ + chartEdgeGrantsTableName?: string; + /** Checks for equality with the object’s `entityTableId` field. */ + entityTableId?: string; + /** Checks for equality with the object’s `usersTableId` field. */ + usersTableId?: string; + /** Checks for equality with the object’s `prefix` field. */ + prefix?: string; + /** Checks for equality with the object’s `privateSchemaName` field. */ + privateSchemaName?: string; + /** Checks for equality with the object’s `sprtTableName` field. */ + sprtTableName?: string; + /** Checks for equality with the object’s `rebuildHierarchyFunction` field. */ + rebuildHierarchyFunction?: string; + /** Checks for equality with the object’s `getSubordinatesFunction` field. */ + getSubordinatesFunction?: string; + /** Checks for equality with the object’s `getManagersFunction` field. */ + getManagersFunction?: string; + /** Checks for equality with the object’s `isManagerOfFunction` field. */ + isManagerOfFunction?: string; + /** Checks for equality with the object’s `createdAt` field. */ + createdAt?: string; +} +/** A filter to be used against `HierarchyModule` object types. All fields are combined with a logical ‘and.’ */ +export interface HierarchyModuleFilter { + /** 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 `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `chartEdgesTableId` field. */ + chartEdgesTableId?: UUIDFilter; + /** Filter by the object’s `chartEdgesTableName` field. */ + chartEdgesTableName?: StringFilter; + /** Filter by the object’s `hierarchySprtTableId` field. */ + hierarchySprtTableId?: UUIDFilter; + /** Filter by the object’s `hierarchySprtTableName` field. */ + hierarchySprtTableName?: StringFilter; + /** Filter by the object’s `chartEdgeGrantsTableId` field. */ + chartEdgeGrantsTableId?: UUIDFilter; + /** Filter by the object’s `chartEdgeGrantsTableName` field. */ + chartEdgeGrantsTableName?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `usersTableId` field. */ + usersTableId?: UUIDFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `sprtTableName` field. */ + sprtTableName?: StringFilter; + /** Filter by the object’s `rebuildHierarchyFunction` field. */ + rebuildHierarchyFunction?: StringFilter; + /** Filter by the object’s `getSubordinatesFunction` field. */ + getSubordinatesFunction?: StringFilter; + /** Filter by the object’s `getManagersFunction` field. */ + getManagersFunction?: StringFilter; + /** Filter by the object’s `isManagerOfFunction` field. */ + isManagerOfFunction?: StringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: HierarchyModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: HierarchyModuleFilter[]; + /** Negates the expression. */ + not?: HierarchyModuleFilter; +} +export interface SignOutInput { + clientMutationId?: string; +} +export interface SendAccountDeletionEmailInput { + clientMutationId?: string; +} +export interface CheckPasswordInput { + clientMutationId?: string; + password?: string; +} +export interface SubmitInviteCodeInput { + clientMutationId?: string; + token?: string; +} +export interface SubmitOrgInviteCodeInput { + clientMutationId?: string; + token?: string; +} +export interface FreezeObjectsInput { + clientMutationId?: string; + databaseId?: string; + id?: string; +} +export interface InitEmptyRepoInput { + clientMutationId?: string; + dbId?: string; + storeId?: string; +} +export interface ConfirmDeleteAccountInput { + clientMutationId?: string; + userId?: string; + token?: string; +} +export interface SetPasswordInput { + clientMutationId?: string; + currentPassword?: string; + newPassword?: string; +} +export interface VerifyEmailInput { + clientMutationId?: string; + emailId?: string; + token?: string; +} +export interface ResetPasswordInput { + clientMutationId?: string; + roleId?: string; + resetToken?: string; + newPassword?: string; +} +export interface RemoveNodeAtPathInput { + clientMutationId?: string; + dbId?: string; + root?: string; + path?: string[]; +} +export interface BootstrapUserInput { + clientMutationId?: string; + targetDatabaseId?: string; + password?: string; + isAdmin?: boolean; + isOwner?: boolean; + username?: string; + displayName?: string; + returnApiKey?: boolean; +} +export interface SetDataAtPathInput { + clientMutationId?: string; + dbId?: string; + root?: string; + path?: string[]; + data?: unknown; +} +export interface SetPropsAndCommitInput { + clientMutationId?: string; + dbId?: string; + storeId?: string; + refname?: string; + path?: string[]; + data?: unknown; +} +export interface ProvisionDatabaseWithUserInput { + clientMutationId?: string; + pDatabaseName?: string; + pDomain?: string; + pSubdomain?: string; + pModules?: string[]; + pOptions?: unknown; +} +export interface SignInOneTimeTokenInput { + clientMutationId?: string; + token?: string; + credentialKind?: string; +} +export interface CreateUserDatabaseInput { + clientMutationId?: string; + databaseName?: string; + ownerId?: string; + includeInvites?: boolean; + includeGroups?: boolean; + includeLevels?: boolean; + bitlen?: number; + tokensExpiration?: IntervalInput; +} +export interface ExtendTokenExpiresInput { + clientMutationId?: string; + amount?: IntervalInput; +} +export interface SignInInput { + clientMutationId?: string; + email?: string; + password?: string; + rememberMe?: boolean; + credentialKind?: string; + csrfToken?: string; +} +export interface SignUpInput { + clientMutationId?: string; + email?: string; + password?: string; + rememberMe?: boolean; + credentialKind?: string; + csrfToken?: string; +} +export interface SetFieldOrderInput { + clientMutationId?: string; + fieldIds?: string[]; +} +export interface OneTimeTokenInput { + clientMutationId?: string; + email?: string; + password?: string; + origin?: ConstructiveInternalTypeOrigin; + rememberMe?: boolean; +} +export interface InsertNodeAtPathInput { + clientMutationId?: string; + dbId?: string; + root?: string; + path?: string[]; + data?: unknown; + kids?: string[]; + ktree?: string[]; +} +export interface UpdateNodeAtPathInput { + clientMutationId?: string; + dbId?: string; + root?: string; + path?: string[]; + data?: unknown; + kids?: string[]; + ktree?: string[]; +} +export interface SetAndCommitInput { + clientMutationId?: string; + dbId?: string; + storeId?: string; + refname?: string; + path?: string[]; + data?: unknown; + kids?: string[]; + ktree?: string[]; +} +export interface ApplyRlsInput { + clientMutationId?: string; + tableId?: string; + grants?: unknown; + policyType?: string; + vars?: unknown; + fieldIds?: string[]; + permissive?: boolean; + name?: string; +} +export interface ForgotPasswordInput { + clientMutationId?: string; + email?: ConstructiveInternalTypeEmail; +} +export interface SendVerificationEmailInput { + clientMutationId?: string; + email?: ConstructiveInternalTypeEmail; +} +export interface VerifyPasswordInput { + clientMutationId?: string; + password: string; +} +export interface VerifyTotpInput { + clientMutationId?: string; + totpValue: string; +} +export interface CreateDefaultIdsModuleInput { + clientMutationId?: string; + /** The `DefaultIdsModule` to be created by this mutation. */ + defaultIdsModule: DefaultIdsModuleInput; +} +/** An input for mutations affecting `DefaultIdsModule` */ +export interface DefaultIdsModuleInput { + id?: string; + databaseId: string; +} +export interface CreateViewTableInput { + clientMutationId?: string; + /** The `ViewTable` to be created by this mutation. */ + viewTable: ViewTableInput; +} +/** An input for mutations affecting `ViewTable` */ +export interface ViewTableInput { + id?: string; + viewId: string; + tableId: string; + joinOrder?: number; +} +export interface CreateApiSchemaInput { + clientMutationId?: string; + /** The `ApiSchema` to be created by this mutation. */ + apiSchema: ApiSchemaInput; +} +/** An input for mutations affecting `ApiSchema` */ +export interface ApiSchemaInput { + id?: string; + databaseId: string; + schemaId: string; + 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. */ + orgMember: OrgMemberInput; +} +/** An input for mutations affecting `OrgMember` */ +export interface OrgMemberInput { + id?: string; + isAdmin?: boolean; + actorId: string; + entityId: string; +} +export interface CreateAppPermissionDefaultInput { + clientMutationId?: string; + /** The `AppPermissionDefault` to be created by this mutation. */ + appPermissionDefault: AppPermissionDefaultInput; +} +/** An input for mutations affecting `AppPermissionDefault` */ +export interface AppPermissionDefaultInput { + id?: string; + permissions?: string; +} +export interface CreateRefInput { + clientMutationId?: string; + /** The `Ref` to be created by this mutation. */ + ref: RefInput; +} +/** An input for mutations affecting `Ref` */ +export interface RefInput { + /** The primary unique identifier for the ref. */ + id?: string; + /** The name of the ref or branch */ + name: string; + databaseId: string; + storeId: string; + commitId?: string; +} +export interface CreateStoreInput { + clientMutationId?: string; + /** The `Store` to be created by this mutation. */ + store: StoreInput; +} +/** An input for mutations affecting `Store` */ +export interface StoreInput { + /** The primary unique identifier for the store. */ + id?: string; + /** The name of the store (e.g., metaschema, migrations). */ + name: string; + /** The database this store belongs to. */ + databaseId: string; + /** The current head tree_id for this store. */ + 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. */ + encryptedSecretsModule: EncryptedSecretsModuleInput; +} +/** An input for mutations affecting `EncryptedSecretsModule` */ +export interface EncryptedSecretsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; +} +export interface CreateMembershipTypesModuleInput { + clientMutationId?: string; + /** The `MembershipTypesModule` to be created by this mutation. */ + membershipTypesModule: MembershipTypesModuleInput; +} +/** An input for mutations affecting `MembershipTypesModule` */ +export interface MembershipTypesModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; +} +export interface CreateSecretsModuleInput { + clientMutationId?: string; + /** The `SecretsModule` to be created by this mutation. */ + secretsModule: SecretsModuleInput; +} +/** An input for mutations affecting `SecretsModule` */ +export interface SecretsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; +} +export interface CreateUuidModuleInput { + clientMutationId?: string; + /** The `UuidModule` to be created by this mutation. */ + uuidModule: UuidModuleInput; +} +/** An input for mutations affecting `UuidModule` */ +export interface UuidModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + uuidFunction?: string; + uuidSeed: string; +} +export interface CreateRoleTypeInput { + clientMutationId?: string; + /** The `RoleType` to be created by this mutation. */ + roleType: RoleTypeInput; +} +/** An input for mutations affecting `RoleType` */ +export interface RoleTypeInput { + id: number; + name: string; +} +export interface CreateOrgPermissionDefaultInput { + clientMutationId?: string; + /** The `OrgPermissionDefault` to be created by this mutation. */ + orgPermissionDefault: OrgPermissionDefaultInput; +} +/** An input for mutations affecting `OrgPermissionDefault` */ +export interface OrgPermissionDefaultInput { + id?: string; + permissions?: string; + entityId: string; +} +export interface CreateSchemaGrantInput { + clientMutationId?: string; + /** The `SchemaGrant` to be created by this mutation. */ + schemaGrant: SchemaGrantInput; +} +/** An input for mutations affecting `SchemaGrant` */ +export interface SchemaGrantInput { + id?: string; + databaseId?: string; + schemaId: string; + granteeName: string; + createdAt?: string; + updatedAt?: string; +} +export interface CreateTriggerFunctionInput { + clientMutationId?: string; + /** The `TriggerFunction` to be created by this mutation. */ + triggerFunction: TriggerFunctionInput; +} +/** An input for mutations affecting `TriggerFunction` */ +export interface TriggerFunctionInput { + id?: string; + databaseId: string; + name: string; + code?: string; + 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. */ + viewRule: ViewRuleInput; +} +/** An input for mutations affecting `ViewRule` */ +export interface ViewRuleInput { + id?: string; + databaseId?: string; + viewId: string; + name: string; + /** INSERT, UPDATE, or DELETE */ + event: string; + /** NOTHING (for read-only) or custom action */ + action?: string; +} +export interface CreateAppAdminGrantInput { + clientMutationId?: string; + /** The `AppAdminGrant` to be created by this mutation. */ + appAdminGrant: AppAdminGrantInput; +} +/** An input for mutations affecting `AppAdminGrant` */ +export interface AppAdminGrantInput { + id?: string; + isGrant?: boolean; + actorId: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface CreateAppOwnerGrantInput { + clientMutationId?: string; + /** The `AppOwnerGrant` to be created by this mutation. */ + appOwnerGrant: AppOwnerGrantInput; +} +/** An input for mutations affecting `AppOwnerGrant` */ +export interface AppOwnerGrantInput { + id?: string; + isGrant?: boolean; + 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 CreateApiInput { + clientMutationId?: string; + /** The `Api` to be created by this mutation. */ + api: ApiInput; +} +/** An input for mutations affecting `Api` */ +export interface ApiInput { + id?: string; + databaseId: string; + name: string; + dbname?: string; + roleName?: string; + anonRole?: string; + isPublic?: boolean; +} +export interface CreateConnectedAccountsModuleInput { + clientMutationId?: string; + /** The `ConnectedAccountsModule` to be created by this mutation. */ + connectedAccountsModule: ConnectedAccountsModuleInput; +} +/** An input for mutations affecting `ConnectedAccountsModule` */ +export interface ConnectedAccountsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName: string; +} +export interface CreateEmailsModuleInput { + clientMutationId?: string; + /** The `EmailsModule` to be created by this mutation. */ + emailsModule: EmailsModuleInput; +} +/** An input for mutations affecting `EmailsModule` */ +export interface EmailsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName: string; +} +export interface CreatePhoneNumbersModuleInput { + clientMutationId?: string; + /** The `PhoneNumbersModule` to be created by this mutation. */ + phoneNumbersModule: PhoneNumbersModuleInput; +} +/** An input for mutations affecting `PhoneNumbersModule` */ +export interface PhoneNumbersModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + 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. */ + usersModule: UsersModuleInput; +} +/** An input for mutations affecting `UsersModule` */ +export interface UsersModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; + typeTableId?: string; + typeTableName?: string; +} +export interface CreateOrgAdminGrantInput { + clientMutationId?: string; + /** The `OrgAdminGrant` to be created by this mutation. */ + orgAdminGrant: OrgAdminGrantInput; +} +/** An input for mutations affecting `OrgAdminGrant` */ +export interface OrgAdminGrantInput { + id?: string; + isGrant?: boolean; + actorId: string; + entityId: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface CreateOrgOwnerGrantInput { + clientMutationId?: string; + /** The `OrgOwnerGrant` to be created by this mutation. */ + orgOwnerGrant: OrgOwnerGrantInput; +} +/** An input for mutations affecting `OrgOwnerGrant` */ +export interface OrgOwnerGrantInput { + id?: string; + isGrant?: boolean; + actorId: string; + entityId: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface CreateCryptoAddressInput { + clientMutationId?: string; + /** The `CryptoAddress` to be created by this mutation. */ + cryptoAddress: CryptoAddressInput; +} +/** An input for mutations affecting `CryptoAddress` */ +export interface CryptoAddressInput { + id?: string; + ownerId?: string; + address: string; + isVerified?: boolean; + isPrimary?: boolean; + createdAt?: string; + updatedAt?: string; +} +export interface CreateMembershipTypeInput { + clientMutationId?: string; + /** The `MembershipType` to be created by this mutation. */ + membershipType: MembershipTypeInput; +} +/** An input for mutations affecting `MembershipType` */ +export interface MembershipTypeInput { + id: number; + name: string; + description: string; + prefix: string; +} +export interface CreateDatabaseInput { + clientMutationId?: string; + /** The `Database` to be created by this mutation. */ + database: DatabaseInput; +} +/** An input for mutations affecting `Database` */ +export interface DatabaseInput { + id?: string; + ownerId?: string; + schemaHash?: string; + name?: string; + label?: string; + hash?: string; + 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. */ + cryptoAddressesModule: CryptoAddressesModuleInput; +} +/** An input for mutations affecting `CryptoAddressesModule` */ +export interface CryptoAddressesModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName: string; + cryptoNetwork?: string; +} +export interface CreateConnectedAccountInput { + clientMutationId?: string; + /** The `ConnectedAccount` to be created by this mutation. */ + connectedAccount: ConnectedAccountInput; +} +/** An input for mutations affecting `ConnectedAccount` */ +export interface ConnectedAccountInput { + id?: string; + ownerId?: string; + /** The service used, e.g. `twitter` or `github`. */ + service: string; + /** A unique identifier for the user within the service */ + identifier: string; + /** Additional profile details extracted from this login method */ + details: unknown; + isVerified?: boolean; + createdAt?: string; + updatedAt?: string; +} +export interface CreatePhoneNumberInput { + clientMutationId?: string; + /** The `PhoneNumber` to be created by this mutation. */ + phoneNumber: PhoneNumberInput; +} +/** An input for mutations affecting `PhoneNumber` */ +export interface PhoneNumberInput { + id?: string; + ownerId?: string; + cc: string; + number: string; + isVerified?: boolean; + isPrimary?: 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; + name?: string; + bitnum?: number; + bitstr?: string; + 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; + name?: string; + bitnum?: number; + bitstr?: string; + 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?: string; + actorId: string; + num?: number; + 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: string; + count?: number; + createdAt?: string; + updatedAt?: string; +} +export interface CreateAppStepInput { + clientMutationId?: string; + /** The `AppStep` to be created by this mutation. */ + appStep: AppStepInput; +} +/** An input for mutations affecting `AppStep` */ +export interface AppStepInput { + id?: string; + actorId?: string; + name: string; + count?: number; + createdAt?: string; + updatedAt?: string; +} +export interface CreateClaimedInviteInput { + clientMutationId?: string; + /** The `ClaimedInvite` to be created by this mutation. */ + claimedInvite: ClaimedInviteInput; +} +/** An input for mutations affecting `ClaimedInvite` */ +export interface ClaimedInviteInput { + id?: string; + data?: unknown; + senderId?: string; + receiverId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface CreateAppMembershipDefaultInput { + clientMutationId?: string; + /** The `AppMembershipDefault` to be created by this mutation. */ + appMembershipDefault: AppMembershipDefaultInput; +} +/** An input for mutations affecting `AppMembershipDefault` */ +export interface AppMembershipDefaultInput { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + isVerified?: boolean; +} +export interface CreateSiteMetadatumInput { + clientMutationId?: string; + /** The `SiteMetadatum` to be created by this mutation. */ + siteMetadatum: SiteMetadatumInput; +} +/** An input for mutations affecting `SiteMetadatum` */ +export interface SiteMetadatumInput { + id?: string; + databaseId: string; + siteId: string; + title?: string; + description?: string; + 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. */ + object: ObjectInput; +} +/** An input for mutations affecting `Object` */ +export interface ObjectInput { + id: string; + databaseId: string; + kids?: string[]; + ktree?: string[]; + data?: unknown; + frzn?: boolean; + createdAt?: string; +} +export interface CreateFullTextSearchInput { + clientMutationId?: string; + /** The `FullTextSearch` to be created by this mutation. */ + fullTextSearch: FullTextSearchInput; +} +/** An input for mutations affecting `FullTextSearch` */ +export interface FullTextSearchInput { + id?: string; + databaseId?: string; + tableId: string; + fieldId: string; + fieldIds: string[]; + weights: string[]; + langs: string[]; + createdAt?: string; + updatedAt?: string; +} +export interface CreateCommitInput { + clientMutationId?: string; + /** The `Commit` to be created by this mutation. */ + commit: CommitInput; +} +/** An input for mutations affecting `Commit` */ +export interface CommitInput { + /** The primary unique identifier for the commit. */ + id?: string; + /** The commit message */ + message?: string; + /** The repository identifier */ + databaseId: string; + storeId: string; + /** Parent commits */ + parentIds?: string[]; + /** The author of the commit */ + authorId?: string; + /** The committer of the commit */ + committerId?: string; + /** The root of the tree */ + treeId?: string; + date?: string; +} +export interface CreateOrgLimitInput { + clientMutationId?: string; + /** The `OrgLimit` to be created by this mutation. */ + orgLimit: OrgLimitInput; +} +/** An input for mutations affecting `OrgLimit` */ +export interface OrgLimitInput { + id?: string; + name?: string; + actorId: string; + num?: number; + max?: number; + entityId: string; +} +export interface CreateAppGrantInput { + clientMutationId?: string; + /** The `AppGrant` to be created by this mutation. */ + appGrant: AppGrantInput; +} +/** An input for mutations affecting `AppGrant` */ +export interface AppGrantInput { + id?: string; + permissions?: string; + isGrant?: boolean; + actorId: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface CreateOrgClaimedInviteInput { + clientMutationId?: string; + /** The `OrgClaimedInvite` to be created by this mutation. */ + orgClaimedInvite: OrgClaimedInviteInput; +} +/** An input for mutations affecting `OrgClaimedInvite` */ +export interface OrgClaimedInviteInput { + id?: string; + data?: unknown; + senderId?: string; + receiverId?: string; + createdAt?: string; + updatedAt?: string; + entityId: string; +} +export interface CreateDomainInput { + clientMutationId?: string; + /** The `Domain` to be created by this mutation. */ + domain: DomainInput; +} +/** An input for mutations affecting `Domain` */ +export interface DomainInput { + id?: string; + databaseId: string; + apiId?: string; + siteId?: string; + subdomain?: ConstructiveInternalTypeHostname; + domain?: ConstructiveInternalTypeHostname; +} +export interface CreateOrgGrantInput { + clientMutationId?: string; + /** The `OrgGrant` to be created by this mutation. */ + orgGrant: OrgGrantInput; +} +/** An input for mutations affecting `OrgGrant` */ +export interface OrgGrantInput { + id?: string; + permissions?: string; + isGrant?: boolean; + actorId: string; + entityId: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface CreateOrgMembershipDefaultInput { + clientMutationId?: string; + /** The `OrgMembershipDefault` to be created by this mutation. */ + orgMembershipDefault: OrgMembershipDefaultInput; +} +/** An input for mutations affecting `OrgMembershipDefault` */ +export interface OrgMembershipDefaultInput { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + entityId: string; + deleteMemberCascadeGroups?: boolean; + createGroupsCascadeMembers?: boolean; +} +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 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 CreateAppLevelRequirementInput { + clientMutationId?: string; + /** The `AppLevelRequirement` to be created by this mutation. */ + appLevelRequirement: AppLevelRequirementInput; +} +/** An input for mutations affecting `AppLevelRequirement` */ +export interface AppLevelRequirementInput { + id?: string; + name: string; + level: string; + description?: string; + requiredCount?: number; + priority?: number; + createdAt?: string; + updatedAt?: string; +} +export interface CreateAuditLogInput { + clientMutationId?: string; + /** The `AuditLog` to be created by this mutation. */ + auditLog: AuditLogInput; +} +/** An input for mutations affecting `AuditLog` */ +export interface AuditLogInput { + id?: string; + event: string; + actorId?: string; + origin?: ConstructiveInternalTypeOrigin; + userAgent?: string; + ipAddress?: string; + success: boolean; + createdAt?: 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 CreateRlsModuleInput { + clientMutationId?: string; + /** The `RlsModule` to be created by this mutation. */ + rlsModule: RlsModuleInput; +} +/** An input for mutations affecting `RlsModule` */ +export interface RlsModuleInput { + id?: string; + databaseId: string; + apiId?: string; + schemaId?: string; + privateSchemaId?: string; + sessionCredentialsTableId?: string; + sessionsTableId?: string; + usersTableId?: string; + authenticate?: string; + authenticateStrict?: string; + currentRole?: string; + currentRoleId?: string; +} +export interface CreateDenormalizedTableFieldInput { + clientMutationId?: string; + /** The `DenormalizedTableField` to be created by this mutation. */ + denormalizedTableField: DenormalizedTableFieldInput; +} +/** An input for mutations affecting `DenormalizedTableField` */ +export interface DenormalizedTableFieldInput { + id?: string; + databaseId: string; + tableId: string; + fieldId: string; + setIds?: string[]; + refTableId: string; + refFieldId: string; + refIds?: string[]; + useUpdates?: boolean; + updateDefaults?: boolean; + funcName?: string; + funcOrder?: number; +} +export interface CreateSqlMigrationInput { + clientMutationId?: string; + /** The `SqlMigration` to be created by this mutation. */ + sqlMigration: SqlMigrationInput; +} +/** An input for mutations affecting `SqlMigration` */ +export interface SqlMigrationInput { + id?: number; + name?: string; + databaseId?: string; + deploy?: string; + deps?: string[]; + payload?: unknown; + content?: string; + revert?: string; + verify?: string; + createdAt?: string; + action?: string; + actionId?: string; + actorId?: string; +} +export interface CreateCryptoAuthModuleInput { + clientMutationId?: string; + /** The `CryptoAuthModule` to be created by this mutation. */ + cryptoAuthModule: CryptoAuthModuleInput; +} +/** An input for mutations affecting `CryptoAuthModule` */ +export interface CryptoAuthModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + usersTableId?: string; + secretsTableId?: string; + sessionsTableId?: string; + sessionCredentialsTableId?: string; + addressesTableId?: string; + userField: string; + cryptoNetwork?: string; + signInRequestChallenge?: string; + signInRecordFailure?: string; + signUpWithKey?: string; + signInWithChallenge?: string; +} +export interface CreateDatabaseProvisionModuleInput { + clientMutationId?: string; + /** The `DatabaseProvisionModule` to be created by this mutation. */ + databaseProvisionModule: DatabaseProvisionModuleInput; +} +/** An input for mutations affecting `DatabaseProvisionModule` */ +export interface DatabaseProvisionModuleInput { + id?: string; + /** The name for the new database */ + databaseName: string; + /** UUID of the user who owns this database */ + ownerId: string; + /** Subdomain prefix for the database. If null, auto-generated using unique_names + random chars */ + subdomain?: string; + /** Base domain for the database (e.g., example.com) */ + domain: string; + /** Array of module IDs to install, or ["all"] for all modules */ + modules?: string[]; + /** Additional configuration options for provisioning */ + options?: unknown; + /** When true, copies the owner user and password hash from source database to the newly provisioned database */ + bootstrapUser?: boolean; + /** Current status: pending, in_progress, completed, or failed */ + status?: string; + errorMessage?: string; + /** The ID of the provisioned database (set by trigger before RLS check) */ + databaseId?: string; + createdAt?: string; + updatedAt?: string; + completedAt?: string; +} +export interface CreateInvitesModuleInput { + clientMutationId?: string; + /** The `InvitesModule` to be created by this mutation. */ + invitesModule: InvitesModuleInput; +} +/** An input for mutations affecting `InvitesModule` */ +export interface InvitesModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + emailsTableId?: string; + usersTableId?: string; + invitesTableId?: string; + claimedInvitesTableId?: string; + invitesTableName?: string; + claimedInvitesTableName?: string; + submitInviteCodeFunction?: string; + prefix?: string; + membershipType: number; + entityTableId?: string; +} +export interface CreateViewInput { + clientMutationId?: string; + /** The `View` to be created by this mutation. */ + view: ViewInput; +} +/** An input for mutations affecting `View` */ +export interface ViewInput { + id?: string; + databaseId?: string; + schemaId: string; + name: string; + tableId?: string; + viewType: string; + data?: unknown; + filterType?: string; + filterData?: unknown; + securityInvoker?: boolean; + isReadOnly?: boolean; + smartTags?: unknown; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: 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; + 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; +} +/** An input for mutations affecting `PermissionsModule` */ +export interface PermissionsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + tableName?: string; + defaultTableId?: string; + defaultTableName?: string; + bitlen?: number; + membershipType: number; + entityTableId?: string; + actorTableId?: string; + prefix?: string; + getPaddedMask?: string; + getMask?: string; + getByMask?: string; + getMaskByName?: string; +} +export interface CreatePrimaryKeyConstraintInput { + clientMutationId?: string; + /** The `PrimaryKeyConstraint` to be created by this mutation. */ + primaryKeyConstraint: PrimaryKeyConstraintInput; +} +/** An input for mutations affecting `PrimaryKeyConstraint` */ +export interface PrimaryKeyConstraintInput { + id?: string; + databaseId?: string; + tableId: string; + name?: string; + type?: string; + fieldIds: string[]; + smartTags?: unknown; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +export interface CreateTriggerInput { + clientMutationId?: string; + /** The `Trigger` to be created by this mutation. */ + trigger: TriggerInput; +} +/** An input for mutations affecting `Trigger` */ +export interface TriggerInput { + id?: string; + databaseId?: string; + tableId: string; + name: string; + event?: string; + functionName?: string; + smartTags?: unknown; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +export interface CreateCheckConstraintInput { + clientMutationId?: string; + /** The `CheckConstraint` to be created by this mutation. */ + checkConstraint: CheckConstraintInput; +} +/** An input for mutations affecting `CheckConstraint` */ +export interface CheckConstraintInput { + id?: string; + databaseId?: string; + tableId: string; + name?: string; + type?: string; + fieldIds: string[]; + expr?: unknown; + smartTags?: unknown; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +export interface CreateUniqueConstraintInput { + clientMutationId?: string; + /** The `UniqueConstraint` to be created by this mutation. */ + uniqueConstraint: UniqueConstraintInput; +} +/** An input for mutations affecting `UniqueConstraint` */ +export interface UniqueConstraintInput { + id?: string; + databaseId?: string; + tableId: string; + name?: string; + description?: string; + smartTags?: unknown; + type?: string; + fieldIds: string[]; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +export interface CreateProcedureInput { + clientMutationId?: string; + /** The `Procedure` to be created by this mutation. */ + procedure: ProcedureInput; +} +/** An input for mutations affecting `Procedure` */ +export interface ProcedureInput { + id?: string; + databaseId?: string; + name: string; + argnames?: string[]; + argtypes?: string[]; + argdefaults?: string[]; + langName?: string; + definition?: string; + smartTags?: unknown; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +export interface CreatePolicyInput { + clientMutationId?: string; + /** The `Policy` to be created by this mutation. */ + policy: PolicyInput; +} +/** An input for mutations affecting `Policy` */ +export interface PolicyInput { + id?: string; + databaseId?: string; + tableId: string; + name?: string; + roleName?: string; + privilege?: string; + permissive?: boolean; + disabled?: boolean; + policyType?: string; + data?: unknown; + smartTags?: unknown; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + createdAt?: string; + updatedAt?: 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?: ConstructiveInternalTypeEmail; + senderId?: string; + inviteToken?: string; + inviteValid?: boolean; + inviteLimit?: number; + inviteCount?: number; + multiple?: boolean; + data?: unknown; + expiresAt?: string; + createdAt?: string; + updatedAt?: string; +} +export interface CreateIndexInput { + clientMutationId?: string; + /** The `Index` to be created by this mutation. */ + index: IndexInput; +} +/** 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 CreateLimitsModuleInput { + clientMutationId?: string; + /** The `LimitsModule` to be created by this mutation. */ + limitsModule: LimitsModuleInput; +} +/** An input for mutations affecting `LimitsModule` */ +export interface LimitsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + tableName?: string; + defaultTableId?: string; + defaultTableName?: string; + limitIncrementFunction?: string; + limitDecrementFunction?: string; + limitIncrementTrigger?: string; + limitDecrementTrigger?: string; + limitUpdateTrigger?: string; + limitCheckFunction?: string; + prefix?: string; + membershipType: number; + 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. */ + profilesModule: ProfilesModuleInput; +} +/** An input for mutations affecting `ProfilesModule` */ +export interface ProfilesModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + tableName?: string; + profilePermissionsTableId?: string; + profilePermissionsTableName?: string; + profileGrantsTableId?: string; + profileGrantsTableName?: string; + profileDefinitionGrantsTableId?: string; + profileDefinitionGrantsTableName?: string; + bitlen?: number; + membershipType: number; + entityTableId?: string; + actorTableId?: string; + permissionsTableId?: string; + membershipsTableId?: string; + prefix?: 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?: ConstructiveInternalTypeEmail; + senderId?: string; + receiverId?: string; + inviteToken?: string; + inviteValid?: boolean; + inviteLimit?: number; + inviteCount?: number; + multiple?: boolean; + data?: unknown; + expiresAt?: string; + createdAt?: string; + updatedAt?: string; + entityId: string; +} +export interface CreateHierarchyModuleInput { + clientMutationId?: string; + /** The `HierarchyModule` to be created by this mutation. */ + hierarchyModule: HierarchyModuleInput; +} +/** An input for mutations affecting `HierarchyModule` */ +export interface HierarchyModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + chartEdgesTableId?: string; + chartEdgesTableName?: string; + hierarchySprtTableId?: string; + hierarchySprtTableName?: string; + chartEdgeGrantsTableId?: string; + chartEdgeGrantsTableName?: string; + entityTableId: string; + usersTableId: string; + prefix?: string; + privateSchemaName?: string; + sprtTableName?: string; + rebuildHierarchyFunction?: string; + getSubordinatesFunction?: string; + getManagersFunction?: string; + isManagerOfFunction?: string; + createdAt?: string; +} +export interface CreateForeignKeyConstraintInput { + clientMutationId?: string; + /** The `ForeignKeyConstraint` to be created by this mutation. */ + foreignKeyConstraint: ForeignKeyConstraintInput; +} +/** An input for mutations affecting `ForeignKeyConstraint` */ +export interface ForeignKeyConstraintInput { + id?: string; + databaseId?: string; + tableId: string; + name?: string; + description?: string; + smartTags?: unknown; + type?: string; + fieldIds: string[]; + refTableId: string; + refFieldIds: string[]; + deleteAction?: string; + updateAction?: string; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +export interface CreateTableInput { + clientMutationId?: string; + /** The `Table` to be created by this mutation. */ + table: TableInput; +} +/** An input for mutations affecting `Table` */ +export interface TableInput { + id?: string; + databaseId?: string; + schemaId: string; + name: string; + label?: string; + description?: string; + smartTags?: unknown; + category?: ObjectCategory; + module?: string; + scope?: number; + useRls?: boolean; + timestamps?: boolean; + peoplestamps?: boolean; + pluralName?: string; + singularName?: string; + tags?: string[]; + inheritsId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface CreateLevelsModuleInput { + clientMutationId?: string; + /** The `LevelsModule` to be created by this mutation. */ + levelsModule: LevelsModuleInput; +} +/** An input for mutations affecting `LevelsModule` */ +export interface LevelsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + stepsTableId?: string; + stepsTableName?: string; + achievementsTableId?: string; + achievementsTableName?: string; + levelsTableId?: string; + levelsTableName?: string; + levelRequirementsTableId?: string; + levelRequirementsTableName?: string; + completedStep?: string; + incompletedStep?: string; + tgAchievement?: string; + tgAchievementToggle?: string; + tgAchievementToggleBoolean?: string; + tgAchievementBoolean?: string; + upsertAchievement?: string; + tgUpdateAchievements?: string; + stepsRequired?: string; + levelAchieved?: string; + prefix?: string; + membershipType: number; + entityTableId?: string; + actorTableId?: string; +} +export interface CreateUserAuthModuleInput { + clientMutationId?: string; + /** The `UserAuthModule` to be created by this mutation. */ + userAuthModule: UserAuthModuleInput; +} +/** An input for mutations affecting `UserAuthModule` */ +export interface UserAuthModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + emailsTableId?: string; + usersTableId?: string; + secretsTableId?: string; + encryptedTableId?: string; + sessionsTableId?: string; + sessionCredentialsTableId?: string; + auditsTableId?: string; + auditsTableName?: string; + signInFunction?: string; + signUpFunction?: string; + signOutFunction?: string; + setPasswordFunction?: string; + resetPasswordFunction?: string; + forgotPasswordFunction?: string; + sendVerificationEmailFunction?: string; + verifyEmailFunction?: string; + verifyPasswordFunction?: string; + checkPasswordFunction?: string; + sendAccountDeletionEmailFunction?: string; + deleteAccountFunction?: string; + signInOneTimeTokenFunction?: string; + oneTimeTokenFunction?: string; + extendTokenExpires?: string; +} +export interface CreateFieldInput { + clientMutationId?: string; + /** The `Field` to be created by this mutation. */ + field: FieldInput; +} +/** An input for mutations affecting `Field` */ +export interface FieldInput { + id?: string; + databaseId?: string; + tableId: string; + name: string; + label?: string; + description?: string; + smartTags?: unknown; + isRequired?: boolean; + defaultValue?: string; + defaultValueAst?: unknown; + isHidden?: boolean; + type: string; + fieldOrder?: number; + regexp?: string; + chk?: unknown; + chkExpr?: unknown; + min?: number; + max?: number; + tags?: string[]; + category?: ObjectCategory; + module?: string; + scope?: number; + createdAt?: string; + updatedAt?: string; +} +export interface CreateMembershipsModuleInput { + clientMutationId?: string; + /** The `MembershipsModule` to be created by this mutation. */ + membershipsModule: MembershipsModuleInput; +} +/** An input for mutations affecting `MembershipsModule` */ +export interface MembershipsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + membershipsTableId?: string; + membershipsTableName?: string; + membersTableId?: string; + membersTableName?: string; + membershipDefaultsTableId?: string; + membershipDefaultsTableName?: string; + grantsTableId?: string; + grantsTableName?: string; + actorTableId?: string; + limitsTableId?: string; + defaultLimitsTableId?: string; + permissionsTableId?: string; + defaultPermissionsTableId?: string; + sprtTableId?: string; + adminGrantsTableId?: string; + adminGrantsTableName?: string; + ownerGrantsTableId?: string; + ownerGrantsTableName?: string; + membershipType: number; + entityTableId?: string; + entityTableOwnerId?: string; + prefix?: string; + actorMaskCheck?: string; + actorPermCheck?: string; + entityIdsByMask?: string; + entityIdsByPerm?: string; + entityIdsFunction?: string; +} +export interface UpdateDefaultIdsModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `DefaultIdsModule` being updated. */ + defaultIdsModulePatch: DefaultIdsModulePatch; +} +/** Represents an update to a `DefaultIdsModule`. Fields that are set will be updated. */ +export interface DefaultIdsModulePatch { + id?: string; + databaseId?: string; +} +export interface UpdateViewTableInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `ViewTable` being updated. */ + viewTablePatch: ViewTablePatch; +} +/** Represents an update to a `ViewTable`. Fields that are set will be updated. */ +export interface ViewTablePatch { + id?: string; + viewId?: string; + tableId?: string; + joinOrder?: number; +} +export interface UpdateApiSchemaInput { + clientMutationId?: string; + 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 { + id?: string; + databaseId?: string; + schemaId?: string; + 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; + /** An object where the defined keys will be set on the `OrgMember` being updated. */ + orgMemberPatch: OrgMemberPatch; +} +/** Represents an update to a `OrgMember`. Fields that are set will be updated. */ +export interface OrgMemberPatch { + id?: string; + isAdmin?: boolean; + actorId?: string; + entityId?: string; +} +export interface UpdateAppPermissionDefaultInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AppPermissionDefault` being updated. */ + appPermissionDefaultPatch: AppPermissionDefaultPatch; +} +/** Represents an update to a `AppPermissionDefault`. Fields that are set will be updated. */ +export interface AppPermissionDefaultPatch { + id?: string; + permissions?: string; +} +export interface UpdateRefInput { + clientMutationId?: string; + /** The primary unique identifier for the ref. */ + id: string; + databaseId: string; + /** An object where the defined keys will be set on the `Ref` being updated. */ + refPatch: RefPatch; +} +/** Represents an update to a `Ref`. Fields that are set will be updated. */ +export interface RefPatch { + /** The primary unique identifier for the ref. */ + id?: string; + /** The name of the ref or branch */ + name?: string; + databaseId?: string; + storeId?: string; + commitId?: string; +} +export interface UpdateStoreInput { + clientMutationId?: string; + /** The primary unique identifier for the store. */ + id: string; + /** An object where the defined keys will be set on the `Store` being updated. */ + storePatch: StorePatch; +} +/** Represents an update to a `Store`. Fields that are set will be updated. */ +export interface StorePatch { + /** The primary unique identifier for the store. */ + id?: string; + /** The name of the store (e.g., metaschema, migrations). */ + name?: string; + /** The database this store belongs to. */ + databaseId?: string; + /** The current head tree_id for this store. */ + 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; + /** An object where the defined keys will be set on the `EncryptedSecretsModule` being updated. */ + encryptedSecretsModulePatch: EncryptedSecretsModulePatch; +} +/** Represents an update to a `EncryptedSecretsModule`. Fields that are set will be updated. */ +export interface EncryptedSecretsModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + tableId?: string; + tableName?: string; +} +export interface UpdateMembershipTypesModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `MembershipTypesModule` being updated. */ + membershipTypesModulePatch: MembershipTypesModulePatch; +} +/** Represents an update to a `MembershipTypesModule`. Fields that are set will be updated. */ +export interface MembershipTypesModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + tableId?: string; + tableName?: string; +} +export interface UpdateSecretsModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `SecretsModule` being updated. */ + secretsModulePatch: SecretsModulePatch; +} +/** Represents an update to a `SecretsModule`. Fields that are set will be updated. */ +export interface SecretsModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + tableId?: string; + tableName?: string; +} +export interface UpdateUuidModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `UuidModule` being updated. */ + uuidModulePatch: UuidModulePatch; +} +/** Represents an update to a `UuidModule`. Fields that are set will be updated. */ +export interface UuidModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + uuidFunction?: string; + uuidSeed?: string; +} +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 `OrgPermissionDefault` being updated. */ + orgPermissionDefaultPatch: OrgPermissionDefaultPatch; +} +/** Represents an update to a `OrgPermissionDefault`. Fields that are set will be updated. */ +export interface OrgPermissionDefaultPatch { + id?: string; + permissions?: string; + entityId?: string; +} +export interface UpdateSchemaGrantInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `SchemaGrant` being updated. */ + schemaGrantPatch: SchemaGrantPatch; +} +/** Represents an update to a `SchemaGrant`. Fields that are set will be updated. */ +export interface SchemaGrantPatch { + id?: string; + databaseId?: string; + schemaId?: string; + granteeName?: string; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateTriggerFunctionInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `TriggerFunction` being updated. */ + triggerFunctionPatch: TriggerFunctionPatch; +} +/** Represents an update to a `TriggerFunction`. Fields that are set will be updated. */ +export interface TriggerFunctionPatch { + id?: string; + databaseId?: string; + name?: string; + code?: string; + 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; + /** An object where the defined keys will be set on the `ViewRule` being updated. */ + viewRulePatch: ViewRulePatch; +} +/** Represents an update to a `ViewRule`. Fields that are set will be updated. */ +export interface ViewRulePatch { + id?: string; + databaseId?: string; + viewId?: string; + name?: string; + /** INSERT, UPDATE, or DELETE */ + event?: string; + /** NOTHING (for read-only) or custom action */ + action?: string; +} +export interface UpdateAppAdminGrantInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AppAdminGrant` being updated. */ + appAdminGrantPatch: AppAdminGrantPatch; +} +/** Represents an update to a `AppAdminGrant`. Fields that are set will be updated. */ +export interface AppAdminGrantPatch { + id?: string; + isGrant?: boolean; + actorId?: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateAppOwnerGrantInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AppOwnerGrant` being updated. */ + appOwnerGrantPatch: AppOwnerGrantPatch; +} +/** Represents an update to a `AppOwnerGrant`. Fields that are set will be updated. */ +export interface AppOwnerGrantPatch { + id?: string; + isGrant?: boolean; + 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 UpdateApiInput { + clientMutationId?: string; + 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 { + id?: string; + databaseId?: string; + name?: string; + dbname?: string; + roleName?: string; + anonRole?: string; + isPublic?: boolean; +} +export interface UpdateConnectedAccountsModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `ConnectedAccountsModule` being updated. */ + connectedAccountsModulePatch: ConnectedAccountsModulePatch; +} +/** Represents an update to a `ConnectedAccountsModule`. Fields that are set will be updated. */ +export interface ConnectedAccountsModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName?: string; +} +export interface UpdateEmailsModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `EmailsModule` being updated. */ + emailsModulePatch: EmailsModulePatch; +} +/** Represents an update to a `EmailsModule`. Fields that are set will be updated. */ +export interface EmailsModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName?: string; +} +export interface UpdatePhoneNumbersModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `PhoneNumbersModule` being updated. */ + phoneNumbersModulePatch: PhoneNumbersModulePatch; +} +/** Represents an update to a `PhoneNumbersModule`. Fields that are set will be updated. */ +export interface PhoneNumbersModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + 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; + /** An object where the defined keys will be set on the `UsersModule` being updated. */ + usersModulePatch: UsersModulePatch; +} +/** Represents an update to a `UsersModule`. Fields that are set will be updated. */ +export interface UsersModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + tableId?: string; + tableName?: string; + typeTableId?: string; + typeTableName?: string; +} +export interface UpdateOrgAdminGrantInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgAdminGrant` being updated. */ + orgAdminGrantPatch: OrgAdminGrantPatch; +} +/** Represents an update to a `OrgAdminGrant`. Fields that are set will be updated. */ +export interface OrgAdminGrantPatch { + id?: string; + isGrant?: boolean; + actorId?: string; + entityId?: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateOrgOwnerGrantInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgOwnerGrant` being updated. */ + orgOwnerGrantPatch: OrgOwnerGrantPatch; +} +/** Represents an update to a `OrgOwnerGrant`. Fields that are set will be updated. */ +export interface OrgOwnerGrantPatch { + id?: string; + isGrant?: boolean; + actorId?: string; + entityId?: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateCryptoAddressInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `CryptoAddress` being updated. */ + cryptoAddressPatch: CryptoAddressPatch; +} +/** Represents an update to a `CryptoAddress`. Fields that are set will be updated. */ +export interface CryptoAddressPatch { + id?: string; + ownerId?: string; + address?: string; + isVerified?: boolean; + isPrimary?: boolean; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateMembershipTypeInput { + clientMutationId?: string; + 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 { + id?: number; + name?: string; + description?: string; + prefix?: string; +} +export interface UpdateDatabaseInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `Database` being updated. */ + databasePatch: DatabasePatch; +} +/** Represents an update to a `Database`. Fields that are set will be updated. */ +export interface DatabasePatch { + id?: string; + ownerId?: string; + schemaHash?: string; + name?: string; + label?: string; + hash?: string; + 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; + /** An object where the defined keys will be set on the `CryptoAddressesModule` being updated. */ + cryptoAddressesModulePatch: CryptoAddressesModulePatch; +} +/** Represents an update to a `CryptoAddressesModule`. Fields that are set will be updated. */ +export interface CryptoAddressesModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName?: string; + cryptoNetwork?: string; +} +export interface UpdateConnectedAccountInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `ConnectedAccount` being updated. */ + connectedAccountPatch: ConnectedAccountPatch; +} +/** Represents an update to a `ConnectedAccount`. Fields that are set will be updated. */ +export interface ConnectedAccountPatch { + id?: string; + ownerId?: string; + /** The service used, e.g. `twitter` or `github`. */ + service?: string; + /** A unique identifier for the user within the service */ + identifier?: string; + /** Additional profile details extracted from this login method */ + details?: unknown; + isVerified?: boolean; + createdAt?: string; + updatedAt?: string; +} +export interface UpdatePhoneNumberInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `PhoneNumber` being updated. */ + phoneNumberPatch: PhoneNumberPatch; +} +/** Represents an update to a `PhoneNumber`. Fields that are set will be updated. */ +export interface PhoneNumberPatch { + id?: string; + ownerId?: string; + cc?: string; + number?: string; + isVerified?: boolean; + isPrimary?: boolean; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateAppPermissionInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AppPermission` being updated. */ + appPermissionPatch: AppPermissionPatch; +} +/** Represents an update to a `AppPermission`. Fields that are set will be updated. */ +export interface AppPermissionPatch { + id?: string; + name?: string; + bitnum?: number; + bitstr?: string; + description?: string; +} +export interface UpdateOrgPermissionInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgPermission` being updated. */ + orgPermissionPatch: OrgPermissionPatch; +} +/** Represents an update to a `OrgPermission`. Fields that are set will be updated. */ +export interface OrgPermissionPatch { + id?: string; + name?: string; + bitnum?: number; + bitstr?: string; + description?: string; +} +export interface UpdateAppLimitInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AppLimit` being updated. */ + appLimitPatch: AppLimitPatch; +} +/** Represents an update to a `AppLimit`. Fields that are set will be updated. */ +export interface AppLimitPatch { + id?: string; + name?: string; + actorId?: string; + num?: number; + max?: number; +} +export interface UpdateAppAchievementInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AppAchievement` being updated. */ + appAchievementPatch: AppAchievementPatch; +} +/** Represents an update to a `AppAchievement`. Fields that are set will be updated. */ +export interface AppAchievementPatch { + id?: string; + actorId?: string; + name?: string; + count?: number; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateAppStepInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AppStep` being updated. */ + appStepPatch: AppStepPatch; +} +/** Represents an update to a `AppStep`. Fields that are set will be updated. */ +export interface AppStepPatch { + id?: string; + actorId?: string; + name?: string; + count?: number; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateClaimedInviteInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `ClaimedInvite` being updated. */ + claimedInvitePatch: ClaimedInvitePatch; +} +/** Represents an update to a `ClaimedInvite`. Fields that are set will be updated. */ +export interface ClaimedInvitePatch { + id?: string; + data?: unknown; + senderId?: string; + receiverId?: string; + createdAt?: string; + updatedAt?: string; +} +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[]; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateObjectInput { + clientMutationId?: string; + id: string; + databaseId: string; + /** An object where the defined keys will be set on the `Object` being updated. */ + objectPatch: ObjectPatch; +} +/** Represents an update to a `Object`. Fields that are set will be updated. */ +export interface ObjectPatch { + id?: string; + databaseId?: string; + kids?: string[]; + ktree?: string[]; + data?: unknown; + frzn?: boolean; + createdAt?: string; +} +export interface UpdateFullTextSearchInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `FullTextSearch` being updated. */ + fullTextSearchPatch: FullTextSearchPatch; +} +/** Represents an update to a `FullTextSearch`. Fields that are set will be updated. */ +export interface FullTextSearchPatch { + id?: string; + databaseId?: string; + tableId?: string; + fieldId?: string; + fieldIds?: string[]; + weights?: string[]; + langs?: string[]; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateCommitInput { + clientMutationId?: string; + /** The primary unique identifier for the commit. */ + id: string; + /** The repository identifier */ + databaseId: string; + /** An object where the defined keys will be set on the `Commit` being updated. */ + commitPatch: CommitPatch; +} +/** Represents an update to a `Commit`. Fields that are set will be updated. */ +export interface CommitPatch { + /** The primary unique identifier for the commit. */ + id?: string; + /** The commit message */ + message?: string; + /** The repository identifier */ + databaseId?: string; + storeId?: string; + /** Parent commits */ + parentIds?: string[]; + /** The author of the commit */ + authorId?: string; + /** The committer of the commit */ + committerId?: string; + /** The root of the tree */ + treeId?: string; + date?: string; +} +export interface UpdateOrgLimitInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgLimit` being updated. */ + orgLimitPatch: OrgLimitPatch; +} +/** Represents an update to a `OrgLimit`. Fields that are set will be updated. */ +export interface OrgLimitPatch { + id?: string; + name?: string; + actorId?: string; + num?: number; + max?: number; + entityId?: string; +} +export interface UpdateAppGrantInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AppGrant` being updated. */ + appGrantPatch: AppGrantPatch; +} +/** Represents an update to a `AppGrant`. Fields that are set will be updated. */ +export interface AppGrantPatch { + id?: string; + permissions?: string; + isGrant?: boolean; + actorId?: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateOrgClaimedInviteInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgClaimedInvite` being updated. */ + orgClaimedInvitePatch: OrgClaimedInvitePatch; +} +/** Represents an update to a `OrgClaimedInvite`. Fields that are set will be updated. */ +export interface OrgClaimedInvitePatch { + id?: string; + data?: unknown; + senderId?: string; + receiverId?: string; + createdAt?: string; + updatedAt?: string; + entityId?: string; +} +export interface UpdateDomainInput { + clientMutationId?: string; + 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 { + id?: string; + databaseId?: string; + apiId?: string; + siteId?: string; + subdomain?: ConstructiveInternalTypeHostname; + domain?: ConstructiveInternalTypeHostname; +} +export interface UpdateOrgGrantInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgGrant` being updated. */ + orgGrantPatch: OrgGrantPatch; +} +/** Represents an update to a `OrgGrant`. Fields that are set will be updated. */ +export interface OrgGrantPatch { + id?: string; + permissions?: string; + isGrant?: boolean; + actorId?: string; + entityId?: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateOrgMembershipDefaultInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgMembershipDefault` being updated. */ + orgMembershipDefaultPatch: OrgMembershipDefaultPatch; +} +/** Represents an update to a `OrgMembershipDefault`. Fields that are set will be updated. */ +export interface OrgMembershipDefaultPatch { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + entityId?: string; + deleteMemberCascadeGroups?: boolean; + createGroupsCascadeMembers?: boolean; +} +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 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 UpdateAppLevelRequirementInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AppLevelRequirement` being updated. */ + appLevelRequirementPatch: AppLevelRequirementPatch; +} +/** Represents an update to a `AppLevelRequirement`. Fields that are set will be updated. */ +export interface AppLevelRequirementPatch { + id?: string; + name?: string; + level?: string; + description?: string; + requiredCount?: number; + priority?: number; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateAuditLogInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AuditLog` being updated. */ + auditLogPatch: AuditLogPatch; +} +/** Represents an update to a `AuditLog`. Fields that are set will be updated. */ +export interface AuditLogPatch { + id?: string; + event?: string; + actorId?: string; + origin?: ConstructiveInternalTypeOrigin; + userAgent?: string; + ipAddress?: string; + success?: boolean; + createdAt?: 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 UpdateRlsModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `RlsModule` being updated. */ + rlsModulePatch: RlsModulePatch; +} +/** Represents an update to a `RlsModule`. Fields that are set will be updated. */ +export interface RlsModulePatch { + id?: string; + databaseId?: string; + apiId?: string; + schemaId?: string; + privateSchemaId?: string; + sessionCredentialsTableId?: string; + sessionsTableId?: string; + usersTableId?: string; + authenticate?: string; + authenticateStrict?: string; + currentRole?: string; + currentRoleId?: string; +} +export interface UpdateDenormalizedTableFieldInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `DenormalizedTableField` being updated. */ + denormalizedTableFieldPatch: DenormalizedTableFieldPatch; +} +/** Represents an update to a `DenormalizedTableField`. Fields that are set will be updated. */ +export interface DenormalizedTableFieldPatch { + id?: string; + databaseId?: string; + tableId?: string; + fieldId?: string; + setIds?: string[]; + refTableId?: string; + refFieldId?: string; + refIds?: string[]; + useUpdates?: boolean; + updateDefaults?: boolean; + funcName?: string; + funcOrder?: number; +} +export interface UpdateCryptoAuthModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `CryptoAuthModule` being updated. */ + cryptoAuthModulePatch: CryptoAuthModulePatch; +} +/** Represents an update to a `CryptoAuthModule`. Fields that are set will be updated. */ +export interface CryptoAuthModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + usersTableId?: string; + secretsTableId?: string; + sessionsTableId?: string; + sessionCredentialsTableId?: string; + addressesTableId?: string; + userField?: string; + cryptoNetwork?: string; + signInRequestChallenge?: string; + signInRecordFailure?: string; + signUpWithKey?: string; + signInWithChallenge?: string; +} +export interface UpdateDatabaseProvisionModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `DatabaseProvisionModule` being updated. */ + databaseProvisionModulePatch: DatabaseProvisionModulePatch; +} +/** Represents an update to a `DatabaseProvisionModule`. Fields that are set will be updated. */ +export interface DatabaseProvisionModulePatch { + id?: string; + /** The name for the new database */ + databaseName?: string; + /** UUID of the user who owns this database */ + ownerId?: string; + /** Subdomain prefix for the database. If null, auto-generated using unique_names + random chars */ + subdomain?: string; + /** Base domain for the database (e.g., example.com) */ + domain?: string; + /** Array of module IDs to install, or ["all"] for all modules */ + modules?: string[]; + /** Additional configuration options for provisioning */ + options?: unknown; + /** When true, copies the owner user and password hash from source database to the newly provisioned database */ + bootstrapUser?: boolean; + /** Current status: pending, in_progress, completed, or failed */ + status?: string; + errorMessage?: string; + /** The ID of the provisioned database (set by trigger before RLS check) */ + databaseId?: string; + createdAt?: string; + updatedAt?: string; + completedAt?: string; +} +export interface UpdateInvitesModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `InvitesModule` being updated. */ + invitesModulePatch: InvitesModulePatch; +} +/** Represents an update to a `InvitesModule`. Fields that are set will be updated. */ +export interface InvitesModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + emailsTableId?: string; + usersTableId?: string; + invitesTableId?: string; + claimedInvitesTableId?: string; + invitesTableName?: string; + claimedInvitesTableName?: string; + submitInviteCodeFunction?: string; + prefix?: string; + membershipType?: number; + entityTableId?: string; +} +export interface UpdateViewInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `View` being updated. */ + viewPatch: ViewPatch; +} +/** Represents an update to a `View`. Fields that are set will be updated. */ +export interface ViewPatch { + id?: string; + databaseId?: string; + schemaId?: string; + name?: string; + tableId?: string; + viewType?: string; + data?: unknown; + filterType?: string; + filterData?: unknown; + securityInvoker?: boolean; + isReadOnly?: boolean; + smartTags?: unknown; + category?: ObjectCategory; + module?: string; + 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; + /** An object where the defined keys will be set on the `PermissionsModule` being updated. */ + permissionsModulePatch: PermissionsModulePatch; +} +/** Represents an update to a `PermissionsModule`. Fields that are set will be updated. */ +export interface PermissionsModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + tableName?: string; + defaultTableId?: string; + defaultTableName?: string; + bitlen?: number; + membershipType?: number; + entityTableId?: string; + actorTableId?: string; + prefix?: string; + getPaddedMask?: string; + getMask?: string; + getByMask?: string; + getMaskByName?: string; +} +export interface UpdatePrimaryKeyConstraintInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `PrimaryKeyConstraint` being updated. */ + primaryKeyConstraintPatch: PrimaryKeyConstraintPatch; +} +/** 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[]; + smartTags?: unknown; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateTriggerInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `Trigger` being updated. */ + triggerPatch: TriggerPatch; +} +/** Represents an update to a `Trigger`. Fields that are set will be updated. */ +export interface TriggerPatch { + id?: string; + databaseId?: string; + tableId?: string; + name?: string; + event?: string; + functionName?: string; + smartTags?: unknown; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateCheckConstraintInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `CheckConstraint` being updated. */ + checkConstraintPatch: CheckConstraintPatch; +} +/** Represents an update to a `CheckConstraint`. Fields that are set will be updated. */ +export interface CheckConstraintPatch { + id?: string; + databaseId?: string; + tableId?: string; + name?: string; + type?: string; + fieldIds?: string[]; + expr?: unknown; + smartTags?: unknown; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateUniqueConstraintInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `UniqueConstraint` being updated. */ + uniqueConstraintPatch: UniqueConstraintPatch; +} +/** Represents an update to a `UniqueConstraint`. Fields that are set will be updated. */ +export interface UniqueConstraintPatch { + id?: string; + databaseId?: string; + tableId?: string; + name?: string; + description?: string; + smartTags?: unknown; + type?: string; + fieldIds?: string[]; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateProcedureInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `Procedure` being updated. */ + procedurePatch: ProcedurePatch; +} +/** Represents an update to a `Procedure`. Fields that are set will be updated. */ +export interface ProcedurePatch { + id?: string; + databaseId?: string; + name?: string; + argnames?: string[]; + argtypes?: string[]; + argdefaults?: string[]; + langName?: string; + definition?: string; + smartTags?: unknown; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +export interface UpdatePolicyInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `Policy` being updated. */ + policyPatch: PolicyPatch; +} +/** Represents an update to a `Policy`. Fields that are set will be updated. */ +export interface PolicyPatch { + id?: string; + databaseId?: string; + tableId?: string; + name?: string; + roleName?: string; + privilege?: string; + permissive?: boolean; + disabled?: boolean; + policyType?: string; + data?: unknown; + smartTags?: unknown; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + createdAt?: string; + updatedAt?: 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?: ConstructiveInternalTypeEmail; + senderId?: string; + inviteToken?: string; + inviteValid?: boolean; + inviteLimit?: number; + inviteCount?: number; + multiple?: boolean; + data?: unknown; + expiresAt?: string; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateIndexInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `Index` being updated. */ + indexPatch: IndexPatch; +} +/** 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 UpdateLimitsModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `LimitsModule` being updated. */ + limitsModulePatch: LimitsModulePatch; +} +/** Represents an update to a `LimitsModule`. Fields that are set will be updated. */ +export interface LimitsModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + tableName?: string; + defaultTableId?: string; + defaultTableName?: string; + limitIncrementFunction?: string; + limitDecrementFunction?: string; + limitIncrementTrigger?: string; + limitDecrementTrigger?: string; + limitUpdateTrigger?: string; + limitCheckFunction?: string; + prefix?: string; + membershipType?: number; + 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; + /** An object where the defined keys will be set on the `ProfilesModule` being updated. */ + profilesModulePatch: ProfilesModulePatch; +} +/** Represents an update to a `ProfilesModule`. Fields that are set will be updated. */ +export interface ProfilesModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + tableName?: string; + profilePermissionsTableId?: string; + profilePermissionsTableName?: string; + profileGrantsTableId?: string; + profileGrantsTableName?: string; + profileDefinitionGrantsTableId?: string; + profileDefinitionGrantsTableName?: string; + bitlen?: number; + membershipType?: number; + entityTableId?: string; + actorTableId?: string; + permissionsTableId?: string; + membershipsTableId?: string; + prefix?: 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?: ConstructiveInternalTypeEmail; + senderId?: string; + receiverId?: string; + inviteToken?: string; + inviteValid?: boolean; + inviteLimit?: number; + inviteCount?: number; + multiple?: boolean; + data?: unknown; + expiresAt?: string; + createdAt?: string; + updatedAt?: string; + entityId?: string; +} +export interface UpdateHierarchyModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `HierarchyModule` being updated. */ + hierarchyModulePatch: HierarchyModulePatch; +} +/** Represents an update to a `HierarchyModule`. Fields that are set will be updated. */ +export interface HierarchyModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + chartEdgesTableId?: string; + chartEdgesTableName?: string; + hierarchySprtTableId?: string; + hierarchySprtTableName?: string; + chartEdgeGrantsTableId?: string; + chartEdgeGrantsTableName?: string; + entityTableId?: string; + usersTableId?: string; + prefix?: string; + privateSchemaName?: string; + sprtTableName?: string; + rebuildHierarchyFunction?: string; + getSubordinatesFunction?: string; + getManagersFunction?: string; + isManagerOfFunction?: string; + createdAt?: string; +} +export interface UpdateForeignKeyConstraintInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `ForeignKeyConstraint` being updated. */ + foreignKeyConstraintPatch: ForeignKeyConstraintPatch; +} +/** Represents an update to a `ForeignKeyConstraint`. Fields that are set will be updated. */ +export interface ForeignKeyConstraintPatch { + id?: string; + databaseId?: string; + tableId?: string; + name?: string; + description?: string; + smartTags?: unknown; + type?: string; + fieldIds?: string[]; + refTableId?: string; + refFieldIds?: string[]; + deleteAction?: string; + updateAction?: string; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateTableInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `Table` being updated. */ + tablePatch: TablePatch; +} +/** Represents an update to a `Table`. Fields that are set will be updated. */ +export interface TablePatch { + id?: string; + databaseId?: string; + schemaId?: string; + name?: string; + label?: string; + description?: string; + smartTags?: unknown; + category?: ObjectCategory; + module?: string; + scope?: number; + useRls?: boolean; + timestamps?: boolean; + peoplestamps?: boolean; + pluralName?: string; + singularName?: string; + tags?: string[]; + inheritsId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateLevelsModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `LevelsModule` being updated. */ + levelsModulePatch: LevelsModulePatch; +} +/** Represents an update to a `LevelsModule`. Fields that are set will be updated. */ +export interface LevelsModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + stepsTableId?: string; + stepsTableName?: string; + achievementsTableId?: string; + achievementsTableName?: string; + levelsTableId?: string; + levelsTableName?: string; + levelRequirementsTableId?: string; + levelRequirementsTableName?: string; + completedStep?: string; + incompletedStep?: string; + tgAchievement?: string; + tgAchievementToggle?: string; + tgAchievementToggleBoolean?: string; + tgAchievementBoolean?: string; + upsertAchievement?: string; + tgUpdateAchievements?: string; + stepsRequired?: string; + levelAchieved?: string; + prefix?: string; + membershipType?: number; + entityTableId?: string; + actorTableId?: string; +} +export interface UpdateUserAuthModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `UserAuthModule` being updated. */ + userAuthModulePatch: UserAuthModulePatch; +} +/** Represents an update to a `UserAuthModule`. Fields that are set will be updated. */ +export interface UserAuthModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + emailsTableId?: string; + usersTableId?: string; + secretsTableId?: string; + encryptedTableId?: string; + sessionsTableId?: string; + sessionCredentialsTableId?: string; + auditsTableId?: string; + auditsTableName?: string; + signInFunction?: string; + signUpFunction?: string; + signOutFunction?: string; + setPasswordFunction?: string; + resetPasswordFunction?: string; + forgotPasswordFunction?: string; + sendVerificationEmailFunction?: string; + verifyEmailFunction?: string; + verifyPasswordFunction?: string; + checkPasswordFunction?: string; + sendAccountDeletionEmailFunction?: string; + deleteAccountFunction?: string; + signInOneTimeTokenFunction?: string; + oneTimeTokenFunction?: string; + extendTokenExpires?: string; +} +export interface UpdateFieldInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `Field` being updated. */ + fieldPatch: FieldPatch; +} +/** Represents an update to a `Field`. Fields that are set will be updated. */ +export interface FieldPatch { + id?: string; + databaseId?: string; + tableId?: string; + name?: string; + label?: string; + description?: string; + smartTags?: unknown; + isRequired?: boolean; + defaultValue?: string; + defaultValueAst?: unknown; + isHidden?: boolean; + type?: string; + fieldOrder?: number; + regexp?: string; + chk?: unknown; + chkExpr?: unknown; + min?: number; + max?: number; + tags?: string[]; + category?: ObjectCategory; + module?: string; + scope?: number; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateMembershipsModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `MembershipsModule` being updated. */ + membershipsModulePatch: MembershipsModulePatch; +} +/** Represents an update to a `MembershipsModule`. Fields that are set will be updated. */ +export interface MembershipsModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + membershipsTableId?: string; + membershipsTableName?: string; + membersTableId?: string; + membersTableName?: string; + membershipDefaultsTableId?: string; + membershipDefaultsTableName?: string; + grantsTableId?: string; + grantsTableName?: string; + actorTableId?: string; + limitsTableId?: string; + defaultLimitsTableId?: string; + permissionsTableId?: string; + defaultPermissionsTableId?: string; + sprtTableId?: string; + adminGrantsTableId?: string; + adminGrantsTableName?: string; + ownerGrantsTableId?: string; + ownerGrantsTableName?: string; + membershipType?: number; + entityTableId?: string; + entityTableOwnerId?: string; + prefix?: string; + actorMaskCheck?: string; + actorPermCheck?: string; + entityIdsByMask?: string; + entityIdsByPerm?: string; + entityIdsFunction?: string; +} +export interface DeleteDefaultIdsModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteViewTableInput { + clientMutationId?: string; + id: string; +} +export interface DeleteApiSchemaInput { + clientMutationId?: string; + id: string; +} +export interface DeleteSiteThemeInput { + clientMutationId?: string; + id: string; +} +export interface DeleteOrgMemberInput { + clientMutationId?: string; + id: string; +} +export interface DeleteAppPermissionDefaultInput { + clientMutationId?: string; + id: string; +} +export interface DeleteRefInput { + clientMutationId?: string; + /** The primary unique identifier for the ref. */ + id: string; + databaseId: string; +} +export interface DeleteStoreInput { + clientMutationId?: string; + /** 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; +} +export interface DeleteMembershipTypesModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteSecretsModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteUuidModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteRoleTypeInput { + clientMutationId?: string; + id: number; +} +export interface DeleteOrgPermissionDefaultInput { + clientMutationId?: string; + id: string; +} +export interface DeleteSchemaGrantInput { + clientMutationId?: string; + id: string; +} +export interface DeleteTriggerFunctionInput { + clientMutationId?: string; + id: string; +} +export interface DeleteViewGrantInput { + clientMutationId?: string; + id: string; +} +export interface DeleteViewRuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteAppAdminGrantInput { + clientMutationId?: string; + id: string; +} +export interface DeleteAppOwnerGrantInput { + clientMutationId?: string; + id: string; +} +export interface DeleteAppLimitDefaultInput { + clientMutationId?: string; + id: string; +} +export interface DeleteOrgLimitDefaultInput { + clientMutationId?: string; + id: string; +} +export interface DeleteApiInput { + clientMutationId?: string; + id: string; +} +export interface DeleteConnectedAccountsModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteEmailsModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeletePhoneNumbersModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteTableModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteUsersModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteOrgAdminGrantInput { + clientMutationId?: string; + id: string; +} +export interface DeleteOrgOwnerGrantInput { + clientMutationId?: string; + id: string; +} +export interface DeleteCryptoAddressInput { + clientMutationId?: string; + id: string; +} +export interface DeleteMembershipTypeInput { + clientMutationId?: string; + id: number; +} +export interface DeleteDatabaseInput { + clientMutationId?: string; + id: string; +} +export interface DeleteLimitFunctionInput { + clientMutationId?: string; + id: string; +} +export interface DeleteTableGrantInput { + clientMutationId?: string; + id: string; +} +export interface DeleteCryptoAddressesModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteConnectedAccountInput { + clientMutationId?: string; + id: string; +} +export interface DeletePhoneNumberInput { + clientMutationId?: string; + id: string; +} +export interface DeleteAppPermissionInput { + clientMutationId?: string; + id: string; +} +export interface DeleteOrgPermissionInput { + clientMutationId?: string; + id: string; +} +export interface DeleteAppLimitInput { + clientMutationId?: string; + id: string; +} +export interface DeleteAppAchievementInput { + clientMutationId?: string; + id: string; +} +export interface DeleteAppStepInput { + clientMutationId?: string; + id: string; +} +export interface DeleteClaimedInviteInput { + clientMutationId?: string; + id: string; +} +export interface DeleteAppMembershipDefaultInput { + clientMutationId?: string; + id: string; +} +export interface DeleteSiteMetadatumInput { + clientMutationId?: string; + id: string; +} +export interface DeleteFieldModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteTableTemplateModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteNodeTypeRegistryInput { + clientMutationId?: string; + /** PascalCase domain-prefixed node type name (e.g., AuthzDirectOwner, DataTimestamps, FieldImmutable) */ + name: string; +} +export interface DeleteObjectInput { + clientMutationId?: string; + id: string; + databaseId: string; +} +export interface DeleteFullTextSearchInput { + clientMutationId?: string; + id: string; +} +export interface DeleteCommitInput { + clientMutationId?: string; + /** The primary unique identifier for the commit. */ + id: string; + /** The repository identifier */ + databaseId: string; +} +export interface DeleteOrgLimitInput { + clientMutationId?: string; + id: string; +} +export interface DeleteAppGrantInput { + clientMutationId?: string; + id: string; +} +export interface DeleteOrgClaimedInviteInput { + clientMutationId?: string; + id: string; +} +export interface DeleteDomainInput { + clientMutationId?: string; + id: string; +} +export interface DeleteOrgGrantInput { + clientMutationId?: string; + id: string; +} +export interface DeleteOrgMembershipDefaultInput { + clientMutationId?: string; + id: string; +} +export interface DeleteSessionsModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteEmailInput { + clientMutationId?: string; + id: string; +} +export interface DeleteAppLevelRequirementInput { + clientMutationId?: string; + id: string; +} +export interface DeleteAuditLogInput { + clientMutationId?: string; + id: string; +} +export interface DeleteAppLevelInput { + clientMutationId?: string; + id: string; +} +export interface DeleteRlsModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteDenormalizedTableFieldInput { + clientMutationId?: string; + id: string; +} +export interface DeleteCryptoAuthModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteDatabaseProvisionModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteInvitesModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteViewInput { + clientMutationId?: string; + id: string; +} +export interface DeleteAppMembershipInput { + clientMutationId?: string; + id: string; +} +export interface DeleteOrgMembershipInput { + clientMutationId?: string; + id: string; +} +export interface DeleteAppInput { + clientMutationId?: string; + id: string; +} +export interface DeleteSiteInput { + clientMutationId?: string; + id: string; +} +export interface DeleteUserInput { + clientMutationId?: string; + id: string; +} +export interface DeletePermissionsModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeletePrimaryKeyConstraintInput { + clientMutationId?: string; + id: string; +} +export interface DeleteTriggerInput { + clientMutationId?: string; + id: string; +} +export interface DeleteCheckConstraintInput { + clientMutationId?: string; + id: string; +} +export interface DeleteUniqueConstraintInput { + clientMutationId?: string; + id: string; +} +export interface DeleteProcedureInput { + clientMutationId?: string; + id: string; +} +export interface DeletePolicyInput { + clientMutationId?: string; + id: string; +} +export interface DeleteInviteInput { + clientMutationId?: string; + id: string; +} +export interface DeleteIndexInput { + clientMutationId?: string; + id: string; +} +export interface DeleteLimitsModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteSchemaInput { + clientMutationId?: string; + id: string; +} +export interface DeleteProfilesModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteOrgInviteInput { + clientMutationId?: string; + id: string; +} +export interface DeleteHierarchyModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteForeignKeyConstraintInput { + clientMutationId?: string; + id: string; +} +export interface DeleteTableInput { + clientMutationId?: string; + id: string; +} +export interface DeleteLevelsModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteUserAuthModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteFieldInput { + clientMutationId?: string; + id: string; +} +export interface DeleteMembershipsModuleInput { + clientMutationId?: string; + id: string; +} +/** A connection to a list of `GetAllRecord` values. */ +export interface GetAllConnection { + nodes: GetAllRecord[]; + edges: GetAllEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `AppPermission` values. */ +export interface AppPermissionConnection { + nodes: AppPermission[]; + edges: AppPermissionEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `OrgPermission` values. */ +export interface OrgPermissionConnection { + nodes: OrgPermission[]; + edges: OrgPermissionEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `Object` values. */ +export interface ObjectConnection { + nodes: Object[]; + edges: ObjectEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `AppLevelRequirement` values. */ +export interface AppLevelRequirementConnection { + nodes: AppLevelRequirement[]; + edges: AppLevelRequirementEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `DefaultIdsModule` values. */ +export interface DefaultIdsModuleConnection { + nodes: DefaultIdsModule[]; + edges: DefaultIdsModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `ViewTable` values. */ +export interface ViewTableConnection { + nodes: ViewTable[]; + edges: ViewTableEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `ApiSchema` values. */ +export interface ApiSchemaConnection { + nodes: ApiSchema[]; + edges: ApiSchemaEdge[]; + 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[]; + edges: OrgMemberEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** 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 `Ref` values. */ +export interface RefConnection { + nodes: Ref[]; + edges: RefEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `Store` values. */ +export interface StoreConnection { + nodes: Store[]; + edges: StoreEdge[]; + 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[]; + edges: EncryptedSecretsModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `MembershipTypesModule` values. */ +export interface MembershipTypesModuleConnection { + nodes: MembershipTypesModule[]; + edges: MembershipTypesModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `SecretsModule` values. */ +export interface SecretsModuleConnection { + nodes: SecretsModule[]; + edges: SecretsModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `UuidModule` values. */ +export interface UuidModuleConnection { + nodes: UuidModule[]; + edges: UuidModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** 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 `OrgPermissionDefault` values. */ +export interface OrgPermissionDefaultConnection { + nodes: OrgPermissionDefault[]; + edges: OrgPermissionDefaultEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `SchemaGrant` values. */ +export interface SchemaGrantConnection { + nodes: SchemaGrant[]; + edges: SchemaGrantEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `TriggerFunction` values. */ +export interface TriggerFunctionConnection { + nodes: TriggerFunction[]; + edges: TriggerFunctionEdge[]; + 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[]; + edges: ViewRuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `AppAdminGrant` values. */ +export interface AppAdminGrantConnection { + nodes: AppAdminGrant[]; + edges: AppAdminGrantEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `AppOwnerGrant` values. */ +export interface AppOwnerGrantConnection { + nodes: AppOwnerGrant[]; + edges: AppOwnerGrantEdge[]; + 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 `Api` values. */ +export interface ApiConnection { + nodes: Api[]; + edges: ApiEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `ConnectedAccountsModule` values. */ +export interface ConnectedAccountsModuleConnection { + nodes: ConnectedAccountsModule[]; + edges: ConnectedAccountsModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `EmailsModule` values. */ +export interface EmailsModuleConnection { + nodes: EmailsModule[]; + edges: EmailsModuleEdge[]; + pageInfo: PageInfo; + 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[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `UsersModule` values. */ +export interface UsersModuleConnection { + nodes: UsersModule[]; + edges: UsersModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `OrgAdminGrant` values. */ +export interface OrgAdminGrantConnection { + nodes: OrgAdminGrant[]; + edges: OrgAdminGrantEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `OrgOwnerGrant` values. */ +export interface OrgOwnerGrantConnection { + nodes: OrgOwnerGrant[]; + edges: OrgOwnerGrantEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `CryptoAddress` values. */ +export interface CryptoAddressConnection { + nodes: CryptoAddress[]; + edges: CryptoAddressEdge[]; + 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 `Database` values. */ +export interface DatabaseConnection { + nodes: Database[]; + edges: DatabaseEdge[]; + 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[]; + edges: CryptoAddressesModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `ConnectedAccount` values. */ +export interface ConnectedAccountConnection { + nodes: ConnectedAccount[]; + edges: ConnectedAccountEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `PhoneNumber` values. */ +export interface PhoneNumberConnection { + nodes: PhoneNumber[]; + edges: PhoneNumberEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `AppLimit` values. */ +export interface AppLimitConnection { + nodes: AppLimit[]; + edges: AppLimitEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `AppAchievement` values. */ +export interface AppAchievementConnection { + nodes: AppAchievement[]; + edges: AppAchievementEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `AppStep` values. */ +export interface AppStepConnection { + nodes: AppStep[]; + edges: AppStepEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `ClaimedInvite` values. */ +export interface ClaimedInviteConnection { + nodes: ClaimedInvite[]; + edges: ClaimedInviteEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `AppMembershipDefault` values. */ +export interface AppMembershipDefaultConnection { + nodes: AppMembershipDefault[]; + edges: AppMembershipDefaultEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `SiteMetadatum` values. */ +export interface SiteMetadatumConnection { + nodes: SiteMetadatum[]; + edges: SiteMetadatumEdge[]; + 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[]; + edges: FullTextSearchEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `Commit` values. */ +export interface CommitConnection { + nodes: Commit[]; + edges: CommitEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `OrgLimit` values. */ +export interface OrgLimitConnection { + nodes: OrgLimit[]; + edges: OrgLimitEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `AppGrant` values. */ +export interface AppGrantConnection { + nodes: AppGrant[]; + edges: AppGrantEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `OrgClaimedInvite` values. */ +export interface OrgClaimedInviteConnection { + nodes: OrgClaimedInvite[]; + edges: OrgClaimedInviteEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `Domain` values. */ +export interface DomainConnection { + nodes: Domain[]; + edges: DomainEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `OrgGrant` values. */ +export interface OrgGrantConnection { + nodes: OrgGrant[]; + edges: OrgGrantEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `OrgMembershipDefault` values. */ +export interface OrgMembershipDefaultConnection { + nodes: OrgMembershipDefault[]; + edges: OrgMembershipDefaultEdge[]; + 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[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `AuditLog` values. */ +export interface AuditLogConnection { + nodes: AuditLog[]; + edges: AuditLogEdge[]; + 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 `RlsModule` values. */ +export interface RlsModuleConnection { + nodes: RlsModule[]; + edges: RlsModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `DenormalizedTableField` values. */ +export interface DenormalizedTableFieldConnection { + nodes: DenormalizedTableField[]; + edges: DenormalizedTableFieldEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `SqlMigration` values. */ +export interface SqlMigrationConnection { + nodes: SqlMigration[]; + edges: SqlMigrationEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `CryptoAuthModule` values. */ +export interface CryptoAuthModuleConnection { + nodes: CryptoAuthModule[]; + edges: CryptoAuthModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `DatabaseProvisionModule` values. */ +export interface DatabaseProvisionModuleConnection { + nodes: DatabaseProvisionModule[]; + edges: DatabaseProvisionModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `InvitesModule` values. */ +export interface InvitesModuleConnection { + nodes: InvitesModule[]; + edges: InvitesModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `View` values. */ +export interface ViewConnection { + nodes: View[]; + edges: ViewEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `AstMigration` values. */ +export interface AstMigrationConnection { + nodes: AstMigration[]; + edges: AstMigrationEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** 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 `OrgMembership` values. */ +export interface OrgMembershipConnection { + nodes: OrgMembership[]; + edges: OrgMembershipEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `App` values. */ +export interface AppConnection { + nodes: App[]; + edges: AppEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `Site` values. */ +export interface SiteConnection { + nodes: Site[]; + edges: SiteEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `User` values. */ +export interface UserConnection { + nodes: User[]; + edges: UserEdge[]; + 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[]; + 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 `UniqueConstraint` values. */ +export interface UniqueConstraintConnection { + nodes: UniqueConstraint[]; + edges: UniqueConstraintEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `Procedure` values. */ +export interface ProcedureConnection { + nodes: Procedure[]; + edges: ProcedureEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `Policy` values. */ +export interface PolicyConnection { + nodes: Policy[]; + edges: PolicyEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `Invite` values. */ +export interface InviteConnection { + nodes: Invite[]; + edges: InviteEdge[]; + 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[]; + edges: SchemaEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** 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 `OrgInvite` values. */ +export interface OrgInviteConnection { + nodes: OrgInvite[]; + edges: OrgInviteEdge[]; + 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[]; + edges: ForeignKeyConstraintEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `Table` values. */ +export interface TableConnection { + nodes: Table[]; + edges: TableEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `LevelsModule` values. */ +export interface LevelsModuleConnection { + nodes: LevelsModule[]; + edges: LevelsModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `UserAuthModule` values. */ +export interface UserAuthModuleConnection { + nodes: UserAuthModule[]; + edges: UserAuthModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `Field` values. */ +export interface FieldConnection { + nodes: Field[]; + edges: FieldEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `MembershipsModule` values. */ +export interface MembershipsModuleConnection { + nodes: MembershipsModule[]; + edges: MembershipsModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** Root meta schema type */ +export interface MetaSchema { + tables: MetaTable[]; +} +export interface SignOutPayload { + clientMutationId?: string | null; +} +export interface SendAccountDeletionEmailPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export interface CheckPasswordPayload { + clientMutationId?: string | null; +} +export interface SubmitInviteCodePayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export interface SubmitOrgInviteCodePayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export interface FreezeObjectsPayload { + clientMutationId?: string | null; +} +export interface InitEmptyRepoPayload { + clientMutationId?: string | null; +} +export interface ConfirmDeleteAccountPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export interface SetPasswordPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export interface VerifyEmailPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export interface ResetPasswordPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export interface RemoveNodeAtPathPayload { + clientMutationId?: string | null; + result?: string | null; +} +export interface BootstrapUserPayload { + clientMutationId?: string | null; + result?: BootstrapUserRecord[] | null; +} +export interface SetDataAtPathPayload { + clientMutationId?: string | null; + result?: string | null; +} +export interface SetPropsAndCommitPayload { + clientMutationId?: string | null; + result?: string | null; +} +export interface ProvisionDatabaseWithUserPayload { + clientMutationId?: string | null; + result?: ProvisionDatabaseWithUserRecord[] | null; +} +export interface SignInOneTimeTokenPayload { + clientMutationId?: string | null; + result?: SignInOneTimeTokenRecord | null; +} +export interface CreateUserDatabasePayload { + clientMutationId?: string | null; + result?: string | null; +} +export interface ExtendTokenExpiresPayload { + clientMutationId?: string | null; + result?: ExtendTokenExpiresRecord[] | null; +} +export interface SignInPayload { + clientMutationId?: string | null; + result?: SignInRecord | null; +} +export interface SignUpPayload { + clientMutationId?: string | null; + result?: SignUpRecord | null; +} +export interface SetFieldOrderPayload { + clientMutationId?: string | null; +} +export interface OneTimeTokenPayload { + clientMutationId?: string | null; + result?: string | null; +} +export interface InsertNodeAtPathPayload { + clientMutationId?: string | null; + result?: string | null; +} +export interface UpdateNodeAtPathPayload { + clientMutationId?: string | null; + result?: string | null; +} +export interface SetAndCommitPayload { + clientMutationId?: string | null; + result?: string | null; +} +export interface ApplyRlsPayload { + clientMutationId?: string | null; +} +export interface ForgotPasswordPayload { + clientMutationId?: string | null; +} +export interface SendVerificationEmailPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export interface VerifyPasswordPayload { + clientMutationId?: string | null; + result?: Session | null; +} +export interface VerifyTotpPayload { + clientMutationId?: string | null; + result?: Session | null; +} +export interface CreateDefaultIdsModulePayload { + clientMutationId?: string | null; + /** The `DefaultIdsModule` that was created by this mutation. */ + defaultIdsModule?: DefaultIdsModule | null; + defaultIdsModuleEdge?: DefaultIdsModuleEdge | null; +} +export interface CreateViewTablePayload { + clientMutationId?: string | null; + /** The `ViewTable` that was created by this mutation. */ + viewTable?: ViewTable | null; + viewTableEdge?: ViewTableEdge | null; +} +export interface CreateApiSchemaPayload { + clientMutationId?: string | null; + /** The `ApiSchema` that was created by this mutation. */ + 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 { + clientMutationId?: string | null; + /** The `AppPermissionDefault` that was created by this mutation. */ + appPermissionDefault?: AppPermissionDefault | null; + appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; +} +export interface CreateRefPayload { + clientMutationId?: string | null; + /** The `Ref` that was created by this mutation. */ + ref?: Ref | null; + refEdge?: RefEdge | null; +} +export interface CreateStorePayload { + clientMutationId?: string | null; + /** The `Store` that was created by this mutation. */ + 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. */ + encryptedSecretsModule?: EncryptedSecretsModule | null; + encryptedSecretsModuleEdge?: EncryptedSecretsModuleEdge | null; +} +export interface CreateMembershipTypesModulePayload { + clientMutationId?: string | null; + /** The `MembershipTypesModule` that was created by this mutation. */ + membershipTypesModule?: MembershipTypesModule | null; + membershipTypesModuleEdge?: MembershipTypesModuleEdge | null; +} +export interface CreateSecretsModulePayload { + clientMutationId?: string | null; + /** The `SecretsModule` that was created by this mutation. */ + secretsModule?: SecretsModule | null; + secretsModuleEdge?: SecretsModuleEdge | null; +} +export interface CreateUuidModulePayload { + clientMutationId?: string | null; + /** The `UuidModule` that was created by this mutation. */ + uuidModule?: UuidModule | null; + uuidModuleEdge?: UuidModuleEdge | null; +} +export interface CreateRoleTypePayload { + clientMutationId?: string | null; + /** The `RoleType` that was created by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; +} +export interface CreateOrgPermissionDefaultPayload { + clientMutationId?: string | null; + /** The `OrgPermissionDefault` that was created by this mutation. */ + orgPermissionDefault?: OrgPermissionDefault | null; + orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; +} +export interface CreateSchemaGrantPayload { + clientMutationId?: string | null; + /** The `SchemaGrant` that was created by this mutation. */ + schemaGrant?: SchemaGrant | null; + schemaGrantEdge?: SchemaGrantEdge | null; +} +export interface CreateTriggerFunctionPayload { + clientMutationId?: string | null; + /** The `TriggerFunction` that was created by this mutation. */ + 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. */ + viewRule?: ViewRule | null; + viewRuleEdge?: ViewRuleEdge | null; +} +export interface CreateAppAdminGrantPayload { + clientMutationId?: string | null; + /** The `AppAdminGrant` that was created by this mutation. */ + appAdminGrant?: AppAdminGrant | null; + appAdminGrantEdge?: AppAdminGrantEdge | null; +} +export interface CreateAppOwnerGrantPayload { + clientMutationId?: string | null; + /** The `AppOwnerGrant` that was created by this mutation. */ + 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 CreateApiPayload { + clientMutationId?: string | null; + /** The `Api` that was created by this mutation. */ + api?: Api | null; + apiEdge?: ApiEdge | null; +} +export interface CreateConnectedAccountsModulePayload { + clientMutationId?: string | null; + /** The `ConnectedAccountsModule` that was created by this mutation. */ + connectedAccountsModule?: ConnectedAccountsModule | null; + connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; +} +export interface CreateEmailsModulePayload { + clientMutationId?: string | null; + /** The `EmailsModule` that was created by this mutation. */ + emailsModule?: EmailsModule | null; + emailsModuleEdge?: EmailsModuleEdge | null; +} +export interface CreatePhoneNumbersModulePayload { + clientMutationId?: string | null; + /** The `PhoneNumbersModule` that was created by this mutation. */ + 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. */ + usersModule?: UsersModule | null; + usersModuleEdge?: UsersModuleEdge | null; +} +export interface CreateOrgAdminGrantPayload { + clientMutationId?: string | null; + /** The `OrgAdminGrant` that was created by this mutation. */ + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; +} +export interface CreateOrgOwnerGrantPayload { + clientMutationId?: string | null; + /** The `OrgOwnerGrant` that was created by this mutation. */ + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; +} +export interface CreateCryptoAddressPayload { + clientMutationId?: string | null; + /** The `CryptoAddress` that was created by this mutation. */ + cryptoAddress?: CryptoAddress | null; + cryptoAddressEdge?: CryptoAddressEdge | null; +} +export interface CreateMembershipTypePayload { + clientMutationId?: string | null; + /** The `MembershipType` that was created by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; +} +export interface CreateDatabasePayload { + clientMutationId?: string | null; + /** The `Database` that was created by this mutation. */ + 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. */ + cryptoAddressesModule?: CryptoAddressesModule | null; + cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; +} +export interface CreateConnectedAccountPayload { + clientMutationId?: string | null; + /** The `ConnectedAccount` that was created by this mutation. */ + connectedAccount?: ConnectedAccount | null; + connectedAccountEdge?: ConnectedAccountEdge | null; +} +export interface CreatePhoneNumberPayload { + clientMutationId?: string | null; + /** The `PhoneNumber` that was created by this mutation. */ + phoneNumber?: PhoneNumber | null; + phoneNumberEdge?: PhoneNumberEdge | null; +} +export interface CreateAppPermissionPayload { + clientMutationId?: string | null; + /** The `AppPermission` that was created by this mutation. */ + appPermission?: AppPermission | null; + appPermissionEdge?: AppPermissionEdge | null; +} +export interface CreateOrgPermissionPayload { + clientMutationId?: string | null; + /** The `OrgPermission` that was created by this mutation. */ + orgPermission?: OrgPermission | null; + orgPermissionEdge?: OrgPermissionEdge | null; +} +export interface CreateAppLimitPayload { + clientMutationId?: string | null; + /** The `AppLimit` that was created by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; +} +export interface CreateAppAchievementPayload { + clientMutationId?: string | null; + /** The `AppAchievement` that was created by this mutation. */ + appAchievement?: AppAchievement | null; + appAchievementEdge?: AppAchievementEdge | null; +} +export interface CreateAppStepPayload { + clientMutationId?: string | null; + /** The `AppStep` that was created by this mutation. */ + appStep?: AppStep | null; + appStepEdge?: AppStepEdge | null; +} +export interface CreateClaimedInvitePayload { + clientMutationId?: string | null; + /** The `ClaimedInvite` that was created by this mutation. */ + claimedInvite?: ClaimedInvite | null; + claimedInviteEdge?: ClaimedInviteEdge | null; +} +export interface CreateAppMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `AppMembershipDefault` that was created by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export interface CreateSiteMetadatumPayload { + clientMutationId?: string | null; + /** The `SiteMetadatum` that was created by this mutation. */ + 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. */ + object?: Object | null; + objectEdge?: ObjectEdge | null; +} +export interface CreateFullTextSearchPayload { + clientMutationId?: string | null; + /** The `FullTextSearch` that was created by this mutation. */ + fullTextSearch?: FullTextSearch | null; + fullTextSearchEdge?: FullTextSearchEdge | null; +} +export interface CreateCommitPayload { + clientMutationId?: string | null; + /** The `Commit` that was created by this mutation. */ + commit?: Commit | null; + commitEdge?: CommitEdge | null; +} +export interface CreateOrgLimitPayload { + clientMutationId?: string | null; + /** The `OrgLimit` that was created by this mutation. */ + orgLimit?: OrgLimit | null; + orgLimitEdge?: OrgLimitEdge | null; +} +export interface CreateAppGrantPayload { + clientMutationId?: string | null; + /** The `AppGrant` that was created by this mutation. */ + appGrant?: AppGrant | null; + appGrantEdge?: AppGrantEdge | null; +} +export interface CreateOrgClaimedInvitePayload { + clientMutationId?: string | null; + /** The `OrgClaimedInvite` that was created by this mutation. */ + orgClaimedInvite?: OrgClaimedInvite | null; + orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; +} +export interface CreateDomainPayload { + clientMutationId?: string | null; + /** The `Domain` that was created by this mutation. */ + domain?: Domain | null; + domainEdge?: DomainEdge | null; +} +export interface CreateOrgGrantPayload { + clientMutationId?: string | null; + /** The `OrgGrant` that was created by this mutation. */ + orgGrant?: OrgGrant | null; + orgGrantEdge?: OrgGrantEdge | null; +} +export interface CreateOrgMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `OrgMembershipDefault` that was created by this mutation. */ + 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 { + clientMutationId?: string | null; + /** The `Email` that was created by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; +} +export interface CreateAppLevelRequirementPayload { + clientMutationId?: string | null; + /** The `AppLevelRequirement` that was created by this mutation. */ + appLevelRequirement?: AppLevelRequirement | null; + appLevelRequirementEdge?: AppLevelRequirementEdge | null; +} +export interface CreateAuditLogPayload { + clientMutationId?: string | null; + /** The `AuditLog` that was created by this mutation. */ + auditLog?: AuditLog | null; + auditLogEdge?: AuditLogEdge | null; +} +export interface CreateAppLevelPayload { + clientMutationId?: string | null; + /** The `AppLevel` that was created by this mutation. */ + appLevel?: AppLevel | null; + appLevelEdge?: AppLevelEdge | null; +} +export interface CreateRlsModulePayload { + clientMutationId?: string | null; + /** The `RlsModule` that was created by this mutation. */ + rlsModule?: RlsModule | null; + rlsModuleEdge?: RlsModuleEdge | null; +} +export interface CreateDenormalizedTableFieldPayload { + clientMutationId?: string | null; + /** The `DenormalizedTableField` that was created by this mutation. */ + denormalizedTableField?: DenormalizedTableField | null; + denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; +} +export interface CreateSqlMigrationPayload { + clientMutationId?: string | null; + /** The `SqlMigration` that was created by this mutation. */ + sqlMigration?: SqlMigration | null; +} +export interface CreateCryptoAuthModulePayload { + clientMutationId?: string | null; + /** The `CryptoAuthModule` that was created by this mutation. */ + cryptoAuthModule?: CryptoAuthModule | null; + cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; +} +export interface CreateDatabaseProvisionModulePayload { + clientMutationId?: string | null; + /** The `DatabaseProvisionModule` that was created by this mutation. */ + databaseProvisionModule?: DatabaseProvisionModule | null; + databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; +} +export interface CreateInvitesModulePayload { + clientMutationId?: string | null; + /** The `InvitesModule` that was created by this mutation. */ + invitesModule?: InvitesModule | null; + invitesModuleEdge?: InvitesModuleEdge | null; +} +export interface CreateViewPayload { + clientMutationId?: string | null; + /** The `View` that was created by this mutation. */ + 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 { + clientMutationId?: string | null; + /** The `App` that was created by this mutation. */ + app?: App | null; + appEdge?: AppEdge | null; +} +export interface CreateSitePayload { + clientMutationId?: string | null; + /** The `Site` that was created by this mutation. */ + site?: Site | null; + siteEdge?: SiteEdge | null; +} +export interface CreateUserPayload { + clientMutationId?: string | null; + /** The `User` that was created by this mutation. */ + user?: User | null; + userEdge?: UserEdge | null; +} +export interface CreatePermissionsModulePayload { + clientMutationId?: string | null; + /** The `PermissionsModule` that was created by this mutation. */ + permissionsModule?: PermissionsModule | null; + permissionsModuleEdge?: PermissionsModuleEdge | null; +} +export interface CreatePrimaryKeyConstraintPayload { + clientMutationId?: string | null; + /** The `PrimaryKeyConstraint` that was created by this mutation. */ + primaryKeyConstraint?: PrimaryKeyConstraint | null; + primaryKeyConstraintEdge?: PrimaryKeyConstraintEdge | null; +} +export interface CreateTriggerPayload { + clientMutationId?: string | null; + /** The `Trigger` that was created by this mutation. */ + trigger?: Trigger | null; + triggerEdge?: TriggerEdge | null; +} +export interface CreateCheckConstraintPayload { + clientMutationId?: string | null; + /** The `CheckConstraint` that was created by this mutation. */ + checkConstraint?: CheckConstraint | null; + checkConstraintEdge?: CheckConstraintEdge | null; +} +export interface CreateUniqueConstraintPayload { + clientMutationId?: string | null; + /** The `UniqueConstraint` that was created by this mutation. */ + uniqueConstraint?: UniqueConstraint | null; + uniqueConstraintEdge?: UniqueConstraintEdge | null; +} +export interface CreateProcedurePayload { + clientMutationId?: string | null; + /** The `Procedure` that was created by this mutation. */ + procedure?: Procedure | null; + procedureEdge?: ProcedureEdge | null; +} +export interface CreatePolicyPayload { + clientMutationId?: string | null; + /** The `Policy` that was created by this mutation. */ + policy?: Policy | null; + policyEdge?: PolicyEdge | null; +} +export interface CreateInvitePayload { + clientMutationId?: string | null; + /** The `Invite` that was created by this mutation. */ + invite?: Invite | null; + inviteEdge?: InviteEdge | null; +} +export interface CreateIndexPayload { + clientMutationId?: string | null; + /** The `Index` that was created by this mutation. */ + index?: Index | null; + indexEdge?: IndexEdge | null; +} +export interface CreateLimitsModulePayload { + clientMutationId?: string | null; + /** The `LimitsModule` that was created by this mutation. */ + limitsModule?: LimitsModule | null; + limitsModuleEdge?: LimitsModuleEdge | null; +} +export interface CreateSchemaPayload { + clientMutationId?: string | null; + /** The `Schema` that was created by this mutation. */ + schema?: Schema | null; + schemaEdge?: SchemaEdge | null; +} +export interface CreateProfilesModulePayload { + clientMutationId?: string | null; + /** The `ProfilesModule` that was created by this mutation. */ + profilesModule?: ProfilesModule | null; + profilesModuleEdge?: ProfilesModuleEdge | null; +} +export interface CreateOrgInvitePayload { + clientMutationId?: string | null; + /** The `OrgInvite` that was created by this mutation. */ + 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. */ + foreignKeyConstraint?: ForeignKeyConstraint | null; + foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null; +} +export interface CreateTablePayload { + clientMutationId?: string | null; + /** The `Table` that was created by this mutation. */ + table?: Table | null; + tableEdge?: TableEdge | null; +} +export interface CreateLevelsModulePayload { + clientMutationId?: string | null; + /** The `LevelsModule` that was created by this mutation. */ + levelsModule?: LevelsModule | null; + levelsModuleEdge?: LevelsModuleEdge | null; +} +export interface CreateUserAuthModulePayload { + clientMutationId?: string | null; + /** The `UserAuthModule` that was created by this mutation. */ + userAuthModule?: UserAuthModule | null; + userAuthModuleEdge?: UserAuthModuleEdge | null; +} +export interface CreateFieldPayload { + clientMutationId?: string | null; + /** The `Field` that was created by this mutation. */ + field?: Field | null; + fieldEdge?: FieldEdge | null; +} +export interface CreateMembershipsModulePayload { + clientMutationId?: string | null; + /** The `MembershipsModule` that was created by this mutation. */ + membershipsModule?: MembershipsModule | null; + membershipsModuleEdge?: MembershipsModuleEdge | null; +} +export interface UpdateDefaultIdsModulePayload { + clientMutationId?: string | null; + /** The `DefaultIdsModule` that was updated by this mutation. */ + defaultIdsModule?: DefaultIdsModule | null; + defaultIdsModuleEdge?: DefaultIdsModuleEdge | null; +} +export interface UpdateViewTablePayload { + clientMutationId?: string | null; + /** The `ViewTable` that was updated by this mutation. */ + viewTable?: ViewTable | null; + viewTableEdge?: ViewTableEdge | null; +} +export interface UpdateApiSchemaPayload { + clientMutationId?: string | null; + /** The `ApiSchema` that was updated by this mutation. */ + 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 { + clientMutationId?: string | null; + /** The `AppPermissionDefault` that was updated by this mutation. */ + appPermissionDefault?: AppPermissionDefault | null; + appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; +} +export interface UpdateRefPayload { + clientMutationId?: string | null; + /** The `Ref` that was updated by this mutation. */ + ref?: Ref | null; + refEdge?: RefEdge | null; +} +export interface UpdateStorePayload { + clientMutationId?: string | null; + /** The `Store` that was updated by this mutation. */ + 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. */ + encryptedSecretsModule?: EncryptedSecretsModule | null; + encryptedSecretsModuleEdge?: EncryptedSecretsModuleEdge | null; +} +export interface UpdateMembershipTypesModulePayload { + clientMutationId?: string | null; + /** The `MembershipTypesModule` that was updated by this mutation. */ + membershipTypesModule?: MembershipTypesModule | null; + membershipTypesModuleEdge?: MembershipTypesModuleEdge | null; +} +export interface UpdateSecretsModulePayload { + clientMutationId?: string | null; + /** The `SecretsModule` that was updated by this mutation. */ + secretsModule?: SecretsModule | null; + secretsModuleEdge?: SecretsModuleEdge | null; +} +export interface UpdateUuidModulePayload { + clientMutationId?: string | null; + /** The `UuidModule` that was updated by this mutation. */ + uuidModule?: UuidModule | null; + uuidModuleEdge?: UuidModuleEdge | null; +} +export interface UpdateRoleTypePayload { + clientMutationId?: string | null; + /** The `RoleType` that was updated by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; +} +export interface UpdateOrgPermissionDefaultPayload { + clientMutationId?: string | null; + /** The `OrgPermissionDefault` that was updated by this mutation. */ + orgPermissionDefault?: OrgPermissionDefault | null; + orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; +} +export interface UpdateSchemaGrantPayload { + clientMutationId?: string | null; + /** The `SchemaGrant` that was updated by this mutation. */ + schemaGrant?: SchemaGrant | null; + schemaGrantEdge?: SchemaGrantEdge | null; +} +export interface UpdateTriggerFunctionPayload { + clientMutationId?: string | null; + /** The `TriggerFunction` that was updated by this mutation. */ + 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. */ + viewRule?: ViewRule | null; + viewRuleEdge?: ViewRuleEdge | null; +} +export interface UpdateAppAdminGrantPayload { + clientMutationId?: string | null; + /** The `AppAdminGrant` that was updated by this mutation. */ + appAdminGrant?: AppAdminGrant | null; + appAdminGrantEdge?: AppAdminGrantEdge | null; +} +export interface UpdateAppOwnerGrantPayload { + clientMutationId?: string | null; + /** The `AppOwnerGrant` that was updated by this mutation. */ + 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 UpdateApiPayload { + clientMutationId?: string | null; + /** The `Api` that was updated by this mutation. */ + api?: Api | null; + apiEdge?: ApiEdge | null; +} +export interface UpdateConnectedAccountsModulePayload { + clientMutationId?: string | null; + /** The `ConnectedAccountsModule` that was updated by this mutation. */ + connectedAccountsModule?: ConnectedAccountsModule | null; + connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; +} +export interface UpdateEmailsModulePayload { + clientMutationId?: string | null; + /** The `EmailsModule` that was updated by this mutation. */ + emailsModule?: EmailsModule | null; + emailsModuleEdge?: EmailsModuleEdge | null; +} +export interface UpdatePhoneNumbersModulePayload { + clientMutationId?: string | null; + /** The `PhoneNumbersModule` that was updated by this mutation. */ + 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. */ + usersModule?: UsersModule | null; + usersModuleEdge?: UsersModuleEdge | null; +} +export interface UpdateOrgAdminGrantPayload { + clientMutationId?: string | null; + /** The `OrgAdminGrant` that was updated by this mutation. */ + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; +} +export interface UpdateOrgOwnerGrantPayload { + clientMutationId?: string | null; + /** The `OrgOwnerGrant` that was updated by this mutation. */ + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; +} +export interface UpdateCryptoAddressPayload { + clientMutationId?: string | null; + /** The `CryptoAddress` that was updated by this mutation. */ + cryptoAddress?: CryptoAddress | null; + cryptoAddressEdge?: CryptoAddressEdge | null; +} +export interface UpdateMembershipTypePayload { + clientMutationId?: string | null; + /** The `MembershipType` that was updated by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; +} +export interface UpdateDatabasePayload { + clientMutationId?: string | null; + /** The `Database` that was updated by this mutation. */ + 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. */ + cryptoAddressesModule?: CryptoAddressesModule | null; + cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; +} +export interface UpdateConnectedAccountPayload { + clientMutationId?: string | null; + /** The `ConnectedAccount` that was updated by this mutation. */ + connectedAccount?: ConnectedAccount | null; + connectedAccountEdge?: ConnectedAccountEdge | null; +} +export interface UpdatePhoneNumberPayload { + clientMutationId?: string | null; + /** The `PhoneNumber` that was updated by this mutation. */ + phoneNumber?: PhoneNumber | null; + phoneNumberEdge?: PhoneNumberEdge | null; +} +export interface UpdateAppPermissionPayload { + clientMutationId?: string | null; + /** The `AppPermission` that was updated by this mutation. */ + appPermission?: AppPermission | null; + appPermissionEdge?: AppPermissionEdge | null; +} +export interface UpdateOrgPermissionPayload { + clientMutationId?: string | null; + /** The `OrgPermission` that was updated by this mutation. */ + orgPermission?: OrgPermission | null; + orgPermissionEdge?: OrgPermissionEdge | null; +} +export interface UpdateAppLimitPayload { + clientMutationId?: string | null; + /** The `AppLimit` that was updated by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; +} +export interface UpdateAppAchievementPayload { + clientMutationId?: string | null; + /** The `AppAchievement` that was updated by this mutation. */ + appAchievement?: AppAchievement | null; + appAchievementEdge?: AppAchievementEdge | null; +} +export interface UpdateAppStepPayload { + clientMutationId?: string | null; + /** The `AppStep` that was updated by this mutation. */ + appStep?: AppStep | null; + appStepEdge?: AppStepEdge | null; +} +export interface UpdateClaimedInvitePayload { + clientMutationId?: string | null; + /** The `ClaimedInvite` that was updated by this mutation. */ + claimedInvite?: ClaimedInvite | null; + claimedInviteEdge?: ClaimedInviteEdge | null; +} +export interface UpdateAppMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `AppMembershipDefault` that was updated by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export interface UpdateSiteMetadatumPayload { + clientMutationId?: string | null; + /** The `SiteMetadatum` that was updated by this mutation. */ + 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. */ + object?: Object | null; + objectEdge?: ObjectEdge | null; +} +export interface UpdateFullTextSearchPayload { + clientMutationId?: string | null; + /** The `FullTextSearch` that was updated by this mutation. */ + fullTextSearch?: FullTextSearch | null; + fullTextSearchEdge?: FullTextSearchEdge | null; +} +export interface UpdateCommitPayload { + clientMutationId?: string | null; + /** The `Commit` that was updated by this mutation. */ + commit?: Commit | null; + commitEdge?: CommitEdge | null; +} +export interface UpdateOrgLimitPayload { + clientMutationId?: string | null; + /** The `OrgLimit` that was updated by this mutation. */ + orgLimit?: OrgLimit | null; + orgLimitEdge?: OrgLimitEdge | null; +} +export interface UpdateAppGrantPayload { + clientMutationId?: string | null; + /** The `AppGrant` that was updated by this mutation. */ + appGrant?: AppGrant | null; + appGrantEdge?: AppGrantEdge | null; +} +export interface UpdateOrgClaimedInvitePayload { + clientMutationId?: string | null; + /** The `OrgClaimedInvite` that was updated by this mutation. */ + orgClaimedInvite?: OrgClaimedInvite | null; + orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; +} +export interface UpdateDomainPayload { + clientMutationId?: string | null; + /** The `Domain` that was updated by this mutation. */ + domain?: Domain | null; + domainEdge?: DomainEdge | null; +} +export interface UpdateOrgGrantPayload { + clientMutationId?: string | null; + /** The `OrgGrant` that was updated by this mutation. */ + orgGrant?: OrgGrant | null; + orgGrantEdge?: OrgGrantEdge | null; +} +export interface UpdateOrgMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `OrgMembershipDefault` that was updated by this mutation. */ + 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 { + clientMutationId?: string | null; + /** The `Email` that was updated by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; +} +export interface UpdateAppLevelRequirementPayload { + clientMutationId?: string | null; + /** The `AppLevelRequirement` that was updated by this mutation. */ + appLevelRequirement?: AppLevelRequirement | null; + appLevelRequirementEdge?: AppLevelRequirementEdge | null; +} +export interface UpdateAuditLogPayload { + clientMutationId?: string | null; + /** The `AuditLog` that was updated by this mutation. */ + auditLog?: AuditLog | null; + auditLogEdge?: AuditLogEdge | null; +} +export interface UpdateAppLevelPayload { + clientMutationId?: string | null; + /** The `AppLevel` that was updated by this mutation. */ + appLevel?: AppLevel | null; + appLevelEdge?: AppLevelEdge | null; +} +export interface UpdateRlsModulePayload { + clientMutationId?: string | null; + /** The `RlsModule` that was updated by this mutation. */ + rlsModule?: RlsModule | null; + rlsModuleEdge?: RlsModuleEdge | null; +} +export interface UpdateDenormalizedTableFieldPayload { + clientMutationId?: string | null; + /** The `DenormalizedTableField` that was updated by this mutation. */ + denormalizedTableField?: DenormalizedTableField | null; + denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; +} +export interface UpdateCryptoAuthModulePayload { + clientMutationId?: string | null; + /** The `CryptoAuthModule` that was updated by this mutation. */ + cryptoAuthModule?: CryptoAuthModule | null; + cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; +} +export interface UpdateDatabaseProvisionModulePayload { + clientMutationId?: string | null; + /** The `DatabaseProvisionModule` that was updated by this mutation. */ + databaseProvisionModule?: DatabaseProvisionModule | null; + databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; +} +export interface UpdateInvitesModulePayload { + clientMutationId?: string | null; + /** The `InvitesModule` that was updated by this mutation. */ + invitesModule?: InvitesModule | null; + invitesModuleEdge?: InvitesModuleEdge | null; +} +export interface UpdateViewPayload { + clientMutationId?: string | null; + /** The `View` that was updated by this mutation. */ + 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 { + clientMutationId?: string | null; + /** The `PrimaryKeyConstraint` that was updated by this mutation. */ + primaryKeyConstraint?: PrimaryKeyConstraint | null; + primaryKeyConstraintEdge?: PrimaryKeyConstraintEdge | null; +} +export interface UpdateTriggerPayload { + clientMutationId?: string | null; + /** The `Trigger` that was updated by this mutation. */ + trigger?: Trigger | null; + triggerEdge?: TriggerEdge | null; +} +export interface UpdateCheckConstraintPayload { + clientMutationId?: string | null; + /** The `CheckConstraint` that was updated by this mutation. */ + checkConstraint?: CheckConstraint | null; + checkConstraintEdge?: CheckConstraintEdge | null; +} +export interface UpdateUniqueConstraintPayload { + clientMutationId?: string | null; + /** The `UniqueConstraint` that was updated by this mutation. */ + uniqueConstraint?: UniqueConstraint | null; + uniqueConstraintEdge?: UniqueConstraintEdge | null; +} +export interface UpdateProcedurePayload { + clientMutationId?: string | null; + /** The `Procedure` that was updated by this mutation. */ + procedure?: Procedure | null; + procedureEdge?: ProcedureEdge | null; +} +export interface UpdatePolicyPayload { + clientMutationId?: string | null; + /** The `Policy` that was updated by this mutation. */ + policy?: Policy | null; + policyEdge?: PolicyEdge | null; +} +export interface UpdateInvitePayload { + clientMutationId?: string | null; + /** The `Invite` that was updated by this mutation. */ + invite?: Invite | null; + inviteEdge?: InviteEdge | null; +} +export interface UpdateIndexPayload { + clientMutationId?: string | null; + /** The `Index` that was updated by this mutation. */ + index?: Index | null; + indexEdge?: IndexEdge | null; +} +export interface UpdateLimitsModulePayload { + clientMutationId?: string | null; + /** The `LimitsModule` that was updated by this mutation. */ + 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 { + clientMutationId?: string | null; + /** The `OrgInvite` that was updated by this mutation. */ + orgInvite?: OrgInvite | null; + orgInviteEdge?: OrgInviteEdge | null; +} +export interface UpdateHierarchyModulePayload { + clientMutationId?: string | null; + /** The `HierarchyModule` that was updated by this mutation. */ + hierarchyModule?: HierarchyModule | null; + hierarchyModuleEdge?: HierarchyModuleEdge | null; +} +export interface UpdateForeignKeyConstraintPayload { + clientMutationId?: string | null; + /** The `ForeignKeyConstraint` that was updated by this mutation. */ + foreignKeyConstraint?: ForeignKeyConstraint | null; + foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null; +} +export interface UpdateTablePayload { + clientMutationId?: string | null; + /** The `Table` that was updated by this mutation. */ + table?: Table | null; + tableEdge?: TableEdge | null; +} +export interface UpdateLevelsModulePayload { + clientMutationId?: string | null; + /** The `LevelsModule` that was updated by this mutation. */ + levelsModule?: LevelsModule | null; + levelsModuleEdge?: LevelsModuleEdge | null; +} +export interface UpdateUserAuthModulePayload { + clientMutationId?: string | null; + /** The `UserAuthModule` that was updated by this mutation. */ + userAuthModule?: UserAuthModule | null; + userAuthModuleEdge?: UserAuthModuleEdge | null; +} +export interface UpdateFieldPayload { + clientMutationId?: string | null; + /** The `Field` that was updated by this mutation. */ + field?: Field | null; + fieldEdge?: FieldEdge | null; +} +export interface UpdateMembershipsModulePayload { + clientMutationId?: string | null; + /** The `MembershipsModule` that was updated by this mutation. */ + membershipsModule?: MembershipsModule | null; + membershipsModuleEdge?: MembershipsModuleEdge | null; +} +export interface DeleteDefaultIdsModulePayload { + clientMutationId?: string | null; + /** The `DefaultIdsModule` that was deleted by this mutation. */ + defaultIdsModule?: DefaultIdsModule | null; + defaultIdsModuleEdge?: DefaultIdsModuleEdge | null; +} +export interface DeleteViewTablePayload { + clientMutationId?: string | null; + /** The `ViewTable` that was deleted by this mutation. */ + viewTable?: ViewTable | null; + viewTableEdge?: ViewTableEdge | null; +} +export interface DeleteApiSchemaPayload { + clientMutationId?: string | null; + /** The `ApiSchema` that was deleted by this mutation. */ + 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 { + clientMutationId?: string | null; + /** The `AppPermissionDefault` that was deleted by this mutation. */ + appPermissionDefault?: AppPermissionDefault | null; + appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; +} +export interface DeleteRefPayload { + clientMutationId?: string | null; + /** The `Ref` that was deleted by this mutation. */ + ref?: Ref | null; + refEdge?: RefEdge | null; +} +export interface DeleteStorePayload { + clientMutationId?: string | null; + /** The `Store` that was deleted by this mutation. */ + 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. */ + encryptedSecretsModule?: EncryptedSecretsModule | null; + encryptedSecretsModuleEdge?: EncryptedSecretsModuleEdge | null; +} +export interface DeleteMembershipTypesModulePayload { + clientMutationId?: string | null; + /** The `MembershipTypesModule` that was deleted by this mutation. */ + membershipTypesModule?: MembershipTypesModule | null; + membershipTypesModuleEdge?: MembershipTypesModuleEdge | null; +} +export interface DeleteSecretsModulePayload { + clientMutationId?: string | null; + /** The `SecretsModule` that was deleted by this mutation. */ + secretsModule?: SecretsModule | null; + secretsModuleEdge?: SecretsModuleEdge | null; +} +export interface DeleteUuidModulePayload { + clientMutationId?: string | null; + /** The `UuidModule` that was deleted by this mutation. */ + uuidModule?: UuidModule | null; + uuidModuleEdge?: UuidModuleEdge | null; +} +export interface DeleteRoleTypePayload { + clientMutationId?: string | null; + /** The `RoleType` that was deleted by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; +} +export interface DeleteOrgPermissionDefaultPayload { + clientMutationId?: string | null; + /** The `OrgPermissionDefault` that was deleted by this mutation. */ + orgPermissionDefault?: OrgPermissionDefault | null; + orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; +} +export interface DeleteSchemaGrantPayload { + clientMutationId?: string | null; + /** The `SchemaGrant` that was deleted by this mutation. */ + schemaGrant?: SchemaGrant | null; + schemaGrantEdge?: SchemaGrantEdge | null; +} +export interface DeleteTriggerFunctionPayload { + clientMutationId?: string | null; + /** The `TriggerFunction` that was deleted by this mutation. */ + 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. */ + viewRule?: ViewRule | null; + viewRuleEdge?: ViewRuleEdge | null; +} +export interface DeleteAppAdminGrantPayload { + clientMutationId?: string | null; + /** The `AppAdminGrant` that was deleted by this mutation. */ + appAdminGrant?: AppAdminGrant | null; + appAdminGrantEdge?: AppAdminGrantEdge | null; +} +export interface DeleteAppOwnerGrantPayload { + clientMutationId?: string | null; + /** The `AppOwnerGrant` that was deleted by this mutation. */ + 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 DeleteApiPayload { + clientMutationId?: string | null; + /** The `Api` that was deleted by this mutation. */ + api?: Api | null; + apiEdge?: ApiEdge | null; +} +export interface DeleteConnectedAccountsModulePayload { + clientMutationId?: string | null; + /** The `ConnectedAccountsModule` that was deleted by this mutation. */ + connectedAccountsModule?: ConnectedAccountsModule | null; + connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; +} +export interface DeleteEmailsModulePayload { + clientMutationId?: string | null; + /** The `EmailsModule` that was deleted by this mutation. */ + emailsModule?: EmailsModule | null; + emailsModuleEdge?: EmailsModuleEdge | null; +} +export interface DeletePhoneNumbersModulePayload { + clientMutationId?: string | null; + /** The `PhoneNumbersModule` that was deleted by this mutation. */ + 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. */ + usersModule?: UsersModule | null; + usersModuleEdge?: UsersModuleEdge | null; +} +export interface DeleteOrgAdminGrantPayload { + clientMutationId?: string | null; + /** The `OrgAdminGrant` that was deleted by this mutation. */ + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; +} +export interface DeleteOrgOwnerGrantPayload { + clientMutationId?: string | null; + /** The `OrgOwnerGrant` that was deleted by this mutation. */ + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; +} +export interface DeleteCryptoAddressPayload { + clientMutationId?: string | null; + /** The `CryptoAddress` that was deleted by this mutation. */ + cryptoAddress?: CryptoAddress | null; + cryptoAddressEdge?: CryptoAddressEdge | null; +} +export interface DeleteMembershipTypePayload { + clientMutationId?: string | null; + /** The `MembershipType` that was deleted by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; +} +export interface DeleteDatabasePayload { + clientMutationId?: string | null; + /** The `Database` that was deleted by this mutation. */ + database?: Database | null; + databaseEdge?: DatabaseEdge | null; +} +export interface DeleteLimitFunctionPayload { + clientMutationId?: string | null; + /** The `LimitFunction` that was deleted by this mutation. */ + limitFunction?: LimitFunction | null; + limitFunctionEdge?: LimitFunctionEdge | null; +} +export interface DeleteTableGrantPayload { + clientMutationId?: string | null; + /** The `TableGrant` that was deleted by this mutation. */ + 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. */ + appPermission?: AppPermission | null; + appPermissionEdge?: AppPermissionEdge | null; +} +export interface DeleteOrgPermissionPayload { + clientMutationId?: string | null; + /** The `OrgPermission` that was deleted by this mutation. */ + orgPermission?: OrgPermission | null; + orgPermissionEdge?: OrgPermissionEdge | null; +} +export interface DeleteAppLimitPayload { + clientMutationId?: string | null; + /** The `AppLimit` that was deleted by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; +} +export interface DeleteAppAchievementPayload { + clientMutationId?: string | null; + /** The `AppAchievement` that was deleted by this mutation. */ + appAchievement?: AppAchievement | null; + appAchievementEdge?: AppAchievementEdge | null; +} +export interface DeleteAppStepPayload { + clientMutationId?: string | null; + /** The `AppStep` that was deleted by this mutation. */ + appStep?: AppStep | null; + appStepEdge?: AppStepEdge | null; +} +export interface DeleteClaimedInvitePayload { + clientMutationId?: string | null; + /** The `ClaimedInvite` that was deleted by this mutation. */ + claimedInvite?: ClaimedInvite | null; + claimedInviteEdge?: ClaimedInviteEdge | null; +} +export interface DeleteAppMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `AppMembershipDefault` that was deleted by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export interface DeleteSiteMetadatumPayload { + clientMutationId?: string | null; + /** The `SiteMetadatum` that was deleted by this mutation. */ + 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. */ + object?: Object | null; + objectEdge?: ObjectEdge | null; +} +export interface DeleteFullTextSearchPayload { + clientMutationId?: string | null; + /** The `FullTextSearch` that was deleted by this mutation. */ + fullTextSearch?: FullTextSearch | null; + fullTextSearchEdge?: FullTextSearchEdge | null; +} +export interface DeleteCommitPayload { + clientMutationId?: string | null; + /** The `Commit` that was deleted by this mutation. */ + commit?: Commit | null; + commitEdge?: CommitEdge | null; +} +export interface DeleteOrgLimitPayload { + clientMutationId?: string | null; + /** The `OrgLimit` that was deleted by this mutation. */ + orgLimit?: OrgLimit | null; + orgLimitEdge?: OrgLimitEdge | null; +} +export interface DeleteAppGrantPayload { + clientMutationId?: string | null; + /** The `AppGrant` that was deleted by this mutation. */ + appGrant?: AppGrant | null; + appGrantEdge?: AppGrantEdge | null; +} +export interface DeleteOrgClaimedInvitePayload { + clientMutationId?: string | null; + /** The `OrgClaimedInvite` that was deleted by this mutation. */ + orgClaimedInvite?: OrgClaimedInvite | null; + orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; +} +export interface DeleteDomainPayload { + clientMutationId?: string | null; + /** The `Domain` that was deleted by this mutation. */ + domain?: Domain | null; + domainEdge?: DomainEdge | null; +} +export interface DeleteOrgGrantPayload { + clientMutationId?: string | null; + /** The `OrgGrant` that was deleted by this mutation. */ + orgGrant?: OrgGrant | null; + orgGrantEdge?: OrgGrantEdge | null; +} +export interface DeleteOrgMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `OrgMembershipDefault` that was deleted by this mutation. */ + 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 { + clientMutationId?: string | null; + /** The `Email` that was deleted by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; +} +export interface DeleteAppLevelRequirementPayload { + clientMutationId?: string | null; + /** The `AppLevelRequirement` that was deleted by this mutation. */ + appLevelRequirement?: AppLevelRequirement | null; + appLevelRequirementEdge?: AppLevelRequirementEdge | null; +} +export interface DeleteAuditLogPayload { + clientMutationId?: string | null; + /** The `AuditLog` that was deleted by this mutation. */ + auditLog?: AuditLog | null; + auditLogEdge?: AuditLogEdge | null; +} +export interface DeleteAppLevelPayload { + clientMutationId?: string | null; + /** The `AppLevel` that was deleted by this mutation. */ + appLevel?: AppLevel | null; + appLevelEdge?: AppLevelEdge | null; +} +export interface DeleteRlsModulePayload { + clientMutationId?: string | null; + /** The `RlsModule` that was deleted by this mutation. */ + rlsModule?: RlsModule | null; + rlsModuleEdge?: RlsModuleEdge | null; +} +export interface DeleteDenormalizedTableFieldPayload { + clientMutationId?: string | null; + /** The `DenormalizedTableField` that was deleted by this mutation. */ + denormalizedTableField?: DenormalizedTableField | null; + denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; +} +export interface DeleteCryptoAuthModulePayload { + clientMutationId?: string | null; + /** The `CryptoAuthModule` that was deleted by this mutation. */ + cryptoAuthModule?: CryptoAuthModule | null; + cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; +} +export interface DeleteDatabaseProvisionModulePayload { + clientMutationId?: string | null; + /** The `DatabaseProvisionModule` that was deleted by this mutation. */ + databaseProvisionModule?: DatabaseProvisionModule | null; + databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; +} +export interface DeleteInvitesModulePayload { + clientMutationId?: string | null; + /** The `InvitesModule` that was deleted by this mutation. */ + invitesModule?: InvitesModule | null; + invitesModuleEdge?: InvitesModuleEdge | null; +} +export interface DeleteViewPayload { + clientMutationId?: string | null; + /** The `View` that was deleted by this mutation. */ + 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 { + clientMutationId?: string | null; + /** The `PrimaryKeyConstraint` that was deleted by this mutation. */ + primaryKeyConstraint?: PrimaryKeyConstraint | null; + primaryKeyConstraintEdge?: PrimaryKeyConstraintEdge | null; +} +export interface DeleteTriggerPayload { + clientMutationId?: string | null; + /** The `Trigger` that was deleted by this mutation. */ + trigger?: Trigger | null; + triggerEdge?: TriggerEdge | null; +} +export interface DeleteCheckConstraintPayload { + clientMutationId?: string | null; + /** The `CheckConstraint` that was deleted by this mutation. */ + checkConstraint?: CheckConstraint | null; + checkConstraintEdge?: CheckConstraintEdge | null; +} +export interface DeleteUniqueConstraintPayload { + clientMutationId?: string | null; + /** The `UniqueConstraint` that was deleted by this mutation. */ + uniqueConstraint?: UniqueConstraint | null; + uniqueConstraintEdge?: UniqueConstraintEdge | null; +} +export interface DeleteProcedurePayload { + clientMutationId?: string | null; + /** The `Procedure` that was deleted by this mutation. */ + procedure?: Procedure | null; + procedureEdge?: ProcedureEdge | null; +} +export interface DeletePolicyPayload { + clientMutationId?: string | null; + /** The `Policy` that was deleted by this mutation. */ + policy?: Policy | null; + policyEdge?: PolicyEdge | null; +} +export interface DeleteInvitePayload { + clientMutationId?: string | null; + /** The `Invite` that was deleted by this mutation. */ + invite?: Invite | null; + inviteEdge?: InviteEdge | null; +} +export interface DeleteIndexPayload { + clientMutationId?: string | null; + /** The `Index` that was deleted by this mutation. */ + index?: Index | null; + indexEdge?: IndexEdge | null; +} +export interface DeleteLimitsModulePayload { + clientMutationId?: string | null; + /** The `LimitsModule` that was deleted by this mutation. */ + 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 { + clientMutationId?: string | null; + /** The `OrgInvite` that was deleted by this mutation. */ + orgInvite?: OrgInvite | null; + orgInviteEdge?: OrgInviteEdge | null; +} +export interface DeleteHierarchyModulePayload { + clientMutationId?: string | null; + /** The `HierarchyModule` that was deleted by this mutation. */ + hierarchyModule?: HierarchyModule | null; + hierarchyModuleEdge?: HierarchyModuleEdge | null; +} +export interface DeleteForeignKeyConstraintPayload { + clientMutationId?: string | null; + /** The `ForeignKeyConstraint` that was deleted by this mutation. */ + foreignKeyConstraint?: ForeignKeyConstraint | null; + foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null; +} +export interface DeleteTablePayload { + clientMutationId?: string | null; + /** The `Table` that was deleted by this mutation. */ + table?: Table | null; + tableEdge?: TableEdge | null; +} +export interface DeleteLevelsModulePayload { + clientMutationId?: string | null; + /** The `LevelsModule` that was deleted by this mutation. */ + levelsModule?: LevelsModule | null; + levelsModuleEdge?: LevelsModuleEdge | null; +} +export interface DeleteUserAuthModulePayload { + clientMutationId?: string | null; + /** The `UserAuthModule` that was deleted by this mutation. */ + userAuthModule?: UserAuthModule | null; + userAuthModuleEdge?: UserAuthModuleEdge | null; +} +export interface DeleteFieldPayload { + clientMutationId?: string | null; + /** The `Field` that was deleted by this mutation. */ + field?: Field | null; + fieldEdge?: FieldEdge | 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 { + cursor?: string | null; + /** The `GetAllRecord` at the end of the edge. */ + node?: GetAllRecord | null; +} +/** Information about pagination in a connection. */ +export interface PageInfo { + /** When paginating forwards, are there more items? */ + hasNextPage: boolean; + /** When paginating backwards, are there more items? */ + hasPreviousPage: boolean; + /** When paginating backwards, the cursor to continue. */ + startCursor?: string | null; + /** When paginating forwards, the cursor to continue. */ + endCursor?: string | 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; + /** The `OrgPermission` at the end of the edge. */ + node?: OrgPermission | null; +} +/** A `Object` edge in the connection. */ +export interface ObjectEdge { + cursor?: string | null; + /** The `Object` at the end of the edge. */ + node?: Object | null; +} +/** A `AppLevelRequirement` edge in the connection. */ +export interface AppLevelRequirementEdge { + cursor?: string | null; + /** The `AppLevelRequirement` at the end of the edge. */ + node?: AppLevelRequirement | null; +} +/** A `DefaultIdsModule` edge in the connection. */ +export interface DefaultIdsModuleEdge { + cursor?: string | null; + /** The `DefaultIdsModule` at the end of the edge. */ + node?: DefaultIdsModule | null; +} +/** A `ViewTable` edge in the connection. */ +export interface ViewTableEdge { + cursor?: string | null; + /** The `ViewTable` at the end of the edge. */ + node?: ViewTable | null; +} +/** A `ApiSchema` edge in the connection. */ +export interface ApiSchemaEdge { + cursor?: string | null; + /** 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 { + cursor?: string | null; + /** The `AppPermissionDefault` at the end of the edge. */ + node?: AppPermissionDefault | null; +} +/** A `Ref` edge in the connection. */ +export interface RefEdge { + cursor?: string | null; + /** The `Ref` at the end of the edge. */ + node?: Ref | null; +} +/** A `Store` edge in the connection. */ +export interface StoreEdge { + cursor?: string | null; + /** 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; + /** The `EncryptedSecretsModule` at the end of the edge. */ + node?: EncryptedSecretsModule | null; +} +/** A `MembershipTypesModule` edge in the connection. */ +export interface MembershipTypesModuleEdge { + cursor?: string | null; + /** The `MembershipTypesModule` at the end of the edge. */ + node?: MembershipTypesModule | null; +} +/** A `SecretsModule` edge in the connection. */ +export interface SecretsModuleEdge { + cursor?: string | null; + /** The `SecretsModule` at the end of the edge. */ + node?: SecretsModule | null; +} +/** A `UuidModule` edge in the connection. */ +export interface UuidModuleEdge { + cursor?: string | null; + /** The `UuidModule` at the end of the edge. */ + node?: UuidModule | null; +} +/** A `RoleType` edge in the connection. */ +export interface RoleTypeEdge { + cursor?: string | null; + /** The `RoleType` at the end of the edge. */ + node?: RoleType | null; +} +/** A `OrgPermissionDefault` edge in the connection. */ +export interface OrgPermissionDefaultEdge { + cursor?: string | null; + /** The `OrgPermissionDefault` at the end of the edge. */ + node?: OrgPermissionDefault | null; +} +/** A `SchemaGrant` edge in the connection. */ +export interface SchemaGrantEdge { + cursor?: string | null; + /** The `SchemaGrant` at the end of the edge. */ + node?: SchemaGrant | null; +} +/** A `TriggerFunction` edge in the connection. */ +export interface TriggerFunctionEdge { + cursor?: string | null; + /** 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; + /** The `ViewRule` at the end of the edge. */ + node?: ViewRule | null; +} +/** A `AppAdminGrant` edge in the connection. */ +export interface AppAdminGrantEdge { + cursor?: string | null; + /** The `AppAdminGrant` at the end of the edge. */ + node?: AppAdminGrant | null; +} +/** A `AppOwnerGrant` edge in the connection. */ +export interface AppOwnerGrantEdge { + cursor?: string | null; + /** 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 `Api` edge in the connection. */ +export interface ApiEdge { + cursor?: string | null; + /** The `Api` at the end of the edge. */ + node?: Api | null; +} +/** A `ConnectedAccountsModule` edge in the connection. */ +export interface ConnectedAccountsModuleEdge { + cursor?: string | null; + /** The `ConnectedAccountsModule` at the end of the edge. */ + node?: ConnectedAccountsModule | null; +} +/** A `EmailsModule` edge in the connection. */ +export interface EmailsModuleEdge { + cursor?: string | null; + /** The `EmailsModule` at the end of the edge. */ + node?: EmailsModule | null; +} +/** A `PhoneNumbersModule` edge in the connection. */ +export interface PhoneNumbersModuleEdge { + cursor?: string | null; + /** 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; + /** The `UsersModule` at the end of the edge. */ + node?: UsersModule | null; +} +/** A `OrgAdminGrant` edge in the connection. */ +export interface OrgAdminGrantEdge { + cursor?: string | null; + /** The `OrgAdminGrant` at the end of the edge. */ + node?: OrgAdminGrant | null; +} +/** A `OrgOwnerGrant` edge in the connection. */ +export interface OrgOwnerGrantEdge { + cursor?: string | null; + /** The `OrgOwnerGrant` at the end of the edge. */ + node?: OrgOwnerGrant | null; +} +/** A `CryptoAddress` edge in the connection. */ +export interface CryptoAddressEdge { + cursor?: string | null; + /** The `CryptoAddress` at the end of the edge. */ + node?: CryptoAddress | 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 `Database` edge in the connection. */ +export interface DatabaseEdge { + cursor?: string | null; + /** 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; + /** The `CryptoAddressesModule` at the end of the edge. */ + node?: CryptoAddressesModule | null; +} +/** A `ConnectedAccount` edge in the connection. */ +export interface ConnectedAccountEdge { + cursor?: string | null; + /** The `ConnectedAccount` at the end of the edge. */ + node?: ConnectedAccount | null; +} +/** A `PhoneNumber` edge in the connection. */ +export interface PhoneNumberEdge { + cursor?: string | null; + /** The `PhoneNumber` at the end of the edge. */ + node?: PhoneNumber | null; +} +/** A `AppLimit` edge in the connection. */ +export interface AppLimitEdge { + cursor?: string | null; + /** The `AppLimit` at the end of the edge. */ + node?: AppLimit | null; +} +/** A `AppAchievement` edge in the connection. */ +export interface AppAchievementEdge { + cursor?: string | null; + /** The `AppAchievement` at the end of the edge. */ + node?: AppAchievement | null; +} +/** A `AppStep` edge in the connection. */ +export interface AppStepEdge { + cursor?: string | null; + /** The `AppStep` at the end of the edge. */ + node?: AppStep | null; +} +/** A `ClaimedInvite` edge in the connection. */ +export interface ClaimedInviteEdge { + cursor?: string | null; + /** The `ClaimedInvite` at the end of the edge. */ + node?: ClaimedInvite | null; +} +/** A `AppMembershipDefault` edge in the connection. */ +export interface AppMembershipDefaultEdge { + cursor?: string | null; + /** The `AppMembershipDefault` at the end of the edge. */ + node?: AppMembershipDefault | null; +} +/** A `SiteMetadatum` edge in the connection. */ +export interface SiteMetadatumEdge { + cursor?: string | null; + /** 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; + /** The `FullTextSearch` at the end of the edge. */ + node?: FullTextSearch | null; +} +/** A `Commit` edge in the connection. */ +export interface CommitEdge { + cursor?: string | null; + /** The `Commit` at the end of the edge. */ + node?: Commit | null; +} +/** A `OrgLimit` edge in the connection. */ +export interface OrgLimitEdge { + cursor?: string | null; + /** The `OrgLimit` at the end of the edge. */ + node?: OrgLimit | null; +} +/** A `AppGrant` edge in the connection. */ +export interface AppGrantEdge { + cursor?: string | null; + /** The `AppGrant` at the end of the edge. */ + node?: AppGrant | null; +} +/** A `OrgClaimedInvite` edge in the connection. */ +export interface OrgClaimedInviteEdge { + cursor?: string | null; + /** The `OrgClaimedInvite` at the end of the edge. */ + node?: OrgClaimedInvite | 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 `OrgGrant` edge in the connection. */ +export interface OrgGrantEdge { + cursor?: string | null; + /** The `OrgGrant` at the end of the edge. */ + node?: OrgGrant | 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 `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 { + 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 `AppLevel` edge in the connection. */ +export interface AppLevelEdge { + cursor?: string | null; + /** The `AppLevel` at the end of the edge. */ + node?: AppLevel | null; +} +/** A `RlsModule` edge in the connection. */ +export interface RlsModuleEdge { + cursor?: string | null; + /** The `RlsModule` at the end of the edge. */ + node?: RlsModule | null; +} +/** A `DenormalizedTableField` edge in the connection. */ +export interface DenormalizedTableFieldEdge { + cursor?: string | null; + /** The `DenormalizedTableField` at the end of the edge. */ + node?: DenormalizedTableField | null; +} +/** A `SqlMigration` edge in the connection. */ +export interface SqlMigrationEdge { + cursor?: string | null; + /** The `SqlMigration` at the end of the edge. */ + node?: SqlMigration | null; +} +/** A `CryptoAuthModule` edge in the connection. */ +export interface CryptoAuthModuleEdge { + cursor?: string | null; + /** The `CryptoAuthModule` at the end of the edge. */ + node?: CryptoAuthModule | null; +} +/** A `DatabaseProvisionModule` edge in the connection. */ +export interface DatabaseProvisionModuleEdge { + cursor?: string | null; + /** The `DatabaseProvisionModule` at the end of the edge. */ + node?: DatabaseProvisionModule | null; +} +/** A `InvitesModule` edge in the connection. */ +export interface InvitesModuleEdge { + cursor?: string | null; + /** The `InvitesModule` at the end of the edge. */ + node?: InvitesModule | null; +} +/** A `View` edge in the connection. */ +export interface ViewEdge { + cursor?: string | null; + /** The `View` at the end of the edge. */ + node?: View | 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 { + cursor?: string | null; + /** The `AppMembership` at the end of the edge. */ + node?: AppMembership | null; +} +/** A `OrgMembership` edge in the connection. */ +export interface OrgMembershipEdge { + cursor?: string | null; + /** The `OrgMembership` at the end of the edge. */ + node?: OrgMembership | null; +} +/** A `App` edge in the connection. */ +export interface AppEdge { + cursor?: string | null; + /** The `App` at the end of the edge. */ + node?: App | null; +} +/** A `Site` edge in the connection. */ +export interface SiteEdge { + cursor?: string | null; + /** The `Site` at the end of the edge. */ + node?: Site | null; +} +/** A `User` edge in the connection. */ +export interface UserEdge { + cursor?: string | null; + /** 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 { + cursor?: string | null; + /** The `Trigger` at the end of the edge. */ + node?: Trigger | 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 `UniqueConstraint` edge in the connection. */ +export interface UniqueConstraintEdge { + cursor?: string | null; + /** The `UniqueConstraint` at the end of the edge. */ + node?: UniqueConstraint | null; +} +/** A `Procedure` edge in the connection. */ +export interface ProcedureEdge { + cursor?: string | null; + /** The `Procedure` at the end of the edge. */ + node?: Procedure | 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 `Invite` edge in the connection. */ +export interface InviteEdge { + cursor?: string | null; + /** 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 { + cursor?: string | null; + /** The `ProfilesModule` at the end of the edge. */ + node?: ProfilesModule | null; +} +/** A `OrgInvite` edge in the connection. */ +export interface OrgInviteEdge { + cursor?: string | null; + /** 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; + /** The `ForeignKeyConstraint` at the end of the edge. */ + node?: ForeignKeyConstraint | null; +} +/** A `Table` edge in the connection. */ +export interface TableEdge { + cursor?: string | null; + /** The `Table` at the end of the edge. */ + node?: Table | null; +} +/** A `LevelsModule` edge in the connection. */ +export interface LevelsModuleEdge { + cursor?: string | null; + /** The `LevelsModule` at the end of the edge. */ + node?: LevelsModule | null; +} +/** A `UserAuthModule` edge in the connection. */ +export interface UserAuthModuleEdge { + cursor?: string | null; + /** The `UserAuthModule` at the end of the edge. */ + node?: UserAuthModule | null; +} +/** A `Field` edge in the connection. */ +export interface FieldEdge { + cursor?: string | null; + /** The `Field` at the end of the edge. */ + node?: Field | null; +} +/** A `MembershipsModule` edge in the connection. */ +export interface MembershipsModuleEdge { + cursor?: string | null; + /** The `MembershipsModule` at the end of the edge. */ + node?: MembershipsModule | null; +} +/** Information about a database table */ +export interface MetaTable { + name: string; + schemaName: string; + fields: MetaField[]; + indexes: MetaIndex[]; + constraints: MetaConstraints; + foreignKeyConstraints: MetaForeignKeyConstraint[]; + primaryKeyConstraints: MetaPrimaryKeyConstraint[]; + uniqueConstraints: MetaUniqueConstraint[]; + relations: MetaRelations; + inflection: MetaInflection; + query: MetaQuery; +} +export interface BootstrapUserRecord { + outUserId?: string | null; + outEmail?: string | null; + outUsername?: string | null; + outDisplayName?: string | null; + outIsAdmin?: boolean | null; + outIsOwner?: boolean | null; + outIsSudo?: boolean | null; + outApiKey?: string | null; +} +export interface ProvisionDatabaseWithUserRecord { + outDatabaseId?: string | null; + outApiKey?: string | null; +} +export interface SignInOneTimeTokenRecord { + id?: string | null; + userId?: string | null; + accessToken?: string | null; + accessTokenExpiresAt?: string | null; + isVerified?: boolean | null; + totpEnabled?: boolean | null; +} +export interface ExtendTokenExpiresRecord { + id?: string | null; + sessionId?: string | null; + expiresAt?: string | null; +} +export interface SignInRecord { + id?: string | null; + userId?: string | null; + accessToken?: string | null; + accessTokenExpiresAt?: string | null; + isVerified?: boolean | null; + totpEnabled?: boolean | null; +} +export interface SignUpRecord { + id?: string | null; + userId?: string | null; + accessToken?: string | null; + accessTokenExpiresAt?: string | null; + isVerified?: boolean | null; + totpEnabled?: boolean | null; +} +export interface Session { + id: string; + userId?: string | null; + isAnonymous: boolean; + expiresAt: string; + revokedAt?: string | null; + origin?: ConstructiveInternalTypeOrigin | null; + ip?: string | null; + uagent?: string | null; + fingerprintMode: string; + lastPasswordVerified?: string | null; + lastMfaVerified?: string | null; + csrfSecret?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +/** Information about a table field/column */ +export interface MetaField { + name: string; + type: MetaType; + isNotNull: boolean; + hasDefault: boolean; +} +/** Information about a database index */ +export interface MetaIndex { + name: string; + isUnique: boolean; + isPrimary: boolean; + columns: string[]; + fields?: MetaField[] | null; +} +/** Table constraints */ +export interface MetaConstraints { + primaryKey?: MetaPrimaryKeyConstraint | null; + unique: MetaUniqueConstraint[]; + foreignKey: MetaForeignKeyConstraint[]; +} +/** Information about a foreign key constraint */ +export interface MetaForeignKeyConstraint { + name: string; + fields: MetaField[]; + referencedTable: string; + referencedFields: string[]; + refFields?: MetaField[] | null; + refTable?: MetaRefTable | null; +} +/** Information about a primary key constraint */ +export interface MetaPrimaryKeyConstraint { + name: string; + fields: MetaField[]; +} +/** Information about a unique constraint */ +export interface MetaUniqueConstraint { + name: string; + fields: MetaField[]; +} +/** Table relations */ +export interface MetaRelations { + belongsTo: MetaBelongsToRelation[]; + has: MetaHasRelation[]; + hasOne: MetaHasRelation[]; + hasMany: MetaHasRelation[]; + manyToMany: MetaManyToManyRelation[]; +} +/** Table inflection names */ +export interface MetaInflection { + tableType: string; + allRows: string; + connection: string; + edge: string; + filterType?: string | null; + orderByType: string; + conditionType: string; + patchType?: string | null; + createInputType: string; + createPayloadType: string; + updatePayloadType?: string | null; + deletePayloadType: string; +} +/** Table query/mutation names */ +export interface MetaQuery { + all: string; + one?: string | null; + create?: string | null; + update?: string | null; + delete?: string | null; +} +/** Information about a PostgreSQL type */ +export interface MetaType { + pgType: string; + gqlType: string; + isArray: boolean; + isNotNull?: boolean | null; + hasDefault?: boolean | null; +} +/** Reference to a related table */ +export interface MetaRefTable { + name: string; +} +/** A belongs-to (forward FK) relation */ +export interface MetaBelongsToRelation { + fieldName?: string | null; + isUnique: boolean; + type?: string | null; + keys: MetaField[]; + references: MetaRefTable; +} +/** A has-one or has-many (reverse FK) relation */ +export interface MetaHasRelation { + fieldName?: string | null; + isUnique: boolean; + type?: string | null; + keys: MetaField[]; + referencedBy: MetaRefTable; +} +/** A many-to-many relation via junction table */ +export interface MetaManyToManyRelation { + fieldName?: string | null; + type?: string | null; + junctionTable: MetaRefTable; + junctionLeftConstraint: MetaForeignKeyConstraint; + junctionLeftKeyAttributes: MetaField[]; + junctionRightConstraint: MetaForeignKeyConstraint; + junctionRightKeyAttributes: MetaField[]; + leftKeyAttributes: MetaField[]; + rightKeyAttributes: MetaField[]; + rightTable: MetaRefTable; +} diff --git a/sdk/constructive-react/src/public/types.ts b/sdk/constructive-react/src/public/types.ts new file mode 100644 index 000000000..ef7ecf2ed --- /dev/null +++ b/sdk/constructive-react/src/public/types.ts @@ -0,0 +1,1360 @@ +/** + * Entity types and filter types + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import type { ObjectCategory } from './schema-types'; +export type ConstructiveInternalTypeAttachment = unknown; +export type ConstructiveInternalTypeEmail = unknown; +export type ConstructiveInternalTypeHostname = unknown; +export type ConstructiveInternalTypeImage = unknown; +export type ConstructiveInternalTypeOrigin = unknown; +export type ConstructiveInternalTypeUrl = unknown; +export interface GetAllRecord { + path: string[] | null; + data: unknown | null; +} +export interface AppPermission { + id: string | null; + name: string | null; + bitnum: number | null; + bitstr: string | null; + description: string | null; +} +export interface OrgPermission { + id: string | null; + name: string | null; + bitnum: number | null; + bitstr: string | null; + description: string | null; +} +export interface Object { + hashUuid: string | null; + id: string | null; + databaseId: string | null; + kids: string[] | null; + ktree: string[] | null; + data: unknown | null; + frzn: boolean | null; + createdAt: string | null; +} +export interface AppLevelRequirement { + id: string | null; + name: string | null; + level: string | null; + description: string | null; + requiredCount: number | null; + priority: number | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface Database { + id: string | null; + ownerId: string | null; + schemaHash: string | null; + name: string | null; + label: string | null; + hash: string | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface Schema { + id: string | null; + databaseId: string | null; + name: string | null; + schemaName: string | null; + label: string | null; + description: string | null; + smartTags: unknown | null; + category: ObjectCategory | null; + module: string | null; + scope: number | null; + tags: string[] | null; + isPublic: boolean | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface Table { + id: string | null; + databaseId: string | null; + schemaId: string | null; + name: string | null; + label: string | null; + description: string | null; + smartTags: unknown | null; + category: ObjectCategory | null; + module: string | null; + scope: number | null; + useRls: boolean | null; + timestamps: boolean | null; + peoplestamps: boolean | null; + pluralName: string | null; + singularName: string | null; + tags: string[] | null; + inheritsId: string | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface CheckConstraint { + id: string | null; + databaseId: string | null; + tableId: string | null; + name: string | null; + type: string | null; + fieldIds: string[] | null; + expr: unknown | null; + smartTags: unknown | null; + category: ObjectCategory | null; + module: string | null; + scope: number | null; + tags: string[] | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface Field { + id: string | null; + databaseId: string | null; + tableId: string | null; + name: string | null; + label: string | null; + description: string | null; + smartTags: unknown | null; + isRequired: boolean | null; + defaultValue: string | null; + defaultValueAst: unknown | null; + isHidden: boolean | null; + type: string | null; + fieldOrder: number | null; + regexp: string | null; + chk: unknown | null; + chkExpr: unknown | null; + min: number | null; + max: number | null; + tags: string[] | null; + category: ObjectCategory | null; + module: string | null; + scope: number | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface ForeignKeyConstraint { + id: string | null; + databaseId: string | null; + tableId: string | null; + name: string | null; + description: string | null; + smartTags: unknown | null; + type: string | null; + fieldIds: string[] | null; + refTableId: string | null; + refFieldIds: string[] | null; + deleteAction: string | null; + updateAction: string | null; + category: ObjectCategory | null; + module: string | null; + scope: number | null; + tags: string[] | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface FullTextSearch { + id: string | null; + databaseId: string | null; + tableId: string | null; + fieldId: string | null; + fieldIds: string[] | null; + weights: string[] | null; + langs: string[] | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface Index { + id: string | null; + databaseId: string | null; + tableId: string | null; + name: string | null; + fieldIds: string[] | null; + includeFieldIds: string[] | null; + accessMethod: string | null; + indexParams: unknown | null; + whereClause: unknown | null; + isUnique: boolean | null; + smartTags: unknown | null; + category: ObjectCategory | null; + module: string | null; + scope: number | null; + tags: string[] | null; + 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; + privilege: string | null; + permissive: boolean | null; + disabled: boolean | null; + policyType: string | null; + data: unknown | null; + smartTags: unknown | null; + category: ObjectCategory | null; + module: string | null; + scope: number | null; + tags: string[] | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface PrimaryKeyConstraint { + id: string | null; + databaseId: string | null; + tableId: string | null; + name: string | null; + type: string | null; + fieldIds: 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 TableGrant { + id: string | null; + databaseId: string | null; + tableId: string | null; + privilege: string | null; + roleName: string | null; + fieldIds: string[] | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface Trigger { + id: string | null; + databaseId: string | null; + tableId: string | null; + name: string | null; + event: string | null; + functionName: 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 UniqueConstraint { + id: string | null; + databaseId: string | null; + tableId: string | null; + name: string | null; + description: string | null; + smartTags: unknown | null; + type: string | null; + fieldIds: string[] | null; + category: ObjectCategory | null; + module: string | null; + scope: number | null; + tags: string[] | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface View { + id: string | null; + databaseId: string | null; + schemaId: string | null; + name: string | null; + tableId: string | null; + viewType: string | null; + data: unknown | null; + filterType: string | null; + filterData: unknown | null; + securityInvoker: boolean | null; + isReadOnly: boolean | null; + smartTags: unknown | null; + category: ObjectCategory | null; + module: string | null; + scope: number | null; + tags: string[] | null; +} +export interface ViewTable { + id: string | null; + viewId: string | null; + tableId: string | null; + joinOrder: number | null; +} +export interface ViewGrant { + id: string | null; + databaseId: string | null; + viewId: string | null; + roleName: string | null; + privilege: string | null; + withGrantOption: boolean | null; +} +export interface ViewRule { + id: string | null; + databaseId: string | null; + viewId: string | null; + name: string | null; + event: string | null; + action: string | null; +} +export interface TableModule { + id: string | null; + databaseId: string | null; + privateSchemaId: string | null; + tableId: string | null; + nodeType: string | null; + data: unknown | null; + fields: string[] | null; +} +export interface TableTemplateModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: string | null; + tableId: string | null; + ownerTableId: string | null; + tableName: string | null; + nodeType: string | null; + data: unknown | null; +} +export interface SchemaGrant { + id: string | null; + databaseId: string | null; + schemaId: string | null; + granteeName: string | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface ApiSchema { + id: string | null; + databaseId: string | null; + schemaId: string | null; + apiId: string | null; +} +export interface ApiModule { + id: string | null; + databaseId: string | null; + apiId: string | null; + name: string | null; + data: unknown | null; +} +export interface Domain { + id: string | null; + databaseId: string | null; + apiId: string | null; + siteId: string | null; + subdomain: ConstructiveInternalTypeHostname | null; + domain: ConstructiveInternalTypeHostname | null; +} +export interface SiteMetadatum { + id: string | null; + databaseId: string | null; + siteId: string | null; + title: string | null; + description: string | null; + ogImage: ConstructiveInternalTypeImage | null; +} +export interface SiteModule { + id: string | null; + databaseId: string | null; + siteId: string | null; + name: string | null; + data: unknown | null; +} +export interface SiteTheme { + id: string | null; + databaseId: string | null; + 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; + name: string | null; + code: string | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface Api { + id: string | null; + databaseId: string | null; + name: string | null; + dbname: string | null; + roleName: string | null; + anonRole: string | null; + isPublic: boolean | null; +} +export interface Site { + id: string | null; + databaseId: string | null; + title: string | null; + description: string | null; + ogImage: ConstructiveInternalTypeImage | null; + favicon: ConstructiveInternalTypeAttachment | null; + appleTouchIcon: ConstructiveInternalTypeImage | null; + logo: ConstructiveInternalTypeImage | null; + dbname: string | null; +} +export interface App { + id: string | null; + databaseId: string | null; + siteId: string | null; + name: string | null; + appImage: ConstructiveInternalTypeImage | null; + appStoreLink: ConstructiveInternalTypeUrl | null; + appStoreId: string | null; + appIdPrefix: string | null; + playStoreLink: ConstructiveInternalTypeUrl | null; +} +export interface ConnectedAccountsModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: string | null; + tableId: string | null; + ownerTableId: string | null; + tableName: string | null; +} +export interface CryptoAddressesModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: string | null; + tableId: string | null; + ownerTableId: string | null; + tableName: string | null; + cryptoNetwork: string | null; +} +export interface CryptoAuthModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + usersTableId: string | null; + secretsTableId: string | null; + sessionsTableId: string | null; + sessionCredentialsTableId: string | null; + addressesTableId: string | null; + userField: string | null; + cryptoNetwork: string | null; + signInRequestChallenge: string | null; + signInRecordFailure: string | null; + signUpWithKey: string | null; + signInWithChallenge: string | null; +} +export interface DefaultIdsModule { + id: string | null; + databaseId: string | null; +} +export interface DenormalizedTableField { + id: string | null; + databaseId: string | null; + tableId: string | null; + fieldId: string | null; + setIds: string[] | null; + refTableId: string | null; + refFieldId: string | null; + refIds: string[] | null; + useUpdates: boolean | null; + updateDefaults: boolean | null; + funcName: string | null; + funcOrder: number | null; +} +export interface EmailsModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: string | null; + tableId: string | null; + ownerTableId: string | null; + tableName: string | null; +} +export interface EncryptedSecretsModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + tableId: string | null; + tableName: string | null; +} +export interface FieldModule { + id: string | null; + databaseId: string | null; + privateSchemaId: string | null; + tableId: string | null; + fieldId: string | null; + nodeType: string | null; + data: unknown | null; + triggers: string[] | null; + functions: string[] | null; +} +export interface InvitesModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: string | null; + emailsTableId: string | null; + usersTableId: string | null; + invitesTableId: string | null; + claimedInvitesTableId: string | null; + invitesTableName: string | null; + claimedInvitesTableName: string | null; + submitInviteCodeFunction: string | null; + prefix: string | null; + membershipType: number | null; + entityTableId: string | null; +} +export interface LevelsModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: string | null; + stepsTableId: string | null; + stepsTableName: string | null; + achievementsTableId: string | null; + achievementsTableName: string | null; + levelsTableId: string | null; + levelsTableName: string | null; + levelRequirementsTableId: string | null; + levelRequirementsTableName: string | null; + completedStep: string | null; + incompletedStep: string | null; + tgAchievement: string | null; + tgAchievementToggle: string | null; + tgAchievementToggleBoolean: string | null; + tgAchievementBoolean: string | null; + upsertAchievement: string | null; + tgUpdateAchievements: string | null; + stepsRequired: string | null; + levelAchieved: string | null; + prefix: string | null; + membershipType: number | null; + entityTableId: string | null; + actorTableId: string | null; +} +export interface LimitsModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: string | null; + tableId: string | null; + tableName: string | null; + defaultTableId: string | null; + defaultTableName: string | null; + limitIncrementFunction: string | null; + limitDecrementFunction: string | null; + limitIncrementTrigger: string | null; + limitDecrementTrigger: string | null; + limitUpdateTrigger: string | null; + limitCheckFunction: string | null; + prefix: string | null; + membershipType: number | null; + entityTableId: string | null; + actorTableId: string | null; +} +export interface MembershipTypesModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + tableId: string | null; + tableName: string | null; +} +export interface MembershipsModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: string | null; + membershipsTableId: string | null; + membershipsTableName: string | null; + membersTableId: string | null; + membersTableName: string | null; + membershipDefaultsTableId: string | null; + membershipDefaultsTableName: string | null; + grantsTableId: string | null; + grantsTableName: string | null; + actorTableId: string | null; + limitsTableId: string | null; + defaultLimitsTableId: string | null; + permissionsTableId: string | null; + defaultPermissionsTableId: string | null; + sprtTableId: string | null; + adminGrantsTableId: string | null; + adminGrantsTableName: string | null; + ownerGrantsTableId: string | null; + ownerGrantsTableName: string | null; + membershipType: number | null; + entityTableId: string | null; + entityTableOwnerId: string | null; + prefix: string | null; + actorMaskCheck: string | null; + actorPermCheck: string | null; + entityIdsByMask: string | null; + entityIdsByPerm: string | null; + entityIdsFunction: string | null; +} +export interface PermissionsModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: string | null; + tableId: string | null; + tableName: string | null; + defaultTableId: string | null; + defaultTableName: string | null; + bitlen: number | null; + membershipType: number | null; + entityTableId: string | null; + actorTableId: string | null; + prefix: string | null; + getPaddedMask: string | null; + getMask: string | null; + getByMask: string | null; + getMaskByName: string | null; +} +export interface PhoneNumbersModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: string | null; + tableId: string | null; + ownerTableId: string | null; + tableName: string | null; +} +export interface ProfilesModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: string | null; + tableId: string | null; + tableName: string | null; + profilePermissionsTableId: string | null; + profilePermissionsTableName: string | null; + profileGrantsTableId: string | null; + profileGrantsTableName: string | null; + profileDefinitionGrantsTableId: string | null; + profileDefinitionGrantsTableName: string | null; + bitlen: number | null; + membershipType: number | null; + entityTableId: string | null; + actorTableId: string | null; + permissionsTableId: string | null; + membershipsTableId: string | null; + prefix: string | null; +} +export interface RlsModule { + id: string | null; + databaseId: string | null; + apiId: string | null; + schemaId: string | null; + privateSchemaId: string | null; + sessionCredentialsTableId: string | null; + sessionsTableId: string | null; + usersTableId: string | null; + authenticate: string | null; + authenticateStrict: string | null; + currentRole: string | null; + currentRoleId: string | null; +} +export interface SecretsModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + tableId: string | null; + tableName: string | null; +} +export interface SessionsModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + sessionsTableId: string | null; + sessionCredentialsTableId: string | null; + authSettingsTableId: string | null; + usersTableId: string | null; + sessionsDefaultExpiration: string | null; + sessionsTable: string | null; + sessionCredentialsTable: string | null; + authSettingsTable: string | null; +} +export interface UserAuthModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + emailsTableId: string | null; + usersTableId: string | null; + secretsTableId: string | null; + encryptedTableId: string | null; + sessionsTableId: string | null; + sessionCredentialsTableId: string | null; + auditsTableId: string | null; + auditsTableName: string | null; + signInFunction: string | null; + signUpFunction: string | null; + signOutFunction: string | null; + setPasswordFunction: string | null; + resetPasswordFunction: string | null; + forgotPasswordFunction: string | null; + sendVerificationEmailFunction: string | null; + verifyEmailFunction: string | null; + verifyPasswordFunction: string | null; + checkPasswordFunction: string | null; + sendAccountDeletionEmailFunction: string | null; + deleteAccountFunction: string | null; + signInOneTimeTokenFunction: string | null; + oneTimeTokenFunction: string | null; + extendTokenExpires: string | null; +} +export interface UsersModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + tableId: string | null; + tableName: string | null; + typeTableId: string | null; + typeTableName: string | null; +} +export interface UuidModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + uuidFunction: string | null; + uuidSeed: string | null; +} +export interface DatabaseProvisionModule { + id: string | null; + databaseName: string | null; + ownerId: string | null; + subdomain: string | null; + domain: string | null; + modules: string[] | null; + options: unknown | null; + bootstrapUser: boolean | null; + status: string | null; + errorMessage: string | null; + databaseId: string | null; + createdAt: string | null; + updatedAt: string | null; + completedAt: string | null; +} +export interface AppAdminGrant { + id: string | null; + isGrant: boolean | null; + actorId: string | null; + grantorId: string | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface AppOwnerGrant { + id: string | null; + isGrant: boolean | null; + actorId: string | null; + grantorId: string | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface AppGrant { + id: string | null; + permissions: string | null; + isGrant: boolean | null; + actorId: string | null; + grantorId: string | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface OrgMembership { + id: string | null; + createdAt: string | null; + updatedAt: string | null; + createdBy: string | null; + updatedBy: string | null; + isApproved: boolean | null; + isBanned: boolean | null; + isDisabled: boolean | null; + isActive: boolean | null; + isOwner: boolean | null; + isAdmin: boolean | null; + permissions: string | null; + granted: string | null; + actorId: string | null; + entityId: string | null; +} +export interface OrgMember { + id: string | null; + isAdmin: boolean | null; + actorId: string | null; + entityId: string | null; +} +export interface OrgAdminGrant { + id: string | null; + isGrant: boolean | null; + actorId: string | null; + entityId: string | null; + grantorId: string | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface OrgOwnerGrant { + id: string | null; + isGrant: boolean | null; + actorId: string | null; + entityId: string | null; + grantorId: string | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface OrgGrant { + id: string | null; + permissions: string | null; + isGrant: boolean | null; + actorId: string | null; + entityId: string | null; + grantorId: string | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface AppLimit { + id: string | null; + name: string | null; + actorId: string | null; + num: number | null; + max: number | null; +} +export interface OrgLimit { + id: string | null; + name: string | null; + actorId: string | null; + num: number | null; + max: number | null; + entityId: string | null; +} +export interface AppStep { + id: string | null; + actorId: string | null; + name: string | null; + count: number | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface AppAchievement { + id: string | null; + actorId: string | null; + name: string | null; + count: number | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface Invite { + id: string | null; + email: ConstructiveInternalTypeEmail | null; + senderId: string | null; + inviteToken: string | null; + inviteValid: boolean | null; + inviteLimit: number | null; + inviteCount: number | null; + multiple: boolean | null; + data: unknown | null; + expiresAt: string | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface ClaimedInvite { + id: string | null; + data: unknown | null; + senderId: string | null; + receiverId: string | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface OrgInvite { + id: string | null; + email: ConstructiveInternalTypeEmail | null; + senderId: string | null; + receiverId: string | null; + inviteToken: string | null; + inviteValid: boolean | null; + inviteLimit: number | null; + inviteCount: number | null; + multiple: boolean | null; + data: unknown | null; + expiresAt: string | null; + createdAt: string | null; + updatedAt: string | null; + entityId: string | null; +} +export interface OrgClaimedInvite { + id: string | null; + data: unknown | null; + senderId: string | null; + receiverId: string | null; + createdAt: string | null; + updatedAt: string | null; + entityId: string | null; +} +export interface AppPermissionDefault { + id: string | null; + permissions: string | null; +} +export interface Ref { + id: string | null; + name: string | null; + databaseId: string | null; + storeId: string | null; + commitId: string | null; +} +export interface Store { + id: string | null; + name: string | null; + databaseId: string | null; + hash: string | null; + createdAt: string | null; +} +export interface RoleType { + id: number | null; + name: string | null; +} +export interface OrgPermissionDefault { + id: string | null; + 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; + address: string | null; + isVerified: boolean | null; + isPrimary: boolean | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface MembershipType { + id: number | null; + name: string | null; + description: string | null; + prefix: string | null; +} +export interface ConnectedAccount { + id: string | null; + ownerId: string | null; + service: string | null; + identifier: string | null; + details: unknown | null; + isVerified: boolean | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface PhoneNumber { + id: string | null; + ownerId: string | null; + cc: string | null; + number: string | null; + isVerified: boolean | null; + isPrimary: boolean | null; + 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 NodeTypeRegistry { + name: string | null; + slug: string | null; + category: string | null; + displayName: string | null; + description: string | null; + parameterSchema: unknown | null; + tags: string[] | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface Commit { + id: string | null; + message: string | null; + databaseId: string | null; + storeId: string | null; + parentIds: string[] | null; + authorId: string | null; + committerId: string | null; + treeId: string | null; + date: string | null; +} +export interface OrgMembershipDefault { + id: string | null; + createdAt: string | null; + updatedAt: string | null; + createdBy: string | null; + updatedBy: string | null; + isApproved: boolean | null; + entityId: string | null; + 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; + actorId: string | null; + origin: ConstructiveInternalTypeOrigin | null; + userAgent: string | null; + ipAddress: string | null; + success: boolean | null; + createdAt: 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 SqlMigration { + id: number | null; + name: string | null; + databaseId: string | null; + deploy: string | null; + deps: string[] | null; + payload: unknown | null; + content: string | null; + revert: string | null; + verify: string | null; + createdAt: string | null; + action: string | null; + actionId: string | null; + actorId: string | null; +} +export interface AstMigration { + id: number | null; + databaseId: string | null; + name: string | null; + requires: string[] | null; + payload: unknown | null; + deploys: string | null; + deploy: unknown | null; + revert: unknown | null; + verify: unknown | null; + createdAt: string | null; + action: string | null; + actionId: string | null; + actorId: string | null; +} +export interface AppMembership { + id: string | null; + createdAt: string | null; + updatedAt: string | null; + createdBy: string | null; + updatedBy: string | null; + isApproved: boolean | null; + isBanned: boolean | null; + isDisabled: boolean | null; + isVerified: boolean | null; + isActive: boolean | null; + isOwner: boolean | null; + isAdmin: boolean | null; + 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; +} +export interface HierarchyModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: string | null; + chartEdgesTableId: string | null; + chartEdgesTableName: string | null; + hierarchySprtTableId: string | null; + hierarchySprtTableName: string | null; + chartEdgeGrantsTableId: string | null; + chartEdgeGrantsTableName: string | null; + entityTableId: string | null; + usersTableId: string | null; + prefix: string | null; + privateSchemaName: string | null; + sprtTableName: string | null; + rebuildHierarchyFunction: string | null; + getSubordinatesFunction: string | null; + getManagersFunction: string | null; + isManagerOfFunction: string | null; + createdAt: string | null; +} +export interface StringFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; + includes?: string; + notIncludes?: string; + includesInsensitive?: string; + notIncludesInsensitive?: string; + startsWith?: string; + notStartsWith?: string; + startsWithInsensitive?: string; + notStartsWithInsensitive?: string; + endsWith?: string; + notEndsWith?: string; + endsWithInsensitive?: string; + notEndsWithInsensitive?: string; + like?: string; + notLike?: string; + likeInsensitive?: string; + notLikeInsensitive?: string; +} +export interface IntFilter { + isNull?: boolean; + equalTo?: number; + notEqualTo?: number; + distinctFrom?: number; + notDistinctFrom?: number; + in?: number[]; + notIn?: number[]; + lessThan?: number; + lessThanOrEqualTo?: number; + greaterThan?: number; + greaterThanOrEqualTo?: number; +} +export interface FloatFilter { + isNull?: boolean; + equalTo?: number; + notEqualTo?: number; + distinctFrom?: number; + notDistinctFrom?: number; + in?: number[]; + notIn?: number[]; + lessThan?: number; + lessThanOrEqualTo?: number; + greaterThan?: number; + greaterThanOrEqualTo?: number; +} +export interface BooleanFilter { + isNull?: boolean; + equalTo?: boolean; + notEqualTo?: boolean; +} +export interface UUIDFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; +} +export interface DatetimeFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface DateFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface JSONFilter { + isNull?: boolean; + equalTo?: Record; + notEqualTo?: Record; + distinctFrom?: Record; + notDistinctFrom?: Record; + contains?: unknown; + containedBy?: unknown; + containsKey?: string; + containsAllKeys?: string[]; + containsAnyKeys?: string[]; +} +export interface BigIntFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface BigFloatFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; +} +export interface BitStringFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; +} +export interface InternetAddressFilter { + isNull?: boolean; + equalTo?: string; + notEqualTo?: string; + distinctFrom?: string; + notDistinctFrom?: string; + in?: string[]; + notIn?: string[]; + lessThan?: string; + lessThanOrEqualTo?: string; + greaterThan?: string; + greaterThanOrEqualTo?: string; + contains?: string; + containedBy?: string; + containsOrContainedBy?: string; +} +export interface FullTextFilter { + matches?: string; +} +export interface StringListFilter { + isNull?: boolean; + equalTo?: string[]; + notEqualTo?: string[]; + distinctFrom?: string[]; + notDistinctFrom?: string[]; + lessThan?: string[]; + lessThanOrEqualTo?: string[]; + greaterThan?: string[]; + greaterThanOrEqualTo?: string[]; + contains?: string[]; + containedBy?: string[]; + overlaps?: string[]; + anyEqualTo?: string; + anyNotEqualTo?: string; + anyLessThan?: string; + anyLessThanOrEqualTo?: string; + anyGreaterThan?: string; + anyGreaterThanOrEqualTo?: string; +} +export interface IntListFilter { + isNull?: boolean; + equalTo?: number[]; + notEqualTo?: number[]; + distinctFrom?: number[]; + notDistinctFrom?: number[]; + lessThan?: number[]; + lessThanOrEqualTo?: number[]; + greaterThan?: number[]; + greaterThanOrEqualTo?: number[]; + contains?: number[]; + containedBy?: number[]; + overlaps?: number[]; + anyEqualTo?: number; + anyNotEqualTo?: number; + anyLessThan?: number; + anyLessThanOrEqualTo?: number; + anyGreaterThan?: number; + anyGreaterThanOrEqualTo?: number; +} +export interface UUIDListFilter { + isNull?: boolean; + equalTo?: string[]; + notEqualTo?: string[]; + distinctFrom?: string[]; + notDistinctFrom?: string[]; + lessThan?: string[]; + lessThanOrEqualTo?: string[]; + greaterThan?: string[]; + greaterThanOrEqualTo?: string[]; + contains?: string[]; + containedBy?: string[]; + overlaps?: string[]; + anyEqualTo?: string; + anyNotEqualTo?: string; + anyLessThan?: string; + anyLessThanOrEqualTo?: string; + anyGreaterThan?: string; + anyGreaterThanOrEqualTo?: string; +} diff --git a/sdk/constructive-react/tsconfig.esm.json b/sdk/constructive-react/tsconfig.esm.json new file mode 100644 index 000000000..aa4345be2 --- /dev/null +++ b/sdk/constructive-react/tsconfig.esm.json @@ -0,0 +1,7 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "dist/esm", + "module": "es2022" + } +} diff --git a/sdk/constructive-react/tsconfig.json b/sdk/constructive-react/tsconfig.json new file mode 100644 index 000000000..9c8a7d7c1 --- /dev/null +++ b/sdk/constructive-react/tsconfig.json @@ -0,0 +1,8 @@ +{ + "extends": "../../tsconfig.json", + "compilerOptions": { + "outDir": "dist", + "rootDir": "src" + }, + "include": ["src/**/*"] +} From d2a1df276a1bd6c22eb90ef1d3c37c3ffced0b47 Mon Sep 17 00:00:00 2001 From: Dan Lynch Date: Sat, 28 Feb 2026 00:34:14 +0000 Subject: [PATCH 7/8] feat: thread table descriptions into hook and ORM function JSDoc Use table.description (from COMMENT ON TABLE) when available, fall back to generic text otherwise. Applied consistently across: - queries.ts: list/single query hooks, fetch functions, prefetch functions - mutations.ts: create/update/delete mutation hooks - hooks-docs-generator.ts: README, AGENTS.md, MCP tools, skills - orm/docs-generator.ts: MCP tools, skills Regenerated both SDK and React packages with updated output. --- .../src/core/codegen/hooks-docs-generator.ts | 32 ++--- graphql/codegen/src/core/codegen/mutations.ts | 12 +- .../src/core/codegen/orm/docs-generator.ts | 12 +- graphql/codegen/src/core/codegen/queries.ts | 22 ++-- .../src/admin/hooks/README.md | 40 +++---- .../useCreateAppAchievementMutation.ts | 4 +- .../mutations/useCreateAppLevelMutation.ts | 4 +- .../useCreateAppLevelRequirementMutation.ts | 4 +- .../mutations/useCreateAppStepMutation.ts | 4 +- .../useDeleteAppAchievementMutation.ts | 4 +- .../mutations/useDeleteAppLevelMutation.ts | 4 +- .../useDeleteAppLevelRequirementMutation.ts | 4 +- .../mutations/useDeleteAppStepMutation.ts | 4 +- .../useUpdateAppAchievementMutation.ts | 4 +- .../mutations/useUpdateAppLevelMutation.ts | 4 +- .../useUpdateAppLevelRequirementMutation.ts | 4 +- .../mutations/useUpdateAppStepMutation.ts | 4 +- .../hooks/queries/useAppAchievementQuery.ts | 8 +- .../hooks/queries/useAppAchievementsQuery.ts | 8 +- .../admin/hooks/queries/useAppLevelQuery.ts | 8 +- .../queries/useAppLevelRequirementQuery.ts | 8 +- .../queries/useAppLevelRequirementsQuery.ts | 8 +- .../admin/hooks/queries/useAppLevelsQuery.ts | 8 +- .../admin/hooks/queries/useAppStepQuery.ts | 8 +- .../admin/hooks/queries/useAppStepsQuery.ts | 8 +- .../src/admin/hooks/skills/appAchievement.md | 2 +- .../src/admin/hooks/skills/appLevel.md | 2 +- .../admin/hooks/skills/appLevelRequirement.md | 2 +- .../src/admin/hooks/skills/appStep.md | 2 +- .../src/admin/orm/skills/appAchievement.md | 2 +- .../src/admin/orm/skills/appLevel.md | 2 +- .../admin/orm/skills/appLevelRequirement.md | 2 +- .../src/admin/orm/skills/appStep.md | 2 +- .../src/objects/hooks/README.md | 30 ++--- .../mutations/useCreateCommitMutation.ts | 4 +- .../hooks/mutations/useCreateRefMutation.ts | 4 +- .../hooks/mutations/useCreateStoreMutation.ts | 4 +- .../mutations/useDeleteCommitMutation.ts | 4 +- .../hooks/mutations/useDeleteRefMutation.ts | 4 +- .../hooks/mutations/useDeleteStoreMutation.ts | 4 +- .../mutations/useUpdateCommitMutation.ts | 4 +- .../hooks/mutations/useUpdateRefMutation.ts | 4 +- .../hooks/mutations/useUpdateStoreMutation.ts | 4 +- .../objects/hooks/queries/useCommitQuery.ts | 8 +- .../objects/hooks/queries/useCommitsQuery.ts | 8 +- .../src/objects/hooks/queries/useRefQuery.ts | 8 +- .../src/objects/hooks/queries/useRefsQuery.ts | 8 +- .../objects/hooks/queries/useStoreQuery.ts | 8 +- .../objects/hooks/queries/useStoresQuery.ts | 8 +- .../src/objects/hooks/skills/commit.md | 2 +- .../src/objects/hooks/skills/ref.md | 2 +- .../src/objects/hooks/skills/store.md | 2 +- .../src/objects/orm/skills/commit.md | 2 +- .../src/objects/orm/skills/ref.md | 2 +- .../src/objects/orm/skills/store.md | 2 +- .../src/public/hooks/README.md | 110 +++++++++--------- .../useCreateAppAchievementMutation.ts | 4 +- .../mutations/useCreateAppLevelMutation.ts | 4 +- .../useCreateAppLevelRequirementMutation.ts | 4 +- .../mutations/useCreateAppStepMutation.ts | 4 +- .../mutations/useCreateCommitMutation.ts | 4 +- ...seCreateDatabaseProvisionModuleMutation.ts | 4 +- .../useCreateNodeTypeRegistryMutation.ts | 4 +- .../hooks/mutations/useCreateRefMutation.ts | 4 +- .../hooks/mutations/useCreateStoreMutation.ts | 4 +- .../mutations/useCreateViewRuleMutation.ts | 4 +- .../mutations/useCreateViewTableMutation.ts | 4 +- .../useDeleteAppAchievementMutation.ts | 4 +- .../mutations/useDeleteAppLevelMutation.ts | 4 +- .../useDeleteAppLevelRequirementMutation.ts | 4 +- .../mutations/useDeleteAppStepMutation.ts | 4 +- .../mutations/useDeleteCommitMutation.ts | 4 +- ...seDeleteDatabaseProvisionModuleMutation.ts | 4 +- .../useDeleteNodeTypeRegistryMutation.ts | 4 +- .../hooks/mutations/useDeleteRefMutation.ts | 4 +- .../hooks/mutations/useDeleteStoreMutation.ts | 4 +- .../mutations/useDeleteViewRuleMutation.ts | 4 +- .../mutations/useDeleteViewTableMutation.ts | 4 +- .../useUpdateAppAchievementMutation.ts | 4 +- .../mutations/useUpdateAppLevelMutation.ts | 4 +- .../useUpdateAppLevelRequirementMutation.ts | 4 +- .../mutations/useUpdateAppStepMutation.ts | 4 +- .../mutations/useUpdateCommitMutation.ts | 4 +- ...seUpdateDatabaseProvisionModuleMutation.ts | 4 +- .../useUpdateNodeTypeRegistryMutation.ts | 4 +- .../hooks/mutations/useUpdateRefMutation.ts | 4 +- .../hooks/mutations/useUpdateStoreMutation.ts | 4 +- .../mutations/useUpdateViewRuleMutation.ts | 4 +- .../mutations/useUpdateViewTableMutation.ts | 4 +- .../hooks/queries/useAppAchievementQuery.ts | 8 +- .../hooks/queries/useAppAchievementsQuery.ts | 8 +- .../public/hooks/queries/useAppLevelQuery.ts | 8 +- .../queries/useAppLevelRequirementQuery.ts | 8 +- .../queries/useAppLevelRequirementsQuery.ts | 8 +- .../public/hooks/queries/useAppLevelsQuery.ts | 8 +- .../public/hooks/queries/useAppStepQuery.ts | 8 +- .../public/hooks/queries/useAppStepsQuery.ts | 8 +- .../public/hooks/queries/useCommitQuery.ts | 8 +- .../public/hooks/queries/useCommitsQuery.ts | 8 +- .../useDatabaseProvisionModuleQuery.ts | 8 +- .../useDatabaseProvisionModulesQuery.ts | 8 +- .../queries/useNodeTypeRegistriesQuery.ts | 8 +- .../hooks/queries/useNodeTypeRegistryQuery.ts | 8 +- .../src/public/hooks/queries/useRefQuery.ts | 8 +- .../src/public/hooks/queries/useRefsQuery.ts | 8 +- .../src/public/hooks/queries/useStoreQuery.ts | 8 +- .../public/hooks/queries/useStoresQuery.ts | 8 +- .../public/hooks/queries/useViewRuleQuery.ts | 8 +- .../public/hooks/queries/useViewRulesQuery.ts | 8 +- .../public/hooks/queries/useViewTableQuery.ts | 8 +- .../hooks/queries/useViewTablesQuery.ts | 8 +- .../src/public/hooks/skills/appAchievement.md | 2 +- .../src/public/hooks/skills/appLevel.md | 2 +- .../hooks/skills/appLevelRequirement.md | 2 +- .../src/public/hooks/skills/appStep.md | 2 +- .../src/public/hooks/skills/commit.md | 2 +- .../hooks/skills/databaseProvisionModule.md | 2 +- .../public/hooks/skills/nodeTypeRegistry.md | 2 +- .../src/public/hooks/skills/ref.md | 2 +- .../src/public/hooks/skills/store.md | 2 +- .../src/public/hooks/skills/viewRule.md | 2 +- .../src/public/hooks/skills/viewTable.md | 2 +- .../src/public/orm/skills/appAchievement.md | 2 +- .../src/public/orm/skills/appLevel.md | 2 +- .../public/orm/skills/appLevelRequirement.md | 2 +- .../src/public/orm/skills/appStep.md | 2 +- .../src/public/orm/skills/commit.md | 2 +- .../orm/skills/databaseProvisionModule.md | 2 +- .../src/public/orm/skills/nodeTypeRegistry.md | 2 +- .../src/public/orm/skills/ref.md | 2 +- .../src/public/orm/skills/store.md | 2 +- .../src/public/orm/skills/viewRule.md | 2 +- .../src/public/orm/skills/viewTable.md | 2 +- .../src/admin/orm/skills/appAchievement.md | 2 +- .../src/admin/orm/skills/appLevel.md | 2 +- .../admin/orm/skills/appLevelRequirement.md | 2 +- .../src/admin/orm/skills/appStep.md | 2 +- .../src/objects/orm/skills/commit.md | 2 +- .../src/objects/orm/skills/ref.md | 2 +- .../src/objects/orm/skills/store.md | 2 +- .../src/public/orm/skills/appAchievement.md | 2 +- .../src/public/orm/skills/appLevel.md | 2 +- .../public/orm/skills/appLevelRequirement.md | 2 +- .../src/public/orm/skills/appStep.md | 2 +- .../src/public/orm/skills/commit.md | 2 +- .../orm/skills/databaseProvisionModule.md | 2 +- .../src/public/orm/skills/nodeTypeRegistry.md | 2 +- .../src/public/orm/skills/ref.md | 2 +- .../src/public/orm/skills/store.md | 2 +- .../src/public/orm/skills/viewRule.md | 2 +- .../src/public/orm/skills/viewTable.md | 2 +- 151 files changed, 436 insertions(+), 434 deletions(-) diff --git a/graphql/codegen/src/core/codegen/hooks-docs-generator.ts b/graphql/codegen/src/core/codegen/hooks-docs-generator.ts index 250a9ed3b..2264eb45a 100644 --- a/graphql/codegen/src/core/codegen/hooks-docs-generator.ts +++ b/graphql/codegen/src/core/codegen/hooks-docs-generator.ts @@ -66,22 +66,22 @@ export function generateHooksReadme( for (const table of tables) { const { singularName, pluralName } = getTableNames(table); lines.push( - `| \`${getListQueryHookName(table)}\` | Query | List all ${pluralName} |`, + `| \`${getListQueryHookName(table)}\` | Query | ${table.description || `List all ${pluralName}`} |`, ); if (hasValidPrimaryKey(table)) { lines.push( - `| \`${getSingleQueryHookName(table)}\` | Query | Get one ${singularName} |`, + `| \`${getSingleQueryHookName(table)}\` | Query | ${table.description || `Get one ${singularName}`} |`, ); } lines.push( - `| \`${getCreateMutationHookName(table)}\` | Mutation | Create a ${singularName} |`, + `| \`${getCreateMutationHookName(table)}\` | Mutation | ${table.description || `Create a ${singularName}`} |`, ); if (hasValidPrimaryKey(table)) { lines.push( - `| \`${getUpdateMutationHookName(table)}\` | Mutation | Update a ${singularName} |`, + `| \`${getUpdateMutationHookName(table)}\` | Mutation | ${table.description || `Update a ${singularName}`} |`, ); lines.push( - `| \`${getDeleteMutationHookName(table)}\` | Mutation | Delete a ${singularName} |`, + `| \`${getDeleteMutationHookName(table)}\` | Mutation | ${table.description || `Delete a ${singularName}`} |`, ); } } @@ -220,7 +220,7 @@ export function generateHooksAgentsDocs( lines.push(`### HOOK: ${getListQueryHookName(table)}`); lines.push(''); - lines.push(`List all ${pluralName}.`); + lines.push(`${table.description || `List all ${pluralName}`}.`); lines.push(''); lines.push('```'); lines.push(`TYPE: query`); @@ -244,7 +244,7 @@ export function generateHooksAgentsDocs( if (hasValidPrimaryKey(table)) { lines.push(`### HOOK: ${getSingleQueryHookName(table)}`); lines.push(''); - lines.push(`Get a single ${singularName} by ${pk.name}.`); + lines.push(`${table.description || `Get a single ${singularName} by ${pk.name}`}.`); lines.push(''); lines.push('```'); lines.push(`TYPE: query`); @@ -269,7 +269,7 @@ export function generateHooksAgentsDocs( lines.push(`### HOOK: ${getCreateMutationHookName(table)}`); lines.push(''); - lines.push(`Create a new ${singularName}.`); + lines.push(`${table.description || `Create a new ${singularName}`}.`); lines.push(''); lines.push('```'); lines.push('TYPE: mutation'); @@ -284,7 +284,7 @@ export function generateHooksAgentsDocs( if (hasValidPrimaryKey(table)) { lines.push(`### HOOK: ${getUpdateMutationHookName(table)}`); lines.push(''); - lines.push(`Update an existing ${singularName}.`); + lines.push(`${table.description || `Update an existing ${singularName}`}.`); lines.push(''); lines.push('```'); lines.push('TYPE: mutation'); @@ -298,7 +298,7 @@ export function generateHooksAgentsDocs( lines.push(`### HOOK: ${getDeleteMutationHookName(table)}`); lines.push(''); - lines.push(`Delete a ${singularName}.`); + lines.push(`${table.description || `Delete a ${singularName}`}.`); lines.push(''); lines.push('```'); lines.push('TYPE: mutation'); @@ -374,7 +374,7 @@ export function getHooksMcpTools( tools.push({ name: `hooks_${lcFirst(pluralName)}_query`, - description: `React Query hook to list all ${pluralName}`, + description: table.description || `React Query hook to list all ${pluralName}`, inputSchema: { type: 'object', properties: { @@ -389,7 +389,7 @@ export function getHooksMcpTools( if (hasValidPrimaryKey(table)) { tools.push({ name: `hooks_${lcFirst(singularName)}_query`, - description: `React Query hook to get a single ${singularName} by ${pk.name}`, + description: table.description || `React Query hook to get a single ${singularName} by ${pk.name}`, inputSchema: { type: 'object', properties: { @@ -405,7 +405,7 @@ export function getHooksMcpTools( tools.push({ name: `hooks_create_${lcFirst(singularName)}_mutation`, - description: `React Query mutation hook to create a ${singularName}`, + description: table.description || `React Query mutation hook to create a ${singularName}`, inputSchema: { type: 'object', properties: Object.fromEntries( @@ -431,7 +431,7 @@ export function getHooksMcpTools( if (hasValidPrimaryKey(table)) { tools.push({ name: `hooks_update_${lcFirst(singularName)}_mutation`, - description: `React Query mutation hook to update a ${singularName}`, + description: table.description || `React Query mutation hook to update a ${singularName}`, inputSchema: { type: 'object', properties: { @@ -446,7 +446,7 @@ export function getHooksMcpTools( tools.push({ name: `hooks_delete_${lcFirst(singularName)}_mutation`, - description: `React Query mutation hook to delete a ${singularName}`, + description: table.description || `React Query mutation hook to delete a ${singularName}`, inputSchema: { type: 'object', properties: { @@ -511,7 +511,7 @@ export function generateHooksSkills( fileName: `skills/${lcFirst(singularName)}.md`, content: buildSkillFile({ name: `hooks-${lcFirst(singularName)}`, - description: `React Query hooks for ${table.name} data operations`, + description: table.description || `React Query hooks for ${table.name} data operations`, language: 'typescript', usage: [ `${getListQueryHookName(table)}({ selection: { fields: { ${selectFields} } } })`, diff --git a/graphql/codegen/src/core/codegen/mutations.ts b/graphql/codegen/src/core/codegen/mutations.ts index 4fa5f81ff..8c4244b82 100644 --- a/graphql/codegen/src/core/codegen/mutations.ts +++ b/graphql/codegen/src/core/codegen/mutations.ts @@ -202,7 +202,7 @@ export function generateCreateMutationHook( useMutationResultType(resultType(sRef()), createVarType), ); addJSDocComment(o1, [ - `Mutation hook for creating a ${typeName}`, + table.description || `Mutation hook for creating a ${typeName}`, '', '@example', '```tsx', @@ -314,7 +314,7 @@ export function generateCreateMutationHook( return { fileName: getCreateMutationFileName(table), content: generateHookFileCode( - `Create mutation hook for ${typeName}`, + table.description || `Create mutation hook for ${typeName}`, statements, ), }; @@ -433,7 +433,7 @@ export function generateUpdateMutationHook( useMutationResultType(resultType(sRef()), updateVarType), ); addJSDocComment(o1, [ - `Mutation hook for updating a ${typeName}`, + table.description || `Mutation hook for updating a ${typeName}`, '', '@example', '```tsx', @@ -574,7 +574,7 @@ export function generateUpdateMutationHook( return { fileName: getUpdateMutationFileName(table), content: generateHookFileCode( - `Update mutation hook for ${typeName}`, + table.description || `Update mutation hook for ${typeName}`, statements, ), }; @@ -686,7 +686,7 @@ export function generateDeleteMutationHook( useMutationResultType(resultType(sRef()), deleteVarType), ); addJSDocComment(o1, [ - `Mutation hook for deleting a ${typeName} with typed selection`, + table.description || `Mutation hook for deleting a ${typeName} with typed selection`, '', '@example', '```tsx', @@ -821,7 +821,7 @@ export function generateDeleteMutationHook( return { fileName: getDeleteMutationFileName(table), content: generateHookFileCode( - `Delete mutation hook for ${typeName}`, + table.description || `Delete mutation hook for ${typeName}`, statements, ), }; diff --git a/graphql/codegen/src/core/codegen/orm/docs-generator.ts b/graphql/codegen/src/core/codegen/orm/docs-generator.ts index e56ed6165..fabc6159e 100644 --- a/graphql/codegen/src/core/codegen/orm/docs-generator.ts +++ b/graphql/codegen/src/core/codegen/orm/docs-generator.ts @@ -320,7 +320,7 @@ export function getOrmMcpTools( tools.push({ name: `orm_${lcFirst(singularName)}_findMany`, - description: `List all ${table.name} records via ORM`, + description: table.description || `List all ${table.name} records via ORM`, inputSchema: { type: 'object', properties: { @@ -338,7 +338,7 @@ export function getOrmMcpTools( tools.push({ name: `orm_${lcFirst(singularName)}_findOne`, - description: `Get a single ${table.name} record by ${pk.name}`, + description: table.description || `Get a single ${table.name} record by ${pk.name}`, inputSchema: { type: 'object', properties: { @@ -360,7 +360,7 @@ export function getOrmMcpTools( } tools.push({ name: `orm_${lcFirst(singularName)}_create`, - description: `Create a new ${table.name} record`, + description: table.description || `Create a new ${table.name} record`, inputSchema: { type: 'object', properties: createProps, @@ -382,7 +382,7 @@ export function getOrmMcpTools( } tools.push({ name: `orm_${lcFirst(singularName)}_update`, - description: `Update an existing ${table.name} record`, + description: table.description || `Update an existing ${table.name} record`, inputSchema: { type: 'object', properties: updateProps, @@ -392,7 +392,7 @@ export function getOrmMcpTools( tools.push({ name: `orm_${lcFirst(singularName)}_delete`, - description: `Delete a ${table.name} record by ${pk.name}`, + description: table.description || `Delete a ${table.name} record by ${pk.name}`, inputSchema: { type: 'object', properties: { @@ -461,7 +461,7 @@ export function generateOrmSkills( fileName: `skills/${lcFirst(singularName)}.md`, content: buildSkillFile({ name: `orm-${lcFirst(singularName)}`, - description: `ORM operations for ${table.name} records`, + description: table.description || `ORM operations for ${table.name} records`, language: 'typescript', usage: [ `db.${lcFirst(singularName)}.findMany({ select: { id: true } }).execute()`, diff --git a/graphql/codegen/src/core/codegen/queries.ts b/graphql/codegen/src/core/codegen/queries.ts index f801fe7fa..c1ebd28bc 100644 --- a/graphql/codegen/src/core/codegen/queries.ts +++ b/graphql/codegen/src/core/codegen/queries.ts @@ -237,8 +237,9 @@ export function generateListQueryHook( // Hook if (reactQueryEnabled) { + const descLine = table.description || `Query hook for fetching ${typeName} list`; const docLines = [ - `Query hook for fetching ${typeName} list`, + descLine, '', '@example', '```tsx', @@ -379,7 +380,7 @@ export function generateListQueryHook( typeRef('Promise', [listResultTypeAST(sRef())]), ); addJSDocComment(f1Decl, [ - `Fetch ${typeName} list without React hooks`, + table.description || `Fetch ${typeName} list without React hooks`, '', '@example', '```ts', @@ -462,7 +463,7 @@ export function generateListQueryHook( typeRef('Promise', [t.tsVoidKeyword()]), ); addJSDocComment(p1Decl, [ - `Prefetch ${typeName} list for SSR or cache warming`, + table.description || `Prefetch ${typeName} list for SSR or cache warming`, '', '@example', '```ts', @@ -551,9 +552,9 @@ export function generateListQueryHook( ); } - const headerText = reactQueryEnabled + const headerText = table.description || (reactQueryEnabled ? `List query hook for ${typeName}` - : `List query functions for ${typeName}`; + : `List query functions for ${typeName}`); return { fileName: getListQueryFileName(table), @@ -719,8 +720,9 @@ export function generateSingleQueryHook( // Hook if (reactQueryEnabled) { + const singleDescLine = table.description || `Query hook for fetching a single ${typeName}`; const docLines = [ - `Query hook for fetching a single ${typeName}`, + singleDescLine, '', '@example', '```tsx', @@ -849,7 +851,7 @@ export function generateSingleQueryHook( typeRef('Promise', [singleResultTypeAST(sRef())]), ); addJSDocComment(f1Decl, [ - `Fetch a single ${typeName} without React hooks`, + table.description || `Fetch a single ${typeName} without React hooks`, '', '@example', '```ts', @@ -923,7 +925,7 @@ export function generateSingleQueryHook( typeRef('Promise', [t.tsVoidKeyword()]), ); addJSDocComment(p1Decl, [ - `Prefetch a single ${typeName} for SSR or cache warming`, + table.description || `Prefetch a single ${typeName} for SSR or cache warming`, '', '@example', '```ts', @@ -1010,9 +1012,9 @@ export function generateSingleQueryHook( ); } - const headerText = reactQueryEnabled + const headerText = table.description || (reactQueryEnabled ? `Single item query hook for ${typeName}` - : `Single item query functions for ${typeName}`; + : `Single item query functions for ${typeName}`); return { fileName: getSingleQueryFileName(table), diff --git a/sdk/constructive-react/src/admin/hooks/README.md b/sdk/constructive-react/src/admin/hooks/README.md index 1f6aa0433..f73146cc4 100644 --- a/sdk/constructive-react/src/admin/hooks/README.md +++ b/sdk/constructive-react/src/admin/hooks/README.md @@ -42,11 +42,11 @@ function App() { | `useCreateOrgPermissionMutation` | Mutation | Create a orgPermission | | `useUpdateOrgPermissionMutation` | Mutation | Update a orgPermission | | `useDeleteOrgPermissionMutation` | Mutation | Delete a orgPermission | -| `useAppLevelRequirementsQuery` | Query | List all appLevelRequirements | -| `useAppLevelRequirementQuery` | Query | Get one appLevelRequirement | -| `useCreateAppLevelRequirementMutation` | Mutation | Create a appLevelRequirement | -| `useUpdateAppLevelRequirementMutation` | Mutation | Update a appLevelRequirement | -| `useDeleteAppLevelRequirementMutation` | Mutation | Delete a appLevelRequirement | +| `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 | @@ -102,16 +102,16 @@ function App() { | `useCreateAppLimitMutation` | Mutation | Create a appLimit | | `useUpdateAppLimitMutation` | Mutation | Update a appLimit | | `useDeleteAppLimitMutation` | Mutation | Delete a appLimit | -| `useAppAchievementsQuery` | Query | List all appAchievements | -| `useAppAchievementQuery` | Query | Get one appAchievement | -| `useCreateAppAchievementMutation` | Mutation | Create a appAchievement | -| `useUpdateAppAchievementMutation` | Mutation | Update a appAchievement | -| `useDeleteAppAchievementMutation` | Mutation | Delete a appAchievement | -| `useAppStepsQuery` | Query | List all appSteps | -| `useAppStepQuery` | Query | Get one appStep | -| `useCreateAppStepMutation` | Mutation | Create a appStep | -| `useUpdateAppStepMutation` | Mutation | Update a appStep | -| `useDeleteAppStepMutation` | Mutation | Delete a appStep | +| `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 | @@ -147,11 +147,11 @@ function App() { | `useCreateOrgMembershipDefaultMutation` | Mutation | Create a orgMembershipDefault | | `useUpdateOrgMembershipDefaultMutation` | Mutation | Update a orgMembershipDefault | | `useDeleteOrgMembershipDefaultMutation` | Mutation | Delete a orgMembershipDefault | -| `useAppLevelsQuery` | Query | List all appLevels | -| `useAppLevelQuery` | Query | Get one appLevel | -| `useCreateAppLevelMutation` | Mutation | Create a appLevel | -| `useUpdateAppLevelMutation` | Mutation | Update a appLevel | -| `useDeleteAppLevelMutation` | Mutation | Delete a appLevel | +| `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 | diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppAchievementMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppAchievementMutation.ts index b39c550bf..769f9a739 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 @@ /** - * Create mutation hook for 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. * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAppAchievementInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a 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. * * @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 393ed2c2a..ba7c1fd68 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 @@ /** - * Create mutation hook for AppLevel + * Levels for achievement * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAppLevelInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a AppLevel + * Levels for achievement * * @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 cde42cf7e..08cd438f8 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 @@ /** - * Create mutation hook for AppLevelRequirement + * Requirements 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'; /** - * Mutation hook for creating a AppLevelRequirement + * Requirements to achieve a level * * @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 479dc0a3a..1e521eeaf 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 @@ /** - * Create mutation hook for AppStep + * The user achieving a requirement for a level. Log table that has every single step ever taken. * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAppStepInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a AppStep + * The user achieving a requirement for a level. Log table that has every single step ever taken. * * @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 73f3b0b52..cbcdae607 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 @@ /** - * Delete mutation hook for 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. * @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'; /** - * Mutation hook for deleting a AppAchievement with typed selection + * 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. * * @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 d7d002ddb..ae1a69ddd 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 @@ /** - * Delete mutation hook for AppLevel + * Levels for achievement * @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'; /** - * Mutation hook for deleting a AppLevel with typed selection + * Levels for achievement * * @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 bcb3e249f..624b78188 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 @@ /** - * Delete mutation hook for AppLevelRequirement + * Requirements 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'; /** - * Mutation hook for deleting a AppLevelRequirement with typed selection + * Requirements to achieve a level * * @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 f9f36baf8..9144c5c0a 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 @@ /** - * Delete mutation hook for AppStep + * The user achieving a requirement for a level. Log table that has every single step ever taken. * @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'; /** - * Mutation hook for deleting a AppStep with typed selection + * The user achieving a requirement for a level. Log table that has every single step ever taken. * * @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 799b7770f..837badc1b 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 @@ /** - * Update mutation hook for 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. * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { AppAchievementPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a 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. * * @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 309666ec5..fbb3cc7b5 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 @@ /** - * Update mutation hook for AppLevel + * Levels for achievement * @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'; /** - * Mutation hook for updating a AppLevel + * Levels for achievement * * @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 418f3464a..07c816a74 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 @@ /** - * Update mutation hook for AppLevelRequirement + * Requirements 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'; /** - * Mutation hook for updating a AppLevelRequirement + * Requirements to achieve a level * * @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 2cfe95818..a34404554 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 @@ /** - * Update mutation hook for AppStep + * The user achieving a requirement for a level. Log table that has every single step ever taken. * @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'; /** - * Mutation hook for updating a AppStep + * The user achieving a requirement for a level. Log table that has every single step ever taken. * * @example * ```tsx diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppAchievementQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppAchievementQuery.ts index 136d30313..df345dff7 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 @@ /** - * Single item query hook for 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. * @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; /** - * Query hook for fetching a single 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. * * @example * ```tsx @@ -70,7 +70,7 @@ export function useAppAchievementQuery( }); } /** - * Fetch a single AppAchievement without React hooks + * 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. * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchAppAchievementQuery(params: { .unwrap(); } /** - * Prefetch a single AppAchievement for SSR or cache warming + * 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. * * @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 fb905cd4e..da6cdc397 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 @@ /** - * List query hook for 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. * @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; /** - * Query hook for fetching AppAchievement 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. * * @example * ```tsx @@ -90,7 +90,7 @@ export function useAppAchievementsQuery( }); } /** - * Fetch AppAchievement list without React hooks + * 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. * * @example * ```ts @@ -121,7 +121,7 @@ export async function fetchAppAchievementsQuery(params: { return getClient().appAchievement.findMany(args).unwrap(); } /** - * Prefetch AppAchievement list for SSR or cache warming + * 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. * * @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 0c550dd44..6d494bc93 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 @@ /** - * Single item query hook for AppLevel + * Levels for achievement * @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; /** - * Query hook for fetching a single AppLevel + * Levels for achievement * * @example * ```tsx @@ -70,7 +70,7 @@ export function useAppLevelQuery( }); } /** - * Fetch a single AppLevel without React hooks + * Levels for achievement * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchAppLevelQuery(params: { .unwrap(); } /** - * Prefetch a single AppLevel for SSR or cache warming + * Levels for achievement * * @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 03271277e..1735a08d4 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 @@ /** - * Single item query hook for AppLevelRequirement + * Requirements 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; /** - * Query hook for fetching a single AppLevelRequirement + * Requirements to achieve a level * * @example * ```tsx @@ -76,7 +76,7 @@ export function useAppLevelRequirementQuery( }); } /** - * Fetch a single AppLevelRequirement without React hooks + * Requirements to achieve a level * * @example * ```ts @@ -107,7 +107,7 @@ export async function fetchAppLevelRequirementQuery(params: { .unwrap(); } /** - * Prefetch a single AppLevelRequirement for SSR or cache warming + * Requirements 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 f085058b5..502b029db 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 @@ /** - * List query hook for AppLevelRequirement + * Requirements 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; /** - * Query hook for fetching AppLevelRequirement list + * Requirements to achieve a level * * @example * ```tsx @@ -95,7 +95,7 @@ export function useAppLevelRequirementsQuery( }); } /** - * Fetch AppLevelRequirement list without React hooks + * Requirements to achieve a level * * @example * ```ts @@ -133,7 +133,7 @@ export async function fetchAppLevelRequirementsQuery(params: { return getClient().appLevelRequirement.findMany(args).unwrap(); } /** - * Prefetch AppLevelRequirement list for SSR or cache warming + * Requirements 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 39c9b44bc..b576855c9 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 @@ /** - * List query hook for AppLevel + * Levels for achievement * @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; /** - * Query hook for fetching AppLevel list + * Levels for achievement * * @example * ```tsx @@ -84,7 +84,7 @@ export function useAppLevelsQuery( }); } /** - * Fetch AppLevel list without React hooks + * Levels for achievement * * @example * ```ts @@ -113,7 +113,7 @@ export async function fetchAppLevelsQuery(params: { return getClient().appLevel.findMany(args).unwrap(); } /** - * Prefetch AppLevel list for SSR or cache warming + * Levels for achievement * * @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 7ccfc9884..d6d579aef 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 @@ /** - * Single item query hook for AppStep + * The user achieving a requirement for a level. Log table that has every single step ever taken. * @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; /** - * Query hook for fetching a single AppStep + * The user achieving a requirement for a level. Log table that has every single step ever taken. * * @example * ```tsx @@ -70,7 +70,7 @@ export function useAppStepQuery( }); } /** - * Fetch a single AppStep without React hooks + * The user achieving a requirement for a level. Log table that has every single step ever taken. * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchAppStepQuery(params: { .unwrap(); } /** - * Prefetch a single AppStep for SSR or cache warming + * The user achieving a requirement for a level. Log table that has every single step ever taken. * * @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 b6f7d90d8..9a4ec77c5 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 @@ /** - * List query hook for AppStep + * The user achieving a requirement for a level. Log table that has every single step ever taken. * @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; /** - * Query hook for fetching AppStep list + * The user achieving a requirement for a level. Log table that has every single step ever taken. * * @example * ```tsx @@ -84,7 +84,7 @@ export function useAppStepsQuery( }); } /** - * Fetch AppStep list without React hooks + * The user achieving a requirement for a level. Log table that has every single step ever taken. * * @example * ```ts @@ -113,7 +113,7 @@ export async function fetchAppStepsQuery(params: { return getClient().appStep.findMany(args).unwrap(); } /** - * Prefetch AppStep list for SSR or cache warming + * The user achieving a requirement for a level. Log table that has every single step ever taken. * * @example * ```ts diff --git a/sdk/constructive-react/src/admin/hooks/skills/appAchievement.md b/sdk/constructive-react/src/admin/hooks/skills/appAchievement.md index f791c42cf..109aaf8bb 100644 --- a/sdk/constructive-react/src/admin/hooks/skills/appAchievement.md +++ b/sdk/constructive-react/src/admin/hooks/skills/appAchievement.md @@ -2,7 +2,7 @@ -React Query hooks for AppAchievement data operations +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 diff --git a/sdk/constructive-react/src/admin/hooks/skills/appLevel.md b/sdk/constructive-react/src/admin/hooks/skills/appLevel.md index b40b3516f..bd72a41e7 100644 --- a/sdk/constructive-react/src/admin/hooks/skills/appLevel.md +++ b/sdk/constructive-react/src/admin/hooks/skills/appLevel.md @@ -2,7 +2,7 @@ -React Query hooks for AppLevel data operations +Levels for achievement ## Usage diff --git a/sdk/constructive-react/src/admin/hooks/skills/appLevelRequirement.md b/sdk/constructive-react/src/admin/hooks/skills/appLevelRequirement.md index b57886891..82fdcbb8a 100644 --- a/sdk/constructive-react/src/admin/hooks/skills/appLevelRequirement.md +++ b/sdk/constructive-react/src/admin/hooks/skills/appLevelRequirement.md @@ -2,7 +2,7 @@ -React Query hooks for AppLevelRequirement data operations +Requirements to achieve a level ## Usage diff --git a/sdk/constructive-react/src/admin/hooks/skills/appStep.md b/sdk/constructive-react/src/admin/hooks/skills/appStep.md index d14d1b243..9e8de0574 100644 --- a/sdk/constructive-react/src/admin/hooks/skills/appStep.md +++ b/sdk/constructive-react/src/admin/hooks/skills/appStep.md @@ -2,7 +2,7 @@ -React Query hooks for AppStep data operations +The user achieving a requirement for a level. Log table that has every single step ever taken. ## Usage diff --git a/sdk/constructive-react/src/admin/orm/skills/appAchievement.md b/sdk/constructive-react/src/admin/orm/skills/appAchievement.md index 3e7b712a8..92ab466a3 100644 --- a/sdk/constructive-react/src/admin/orm/skills/appAchievement.md +++ b/sdk/constructive-react/src/admin/orm/skills/appAchievement.md @@ -2,7 +2,7 @@ -ORM operations for AppAchievement records +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 diff --git a/sdk/constructive-react/src/admin/orm/skills/appLevel.md b/sdk/constructive-react/src/admin/orm/skills/appLevel.md index b9c1a83b0..3677ecc37 100644 --- a/sdk/constructive-react/src/admin/orm/skills/appLevel.md +++ b/sdk/constructive-react/src/admin/orm/skills/appLevel.md @@ -2,7 +2,7 @@ -ORM operations for AppLevel records +Levels for achievement ## Usage diff --git a/sdk/constructive-react/src/admin/orm/skills/appLevelRequirement.md b/sdk/constructive-react/src/admin/orm/skills/appLevelRequirement.md index 10cfc240d..28df77ff5 100644 --- a/sdk/constructive-react/src/admin/orm/skills/appLevelRequirement.md +++ b/sdk/constructive-react/src/admin/orm/skills/appLevelRequirement.md @@ -2,7 +2,7 @@ -ORM operations for AppLevelRequirement records +Requirements to achieve a level ## Usage diff --git a/sdk/constructive-react/src/admin/orm/skills/appStep.md b/sdk/constructive-react/src/admin/orm/skills/appStep.md index 840537361..3c349de1f 100644 --- a/sdk/constructive-react/src/admin/orm/skills/appStep.md +++ b/sdk/constructive-react/src/admin/orm/skills/appStep.md @@ -2,7 +2,7 @@ -ORM operations for AppStep records +The user achieving a requirement for a level. Log table that has every single step ever taken. ## Usage diff --git a/sdk/constructive-react/src/objects/hooks/README.md b/sdk/constructive-react/src/objects/hooks/README.md index 3ca2a948d..c910aa832 100644 --- a/sdk/constructive-react/src/objects/hooks/README.md +++ b/sdk/constructive-react/src/objects/hooks/README.md @@ -39,21 +39,21 @@ function App() { | `useCreateObjectMutation` | Mutation | Create a object | | `useUpdateObjectMutation` | Mutation | Update a object | | `useDeleteObjectMutation` | Mutation | Delete a object | -| `useRefsQuery` | Query | List all refs | -| `useRefQuery` | Query | Get one ref | -| `useCreateRefMutation` | Mutation | Create a ref | -| `useUpdateRefMutation` | Mutation | Update a ref | -| `useDeleteRefMutation` | Mutation | Delete a ref | -| `useStoresQuery` | Query | List all stores | -| `useStoreQuery` | Query | Get one store | -| `useCreateStoreMutation` | Mutation | Create a store | -| `useUpdateStoreMutation` | Mutation | Update a store | -| `useDeleteStoreMutation` | Mutation | Delete a store | -| `useCommitsQuery` | Query | List all commits | -| `useCommitQuery` | Query | Get one commit | -| `useCreateCommitMutation` | Mutation | Create a commit | -| `useUpdateCommitMutation` | Mutation | Update a commit | -| `useDeleteCommitMutation` | Mutation | Delete a commit | +| `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. | +| `useUpdateRefMutation` | Mutation | A ref is a data structure for pointing to a commit. | +| `useDeleteRefMutation` | Mutation | A ref is a data structure for pointing to a commit. | +| `useStoresQuery` | Query | A store represents an isolated object repository within a database. | +| `useStoreQuery` | Query | A store represents an isolated object repository within a database. | +| `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. | +| `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. | | `useRevParseQuery` | Query | revParse | | `useGetAllObjectsFromRootQuery` | Query | Reads and enables pagination through a set of `Object`. | | `useGetPathObjectsFromRootQuery` | Query | Reads and enables pagination through a set of `Object`. | diff --git a/sdk/constructive-react/src/objects/hooks/mutations/useCreateCommitMutation.ts b/sdk/constructive-react/src/objects/hooks/mutations/useCreateCommitMutation.ts index 7e803c25a..6caa47901 100644 --- a/sdk/constructive-react/src/objects/hooks/mutations/useCreateCommitMutation.ts +++ b/sdk/constructive-react/src/objects/hooks/mutations/useCreateCommitMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for Commit + * A commit records changes to the repository. * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { CommitSelect, CommitWithRelations, CreateCommitInput } from '../.. import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { CommitSelect, CommitWithRelations, CreateCommitInput } from '../../orm/input-types'; /** - * Mutation hook for creating a Commit + * A commit records changes to the repository. * * @example * ```tsx diff --git a/sdk/constructive-react/src/objects/hooks/mutations/useCreateRefMutation.ts b/sdk/constructive-react/src/objects/hooks/mutations/useCreateRefMutation.ts index 6f26a224e..01677f8d6 100644 --- a/sdk/constructive-react/src/objects/hooks/mutations/useCreateRefMutation.ts +++ b/sdk/constructive-react/src/objects/hooks/mutations/useCreateRefMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for Ref + * A ref is a data structure for pointing to a commit. * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { RefSelect, RefWithRelations, CreateRefInput } from '../../orm/inpu import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { RefSelect, RefWithRelations, CreateRefInput } from '../../orm/input-types'; /** - * Mutation hook for creating a Ref + * A ref is a data structure for pointing to a commit. * * @example * ```tsx diff --git a/sdk/constructive-react/src/objects/hooks/mutations/useCreateStoreMutation.ts b/sdk/constructive-react/src/objects/hooks/mutations/useCreateStoreMutation.ts index 54c3b2ab9..29ff8c86a 100644 --- a/sdk/constructive-react/src/objects/hooks/mutations/useCreateStoreMutation.ts +++ b/sdk/constructive-react/src/objects/hooks/mutations/useCreateStoreMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for Store + * A store represents an isolated object repository within a database. * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { StoreSelect, StoreWithRelations, CreateStoreInput } from '../../or import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { StoreSelect, StoreWithRelations, CreateStoreInput } from '../../orm/input-types'; /** - * Mutation hook for creating a Store + * A store represents an isolated object repository within a database. * * @example * ```tsx diff --git a/sdk/constructive-react/src/objects/hooks/mutations/useDeleteCommitMutation.ts b/sdk/constructive-react/src/objects/hooks/mutations/useDeleteCommitMutation.ts index 435da8423..ed07d6d48 100644 --- a/sdk/constructive-react/src/objects/hooks/mutations/useDeleteCommitMutation.ts +++ b/sdk/constructive-react/src/objects/hooks/mutations/useDeleteCommitMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for Commit + * A commit records changes to the repository. * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { CommitSelect, CommitWithRelations } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { CommitSelect, CommitWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a Commit with typed selection + * A commit records changes to the repository. * * @example * ```tsx diff --git a/sdk/constructive-react/src/objects/hooks/mutations/useDeleteRefMutation.ts b/sdk/constructive-react/src/objects/hooks/mutations/useDeleteRefMutation.ts index 5059da529..c6620e71a 100644 --- a/sdk/constructive-react/src/objects/hooks/mutations/useDeleteRefMutation.ts +++ b/sdk/constructive-react/src/objects/hooks/mutations/useDeleteRefMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for Ref + * A ref is a data structure for pointing to a commit. * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { RefSelect, RefWithRelations } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { RefSelect, RefWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a Ref with typed selection + * A ref is a data structure for pointing to a commit. * * @example * ```tsx diff --git a/sdk/constructive-react/src/objects/hooks/mutations/useDeleteStoreMutation.ts b/sdk/constructive-react/src/objects/hooks/mutations/useDeleteStoreMutation.ts index d78ea3bb5..5b6700bdb 100644 --- a/sdk/constructive-react/src/objects/hooks/mutations/useDeleteStoreMutation.ts +++ b/sdk/constructive-react/src/objects/hooks/mutations/useDeleteStoreMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for Store + * A store represents an isolated object repository within a database. * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { StoreSelect, StoreWithRelations } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { StoreSelect, StoreWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a Store with typed selection + * A store represents an isolated object repository within a database. * * @example * ```tsx diff --git a/sdk/constructive-react/src/objects/hooks/mutations/useUpdateCommitMutation.ts b/sdk/constructive-react/src/objects/hooks/mutations/useUpdateCommitMutation.ts index d03e177ec..7ecb53f39 100644 --- a/sdk/constructive-react/src/objects/hooks/mutations/useUpdateCommitMutation.ts +++ b/sdk/constructive-react/src/objects/hooks/mutations/useUpdateCommitMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for Commit + * A commit records changes to the repository. * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { CommitSelect, CommitWithRelations, CommitPatch } from '../../orm/i import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { CommitSelect, CommitWithRelations, CommitPatch } from '../../orm/input-types'; /** - * Mutation hook for updating a Commit + * A commit records changes to the repository. * * @example * ```tsx diff --git a/sdk/constructive-react/src/objects/hooks/mutations/useUpdateRefMutation.ts b/sdk/constructive-react/src/objects/hooks/mutations/useUpdateRefMutation.ts index e9b413324..c17f92f30 100644 --- a/sdk/constructive-react/src/objects/hooks/mutations/useUpdateRefMutation.ts +++ b/sdk/constructive-react/src/objects/hooks/mutations/useUpdateRefMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for Ref + * A ref is a data structure for pointing to a commit. * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { RefSelect, RefWithRelations, RefPatch } from '../../orm/input-type import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { RefSelect, RefWithRelations, RefPatch } from '../../orm/input-types'; /** - * Mutation hook for updating a Ref + * A ref is a data structure for pointing to a commit. * * @example * ```tsx diff --git a/sdk/constructive-react/src/objects/hooks/mutations/useUpdateStoreMutation.ts b/sdk/constructive-react/src/objects/hooks/mutations/useUpdateStoreMutation.ts index 8ddedfd0a..885b55236 100644 --- a/sdk/constructive-react/src/objects/hooks/mutations/useUpdateStoreMutation.ts +++ b/sdk/constructive-react/src/objects/hooks/mutations/useUpdateStoreMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for Store + * A store represents an isolated object repository within a database. * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { StoreSelect, StoreWithRelations, StorePatch } from '../../orm/inpu import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { StoreSelect, StoreWithRelations, StorePatch } from '../../orm/input-types'; /** - * Mutation hook for updating a Store + * A store represents an isolated object repository within a database. * * @example * ```tsx diff --git a/sdk/constructive-react/src/objects/hooks/queries/useCommitQuery.ts b/sdk/constructive-react/src/objects/hooks/queries/useCommitQuery.ts index 99bfe6e3c..d21281d4d 100644 --- a/sdk/constructive-react/src/objects/hooks/queries/useCommitQuery.ts +++ b/sdk/constructive-react/src/objects/hooks/queries/useCommitQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for Commit + * A commit records changes to the repository. * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { CommitSelect, CommitWithRelations } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const commitQueryKey = commitKeys.detail; /** - * Query hook for fetching a single Commit + * A commit records changes to the repository. * * @example * ```tsx @@ -70,7 +70,7 @@ export function useCommitQuery( }); } /** - * Fetch a single Commit without React hooks + * A commit records changes to the repository. * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchCommitQuery(params: { .unwrap(); } /** - * Prefetch a single Commit for SSR or cache warming + * A commit records changes to the repository. * * @example * ```ts diff --git a/sdk/constructive-react/src/objects/hooks/queries/useCommitsQuery.ts b/sdk/constructive-react/src/objects/hooks/queries/useCommitsQuery.ts index 1ec69f698..0d25aaa45 100644 --- a/sdk/constructive-react/src/objects/hooks/queries/useCommitsQuery.ts +++ b/sdk/constructive-react/src/objects/hooks/queries/useCommitsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for Commit + * A commit records changes to the repository. * @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 commitsQueryKey = commitKeys.list; /** - * Query hook for fetching Commit list + * A commit records changes to the repository. * * @example * ```tsx @@ -82,7 +82,7 @@ export function useCommitsQuery( }); } /** - * Fetch Commit list without React hooks + * A commit records changes to the repository. * * @example * ```ts @@ -109,7 +109,7 @@ export async function fetchCommitsQuery(params: { return getClient().commit.findMany(args).unwrap(); } /** - * Prefetch Commit list for SSR or cache warming + * A commit records changes to the repository. * * @example * ```ts diff --git a/sdk/constructive-react/src/objects/hooks/queries/useRefQuery.ts b/sdk/constructive-react/src/objects/hooks/queries/useRefQuery.ts index b07bd3470..809602570 100644 --- a/sdk/constructive-react/src/objects/hooks/queries/useRefQuery.ts +++ b/sdk/constructive-react/src/objects/hooks/queries/useRefQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for Ref + * A ref is a data structure for pointing to a commit. * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { RefSelect, RefWithRelations } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const refQueryKey = refKeys.detail; /** - * Query hook for fetching a single Ref + * A ref is a data structure for pointing to a commit. * * @example * ```tsx @@ -70,7 +70,7 @@ export function useRefQuery( }); } /** - * Fetch a single Ref without React hooks + * A ref is a data structure for pointing to a commit. * * @example * ```ts @@ -98,7 +98,7 @@ export async function fetchRefQuery(params: { id: string; selection: SelectionCo .unwrap(); } /** - * Prefetch a single Ref for SSR or cache warming + * A ref is a data structure for pointing to a commit. * * @example * ```ts diff --git a/sdk/constructive-react/src/objects/hooks/queries/useRefsQuery.ts b/sdk/constructive-react/src/objects/hooks/queries/useRefsQuery.ts index fbe141158..f5ae8938e 100644 --- a/sdk/constructive-react/src/objects/hooks/queries/useRefsQuery.ts +++ b/sdk/constructive-react/src/objects/hooks/queries/useRefsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for Ref + * A ref is a data structure for pointing to a commit. * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -21,7 +21,7 @@ export type { RefSelect, RefWithRelations, RefFilter, RefOrderBy } from '../../o /** Query key factory - re-exported from query-keys.ts */ export const refsQueryKey = refKeys.list; /** - * Query hook for fetching Ref list + * A ref is a data structure for pointing to a commit. * * @example * ```tsx @@ -72,7 +72,7 @@ export function useRefsQuery( }); } /** - * Fetch Ref list without React hooks + * A ref is a data structure for pointing to a commit. * * @example * ```ts @@ -99,7 +99,7 @@ export async function fetchRefsQuery(params: { return getClient().ref.findMany(args).unwrap(); } /** - * Prefetch Ref list for SSR or cache warming + * A ref is a data structure for pointing to a commit. * * @example * ```ts diff --git a/sdk/constructive-react/src/objects/hooks/queries/useStoreQuery.ts b/sdk/constructive-react/src/objects/hooks/queries/useStoreQuery.ts index 984f8bf06..98966c63e 100644 --- a/sdk/constructive-react/src/objects/hooks/queries/useStoreQuery.ts +++ b/sdk/constructive-react/src/objects/hooks/queries/useStoreQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for Store + * A store represents an isolated object repository within a database. * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { StoreSelect, StoreWithRelations } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const storeQueryKey = storeKeys.detail; /** - * Query hook for fetching a single Store + * A store represents an isolated object repository within a database. * * @example * ```tsx @@ -70,7 +70,7 @@ export function useStoreQuery( }); } /** - * Fetch a single Store without React hooks + * A store represents an isolated object repository within a database. * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchStoreQuery(params: { .unwrap(); } /** - * Prefetch a single Store for SSR or cache warming + * A store represents an isolated object repository within a database. * * @example * ```ts diff --git a/sdk/constructive-react/src/objects/hooks/queries/useStoresQuery.ts b/sdk/constructive-react/src/objects/hooks/queries/useStoresQuery.ts index 07374bd06..192f926bd 100644 --- a/sdk/constructive-react/src/objects/hooks/queries/useStoresQuery.ts +++ b/sdk/constructive-react/src/objects/hooks/queries/useStoresQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for Store + * A store represents an isolated object repository within a database. * @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 storesQueryKey = storeKeys.list; /** - * Query hook for fetching Store list + * A store represents an isolated object repository within a database. * * @example * ```tsx @@ -82,7 +82,7 @@ export function useStoresQuery( }); } /** - * Fetch Store list without React hooks + * A store represents an isolated object repository within a database. * * @example * ```ts @@ -109,7 +109,7 @@ export async function fetchStoresQuery(params: { return getClient().store.findMany(args).unwrap(); } /** - * Prefetch Store list for SSR or cache warming + * A store represents an isolated object repository within a database. * * @example * ```ts diff --git a/sdk/constructive-react/src/objects/hooks/skills/commit.md b/sdk/constructive-react/src/objects/hooks/skills/commit.md index 9e7270ced..e828be2df 100644 --- a/sdk/constructive-react/src/objects/hooks/skills/commit.md +++ b/sdk/constructive-react/src/objects/hooks/skills/commit.md @@ -2,7 +2,7 @@ -React Query hooks for Commit data operations +A commit records changes to the repository. ## Usage diff --git a/sdk/constructive-react/src/objects/hooks/skills/ref.md b/sdk/constructive-react/src/objects/hooks/skills/ref.md index 47cb13511..c2f1375b1 100644 --- a/sdk/constructive-react/src/objects/hooks/skills/ref.md +++ b/sdk/constructive-react/src/objects/hooks/skills/ref.md @@ -2,7 +2,7 @@ -React Query hooks for Ref data operations +A ref is a data structure for pointing to a commit. ## Usage diff --git a/sdk/constructive-react/src/objects/hooks/skills/store.md b/sdk/constructive-react/src/objects/hooks/skills/store.md index 7ab006f5c..7263efef0 100644 --- a/sdk/constructive-react/src/objects/hooks/skills/store.md +++ b/sdk/constructive-react/src/objects/hooks/skills/store.md @@ -2,7 +2,7 @@ -React Query hooks for Store data operations +A store represents an isolated object repository within a database. ## Usage diff --git a/sdk/constructive-react/src/objects/orm/skills/commit.md b/sdk/constructive-react/src/objects/orm/skills/commit.md index ee1b9fea4..85ded9d62 100644 --- a/sdk/constructive-react/src/objects/orm/skills/commit.md +++ b/sdk/constructive-react/src/objects/orm/skills/commit.md @@ -2,7 +2,7 @@ -ORM operations for Commit records +A commit records changes to the repository. ## Usage diff --git a/sdk/constructive-react/src/objects/orm/skills/ref.md b/sdk/constructive-react/src/objects/orm/skills/ref.md index bf392da9b..3165ec41e 100644 --- a/sdk/constructive-react/src/objects/orm/skills/ref.md +++ b/sdk/constructive-react/src/objects/orm/skills/ref.md @@ -2,7 +2,7 @@ -ORM operations for Ref records +A ref is a data structure for pointing to a commit. ## Usage diff --git a/sdk/constructive-react/src/objects/orm/skills/store.md b/sdk/constructive-react/src/objects/orm/skills/store.md index 95a5a7054..1a9bfc8a5 100644 --- a/sdk/constructive-react/src/objects/orm/skills/store.md +++ b/sdk/constructive-react/src/objects/orm/skills/store.md @@ -2,7 +2,7 @@ -ORM operations for Store records +A store represents an isolated object repository within a database. ## Usage diff --git a/sdk/constructive-react/src/public/hooks/README.md b/sdk/constructive-react/src/public/hooks/README.md index d29c9d778..596e44489 100644 --- a/sdk/constructive-react/src/public/hooks/README.md +++ b/sdk/constructive-react/src/public/hooks/README.md @@ -49,11 +49,11 @@ function App() { | `useCreateObjectMutation` | Mutation | Create a object | | `useUpdateObjectMutation` | Mutation | Update a object | | `useDeleteObjectMutation` | Mutation | Delete a object | -| `useAppLevelRequirementsQuery` | Query | List all appLevelRequirements | -| `useAppLevelRequirementQuery` | Query | Get one appLevelRequirement | -| `useCreateAppLevelRequirementMutation` | Mutation | Create a appLevelRequirement | -| `useUpdateAppLevelRequirementMutation` | Mutation | Update a appLevelRequirement | -| `useDeleteAppLevelRequirementMutation` | Mutation | Delete a appLevelRequirement | +| `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 | | `useDatabasesQuery` | Query | List all databases | | `useDatabaseQuery` | Query | Get one database | | `useCreateDatabaseMutation` | Mutation | Create a database | @@ -129,21 +129,21 @@ function App() { | `useCreateViewMutation` | Mutation | Create a view | | `useUpdateViewMutation` | Mutation | Update a view | | `useDeleteViewMutation` | Mutation | Delete a view | -| `useViewTablesQuery` | Query | List all viewTables | -| `useViewTableQuery` | Query | Get one viewTable | -| `useCreateViewTableMutation` | Mutation | Create a viewTable | -| `useUpdateViewTableMutation` | Mutation | Update a viewTable | -| `useDeleteViewTableMutation` | Mutation | Delete a viewTable | +| `useViewTablesQuery` | Query | Junction table linking views to their joined tables for referential integrity | +| `useViewTableQuery` | Query | Junction table linking views to their joined tables for referential integrity | +| `useCreateViewTableMutation` | Mutation | Junction table linking views to their joined tables for referential integrity | +| `useUpdateViewTableMutation` | Mutation | Junction table linking views to their joined tables for referential integrity | +| `useDeleteViewTableMutation` | Mutation | Junction table linking views to their joined tables for referential integrity | | `useViewGrantsQuery` | Query | List all viewGrants | | `useViewGrantQuery` | Query | Get one viewGrant | | `useCreateViewGrantMutation` | Mutation | Create a viewGrant | | `useUpdateViewGrantMutation` | Mutation | Update a viewGrant | | `useDeleteViewGrantMutation` | Mutation | Delete a viewGrant | -| `useViewRulesQuery` | Query | List all viewRules | -| `useViewRuleQuery` | Query | Get one viewRule | -| `useCreateViewRuleMutation` | Mutation | Create a viewRule | -| `useUpdateViewRuleMutation` | Mutation | Update a viewRule | -| `useDeleteViewRuleMutation` | Mutation | Delete a viewRule | +| `useViewRulesQuery` | Query | DO INSTEAD rules for views (e.g., read-only enforcement) | +| `useViewRuleQuery` | Query | DO INSTEAD rules for views (e.g., read-only enforcement) | +| `useCreateViewRuleMutation` | Mutation | DO INSTEAD rules for views (e.g., read-only enforcement) | +| `useUpdateViewRuleMutation` | Mutation | DO INSTEAD rules for views (e.g., read-only enforcement) | +| `useDeleteViewRuleMutation` | Mutation | DO INSTEAD rules for views (e.g., read-only enforcement) | | `useTableModulesQuery` | Query | List all tableModules | | `useTableModuleQuery` | Query | Get one tableModule | | `useCreateTableModuleMutation` | Mutation | Create a tableModule | @@ -324,11 +324,11 @@ function App() { | `useCreateUuidModuleMutation` | Mutation | Create a uuidModule | | `useUpdateUuidModuleMutation` | Mutation | Update a uuidModule | | `useDeleteUuidModuleMutation` | Mutation | Delete a uuidModule | -| `useDatabaseProvisionModulesQuery` | Query | List all databaseProvisionModules | -| `useDatabaseProvisionModuleQuery` | Query | Get one databaseProvisionModule | -| `useCreateDatabaseProvisionModuleMutation` | Mutation | Create a databaseProvisionModule | -| `useUpdateDatabaseProvisionModuleMutation` | Mutation | Update a databaseProvisionModule | -| `useDeleteDatabaseProvisionModuleMutation` | Mutation | Delete a databaseProvisionModule | +| `useDatabaseProvisionModulesQuery` | Query | Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. | +| `useDatabaseProvisionModuleQuery` | Query | Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. | +| `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 | @@ -379,16 +379,16 @@ function App() { | `useCreateOrgLimitMutation` | Mutation | Create a orgLimit | | `useUpdateOrgLimitMutation` | Mutation | Update a orgLimit | | `useDeleteOrgLimitMutation` | Mutation | Delete a orgLimit | -| `useAppStepsQuery` | Query | List all appSteps | -| `useAppStepQuery` | Query | Get one appStep | -| `useCreateAppStepMutation` | Mutation | Create a appStep | -| `useUpdateAppStepMutation` | Mutation | Update a appStep | -| `useDeleteAppStepMutation` | Mutation | Delete a appStep | -| `useAppAchievementsQuery` | Query | List all appAchievements | -| `useAppAchievementQuery` | Query | Get one appAchievement | -| `useCreateAppAchievementMutation` | Mutation | Create a appAchievement | -| `useUpdateAppAchievementMutation` | Mutation | Update a appAchievement | -| `useDeleteAppAchievementMutation` | Mutation | Delete a appAchievement | +| `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 | @@ -414,16 +414,16 @@ function App() { | `useCreateAppPermissionDefaultMutation` | Mutation | Create a appPermissionDefault | | `useUpdateAppPermissionDefaultMutation` | Mutation | Update a appPermissionDefault | | `useDeleteAppPermissionDefaultMutation` | Mutation | Delete a appPermissionDefault | -| `useRefsQuery` | Query | List all refs | -| `useRefQuery` | Query | Get one ref | -| `useCreateRefMutation` | Mutation | Create a ref | -| `useUpdateRefMutation` | Mutation | Update a ref | -| `useDeleteRefMutation` | Mutation | Delete a ref | -| `useStoresQuery` | Query | List all stores | -| `useStoreQuery` | Query | Get one store | -| `useCreateStoreMutation` | Mutation | Create a store | -| `useUpdateStoreMutation` | Mutation | Update a store | -| `useDeleteStoreMutation` | Mutation | Delete a store | +| `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. | +| `useUpdateRefMutation` | Mutation | A ref is a data structure for pointing to a commit. | +| `useDeleteRefMutation` | Mutation | A ref is a data structure for pointing to a commit. | +| `useStoresQuery` | Query | A store represents an isolated object repository within a database. | +| `useStoreQuery` | Query | A store represents an isolated object repository within a database. | +| `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. | | `useRoleTypesQuery` | Query | List all roleTypes | | `useRoleTypeQuery` | Query | Get one roleType | | `useCreateRoleTypeMutation` | Mutation | Create a roleType | @@ -469,16 +469,16 @@ function App() { | `useCreateAppMembershipDefaultMutation` | Mutation | Create a appMembershipDefault | | `useUpdateAppMembershipDefaultMutation` | Mutation | Update a appMembershipDefault | | `useDeleteAppMembershipDefaultMutation` | Mutation | Delete a appMembershipDefault | -| `useNodeTypeRegistriesQuery` | Query | List all nodeTypeRegistries | -| `useNodeTypeRegistryQuery` | Query | Get one nodeTypeRegistry | -| `useCreateNodeTypeRegistryMutation` | Mutation | Create a nodeTypeRegistry | -| `useUpdateNodeTypeRegistryMutation` | Mutation | Update a nodeTypeRegistry | -| `useDeleteNodeTypeRegistryMutation` | Mutation | Delete a nodeTypeRegistry | -| `useCommitsQuery` | Query | List all commits | -| `useCommitQuery` | Query | Get one commit | -| `useCreateCommitMutation` | Mutation | Create a commit | -| `useUpdateCommitMutation` | Mutation | Update a commit | -| `useDeleteCommitMutation` | Mutation | Delete a commit | +| `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.). | +| `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 | @@ -494,11 +494,11 @@ function App() { | `useCreateAuditLogMutation` | Mutation | Create a auditLog | | `useUpdateAuditLogMutation` | Mutation | Update a auditLog | | `useDeleteAuditLogMutation` | Mutation | Delete a auditLog | -| `useAppLevelsQuery` | Query | List all appLevels | -| `useAppLevelQuery` | Query | Get one appLevel | -| `useCreateAppLevelMutation` | Mutation | Create a appLevel | -| `useUpdateAppLevelMutation` | Mutation | Update a appLevel | -| `useDeleteAppLevelMutation` | Mutation | Delete a appLevel | +| `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 | | `useSqlMigrationsQuery` | Query | List all sqlMigrations | | `useSqlMigrationQuery` | Query | Get one sqlMigration | | `useCreateSqlMigrationMutation` | Mutation | Create a sqlMigration | diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppAchievementMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppAchievementMutation.ts index b39c550bf..769f9a739 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 @@ /** - * Create mutation hook for 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. * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAppAchievementInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a 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. * * @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 393ed2c2a..ba7c1fd68 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 @@ /** - * Create mutation hook for AppLevel + * Levels for achievement * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAppLevelInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a AppLevel + * Levels for achievement * * @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 cde42cf7e..08cd438f8 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 @@ /** - * Create mutation hook for AppLevelRequirement + * Requirements 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'; /** - * Mutation hook for creating a AppLevelRequirement + * Requirements to achieve a level * * @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 479dc0a3a..1e521eeaf 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 @@ /** - * Create mutation hook for AppStep + * The user achieving a requirement for a level. Log table that has every single step ever taken. * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateAppStepInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a AppStep + * The user achieving a requirement for a level. Log table that has every single step ever taken. * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateCommitMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateCommitMutation.ts index 7e803c25a..6caa47901 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateCommitMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateCommitMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for Commit + * A commit records changes to the repository. * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { CommitSelect, CommitWithRelations, CreateCommitInput } from '../.. import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { CommitSelect, CommitWithRelations, CreateCommitInput } from '../../orm/input-types'; /** - * Mutation hook for creating a Commit + * A commit records changes to the repository. * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateDatabaseProvisionModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateDatabaseProvisionModuleMutation.ts index 7192fd95a..97dd6672a 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateDatabaseProvisionModuleMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateDatabaseProvisionModuleMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for DatabaseProvisionModule + * Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateDatabaseProvisionModuleInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a DatabaseProvisionModule + * Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateNodeTypeRegistryMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateNodeTypeRegistryMutation.ts index 584e4c995..938b537c0 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateNodeTypeRegistryMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateNodeTypeRegistryMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for 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.). * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateNodeTypeRegistryInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a 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.). * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateRefMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateRefMutation.ts index 6f26a224e..01677f8d6 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateRefMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateRefMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for Ref + * A ref is a data structure for pointing to a commit. * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { RefSelect, RefWithRelations, CreateRefInput } from '../../orm/inpu import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { RefSelect, RefWithRelations, CreateRefInput } from '../../orm/input-types'; /** - * Mutation hook for creating a Ref + * A ref is a data structure for pointing to a commit. * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateStoreMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateStoreMutation.ts index 54c3b2ab9..29ff8c86a 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateStoreMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateStoreMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for Store + * A store represents an isolated object repository within a database. * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { StoreSelect, StoreWithRelations, CreateStoreInput } from '../../or import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { StoreSelect, StoreWithRelations, CreateStoreInput } from '../../orm/input-types'; /** - * Mutation hook for creating a Store + * A store represents an isolated object repository within a database. * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateViewRuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateViewRuleMutation.ts index c20e74707..5b3cebb1b 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateViewRuleMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateViewRuleMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for ViewRule + * DO INSTEAD rules for views (e.g., read-only enforcement) * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateViewRuleInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a ViewRule + * DO INSTEAD rules for views (e.g., read-only enforcement) * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateViewTableMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateViewTableMutation.ts index e042b1331..f21006d6b 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateViewTableMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateViewTableMutation.ts @@ -1,5 +1,5 @@ /** - * Create mutation hook for ViewTable + * Junction table linking views to their joined tables for referential integrity * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { CreateViewTableInput, } from '../../orm/input-types'; /** - * Mutation hook for creating a ViewTable + * Junction table linking views to their joined tables for referential integrity * * @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 73f3b0b52..cbcdae607 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 @@ /** - * Delete mutation hook for 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. * @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'; /** - * Mutation hook for deleting a AppAchievement with typed selection + * 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. * * @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 d7d002ddb..ae1a69ddd 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 @@ /** - * Delete mutation hook for AppLevel + * Levels for achievement * @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'; /** - * Mutation hook for deleting a AppLevel with typed selection + * Levels for achievement * * @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 bcb3e249f..624b78188 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 @@ /** - * Delete mutation hook for AppLevelRequirement + * Requirements 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'; /** - * Mutation hook for deleting a AppLevelRequirement with typed selection + * Requirements to achieve a level * * @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 f9f36baf8..9144c5c0a 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 @@ /** - * Delete mutation hook for AppStep + * The user achieving a requirement for a level. Log table that has every single step ever taken. * @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'; /** - * Mutation hook for deleting a AppStep with typed selection + * The user achieving a requirement for a level. Log table that has every single step ever taken. * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteCommitMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteCommitMutation.ts index 435da8423..ed07d6d48 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteCommitMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteCommitMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for Commit + * A commit records changes to the repository. * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { CommitSelect, CommitWithRelations } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { CommitSelect, CommitWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a Commit with typed selection + * A commit records changes to the repository. * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteDatabaseProvisionModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteDatabaseProvisionModuleMutation.ts index a93386ca5..c368e63e7 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteDatabaseProvisionModuleMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteDatabaseProvisionModuleMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for DatabaseProvisionModule + * Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -21,7 +21,7 @@ export type { DatabaseProvisionModuleWithRelations, } from '../../orm/input-types'; /** - * Mutation hook for deleting a DatabaseProvisionModule with typed selection + * Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteNodeTypeRegistryMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteNodeTypeRegistryMutation.ts index a7a6c2ece..770650f56 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteNodeTypeRegistryMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteNodeTypeRegistryMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for 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.). * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { NodeTypeRegistrySelect, NodeTypeRegistryWithRelations } from '../. import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { NodeTypeRegistrySelect, NodeTypeRegistryWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a NodeTypeRegistry with typed selection + * Registry of high-level semantic AST node types using domain-prefixed naming. These IR nodes compile to multiple targets (Postgres RLS, egress, ingress, etc.). * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteRefMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteRefMutation.ts index 5059da529..c6620e71a 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteRefMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteRefMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for Ref + * A ref is a data structure for pointing to a commit. * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { RefSelect, RefWithRelations } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { RefSelect, RefWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a Ref with typed selection + * A ref is a data structure for pointing to a commit. * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteStoreMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteStoreMutation.ts index d78ea3bb5..5b6700bdb 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteStoreMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteStoreMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for Store + * A store represents an isolated object repository within a database. * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { StoreSelect, StoreWithRelations } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { StoreSelect, StoreWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a Store with typed selection + * A store represents an isolated object repository within a database. * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteViewRuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteViewRuleMutation.ts index b1f633bdf..f8c472b0e 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteViewRuleMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteViewRuleMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for ViewRule + * DO INSTEAD rules for views (e.g., read-only enforcement) * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { ViewRuleSelect, ViewRuleWithRelations } from '../../orm/input-type import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { ViewRuleSelect, ViewRuleWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a ViewRule with typed selection + * DO INSTEAD rules for views (e.g., read-only enforcement) * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteViewTableMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteViewTableMutation.ts index 2c5d6fec7..5172e33b9 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteViewTableMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteViewTableMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for ViewTable + * Junction table linking views to their joined tables for referential integrity * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { ViewTableSelect, ViewTableWithRelations } from '../../orm/input-ty import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { ViewTableSelect, ViewTableWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a ViewTable with typed selection + * Junction table linking views to their joined tables for referential integrity * * @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 799b7770f..837badc1b 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 @@ /** - * Update mutation hook for 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. * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { AppAchievementPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a 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. * * @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 309666ec5..fbb3cc7b5 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 @@ /** - * Update mutation hook for AppLevel + * Levels for achievement * @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'; /** - * Mutation hook for updating a AppLevel + * Levels for achievement * * @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 418f3464a..07c816a74 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 @@ /** - * Update mutation hook for AppLevelRequirement + * Requirements 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'; /** - * Mutation hook for updating a AppLevelRequirement + * Requirements to achieve a level * * @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 2cfe95818..a34404554 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 @@ /** - * Update mutation hook for AppStep + * The user achieving a requirement for a level. Log table that has every single step ever taken. * @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'; /** - * Mutation hook for updating a AppStep + * The user achieving a requirement for a level. Log table that has every single step ever taken. * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateCommitMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateCommitMutation.ts index d03e177ec..7ecb53f39 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateCommitMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateCommitMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for Commit + * A commit records changes to the repository. * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { CommitSelect, CommitWithRelations, CommitPatch } from '../../orm/i import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { CommitSelect, CommitWithRelations, CommitPatch } from '../../orm/input-types'; /** - * Mutation hook for updating a Commit + * A commit records changes to the repository. * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateDatabaseProvisionModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateDatabaseProvisionModuleMutation.ts index c844f5426..f673af003 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateDatabaseProvisionModuleMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateDatabaseProvisionModuleMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for DatabaseProvisionModule + * Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { DatabaseProvisionModulePatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a DatabaseProvisionModule + * Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateNodeTypeRegistryMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateNodeTypeRegistryMutation.ts index 86d619ebb..abd083d30 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateNodeTypeRegistryMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateNodeTypeRegistryMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for 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.). * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { NodeTypeRegistryPatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a 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.). * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateRefMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateRefMutation.ts index e9b413324..c17f92f30 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateRefMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateRefMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for Ref + * A ref is a data structure for pointing to a commit. * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { RefSelect, RefWithRelations, RefPatch } from '../../orm/input-type import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { RefSelect, RefWithRelations, RefPatch } from '../../orm/input-types'; /** - * Mutation hook for updating a Ref + * A ref is a data structure for pointing to a commit. * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateStoreMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateStoreMutation.ts index 8ddedfd0a..885b55236 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateStoreMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateStoreMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for Store + * A store represents an isolated object repository within a database. * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { StoreSelect, StoreWithRelations, StorePatch } from '../../orm/inpu import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { StoreSelect, StoreWithRelations, StorePatch } from '../../orm/input-types'; /** - * Mutation hook for updating a Store + * A store represents an isolated object repository within a database. * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateViewRuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateViewRuleMutation.ts index 6af2f784c..4c1df0db5 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateViewRuleMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateViewRuleMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for ViewRule + * DO INSTEAD rules for views (e.g., read-only enforcement) * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -15,7 +15,7 @@ import type { ViewRuleSelect, ViewRuleWithRelations, ViewRulePatch } from '../.. import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { ViewRuleSelect, ViewRuleWithRelations, ViewRulePatch } from '../../orm/input-types'; /** - * Mutation hook for updating a ViewRule + * DO INSTEAD rules for views (e.g., read-only enforcement) * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateViewTableMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateViewTableMutation.ts index 4dd3f2649..34b1f0301 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateViewTableMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateViewTableMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for ViewTable + * Junction table linking views to their joined tables for referential integrity * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -23,7 +23,7 @@ export type { ViewTablePatch, } from '../../orm/input-types'; /** - * Mutation hook for updating a ViewTable + * Junction table linking views to their joined tables for referential integrity * * @example * ```tsx diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppAchievementQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppAchievementQuery.ts index 136d30313..df345dff7 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 @@ /** - * Single item query hook for 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. * @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; /** - * Query hook for fetching a single 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. * * @example * ```tsx @@ -70,7 +70,7 @@ export function useAppAchievementQuery( }); } /** - * Fetch a single AppAchievement without React hooks + * 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. * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchAppAchievementQuery(params: { .unwrap(); } /** - * Prefetch a single AppAchievement for SSR or cache warming + * 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. * * @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 fb905cd4e..da6cdc397 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 @@ /** - * List query hook for 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. * @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; /** - * Query hook for fetching AppAchievement 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. * * @example * ```tsx @@ -90,7 +90,7 @@ export function useAppAchievementsQuery( }); } /** - * Fetch AppAchievement list without React hooks + * 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. * * @example * ```ts @@ -121,7 +121,7 @@ export async function fetchAppAchievementsQuery(params: { return getClient().appAchievement.findMany(args).unwrap(); } /** - * Prefetch AppAchievement list for SSR or cache warming + * 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. * * @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 0c550dd44..6d494bc93 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 @@ /** - * Single item query hook for AppLevel + * Levels for achievement * @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; /** - * Query hook for fetching a single AppLevel + * Levels for achievement * * @example * ```tsx @@ -70,7 +70,7 @@ export function useAppLevelQuery( }); } /** - * Fetch a single AppLevel without React hooks + * Levels for achievement * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchAppLevelQuery(params: { .unwrap(); } /** - * Prefetch a single AppLevel for SSR or cache warming + * Levels for achievement * * @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 03271277e..1735a08d4 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 @@ /** - * Single item query hook for AppLevelRequirement + * Requirements 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; /** - * Query hook for fetching a single AppLevelRequirement + * Requirements to achieve a level * * @example * ```tsx @@ -76,7 +76,7 @@ export function useAppLevelRequirementQuery( }); } /** - * Fetch a single AppLevelRequirement without React hooks + * Requirements to achieve a level * * @example * ```ts @@ -107,7 +107,7 @@ export async function fetchAppLevelRequirementQuery(params: { .unwrap(); } /** - * Prefetch a single AppLevelRequirement for SSR or cache warming + * Requirements 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 f085058b5..502b029db 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 @@ /** - * List query hook for AppLevelRequirement + * Requirements 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; /** - * Query hook for fetching AppLevelRequirement list + * Requirements to achieve a level * * @example * ```tsx @@ -95,7 +95,7 @@ export function useAppLevelRequirementsQuery( }); } /** - * Fetch AppLevelRequirement list without React hooks + * Requirements to achieve a level * * @example * ```ts @@ -133,7 +133,7 @@ export async function fetchAppLevelRequirementsQuery(params: { return getClient().appLevelRequirement.findMany(args).unwrap(); } /** - * Prefetch AppLevelRequirement list for SSR or cache warming + * Requirements 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 39c9b44bc..b576855c9 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 @@ /** - * List query hook for AppLevel + * Levels for achievement * @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; /** - * Query hook for fetching AppLevel list + * Levels for achievement * * @example * ```tsx @@ -84,7 +84,7 @@ export function useAppLevelsQuery( }); } /** - * Fetch AppLevel list without React hooks + * Levels for achievement * * @example * ```ts @@ -113,7 +113,7 @@ export async function fetchAppLevelsQuery(params: { return getClient().appLevel.findMany(args).unwrap(); } /** - * Prefetch AppLevel list for SSR or cache warming + * Levels for achievement * * @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 7ccfc9884..d6d579aef 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 @@ /** - * Single item query hook for AppStep + * The user achieving a requirement for a level. Log table that has every single step ever taken. * @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; /** - * Query hook for fetching a single AppStep + * The user achieving a requirement for a level. Log table that has every single step ever taken. * * @example * ```tsx @@ -70,7 +70,7 @@ export function useAppStepQuery( }); } /** - * Fetch a single AppStep without React hooks + * The user achieving a requirement for a level. Log table that has every single step ever taken. * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchAppStepQuery(params: { .unwrap(); } /** - * Prefetch a single AppStep for SSR or cache warming + * The user achieving a requirement for a level. Log table that has every single step ever taken. * * @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 b6f7d90d8..9a4ec77c5 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 @@ /** - * List query hook for AppStep + * The user achieving a requirement for a level. Log table that has every single step ever taken. * @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; /** - * Query hook for fetching AppStep list + * The user achieving a requirement for a level. Log table that has every single step ever taken. * * @example * ```tsx @@ -84,7 +84,7 @@ export function useAppStepsQuery( }); } /** - * Fetch AppStep list without React hooks + * The user achieving a requirement for a level. Log table that has every single step ever taken. * * @example * ```ts @@ -113,7 +113,7 @@ export async function fetchAppStepsQuery(params: { return getClient().appStep.findMany(args).unwrap(); } /** - * Prefetch AppStep list for SSR or cache warming + * The user achieving a requirement for a level. Log table that has every single step ever taken. * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useCommitQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useCommitQuery.ts index 99bfe6e3c..d21281d4d 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useCommitQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useCommitQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for Commit + * A commit records changes to the repository. * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { CommitSelect, CommitWithRelations } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const commitQueryKey = commitKeys.detail; /** - * Query hook for fetching a single Commit + * A commit records changes to the repository. * * @example * ```tsx @@ -70,7 +70,7 @@ export function useCommitQuery( }); } /** - * Fetch a single Commit without React hooks + * A commit records changes to the repository. * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchCommitQuery(params: { .unwrap(); } /** - * Prefetch a single Commit for SSR or cache warming + * A commit records changes to the repository. * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useCommitsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useCommitsQuery.ts index 1ec69f698..0d25aaa45 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useCommitsQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useCommitsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for Commit + * A commit records changes to the repository. * @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 commitsQueryKey = commitKeys.list; /** - * Query hook for fetching Commit list + * A commit records changes to the repository. * * @example * ```tsx @@ -82,7 +82,7 @@ export function useCommitsQuery( }); } /** - * Fetch Commit list without React hooks + * A commit records changes to the repository. * * @example * ```ts @@ -109,7 +109,7 @@ export async function fetchCommitsQuery(params: { return getClient().commit.findMany(args).unwrap(); } /** - * Prefetch Commit list for SSR or cache warming + * A commit records changes to the repository. * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useDatabaseProvisionModuleQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useDatabaseProvisionModuleQuery.ts index 0899cb9b3..394ec3ab8 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useDatabaseProvisionModuleQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useDatabaseProvisionModuleQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for DatabaseProvisionModule + * Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. * @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 databaseProvisionModuleQueryKey = databaseProvisionModuleKeys.detail; /** - * Query hook for fetching a single DatabaseProvisionModule + * Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. * * @example * ```tsx @@ -76,7 +76,7 @@ export function useDatabaseProvisionModuleQuery( }); } /** - * Fetch a single DatabaseProvisionModule without React hooks + * Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. * * @example * ```ts @@ -109,7 +109,7 @@ export async function fetchDatabaseProvisionModuleQuery(params: { .unwrap(); } /** - * Prefetch a single DatabaseProvisionModule for SSR or cache warming + * Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useDatabaseProvisionModulesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useDatabaseProvisionModulesQuery.ts index 7c1c21c87..b3c666a18 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useDatabaseProvisionModulesQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useDatabaseProvisionModulesQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for DatabaseProvisionModule + * Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. * @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 databaseProvisionModulesQueryKey = databaseProvisionModuleKeys.list; /** - * Query hook for fetching DatabaseProvisionModule list + * Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. * * @example * ```tsx @@ -97,7 +97,7 @@ export function useDatabaseProvisionModulesQuery( }); } /** - * Fetch DatabaseProvisionModule list without React hooks + * Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. * * @example * ```ts @@ -139,7 +139,7 @@ export async function fetchDatabaseProvisionModulesQuery(params: { return getClient().databaseProvisionModule.findMany(args).unwrap(); } /** - * Prefetch DatabaseProvisionModule list for SSR or cache warming + * Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useNodeTypeRegistriesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useNodeTypeRegistriesQuery.ts index 1a6d70d89..9539fe313 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useNodeTypeRegistriesQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useNodeTypeRegistriesQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for 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.). * @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 nodeTypeRegistriesQueryKey = nodeTypeRegistryKeys.list; /** - * Query hook for fetching NodeTypeRegistry list + * Registry of high-level semantic AST node types using domain-prefixed naming. These IR nodes compile to multiple targets (Postgres RLS, egress, ingress, etc.). * * @example * ```tsx @@ -90,7 +90,7 @@ export function useNodeTypeRegistriesQuery( }); } /** - * Fetch NodeTypeRegistry list without React hooks + * Registry of high-level semantic AST node types using domain-prefixed naming. These IR nodes compile to multiple targets (Postgres RLS, egress, ingress, etc.). * * @example * ```ts @@ -125,7 +125,7 @@ export async function fetchNodeTypeRegistriesQuery(params: { return getClient().nodeTypeRegistry.findMany(args).unwrap(); } /** - * Prefetch NodeTypeRegistry list for SSR or cache warming + * Registry of high-level semantic AST node types using domain-prefixed naming. These IR nodes compile to multiple targets (Postgres RLS, egress, ingress, etc.). * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useNodeTypeRegistryQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useNodeTypeRegistryQuery.ts index ed4f7659b..3f2724087 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useNodeTypeRegistryQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useNodeTypeRegistryQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for 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.). * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { NodeTypeRegistrySelect, NodeTypeRegistryWithRelations } from '../. /** Query key factory - re-exported from query-keys.ts */ export const nodeTypeRegistryQueryKey = nodeTypeRegistryKeys.detail; /** - * Query hook for fetching a single 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.). * * @example * ```tsx @@ -70,7 +70,7 @@ export function useNodeTypeRegistryQuery( }); } /** - * Fetch a single NodeTypeRegistry without React hooks + * Registry of high-level semantic AST node types using domain-prefixed naming. These IR nodes compile to multiple targets (Postgres RLS, egress, ingress, etc.). * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchNodeTypeRegistryQuery(params: { .unwrap(); } /** - * Prefetch a single NodeTypeRegistry for SSR or cache warming + * Registry of high-level semantic AST node types using domain-prefixed naming. These IR nodes compile to multiple targets (Postgres RLS, egress, ingress, etc.). * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useRefQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useRefQuery.ts index b07bd3470..809602570 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useRefQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useRefQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for Ref + * A ref is a data structure for pointing to a commit. * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { RefSelect, RefWithRelations } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const refQueryKey = refKeys.detail; /** - * Query hook for fetching a single Ref + * A ref is a data structure for pointing to a commit. * * @example * ```tsx @@ -70,7 +70,7 @@ export function useRefQuery( }); } /** - * Fetch a single Ref without React hooks + * A ref is a data structure for pointing to a commit. * * @example * ```ts @@ -98,7 +98,7 @@ export async function fetchRefQuery(params: { id: string; selection: SelectionCo .unwrap(); } /** - * Prefetch a single Ref for SSR or cache warming + * A ref is a data structure for pointing to a commit. * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useRefsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useRefsQuery.ts index fbe141158..f5ae8938e 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useRefsQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useRefsQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for Ref + * A ref is a data structure for pointing to a commit. * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -21,7 +21,7 @@ export type { RefSelect, RefWithRelations, RefFilter, RefOrderBy } from '../../o /** Query key factory - re-exported from query-keys.ts */ export const refsQueryKey = refKeys.list; /** - * Query hook for fetching Ref list + * A ref is a data structure for pointing to a commit. * * @example * ```tsx @@ -72,7 +72,7 @@ export function useRefsQuery( }); } /** - * Fetch Ref list without React hooks + * A ref is a data structure for pointing to a commit. * * @example * ```ts @@ -99,7 +99,7 @@ export async function fetchRefsQuery(params: { return getClient().ref.findMany(args).unwrap(); } /** - * Prefetch Ref list for SSR or cache warming + * A ref is a data structure for pointing to a commit. * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useStoreQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useStoreQuery.ts index 984f8bf06..98966c63e 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useStoreQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useStoreQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for Store + * A store represents an isolated object repository within a database. * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { StoreSelect, StoreWithRelations } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const storeQueryKey = storeKeys.detail; /** - * Query hook for fetching a single Store + * A store represents an isolated object repository within a database. * * @example * ```tsx @@ -70,7 +70,7 @@ export function useStoreQuery( }); } /** - * Fetch a single Store without React hooks + * A store represents an isolated object repository within a database. * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchStoreQuery(params: { .unwrap(); } /** - * Prefetch a single Store for SSR or cache warming + * A store represents an isolated object repository within a database. * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useStoresQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useStoresQuery.ts index 07374bd06..192f926bd 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useStoresQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useStoresQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for Store + * A store represents an isolated object repository within a database. * @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 storesQueryKey = storeKeys.list; /** - * Query hook for fetching Store list + * A store represents an isolated object repository within a database. * * @example * ```tsx @@ -82,7 +82,7 @@ export function useStoresQuery( }); } /** - * Fetch Store list without React hooks + * A store represents an isolated object repository within a database. * * @example * ```ts @@ -109,7 +109,7 @@ export async function fetchStoresQuery(params: { return getClient().store.findMany(args).unwrap(); } /** - * Prefetch Store list for SSR or cache warming + * A store represents an isolated object repository within a database. * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useViewRuleQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useViewRuleQuery.ts index 3a33a3fa6..f85cab776 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useViewRuleQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useViewRuleQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for ViewRule + * DO INSTEAD rules for views (e.g., read-only enforcement) * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { ViewRuleSelect, ViewRuleWithRelations } from '../../orm/input-type /** Query key factory - re-exported from query-keys.ts */ export const viewRuleQueryKey = viewRuleKeys.detail; /** - * Query hook for fetching a single ViewRule + * DO INSTEAD rules for views (e.g., read-only enforcement) * * @example * ```tsx @@ -70,7 +70,7 @@ export function useViewRuleQuery( }); } /** - * Fetch a single ViewRule without React hooks + * DO INSTEAD rules for views (e.g., read-only enforcement) * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchViewRuleQuery(params: { .unwrap(); } /** - * Prefetch a single ViewRule for SSR or cache warming + * DO INSTEAD rules for views (e.g., read-only enforcement) * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useViewRulesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useViewRulesQuery.ts index 63994b707..b01883cb5 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useViewRulesQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useViewRulesQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for ViewRule + * DO INSTEAD rules for views (e.g., read-only enforcement) * @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 viewRulesQueryKey = viewRuleKeys.list; /** - * Query hook for fetching ViewRule list + * DO INSTEAD rules for views (e.g., read-only enforcement) * * @example * ```tsx @@ -84,7 +84,7 @@ export function useViewRulesQuery( }); } /** - * Fetch ViewRule list without React hooks + * DO INSTEAD rules for views (e.g., read-only enforcement) * * @example * ```ts @@ -113,7 +113,7 @@ export async function fetchViewRulesQuery(params: { return getClient().viewRule.findMany(args).unwrap(); } /** - * Prefetch ViewRule list for SSR or cache warming + * DO INSTEAD rules for views (e.g., read-only enforcement) * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useViewTableQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useViewTableQuery.ts index f49d71f68..a5df307ba 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useViewTableQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useViewTableQuery.ts @@ -1,5 +1,5 @@ /** - * Single item query hook for ViewTable + * Junction table linking views to their joined tables for referential integrity * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -16,7 +16,7 @@ export type { ViewTableSelect, ViewTableWithRelations } from '../../orm/input-ty /** Query key factory - re-exported from query-keys.ts */ export const viewTableQueryKey = viewTableKeys.detail; /** - * Query hook for fetching a single ViewTable + * Junction table linking views to their joined tables for referential integrity * * @example * ```tsx @@ -70,7 +70,7 @@ export function useViewTableQuery( }); } /** - * Fetch a single ViewTable without React hooks + * Junction table linking views to their joined tables for referential integrity * * @example * ```ts @@ -101,7 +101,7 @@ export async function fetchViewTableQuery(params: { .unwrap(); } /** - * Prefetch a single ViewTable for SSR or cache warming + * Junction table linking views to their joined tables for referential integrity * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/queries/useViewTablesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useViewTablesQuery.ts index 341746862..379ad3c9e 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useViewTablesQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useViewTablesQuery.ts @@ -1,5 +1,5 @@ /** - * List query hook for ViewTable + * Junction table linking views to their joined tables for referential integrity * @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 viewTablesQueryKey = viewTableKeys.list; /** - * Query hook for fetching ViewTable list + * Junction table linking views to their joined tables for referential integrity * * @example * ```tsx @@ -84,7 +84,7 @@ export function useViewTablesQuery( }); } /** - * Fetch ViewTable list without React hooks + * Junction table linking views to their joined tables for referential integrity * * @example * ```ts @@ -113,7 +113,7 @@ export async function fetchViewTablesQuery(params: { return getClient().viewTable.findMany(args).unwrap(); } /** - * Prefetch ViewTable list for SSR or cache warming + * Junction table linking views to their joined tables for referential integrity * * @example * ```ts diff --git a/sdk/constructive-react/src/public/hooks/skills/appAchievement.md b/sdk/constructive-react/src/public/hooks/skills/appAchievement.md index f791c42cf..109aaf8bb 100644 --- a/sdk/constructive-react/src/public/hooks/skills/appAchievement.md +++ b/sdk/constructive-react/src/public/hooks/skills/appAchievement.md @@ -2,7 +2,7 @@ -React Query hooks for AppAchievement data operations +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 diff --git a/sdk/constructive-react/src/public/hooks/skills/appLevel.md b/sdk/constructive-react/src/public/hooks/skills/appLevel.md index b40b3516f..bd72a41e7 100644 --- a/sdk/constructive-react/src/public/hooks/skills/appLevel.md +++ b/sdk/constructive-react/src/public/hooks/skills/appLevel.md @@ -2,7 +2,7 @@ -React Query hooks for AppLevel data operations +Levels for achievement ## Usage diff --git a/sdk/constructive-react/src/public/hooks/skills/appLevelRequirement.md b/sdk/constructive-react/src/public/hooks/skills/appLevelRequirement.md index b57886891..82fdcbb8a 100644 --- a/sdk/constructive-react/src/public/hooks/skills/appLevelRequirement.md +++ b/sdk/constructive-react/src/public/hooks/skills/appLevelRequirement.md @@ -2,7 +2,7 @@ -React Query hooks for AppLevelRequirement data operations +Requirements to achieve a level ## Usage diff --git a/sdk/constructive-react/src/public/hooks/skills/appStep.md b/sdk/constructive-react/src/public/hooks/skills/appStep.md index d14d1b243..9e8de0574 100644 --- a/sdk/constructive-react/src/public/hooks/skills/appStep.md +++ b/sdk/constructive-react/src/public/hooks/skills/appStep.md @@ -2,7 +2,7 @@ -React Query hooks for AppStep data operations +The user achieving a requirement for a level. Log table that has every single step ever taken. ## Usage diff --git a/sdk/constructive-react/src/public/hooks/skills/commit.md b/sdk/constructive-react/src/public/hooks/skills/commit.md index 9e7270ced..e828be2df 100644 --- a/sdk/constructive-react/src/public/hooks/skills/commit.md +++ b/sdk/constructive-react/src/public/hooks/skills/commit.md @@ -2,7 +2,7 @@ -React Query hooks for Commit data operations +A commit records changes to the repository. ## Usage diff --git a/sdk/constructive-react/src/public/hooks/skills/databaseProvisionModule.md b/sdk/constructive-react/src/public/hooks/skills/databaseProvisionModule.md index 7ad445f5e..5894b19a3 100644 --- a/sdk/constructive-react/src/public/hooks/skills/databaseProvisionModule.md +++ b/sdk/constructive-react/src/public/hooks/skills/databaseProvisionModule.md @@ -2,7 +2,7 @@ -React Query hooks for DatabaseProvisionModule data operations +Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. ## Usage diff --git a/sdk/constructive-react/src/public/hooks/skills/nodeTypeRegistry.md b/sdk/constructive-react/src/public/hooks/skills/nodeTypeRegistry.md index 36217d85c..1117028fa 100644 --- a/sdk/constructive-react/src/public/hooks/skills/nodeTypeRegistry.md +++ b/sdk/constructive-react/src/public/hooks/skills/nodeTypeRegistry.md @@ -2,7 +2,7 @@ -React Query hooks for NodeTypeRegistry data operations +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 diff --git a/sdk/constructive-react/src/public/hooks/skills/ref.md b/sdk/constructive-react/src/public/hooks/skills/ref.md index 47cb13511..c2f1375b1 100644 --- a/sdk/constructive-react/src/public/hooks/skills/ref.md +++ b/sdk/constructive-react/src/public/hooks/skills/ref.md @@ -2,7 +2,7 @@ -React Query hooks for Ref data operations +A ref is a data structure for pointing to a commit. ## Usage diff --git a/sdk/constructive-react/src/public/hooks/skills/store.md b/sdk/constructive-react/src/public/hooks/skills/store.md index 7ab006f5c..7263efef0 100644 --- a/sdk/constructive-react/src/public/hooks/skills/store.md +++ b/sdk/constructive-react/src/public/hooks/skills/store.md @@ -2,7 +2,7 @@ -React Query hooks for Store data operations +A store represents an isolated object repository within a database. ## Usage diff --git a/sdk/constructive-react/src/public/hooks/skills/viewRule.md b/sdk/constructive-react/src/public/hooks/skills/viewRule.md index 1df6eb4b1..8cf933710 100644 --- a/sdk/constructive-react/src/public/hooks/skills/viewRule.md +++ b/sdk/constructive-react/src/public/hooks/skills/viewRule.md @@ -2,7 +2,7 @@ -React Query hooks for ViewRule data operations +DO INSTEAD rules for views (e.g., read-only enforcement) ## Usage diff --git a/sdk/constructive-react/src/public/hooks/skills/viewTable.md b/sdk/constructive-react/src/public/hooks/skills/viewTable.md index d7ff5d68d..19ae38d79 100644 --- a/sdk/constructive-react/src/public/hooks/skills/viewTable.md +++ b/sdk/constructive-react/src/public/hooks/skills/viewTable.md @@ -2,7 +2,7 @@ -React Query hooks for ViewTable data operations +Junction table linking views to their joined tables for referential integrity ## Usage diff --git a/sdk/constructive-react/src/public/orm/skills/appAchievement.md b/sdk/constructive-react/src/public/orm/skills/appAchievement.md index 3e7b712a8..92ab466a3 100644 --- a/sdk/constructive-react/src/public/orm/skills/appAchievement.md +++ b/sdk/constructive-react/src/public/orm/skills/appAchievement.md @@ -2,7 +2,7 @@ -ORM operations for AppAchievement records +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 diff --git a/sdk/constructive-react/src/public/orm/skills/appLevel.md b/sdk/constructive-react/src/public/orm/skills/appLevel.md index b9c1a83b0..3677ecc37 100644 --- a/sdk/constructive-react/src/public/orm/skills/appLevel.md +++ b/sdk/constructive-react/src/public/orm/skills/appLevel.md @@ -2,7 +2,7 @@ -ORM operations for AppLevel records +Levels for achievement ## Usage diff --git a/sdk/constructive-react/src/public/orm/skills/appLevelRequirement.md b/sdk/constructive-react/src/public/orm/skills/appLevelRequirement.md index 10cfc240d..28df77ff5 100644 --- a/sdk/constructive-react/src/public/orm/skills/appLevelRequirement.md +++ b/sdk/constructive-react/src/public/orm/skills/appLevelRequirement.md @@ -2,7 +2,7 @@ -ORM operations for AppLevelRequirement records +Requirements to achieve a level ## Usage diff --git a/sdk/constructive-react/src/public/orm/skills/appStep.md b/sdk/constructive-react/src/public/orm/skills/appStep.md index 840537361..3c349de1f 100644 --- a/sdk/constructive-react/src/public/orm/skills/appStep.md +++ b/sdk/constructive-react/src/public/orm/skills/appStep.md @@ -2,7 +2,7 @@ -ORM operations for AppStep records +The user achieving a requirement for a level. Log table that has every single step ever taken. ## Usage diff --git a/sdk/constructive-react/src/public/orm/skills/commit.md b/sdk/constructive-react/src/public/orm/skills/commit.md index ee1b9fea4..85ded9d62 100644 --- a/sdk/constructive-react/src/public/orm/skills/commit.md +++ b/sdk/constructive-react/src/public/orm/skills/commit.md @@ -2,7 +2,7 @@ -ORM operations for Commit records +A commit records changes to the repository. ## Usage diff --git a/sdk/constructive-react/src/public/orm/skills/databaseProvisionModule.md b/sdk/constructive-react/src/public/orm/skills/databaseProvisionModule.md index 1b340f51f..89a929c4f 100644 --- a/sdk/constructive-react/src/public/orm/skills/databaseProvisionModule.md +++ b/sdk/constructive-react/src/public/orm/skills/databaseProvisionModule.md @@ -2,7 +2,7 @@ -ORM operations for DatabaseProvisionModule records +Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. ## Usage diff --git a/sdk/constructive-react/src/public/orm/skills/nodeTypeRegistry.md b/sdk/constructive-react/src/public/orm/skills/nodeTypeRegistry.md index e9f175902..0024949c1 100644 --- a/sdk/constructive-react/src/public/orm/skills/nodeTypeRegistry.md +++ b/sdk/constructive-react/src/public/orm/skills/nodeTypeRegistry.md @@ -2,7 +2,7 @@ -ORM operations for NodeTypeRegistry records +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 diff --git a/sdk/constructive-react/src/public/orm/skills/ref.md b/sdk/constructive-react/src/public/orm/skills/ref.md index bf392da9b..3165ec41e 100644 --- a/sdk/constructive-react/src/public/orm/skills/ref.md +++ b/sdk/constructive-react/src/public/orm/skills/ref.md @@ -2,7 +2,7 @@ -ORM operations for Ref records +A ref is a data structure for pointing to a commit. ## Usage diff --git a/sdk/constructive-react/src/public/orm/skills/store.md b/sdk/constructive-react/src/public/orm/skills/store.md index 95a5a7054..1a9bfc8a5 100644 --- a/sdk/constructive-react/src/public/orm/skills/store.md +++ b/sdk/constructive-react/src/public/orm/skills/store.md @@ -2,7 +2,7 @@ -ORM operations for Store records +A store represents an isolated object repository within a database. ## Usage diff --git a/sdk/constructive-react/src/public/orm/skills/viewRule.md b/sdk/constructive-react/src/public/orm/skills/viewRule.md index 6844b1cb2..e6bd8f1ab 100644 --- a/sdk/constructive-react/src/public/orm/skills/viewRule.md +++ b/sdk/constructive-react/src/public/orm/skills/viewRule.md @@ -2,7 +2,7 @@ -ORM operations for ViewRule records +DO INSTEAD rules for views (e.g., read-only enforcement) ## Usage diff --git a/sdk/constructive-react/src/public/orm/skills/viewTable.md b/sdk/constructive-react/src/public/orm/skills/viewTable.md index 4e99263c0..d3adc9f0e 100644 --- a/sdk/constructive-react/src/public/orm/skills/viewTable.md +++ b/sdk/constructive-react/src/public/orm/skills/viewTable.md @@ -2,7 +2,7 @@ -ORM operations for ViewTable records +Junction table linking views to their joined tables for referential integrity ## Usage diff --git a/sdk/constructive-sdk/src/admin/orm/skills/appAchievement.md b/sdk/constructive-sdk/src/admin/orm/skills/appAchievement.md index 3e7b712a8..92ab466a3 100644 --- a/sdk/constructive-sdk/src/admin/orm/skills/appAchievement.md +++ b/sdk/constructive-sdk/src/admin/orm/skills/appAchievement.md @@ -2,7 +2,7 @@ -ORM operations for AppAchievement records +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 diff --git a/sdk/constructive-sdk/src/admin/orm/skills/appLevel.md b/sdk/constructive-sdk/src/admin/orm/skills/appLevel.md index b9c1a83b0..3677ecc37 100644 --- a/sdk/constructive-sdk/src/admin/orm/skills/appLevel.md +++ b/sdk/constructive-sdk/src/admin/orm/skills/appLevel.md @@ -2,7 +2,7 @@ -ORM operations for AppLevel records +Levels for achievement ## Usage diff --git a/sdk/constructive-sdk/src/admin/orm/skills/appLevelRequirement.md b/sdk/constructive-sdk/src/admin/orm/skills/appLevelRequirement.md index 10cfc240d..28df77ff5 100644 --- a/sdk/constructive-sdk/src/admin/orm/skills/appLevelRequirement.md +++ b/sdk/constructive-sdk/src/admin/orm/skills/appLevelRequirement.md @@ -2,7 +2,7 @@ -ORM operations for AppLevelRequirement records +Requirements to achieve a level ## Usage diff --git a/sdk/constructive-sdk/src/admin/orm/skills/appStep.md b/sdk/constructive-sdk/src/admin/orm/skills/appStep.md index 840537361..3c349de1f 100644 --- a/sdk/constructive-sdk/src/admin/orm/skills/appStep.md +++ b/sdk/constructive-sdk/src/admin/orm/skills/appStep.md @@ -2,7 +2,7 @@ -ORM operations for AppStep records +The user achieving a requirement for a level. Log table that has every single step ever taken. ## Usage diff --git a/sdk/constructive-sdk/src/objects/orm/skills/commit.md b/sdk/constructive-sdk/src/objects/orm/skills/commit.md index ee1b9fea4..85ded9d62 100644 --- a/sdk/constructive-sdk/src/objects/orm/skills/commit.md +++ b/sdk/constructive-sdk/src/objects/orm/skills/commit.md @@ -2,7 +2,7 @@ -ORM operations for Commit records +A commit records changes to the repository. ## Usage diff --git a/sdk/constructive-sdk/src/objects/orm/skills/ref.md b/sdk/constructive-sdk/src/objects/orm/skills/ref.md index bf392da9b..3165ec41e 100644 --- a/sdk/constructive-sdk/src/objects/orm/skills/ref.md +++ b/sdk/constructive-sdk/src/objects/orm/skills/ref.md @@ -2,7 +2,7 @@ -ORM operations for Ref records +A ref is a data structure for pointing to a commit. ## Usage diff --git a/sdk/constructive-sdk/src/objects/orm/skills/store.md b/sdk/constructive-sdk/src/objects/orm/skills/store.md index 95a5a7054..1a9bfc8a5 100644 --- a/sdk/constructive-sdk/src/objects/orm/skills/store.md +++ b/sdk/constructive-sdk/src/objects/orm/skills/store.md @@ -2,7 +2,7 @@ -ORM operations for Store records +A store represents an isolated object repository within a database. ## Usage diff --git a/sdk/constructive-sdk/src/public/orm/skills/appAchievement.md b/sdk/constructive-sdk/src/public/orm/skills/appAchievement.md index 3e7b712a8..92ab466a3 100644 --- a/sdk/constructive-sdk/src/public/orm/skills/appAchievement.md +++ b/sdk/constructive-sdk/src/public/orm/skills/appAchievement.md @@ -2,7 +2,7 @@ -ORM operations for AppAchievement records +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 diff --git a/sdk/constructive-sdk/src/public/orm/skills/appLevel.md b/sdk/constructive-sdk/src/public/orm/skills/appLevel.md index b9c1a83b0..3677ecc37 100644 --- a/sdk/constructive-sdk/src/public/orm/skills/appLevel.md +++ b/sdk/constructive-sdk/src/public/orm/skills/appLevel.md @@ -2,7 +2,7 @@ -ORM operations for AppLevel records +Levels for achievement ## Usage diff --git a/sdk/constructive-sdk/src/public/orm/skills/appLevelRequirement.md b/sdk/constructive-sdk/src/public/orm/skills/appLevelRequirement.md index 10cfc240d..28df77ff5 100644 --- a/sdk/constructive-sdk/src/public/orm/skills/appLevelRequirement.md +++ b/sdk/constructive-sdk/src/public/orm/skills/appLevelRequirement.md @@ -2,7 +2,7 @@ -ORM operations for AppLevelRequirement records +Requirements to achieve a level ## Usage diff --git a/sdk/constructive-sdk/src/public/orm/skills/appStep.md b/sdk/constructive-sdk/src/public/orm/skills/appStep.md index 840537361..3c349de1f 100644 --- a/sdk/constructive-sdk/src/public/orm/skills/appStep.md +++ b/sdk/constructive-sdk/src/public/orm/skills/appStep.md @@ -2,7 +2,7 @@ -ORM operations for AppStep records +The user achieving a requirement for a level. Log table that has every single step ever taken. ## Usage diff --git a/sdk/constructive-sdk/src/public/orm/skills/commit.md b/sdk/constructive-sdk/src/public/orm/skills/commit.md index ee1b9fea4..85ded9d62 100644 --- a/sdk/constructive-sdk/src/public/orm/skills/commit.md +++ b/sdk/constructive-sdk/src/public/orm/skills/commit.md @@ -2,7 +2,7 @@ -ORM operations for Commit records +A commit records changes to the repository. ## Usage diff --git a/sdk/constructive-sdk/src/public/orm/skills/databaseProvisionModule.md b/sdk/constructive-sdk/src/public/orm/skills/databaseProvisionModule.md index 1b340f51f..89a929c4f 100644 --- a/sdk/constructive-sdk/src/public/orm/skills/databaseProvisionModule.md +++ b/sdk/constructive-sdk/src/public/orm/skills/databaseProvisionModule.md @@ -2,7 +2,7 @@ -ORM operations for DatabaseProvisionModule records +Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. ## Usage diff --git a/sdk/constructive-sdk/src/public/orm/skills/nodeTypeRegistry.md b/sdk/constructive-sdk/src/public/orm/skills/nodeTypeRegistry.md index e9f175902..0024949c1 100644 --- a/sdk/constructive-sdk/src/public/orm/skills/nodeTypeRegistry.md +++ b/sdk/constructive-sdk/src/public/orm/skills/nodeTypeRegistry.md @@ -2,7 +2,7 @@ -ORM operations for NodeTypeRegistry records +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 diff --git a/sdk/constructive-sdk/src/public/orm/skills/ref.md b/sdk/constructive-sdk/src/public/orm/skills/ref.md index bf392da9b..3165ec41e 100644 --- a/sdk/constructive-sdk/src/public/orm/skills/ref.md +++ b/sdk/constructive-sdk/src/public/orm/skills/ref.md @@ -2,7 +2,7 @@ -ORM operations for Ref records +A ref is a data structure for pointing to a commit. ## Usage diff --git a/sdk/constructive-sdk/src/public/orm/skills/store.md b/sdk/constructive-sdk/src/public/orm/skills/store.md index 95a5a7054..1a9bfc8a5 100644 --- a/sdk/constructive-sdk/src/public/orm/skills/store.md +++ b/sdk/constructive-sdk/src/public/orm/skills/store.md @@ -2,7 +2,7 @@ -ORM operations for Store records +A store represents an isolated object repository within a database. ## Usage diff --git a/sdk/constructive-sdk/src/public/orm/skills/viewRule.md b/sdk/constructive-sdk/src/public/orm/skills/viewRule.md index 6844b1cb2..e6bd8f1ab 100644 --- a/sdk/constructive-sdk/src/public/orm/skills/viewRule.md +++ b/sdk/constructive-sdk/src/public/orm/skills/viewRule.md @@ -2,7 +2,7 @@ -ORM operations for ViewRule records +DO INSTEAD rules for views (e.g., read-only enforcement) ## Usage diff --git a/sdk/constructive-sdk/src/public/orm/skills/viewTable.md b/sdk/constructive-sdk/src/public/orm/skills/viewTable.md index 4e99263c0..d3adc9f0e 100644 --- a/sdk/constructive-sdk/src/public/orm/skills/viewTable.md +++ b/sdk/constructive-sdk/src/public/orm/skills/viewTable.md @@ -2,7 +2,7 @@ -ORM operations for ViewTable records +Junction table linking views to their joined tables for referential integrity ## Usage From 5c3254764d6a03ca0f6323e965e5a91e6e5d89e5 Mon Sep 17 00:00:00 2001 From: Dan Lynch Date: Sat, 28 Feb 2026 00:47:17 +0000 Subject: [PATCH 8/8] fix: add proper type annotations to baseConfig objects --- graphql/codegen/src/core/generate.ts | 2 +- sdk/constructive-react/scripts/generate-react.ts | 3 ++- sdk/constructive-sdk/scripts/generate-sdk.ts | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/graphql/codegen/src/core/generate.ts b/graphql/codegen/src/core/generate.ts index c152a10f6..0317c3482 100644 --- a/graphql/codegen/src/core/generate.ts +++ b/graphql/codegen/src/core/generate.ts @@ -639,7 +639,7 @@ export async function generateMulti( try { for (const name of names) { - const baseConfig = { + const baseConfig: GraphQLSDKConfigTarget = { ...configs[name], ...(cliOverrides ?? {}), }; diff --git a/sdk/constructive-react/scripts/generate-react.ts b/sdk/constructive-react/scripts/generate-react.ts index f386f871d..eb0382fa5 100644 --- a/sdk/constructive-react/scripts/generate-react.ts +++ b/sdk/constructive-react/scripts/generate-react.ts @@ -2,6 +2,7 @@ import { generateMulti, expandSchemaDirToMultiTarget, } from '@constructive-io/graphql-codegen'; +import type { GraphQLSDKConfigTarget } from '@constructive-io/graphql-codegen'; const SCHEMA_DIR = '../constructive-sdk/schemas'; @@ -11,7 +12,7 @@ async function main() { console.log('Generating React SDK from schema files...'); console.log(`Schema directory: ${SCHEMA_DIR}`); - const baseConfig = { + const baseConfig: GraphQLSDKConfigTarget = { schemaDir: SCHEMA_DIR, output: './src', orm: true, diff --git a/sdk/constructive-sdk/scripts/generate-sdk.ts b/sdk/constructive-sdk/scripts/generate-sdk.ts index 6e5013382..a81bd91bd 100644 --- a/sdk/constructive-sdk/scripts/generate-sdk.ts +++ b/sdk/constructive-sdk/scripts/generate-sdk.ts @@ -2,6 +2,7 @@ import { generateMulti, expandSchemaDirToMultiTarget, } from '@constructive-io/graphql-codegen'; +import type { GraphQLSDKConfigTarget } from '@constructive-io/graphql-codegen'; const SCHEMA_DIR = '../constructive-sdk/schemas'; @@ -11,7 +12,7 @@ async function main() { console.log('Generating SDK from schema files...'); console.log(`Schema directory: ${SCHEMA_DIR}`); - const baseConfig = { + const baseConfig: GraphQLSDKConfigTarget = { schemaDir: SCHEMA_DIR, output: './src', orm: true,